Re: smbclient usage fails with "Unable to initialize messaging context"

2019-01-04 Thread Uwe Menges
On 1/4/19 7:51 PM, Stefan G. Weichinger wrote:
> I couldn't find a way to exclude/ignore such messages from smbclient
> within amsamba. And browsing the script itself it wasn't clear to me
> non-coder how and where to add that.

I'm not able to test that, my perl is rusty, I didn't take a close look,
yadda yadda..

Try to add to amsamba after both (L433 + L521):
next if /^WARNING/g;
+   next if /^Unable to initialize messaging context/g;

Or if the message doesn't really start at first column, omit the ^.

Yours, Uwe


Re: smbclient usage fails with "Unable to initialize messaging context"

2019-01-04 Thread Stefan G. Weichinger
Am 03.01.19 um 09:56 schrieb Uwe Menges:
> On 1/2/19 8:19 PM, Stefan G. Weichinger wrote:
>>> at first: happy new year to all you amanda-users!
> 
> Happy new year as well!

thank you ;)

> I don't use smb or amsamba, so I don't know what it does in depth.
> But I don't yet understand from your e-mail what's happening at all.
> 
> Is this an error that prevents it from working or just a message you
> want to get rid of? Exit status 1 (from amsamba, but probably also from
> smbclient?) indicates more than a nuisance.
> 
> Do you get the same error from a shell when trying smbclient command
> that amanda/amsamba produces? Maybe the issue needs to be analyzed and
> solved underneath amanda.

Yes, it is also given back by smbclient on the shell, when run by the
backup/amanda user.

Rowland Penny on the samba-mailing-list told me that it can be ignored,
but amanda does not do that yet.

So far I noticed that amdumps work, but the reports are "tainted" (is
that the word?) by the ugly message and therefore marked as FAILED.

I couldn't find a way to exclude/ignore such messages from smbclient
within amsamba. And browsing the script itself it wasn't clear to me
non-coder how and where to add that.

Filing an issue at github seems non-working to me, as I wait for a
single beep of feedback for two weeks now after filing my last issue
there (additionally to posting here).

Stefan