David C. Rankin
2018-Dec-21 08:54 UTC
[Samba] smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
Sambadevs,
I don't know if this is a bug or just a spurious error message when using
smbclient (on a standalone config), but checking smbclient, I get:
02:47 2pi:~> smbclient -U% -Llocalhost
Unable to initialize messaging context
Sharename Type Comment
--------- ---- -------
samba Disk 2pi - Law
IPC$ IPC IPC Service (2pi Samba 4.9.4)
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
RLFPLLC
What is "Unable to initialize messaging context"?
I see a patch back in July, related to "Fix bug 13465",
https://lists.samba.org/archive/samba-technical/2018-July/129186.html but it
is unclear why the message is still being issued?
Any ideas?
--
David C. Rankin, J.D.,P.E.
L.P.H. van Belle
2018-Dec-21 08:59 UTC
[Samba] smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
Hmm.. Works as it should here.
Also stand alone, but with 1 extra patch.
smbclient -U% -Llocalhost
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.9.4-Debian)
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP DEBIAN9TEST
Can you post your smb.conf ?
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> David C. Rankin via samba
> Verzonden: vrijdag 21 december 2018 9:54
> Aan: samba
> Onderwerp: [Samba] smbclient (Samba 4.9.4) "Unable to
> initialize messaging context"?
>
> Sambadevs,
>
> I don't know if this is a bug or just a spurious error
> message when using
> smbclient (on a standalone config), but checking smbclient, I get:
>
> 02:47 2pi:~> smbclient -U% -Llocalhost
> Unable to initialize messaging context
>
> Sharename Type Comment
> --------- ---- -------
> samba Disk 2pi - Law
> IPC$ IPC IPC Service (2pi Samba 4.9.4)
> Reconnecting with SMB1 for workgroup listing.
>
> Server Comment
> --------- -------
>
> Workgroup Master
> --------- -------
> RLFPLLC
>
> What is "Unable to initialize messaging context"?
>
> I see a patch back in July, related to "Fix bug 13465",
> https://lists.samba.org/archive/samba-technical/2018-July/1291
> 86.html but it
> is unclear why the message is still being issued?
>
> Any ideas?
>
> --
> David C. Rankin, J.D.,P.E.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
Peter Eriksson
2018-Dec-21 15:47 UTC
[Samba] smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
> On 21 Dec 2018, at 09:54, David C. Rankin via samba <samba at lists.samba.org> wrote: > > Sambadevs, > > I don't know if this is a bug or just a spurious error message when using > smbclient (on a standalone config), but checking smbclient, I get: > > 02:47 2pi:~> smbclient -U% -Llocalhost > Unable to initialize messaging context > > Sharename Type Comment > --------- ---- ------- > samba Disk 2pi - Law > IPC$ IPC IPC Service (2pi Samba 4.9.4) > Reconnecting with SMB1 for workgroup listing. > > Server Comment > --------- ------- > > Workgroup Master > --------- ------- > RLFPLLC > > What is "Unable to initialize messaging context"? > > I see a patch back in July, related to "Fix bug 13465", > https://lists.samba.org/archive/samba-technical/2018-July/129186.html but it > is unclear why the message is still being issued?Because that patch for bug 13465 fixes a similar error message in another part of the code… (Notice that the error message does not end in a “.” or a “!” which the other patch fixes :-) I just added the below patch to my own-compiled 4.9.4 tree :-) --- popt_common_cmdline.c.ORIG 2018-11-08 08:58:08.000000000 +0100 +++ popt_common_cmdline.c 2018-12-21 14:08:04.660504000 +0100 @@ -106,7 +106,7 @@ bool ok; msg_ctx = cmdline_messaging_context(get_dyn_CONFIGFILE()); - if (msg_ctx == NULL) { + if (msg_ctx == NULL && geteuid() == 0) { fprintf(stderr, "Unable to initialize " "messaging context\n"); } - Peter
Stefan G. Weichinger
2019-Jan-02 08:32 UTC
[Samba] smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
Am 21.12.18 um 16:47 schrieb Peter Eriksson via samba:>> What is "Unable to initialize messaging context"? >> >> I see a patch back in July, related to "Fix bug 13465", >> https://lists.samba.org/archive/samba-technical/2018-July/129186.html but it >> is unclear why the message is still being issued? > > Because that patch for bug 13465 fixes a similar error message in another part of the code… > > (Notice that the error message does not end in a “.” or a “!” which the other patch fixes :-) > > I just added the below patch to my own-compiled 4.9.4 tree :-)Unfortunately I have to report that I also get this message with samba-4.8.8 (van-belle repo) on Debian 9.6, when I check my backup connection to a Windows 2008 R2 server (running "amcheck" from the amanda backup suite which is then using smbclient under the hood). happy new year to all of you, by the way ;-)
Possibly Parallel Threads
- smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
- smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
- smbclient (Samba 4.9.4) "Unable to initialize messaging context"?
- Lookup sid with libsmbclient (invoked from c# on mono)
- Standalone - Multiple (2) responses received for a query on subnet ...