Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-20 Thread Stefan G. Weichinger
Am 18.07.19 um 13:49 schrieb Stefan G. Weichinger:
> Am 18.07.19 um 13:45 schrieb Stefan G. Weichinger:
>> Am 18.07.19 um 10:44 schrieb Diego Zuccato:
>>> Il 17/07/19 19:04, Jean-Louis Martineau ha scritto:
>>>
 Add the same pattern near line 757:
 return if $line =~ /^Unable to initialize messaging context/;
>>> Tks! Applied. Hope it gets included in next update!
>>>
>>
>> https://github.com/zmanda/amanda/pull/111
> 
> hm, sorry, should have rebased that ... or so.
> 

Does someone have patches in place for this ACCESS_DENIED issue
mentioned here:

https://github.com/zmanda/amanda/issues/77

I am currently unsure when it is safe to ignore these messages.

And I have amsamba-DLEs with dozens of these messages.



Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-18 Thread Stefan G. Weichinger
Am 18.07.19 um 13:45 schrieb Stefan G. Weichinger:
> Am 18.07.19 um 10:44 schrieb Diego Zuccato:
>> Il 17/07/19 19:04, Jean-Louis Martineau ha scritto:
>>
>>> Add the same pattern near line 757:
>>> return if $line =~ /^Unable to initialize messaging context/;
>> Tks! Applied. Hope it gets included in next update!
>>
> 
> https://github.com/zmanda/amanda/pull/111

hm, sorry, should have rebased that ... or so.



Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-18 Thread Stefan G. Weichinger
Am 18.07.19 um 10:44 schrieb Diego Zuccato:
> Il 17/07/19 19:04, Jean-Louis Martineau ha scritto:
> 
>> Add the same pattern near line 757:
>> return if $line =~ /^Unable to initialize messaging context/;
> Tks! Applied. Hope it gets included in next update!
> 

https://github.com/zmanda/amanda/pull/111


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-18 Thread Diego Zuccato
Il 17/07/19 19:04, Jean-Louis Martineau ha scritto:

> Add the same pattern near line 757:
> return if $line =~ /^Unable to initialize messaging context/;
Tks! Applied. Hope it gets included in next update!

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-17 Thread Stefan G. Weichinger
Am 17.07.19 um 19:04 schrieb Jean-Louis Martineau:
> Add the same pattern near line 757:
> return if $line =~ /^Unable to initialize messaging context/;

Oh, Jean-Louis, nice to read you!

thanks for the missing line, yes, now my first test dump is free of that
error.

Do we have a PR somewhere for this, should I file one?

Thanks, regards, Stefan




Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-17 Thread Jean-Louis Martineau
Add the same pattern near line 757:
   return if $line =~ /^Unable to initialize messaging context/;

From: owner-amanda-us...@amanda.org  on behalf 
of Stefan G. Weichinger 
Sent: July 17, 2019 12:52 PM
To: Diego Zuccato; AMANDA users
Subject: Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: 
Application 'amsamba': exited with status 1

Am 16.07.19 um 10:07 schrieb Stefan G. Weichinger:
> Am 16.07.19 um 09:14 schrieb Diego Zuccato:
>> Il 16/07/19 08:46, Stefan G. Weichinger ha scritto:
>>
>>> I never figured out the correct patch ;-)
>>> Pls show your change, I want to give it another try.
>> Here it is.
>> -8<--
>> # diff -u amsamba.ori amsamba
>> --- amsamba.ori  2019-07-16 09:09:28.430585521 +0200
>> +++ amsamba  2019-07-10 11:02:13.352987193 +0200
>> @@ -462,6 +462,7 @@
>>  debug("stderr: " . $_);
>>  next if /^Domain=/;
>>  next if /^WARNING/g;
>> +next if /^Unable to initialize messaging context/g;
>>  # message if samba server is configured with 'security = share'
>>  next if /Server not using user level security and no password 
>> supplied./;
>>  $self->print_to_server("smbclient: $_",
>> @@ -554,6 +555,7 @@
>>  next if /^Domain=/;
>>  next if /dumped \d+ files and directories/;
>>  next if /^WARNING/g;
>> +next if /^Unable to initialize messaging context/g;
>>  # message if samba server is configured with 'security = share'
>>  next if /Server not using user level security and no password 
>> supplied./;
>>  debug("stderr: $_");
>> -8<--
>
> thanks, applied, check tmrw (after amdump over night)

I still get these messages (double-checked: yes, it's the server with
the patch applied)


/-- pre01svdeb02 ntcs-pgmdata lev 1 STRANGE
  sendbackup: info BACKUP=APPLICATION
  sendbackup: info APPLICATION=amsamba
  sendbackup: info RECOVER_CMD=/bin/gzip -dc
|/usr/lib/amanda/application/amsamba restore [./file-to-restore]+
  sendbackup: info COMPRESS_SUFFIX=.gz
  sendbackup: info end
  ? smbclient: Unable to initialize messaging context
  sendbackup: size 52576.4208984375
  sendbackup: native-CRC eb374f92:55162880
  sendbackup: client-CRC bb9be9c1:8157700
  sendbackup: end
  \


This message is the property of CARBONITE, INC. and may contain confidential or 
privileged information.
If this message has been delivered to you by mistake, then do not copy or 
deliver this message to anyone.  Instead, destroy it and notify me by reply 
e-mail


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-17 Thread Stefan G. Weichinger
Am 16.07.19 um 10:07 schrieb Stefan G. Weichinger:
> Am 16.07.19 um 09:14 schrieb Diego Zuccato:
>> Il 16/07/19 08:46, Stefan G. Weichinger ha scritto:
>>
>>> I never figured out the correct patch ;-)
>>> Pls show your change, I want to give it another try.
>> Here it is.
>> -8<--
>> # diff -u amsamba.ori amsamba
>> --- amsamba.ori  2019-07-16 09:09:28.430585521 +0200
>> +++ amsamba  2019-07-10 11:02:13.352987193 +0200
>> @@ -462,6 +462,7 @@
>>  debug("stderr: " . $_);
>>  next if /^Domain=/;
>>  next if /^WARNING/g;
>> +next if /^Unable to initialize messaging context/g;
>>  # message if samba server is configured with 'security = share'
>>  next if /Server not using user level security and no password 
>> supplied./;
>>  $self->print_to_server("smbclient: $_",
>> @@ -554,6 +555,7 @@
>>  next if /^Domain=/;
>>  next if /dumped \d+ files and directories/;
>>  next if /^WARNING/g;
>> +next if /^Unable to initialize messaging context/g;
>>  # message if samba server is configured with 'security = share'
>>  next if /Server not using user level security and no password 
>> supplied./;
>>  debug("stderr: $_");
>> -8<--
> 
> thanks, applied, check tmrw (after amdump over night)

I still get these messages (double-checked: yes, it's the server with
the patch applied)


/-- pre01svdeb02 ntcs-pgmdata lev 1 STRANGE
  sendbackup: info BACKUP=APPLICATION
  sendbackup: info APPLICATION=amsamba
  sendbackup: info RECOVER_CMD=/bin/gzip -dc
|/usr/lib/amanda/application/amsamba restore [./file-to-restore]+
  sendbackup: info COMPRESS_SUFFIX=.gz
  sendbackup: info end
  ? smbclient: Unable to initialize messaging context
  sendbackup: size 52576.4208984375
  sendbackup: native-CRC eb374f92:55162880
  sendbackup: client-CRC bb9be9c1:8157700
  sendbackup: end
  \


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-16 Thread Stefan G. Weichinger
Am 16.07.19 um 09:14 schrieb Diego Zuccato:
> Il 16/07/19 08:46, Stefan G. Weichinger ha scritto:
> 
>> I never figured out the correct patch ;-)
>> Pls show your change, I want to give it another try.
> Here it is.
> -8<--
> # diff -u amsamba.ori amsamba
> --- amsamba.ori   2019-07-16 09:09:28.430585521 +0200
> +++ amsamba   2019-07-10 11:02:13.352987193 +0200
> @@ -462,6 +462,7 @@
>   debug("stderr: " . $_);
>   next if /^Domain=/;
>   next if /^WARNING/g;
> + next if /^Unable to initialize messaging context/g;
>   # message if samba server is configured with 'security = share'
>   next if /Server not using user level security and no password 
> supplied./;
>   $self->print_to_server("smbclient: $_",
> @@ -554,6 +555,7 @@
>   next if /^Domain=/;
>   next if /dumped \d+ files and directories/;
>   next if /^WARNING/g;
> + next if /^Unable to initialize messaging context/g;
>   # message if samba server is configured with 'security = share'
>   next if /Server not using user level security and no password 
> supplied./;
>   debug("stderr: $_");
> -8<--

thanks, applied, check tmrw (after amdump over night)



Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-16 Thread Diego Zuccato
Il 12/07/19 15:23, Diego Zuccato ha scritto:

> define dumptype win {
> auth "local"
> #estimate client
> #compress server custom
> #server-custom-compress "/usr/bin/pigz"
> program "APPLICATION"
> application {
>   plugin "amsamba"
>   property "AMANDAPASS" "/etc/amanda/daily/pass"
> }
> }
> (note the commented lines), I get a different error:
> FAILURE DUMP SUMMARY:
>   localhost //192.168.48.41/port lev 0  FAILED [data timeout]
>   localhost //192.168.48.41/port lev 0  FAILED [Got empty header]
>   localhost //192.168.48.41/port lev 0  FAILED [data timeout]
>   localhost //192.168.48.41/port lev 0  FAILED [Got empty header]
I finally managed to find the issue: seems newer amsamba does not like
local auth!
When changed to bsdtcp, it all started working again.

I'd prefer using local, but if bsdtcp is needed I'll use it :)

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-16 Thread Diego Zuccato
Il 16/07/19 08:46, Stefan G. Weichinger ha scritto:

> I never figured out the correct patch ;-)
> Pls show your change, I want to give it another try.
Here it is.
-8<--
# diff -u amsamba.ori amsamba
--- amsamba.ori 2019-07-16 09:09:28.430585521 +0200
+++ amsamba 2019-07-10 11:02:13.352987193 +0200
@@ -462,6 +462,7 @@
debug("stderr: " . $_);
next if /^Domain=/;
next if /^WARNING/g;
+   next if /^Unable to initialize messaging context/g;
# message if samba server is configured with 'security = share'
next if /Server not using user level security and no password 
supplied./;
$self->print_to_server("smbclient: $_",
@@ -554,6 +555,7 @@
next if /^Domain=/;
next if /dumped \d+ files and directories/;
next if /^WARNING/g;
+   next if /^Unable to initialize messaging context/g;
# message if samba server is configured with 'security = share'
next if /Server not using user level security and no password 
supplied./;
debug("stderr: $_");
-8<--

But backups are still marked "strange". Seems it's not enough to ignore
it in amsamba... Maybe someone else can find the right fix...

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-15 Thread Stefan G. Weichinger
Am 10.07.19 um 14:17 schrieb Diego Zuccato:

> Too bad the patch given here:
> http://www.backupcentral.com/forum/14/292396/smbclient_usage_fails_with__unable_to_initialize_messaging_context_
> is not in packaged version (3.5.1) yet.
> 
> Adding the two lines, in my case, fixes the amcheck issue.

I never figured out the correct patch ;-)

Pls show your change, I want to give it another try.





Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-12 Thread Diego Zuccato
Il 10/07/19 14:23, Diego Zuccato ha scritto:

>> Too bad amdump fails after quite a long time with:
>> FAILED [data timeout]
>> FAILED [Error accepting incoming connection: Connection timed out]
>> Which incoming connection is it referring to???
I tried trplacing tcpd (default dep of Debian package) with xinetd but
the error remains the same.

If I change slightly the config for that dumptype to
define dumptype win {
auth "local"
#estimate client
#compress server custom
#server-custom-compress "/usr/bin/pigz"
program "APPLICATION"
application {
plugin "amsamba"
property "AMANDAPASS" "/etc/amanda/daily/pass"
}
}
(note the commented lines), I get a different error:
FAILURE DUMP SUMMARY:
  localhost //192.168.48.41/port lev 0  FAILED [data timeout]
  localhost //192.168.48.41/port lev 0  FAILED [Got empty header]
  localhost //192.168.48.41/port lev 0  FAILED [data timeout]
  localhost //192.168.48.41/port lev 0  FAILED [Got empty header]

I also see two gzip processes instead of just one:
30897 backup 20   0  2540  1496  1216 S  0.0  0.0  0:00.08 /bin/gzip
--fast
30900 backup 20   0  2540   756   692 S  0.0  0.0  0:00.00 /bin/gzip
--best
30902 backup 20   0 48472 31732 13740 S  0.0  0.4  0:00.28
/usr/bin/perl /usr/lib/amanda/application/amsamba backup --message line
--config daily --host localhost --disk //192.168.48.41/port --device
//192.168.48.41/port --level 0 --index line --record --amandapass
/etc/amanda/daily/pass
30905 backup 20   0 72244 17492 14916 S  0.0  0.2  0:00.14
/usr/bin/smbclient //192.168.48.41/portinerie -d 0 -U Backup -E -W MGMT
-c tarmode full reset hidden system quiet; tar c -
30906 backup 20   0  5612  1040   896 S  0.0  0.0  0:00.00 /bin/tar
-tf -
And when pigz is configured I still see a gzip process...

> Any hint?
Please help!

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-10 Thread Diego Zuccato
Il 10/07/19 14:17, Diego Zuccato ha scritto:

> Too bad amdump fails after quite a long time with:
> FAILED [data timeout]
> FAILED [Error accepting incoming connection: Connection timed out]
> 
> Which incoming connection is it referring to???
Forgot to say that:
1) if I place the wrong password in the pass file, it fails immediatly
2) launching smbclient from command line works:
# sudo -u backup smbclient //192.168.48.41/port -d 0 -U Backup -E -W
MGMT -c ls\;quit
Unable to initialize messaging context
Enter MGMT\Backup's password:
  .   D0  Wed Jun 12 08:17:51 2019
  ..  D0  Wed Jun 12 08:17:51 2019
[...files and folders...]

314572543 blocks of size 4096. 48702724 blocks available

Any hint?
Tks.

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-10 Thread Diego Zuccato
Il 09/07/19 18:22, Tobias Koeck ha scritto:

> It seems to break only 'amcheck a2g-2' right now. The 'amdump' command
> seems to be dumping and writing it anway so it doesn't seem that super
> urgent.
I just upgraded to Debian 10, too, to check if that would fix my issues
with amsamba.
Too bad the patch given here:
http://www.backupcentral.com/forum/14/292396/smbclient_usage_fails_with__unable_to_initialize_messaging_context_
is not in packaged version (3.5.1) yet.

Adding the two lines, in my case, fixes the amcheck issue.

Too bad amdump fails after quite a long time with:
FAILED [data timeout]
FAILED [Error accepting incoming connection: Connection timed out]

Which incoming connection is it referring to???

-- 
Diego Zuccato
Servizi Informatici
Dip. di Fisica e Astronomia (DIFA) - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786
mail: diego.zucc...@unibo.it


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-09 Thread Charles Curley
On Mon, 8 Jul 2019 17:51:44 +0200
Tobias Koeck  wrote:

> Hi,
>
> since I have upgraded to Debian 10 I get strange amsamba errors.
>
> Any ideas why?

I'm no expert on Samba. However, while upgrading from Debian stretch
(9.x) to buster (10.0), I saw the following notices which may be
relevant here:

1)

--

samba (2:4.6.5+dfsg-5) unstable; urgency=medium

The samba service has been removed. Use the individual services instead:

* nmbd
* smbd
* samba-ad-dc

 -- Mathieu Parent   Tue, 18 Jul 2017 22:52:05 +0200

--

2)

--

If your computer gets IP address information from a DHCP server on the
network, the DHCP server may also provide information about WINS
servers ("NetBIOS name servers") present on the network.  This
requires a change to your smb.conf file so that DHCP-provided WINS
settings will automatically be read from /var/lib/samba/dhcp.conf.

The dhcp-client package must be installed to take advantage of this
feature.  Modify smb.conf to use WINS settings from DHCP?

--



-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com


Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-09 Thread Tobias Koeck

Hi Jose,

thank's for responding.

It seems to break only 'amcheck a2g-2' right now. The 'amdump' command 
seems to be dumping and writing it anway so it doesn't seem that super 
urgent.


Still amcheck won't work for Windows network shares so no way to know if 
it works before you tried amdump. :-)


I have put a bug report to the smbclient package, too.

Greetings
Tobias

On 7/9/19 4:56 PM, Jose M Calhariz wrote:

Hi,

I do not have a setup for testing amsamba, but I will do my the best
next week.  I am going to DebConf19 and should have time to look into
it.

Kind regards
Jose M Calhariz

On Mon, Jul 08, 2019 at 05:51:44PM +0200, Tobias Koeck wrote:

Hi,

since I have upgraded to Debian 10 I get strange amsamba errors.

Any ideas why?
---

for amcheck a2g-2 I'll get for the samba checks

HOST localhost ERROR: smbclient: Unable to initialize messaging context
HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited
with status 1

The Amsamba* file shows the following output

on Jul 08 12:01:25.509075732 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: start at Mon Jul  8
12:01:25 2019
Mon Jul 08 12:01:25.510363259 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: Arguments: selfcheck
Mon Jul 08 12:01:25.574864631 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: rename at Mon Jul  8
12:01:25 2019
Mon Jul 08 12:01:25.574918101 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: application: Amsamba
Mon Jul 08 12:01:25.574971869 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: warning: Use of uninitialized value $regex_match in pattern
match (m//) at /usr/lib/amanda/application/amsamba line 92.
Mon Jul 08 12:01:25.575022213 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: Arguments: selfcheck --message line --config a2g-2 --host
localhost --disk //192.168.0.250/ftp --device //192.168.0.250/ftp
--index line --record --amandapass /etc/amandapass
Mon Jul 08 12:01:25.575041181 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: command: selfcheck
Mon Jul 08 12:01:25.575069629 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: disk //192.168.0.250/ftp
Mon Jul 08 12:01:25.575083965 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amsamba version 3.5.1
Mon Jul 08 12:01:25.614619170 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amsamba smbclient-version 4.9.5-Debian
Mon Jul 08 12:01:25.614697420 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: /usr/bin/smbclient
Mon Jul 08 12:01:25.614786687 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amandapass: /etc/amandapass
Mon Jul 08 12:01:25.616603666 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: password_wtr 4
Mon Jul 08 12:01:25.616620367 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: password_rdr 3
Mon Jul 08 12:01:25.616742029 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: warning: close() on unopened filehandle 1 at
/usr/lib/amanda/application/amsamba line 428.
Mon Jul 08 12:01:25.616817693 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: warning: close() on unopened filehandle 2 at
/usr/lib/amanda/application/amsamba line 429.
Mon Jul 08 12:01:25.616890194 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: execute: /usr/bin/smbclient /usr/bin/smbclient
//192.168.0.250/ftp -U backup -E -c quit
Mon Jul 08 12:01:25.647162371 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: WARNING: The "syslog" option is deprecated
Mon Jul 08 12:01:25.647300656 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: Unable to initialize messaging context
Mon Jul 08 12:01:25.647333909 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: smbclient: Unable to initialize messaging context
Mon Jul 08 12:01:25.647416879 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: WARNING: The "syslog" option is deprecated
Mon Jul 08 12:01:25.703629806 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_utime   : 0
Mon Jul 08 12:01:25.703651035 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_stime   : 0
Mon Jul 08 12:01:25.703658632 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_maxrss  : 32104
Mon Jul 08 12:01:25.703665341 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_ixrss   : 0
Mon Jul 08 12:01:25.703671709 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_idrss   : 0
Mon Jul 08 12:01:25.703677904 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_isrss   : 0
Mon Jul 08 12:01:25.703684089 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_minflt  : 5399
Mon Jul 08 12:01:25.703690386 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_majflt  : 0
Mon Jul 08 12:01:25.703696679 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nswap   : 0
Mon Jul 08 12:01:25.703702963 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_inblock : 256
Mon Jul 08 12:01:25.703709143 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_oublock : 16
Mon Jul 08 12:01:25.703715213 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_msgsnd  : 0
Mon Jul 08 12:01:25.703721198 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_msgrcv  : 0
Mon Jul 08 12:01:25.703727193 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nsignals: 0
Mon Jul 0

Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-09 Thread Jose M Calhariz
Hi,

I do not have a setup for testing amsamba, but I will do my the best
next week.  I am going to DebConf19 and should have time to look into
it.

Kind regards
Jose M Calhariz

On Mon, Jul 08, 2019 at 05:51:44PM +0200, Tobias Koeck wrote:
> Hi,
> 
> since I have upgraded to Debian 10 I get strange amsamba errors.
> 
> Any ideas why?
> ---
> 
> for amcheck a2g-2 I'll get for the samba checks
> 
> HOST localhost ERROR: smbclient: Unable to initialize messaging context
> HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited
> with status 1
> 
> The Amsamba* file shows the following output
> 
> on Jul 08 12:01:25.509075732 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: start at Mon Jul  8
> 12:01:25 2019
> Mon Jul 08 12:01:25.510363259 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: Arguments: selfcheck
> Mon Jul 08 12:01:25.574864631 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: rename at Mon Jul  8
> 12:01:25 2019
> Mon Jul 08 12:01:25.574918101 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: application: Amsamba
> Mon Jul 08 12:01:25.574971869 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: warning: Use of uninitialized value $regex_match in pattern
> match (m//) at /usr/lib/amanda/application/amsamba line 92.
> Mon Jul 08 12:01:25.575022213 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: Arguments: selfcheck --message line --config a2g-2 --host
> localhost --disk //192.168.0.250/ftp --device //192.168.0.250/ftp
> --index line --record --amandapass /etc/amandapass
> Mon Jul 08 12:01:25.575041181 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: command: selfcheck
> Mon Jul 08 12:01:25.575069629 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: disk //192.168.0.250/ftp
> Mon Jul 08 12:01:25.575083965 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: amsamba version 3.5.1
> Mon Jul 08 12:01:25.614619170 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: amsamba smbclient-version 4.9.5-Debian
> Mon Jul 08 12:01:25.614697420 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: /usr/bin/smbclient
> Mon Jul 08 12:01:25.614786687 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: amandapass: /etc/amandapass
> Mon Jul 08 12:01:25.616603666 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: password_wtr 4
> Mon Jul 08 12:01:25.616620367 2019: pid 2466: thd-0x55b9ce332000:
> Amsamba: password_rdr 3
> Mon Jul 08 12:01:25.616742029 2019: pid 2466: thd-0x55b9ce332000:
> Amsamba: warning: close() on unopened filehandle 1 at
> /usr/lib/amanda/application/amsamba line 428.
> Mon Jul 08 12:01:25.616817693 2019: pid 2466: thd-0x55b9ce332000:
> Amsamba: warning: close() on unopened filehandle 2 at
> /usr/lib/amanda/application/amsamba line 429.
> Mon Jul 08 12:01:25.616890194 2019: pid 2466: thd-0x55b9ce332000:
> Amsamba: execute: /usr/bin/smbclient /usr/bin/smbclient
> //192.168.0.250/ftp -U backup -E -c quit
> Mon Jul 08 12:01:25.647162371 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: stderr: WARNING: The "syslog" option is deprecated
> Mon Jul 08 12:01:25.647300656 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: stderr: Unable to initialize messaging context
> Mon Jul 08 12:01:25.647333909 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: smbclient: Unable to initialize messaging context
> Mon Jul 08 12:01:25.647416879 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: stderr: WARNING: The "syslog" option is deprecated
> Mon Jul 08 12:01:25.703629806 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_utime   : 0
> Mon Jul 08 12:01:25.703651035 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_stime   : 0
> Mon Jul 08 12:01:25.703658632 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_maxrss  : 32104
> Mon Jul 08 12:01:25.703665341 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_ixrss   : 0
> Mon Jul 08 12:01:25.703671709 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_idrss   : 0
> Mon Jul 08 12:01:25.703677904 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_isrss   : 0
> Mon Jul 08 12:01:25.703684089 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_minflt  : 5399
> Mon Jul 08 12:01:25.703690386 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_majflt  : 0
> Mon Jul 08 12:01:25.703696679 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_nswap   : 0
> Mon Jul 08 12:01:25.703702963 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_inblock : 256
> Mon Jul 08 12:01:25.703709143 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_oublock : 16
> Mon Jul 08 12:01:25.703715213 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_msgsnd  : 0
> Mon Jul 08 12:01:25.703721198 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_msgrcv  : 0
> Mon Jul 08 12:01:25.703727193 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_nsignals: 0
> Mon Jul 08 12:01:25.703733198 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_nvcsw   : 11
> Mon Jul 08 12:01:25.703739145 2019: pid 2464: thd-0x55b9ce332000:
> Amsamba: ru_nivcsw  : 31
> Mon Jul 08 12:01:25.703904507 2019: pid 2464: thd-0x5

Re: amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-08 Thread Nathan Stratton Treadway
On Mon, Jul 08, 2019 at 17:51:44 +0200, Tobias Koeck wrote:
> Hi,
> 
> since I have upgraded to Debian 10 I get strange amsamba errors.
> 
> Any ideas why?
[...]
> Mon Jul 08 12:01:25.616890194 2019: pid 2466: thd-0x55b9ce332000: Amsamba: 
> execute: /usr/bin/smbclient /usr/bin/smbclient  //192.168.0.250/ftp -U backup 
> -E -c quit
> Mon Jul 08 12:01:25.647162371 2019: pid 2464: thd-0x55b9ce332000: Amsamba: 
> stderr: WARNING: The "syslog" option is deprecated
> Mon Jul 08 12:01:25.647300656 2019: pid 2464: thd-0x55b9ce332000: Amsamba: 
> stderr: Unable to initialize messaging context
> Mon Jul 08 12:01:25.647333909 2019: pid 2464: thd-0x55b9ce332000: Amsamba: 
> smbclient: Unable to initialize messaging context

I don't have any ideas for this particular error, but if no one else has
any better suggestions, my next step would be to try running smbclient
commands manually from the command line (i.e.  "smbclient
//192.168.0.250/ftp -U backup -E -c quit" and similar commands) to see
if you get the same messages.  If so, that would indicate the issue is
within the Debian 10 samba package and related configuration files
directly; if not you would know it's something more specific to the
context in which Amsamba is kicking off the smbclient executable...

Nathan



Nathan Stratton Treadway  -  natha...@ontko.com  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239


amanda-client: HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited with status 1

2019-07-08 Thread Tobias Koeck

Hi,

since I have upgraded to Debian 10 I get strange amsamba errors.

Any ideas why?
---

for amcheck a2g-2 I'll get for the samba checks

HOST localhost ERROR: smbclient: Unable to initialize messaging context
HOST localhost ERROR: //192.168.0.250/ftp: Application 'amsamba': exited
with status 1

The Amsamba* file shows the following output

on Jul 08 12:01:25.509075732 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: start at Mon Jul  8
12:01:25 2019
Mon Jul 08 12:01:25.510363259 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: Arguments: selfcheck
Mon Jul 08 12:01:25.574864631 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: pid 2464 ruid 34 euid 34 version 3.5.1: rename at Mon Jul  8
12:01:25 2019
Mon Jul 08 12:01:25.574918101 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: application: Amsamba
Mon Jul 08 12:01:25.574971869 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: warning: Use of uninitialized value $regex_match in pattern
match (m//) at /usr/lib/amanda/application/amsamba line 92.
Mon Jul 08 12:01:25.575022213 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: Arguments: selfcheck --message line --config a2g-2 --host
localhost --disk //192.168.0.250/ftp --device //192.168.0.250/ftp
--index line --record --amandapass /etc/amandapass
Mon Jul 08 12:01:25.575041181 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: command: selfcheck
Mon Jul 08 12:01:25.575069629 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: disk //192.168.0.250/ftp
Mon Jul 08 12:01:25.575083965 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amsamba version 3.5.1
Mon Jul 08 12:01:25.614619170 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amsamba smbclient-version 4.9.5-Debian
Mon Jul 08 12:01:25.614697420 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: /usr/bin/smbclient
Mon Jul 08 12:01:25.614786687 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: amandapass: /etc/amandapass
Mon Jul 08 12:01:25.616603666 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: password_wtr 4
Mon Jul 08 12:01:25.616620367 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: password_rdr 3
Mon Jul 08 12:01:25.616742029 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: warning: close() on unopened filehandle 1 at
/usr/lib/amanda/application/amsamba line 428.
Mon Jul 08 12:01:25.616817693 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: warning: close() on unopened filehandle 2 at
/usr/lib/amanda/application/amsamba line 429.
Mon Jul 08 12:01:25.616890194 2019: pid 2466: thd-0x55b9ce332000:
Amsamba: execute: /usr/bin/smbclient /usr/bin/smbclient
//192.168.0.250/ftp -U backup -E -c quit
Mon Jul 08 12:01:25.647162371 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: WARNING: The "syslog" option is deprecated
Mon Jul 08 12:01:25.647300656 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: Unable to initialize messaging context
Mon Jul 08 12:01:25.647333909 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: smbclient: Unable to initialize messaging context
Mon Jul 08 12:01:25.647416879 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: stderr: WARNING: The "syslog" option is deprecated
Mon Jul 08 12:01:25.703629806 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_utime   : 0
Mon Jul 08 12:01:25.703651035 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_stime   : 0
Mon Jul 08 12:01:25.703658632 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_maxrss  : 32104
Mon Jul 08 12:01:25.703665341 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_ixrss   : 0
Mon Jul 08 12:01:25.703671709 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_idrss   : 0
Mon Jul 08 12:01:25.703677904 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_isrss   : 0
Mon Jul 08 12:01:25.703684089 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_minflt  : 5399
Mon Jul 08 12:01:25.703690386 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_majflt  : 0
Mon Jul 08 12:01:25.703696679 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nswap   : 0
Mon Jul 08 12:01:25.703702963 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_inblock : 256
Mon Jul 08 12:01:25.703709143 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_oublock : 16
Mon Jul 08 12:01:25.703715213 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_msgsnd  : 0
Mon Jul 08 12:01:25.703721198 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_msgrcv  : 0
Mon Jul 08 12:01:25.703727193 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nsignals: 0
Mon Jul 08 12:01:25.703733198 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nvcsw   : 11
Mon Jul 08 12:01:25.703739145 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: ru_nivcsw  : 31
Mon Jul 08 12:01:25.703904507 2019: pid 2464: thd-0x55b9ce332000:
Amsamba: pid 2464 finish time Mon Jul  8 12:01:25 2019
:

Greetings
Tobias