Hi Jean-Louis,

thanks. That fixed at least the warnings with amcheck -c someconfig.

Greetings
Tobias

-----Ursprüngliche Nachricht-----
Von: Jean-Louis Martineau [mailto:jmartin...@carbonite.com] 
Gesendet: Mittwoch, 20. April 2016 19:34
An: Tobias Köck
Cc: amanda-users@amanda.org
Betreff: Re: AW: AW: AW: AW: sendbackup: critical (fatal): error [no backup 
size line]

Tobias,

This patch should make amsamba ignore the WARNING line from smbclient.

Jean-Louis

On 20/04/16 01:26 PM, Tobias Köck wrote:
> Hi Jean-Louis,
>
> my smb.conf already has the entry syslog = 0 so I don't know where that came 
> from.
>
> Still the  amsamba application exits with 1
>
> localhost: Application 'amsamba': exited with status 1
>
> Shouldn't it be something else? It still is 'just' a warning?
>
> Anyway, thanks for your help. I'll check out if it runs through. :)
>
> Greetings and thanks
> Tobias
>
> -----Ursprüngliche Nachricht-----
> Von: Jean-Louis Martineau [mailto:jmartin...@carbonite.com]
> Gesendet: Mittwoch, 20. April 2016 19:06
> An: Tobias Köck
> Cc: AMANDA users
> Betreff: Re: AW: AW: AW: sendbackup: critical (fatal): error [no 
> backup size line]
>
> Tobias,
>
> Amanda do not use the "syslog" option, check your samba configuration 
> (smb.conf, ...) This is a WARNING, you can try a backup.
>
> Jean-Louis
>
> On 20/04/16 12:55 PM, Tobias Köck wrote:
>> Hi Jean-Louis,
>>
>> I have applied your patch. Unfortunatelly that didn't work either. I  have 
>> attached one log and the amcheck -c someconfig output.
>>
>> ---amcheck-----------------------------------------------------------
>> -
>> ----------------------------------------------
>> backup@chronos:~$ amcheck -c someconfig
>>
>> Amanda Backup Client Hosts Check
>> --------------------------------
>> ...
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1
>> ERROR: localhost: smbclient: WARNING: The "syslog" option is 
>> deprecated
>> ERROR: localhost: Application 'amsamba': exited with status 1 Client
>> check: 55 hosts checked in 9.979 seconds.  15 problems found.
>>
>> ---log---------------------------------------------------------------
>> -
>> -------------------------------------------------
>> backup@chronos:/var/log/amanda/client/something$ less 
>> Amsamba.20160420155143004.debug Wed Apr 20 15:51:43 2016:
>> thd-0x1078200: Amsamba: pid 10415 ruid 34 euid 34 version 3.3.8: 
>> start at Wed Apr 20 15:51:43 2016 Wed Apr 20 15:51:43 2016: thd-0x1078200:
>> Amsamba: Arguments: selfcheck Wed Apr 20 15:51:43 2016: thd-0x1078200:
>> Amsamba: pid 10415 ruid 34 euid 34 version 3.3.8: rename at Wed Apr 
>> 20
>> 15:51:43 2016 Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba:
>> application: Amsamba
>>
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: warning: Use of 
>> uninitialized value $regex_match in pattern match (m//) at 
>> /usr/lib/amanda/application/amsamba line 91.
>>
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: Arguments: 
>> selfcheck --message line --config someconfig --host localhost --disk 
>> //monster.someurl.de/austausch --device 
>> //monster.someurl.de/austausch --index line --record --amandapass 
>> /etc/amandapass Wed Apr 20 15:51:43
>> 2016: thd-0x1078200: Amsamba: command: selfcheck Wed Apr 20 15:51:43
>> 2016: thd-0x1078200: Amsamba: disk //monster.someurl.de/austausch Wed 
>> Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: amsamba version 3.3.8 
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: amsamba 
>> smbclient-version 4.3.8-Debian Wed Apr 20 15:51:43 2016:
>> thd-0x1078200: Amsamba: /usr/bin/smbclient Wed Apr 20 15:51:43 2016: 
>> thd-0x1078200: Amsamba: amandapass: /etc/amandapass Wed Apr 20 15:51:43 
>> 2016: thd-0x1078200: Amsamba: password_wtr 4 Wed Apr 20 15:51:43 2016: 
>> thd-0x1078200: Amsamba: password_rdr 3 Wed Apr 20 15:51:43 2016: 
>> thd-0x1078200: Amsamba: warning: close() on unopened filehandle 1 at 
>> /usr/lib/amanda/application/amsamba line 427.
>>
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: warning: close() on 
>> unopened filehandle 2 at /usr/lib/amanda/application/amsamba line 428.
>>
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: execute:
>> /usr/bin/smbclient /usr/bin/smbclient //monster.someurl.de/austausch 
>> -U backup -E -c quit Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba:
>> stderr: WARNING: The "syslog" option is deprecated Wed Apr 20 15:51:43 2016: 
>> thd-0x1078200: Amsamba: smbclient: WARNING: The "syslog" option is 
>> deprecated Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: stderr: 
>> Domain=[SOMEULR] OS=[Unix] Server=[Samba 3.6.24]
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_utime   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_stime   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_maxrss  : 23640
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_ixrss   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_idrss   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_isrss   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_minflt  : 3847 
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_majflt  : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_nswap   : 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_inblock : 0 Wed 
>> Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_oublock : 16 Wed Apr
>> 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_msgsnd  : 0 Wed Apr 20
>> 15:51:43 2016: thd-0x1078200: Amsamba: ru_msgrcv  : 0 Wed Apr 20
>> 15:51:43 2016: thd-0x1078200: Amsamba: ru_nsignals: 0
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_nvcsw   : 8
>> Wed Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: ru_nivcsw  : 7 Wed 
>> Apr 20 15:51:43 2016: thd-0x1078200: Amsamba: pid 10415 finish time 
>> Wed Apr 20 15:51:43 2016
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Jean-Louis Martineau [mailto:jmartin...@carbonite.com]
>> Gesendet: Mittwoch, 20. April 2016 15:21
>> An: Tobias Köck
>> Cc: AMANDA users
>> Betreff: Re: AW: AW: sendbackup: critical (fatal): error [no backup 
>> size line]
>>
>> Looks like smbclient expect to read the password twice.
>> Can you try this patch.
>>
>> Jean-Louis
>>
>> On 20/04/16 05:27 AM, Tobias Köck wrote:
>>> Hi Jean-Louis,
>>>
>>> sure. I have adjusted the password and some URLS/IPs. Relevant and 
>>> activated for amsama are the monster.someurl.de entries.
>>>
>>> # nas shares
>>> //192.168.210.254/tempstorage backup%somepassword
>>> //192.168.210.254/a2g_it          backup%somepassword
>>> //192.168.210.254/a2g_intern              backup%somepassword
>>> //192.168.210.254/backupgate      backup%somepassword
>>> //192.168.210.254/ftp                     backup%somepassword
>>> //192.168.210.254/cust           backup%somepassword
>>> //192.168.210.254/clusterexp backup%somepassword
>>>
>>> #//charon2.someurl.de/charon2_shares backup%somepassword # 
>>> monster.someurl.de //monster.someurl.de/austausch 
>>> backup%somepassword //monster.someurl.de/big backup%somepassword 
>>> //monster.someurl.de/intern backup%somepassword 
>>> //monster.someurl.de/cust backup%somepassword
>>>
>>> # nooby nas
>>> //nooby-nas.someurl.de/blubb-data backup%somepassword
>>>
>>> //monster.someurl.de/software backup%somepassword 
>>> //monster.someurl.de/sysadmin backup%somepassword
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Jean-Louis Martineau [mailto:jmartin...@carbonite.com]
>>> Gesendet: Dienstag, 19. April 2016 18:12
>>> An: Tobias Köck
>>> Cc: AMANDA users
>>> Betreff: Re: AW: sendbackup: critical (fatal): error [no backup size 
>>> line]
>>>
>>> Can you post your /etc/amandapass file in attachment?
>>> Substitute your password by a random string
>>>
>>> Jean-Louis
>>>
>>> On 19/04/16 11:47 AM, Tobias Köck wrote:
>>>> Hey Jean-Louis,
>>>>
>>>> I tried your patch. If I run amcheck -c blubberdiblibb it gives me 
>>>> another error by not finding the password but I am sure I have 
>>>> included the password (and it's not empty) in the /etc/amandapass 
>>>> in the right format
>>>>
>>>> Logs:
>>>>
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: pid 8732 ruid 34 
>>>> euid 34 version 3.3.8: start at Tue Apr 19 17:28:09 2016 Tue Apr 19
>>>> 17:28:09 2016: thd-0x18e0200: Amsamba: Arguments: selfcheck Tue Apr
>>>> 19
>>>> 17:28:09 2016: thd-0x18e0200: Amsamba: pid 8732 ruid 34 euid 34 
>>>> version 3.3.8: rename at Tue Apr 19 17:28:09 2016 Tue Apr 19
>>>> 17:28:09
>>>> 2016: thd-0x18e0200: Amsamba: application: Amsamba
>>>>
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: warning: Use of 
>>>> uninitialized value $regex_match in pattern match (m//) at 
>>>> /usr/lib/amanda/application/amsamba line 91.
>>>>
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: Arguments:
>>>> selfcheck --message line --config blubberdiblubb --host localhost 
>>>> --disk //monster.someurl.de/austausch --device 
>>>> //monster.someurl.de/austausch --index line --record --amandapass 
>>>> /etc/amandapass Tue Apr 19 17:28:09
>>>> 2016: thd-0x18e0200: Amsamba: command: selfcheck Tue Apr 19 
>>>> 17:28:09
>>>> 2016: thd-0x18e0200: Amsamba: disk //monster.someurl.de/austausch 
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: amsamba version
>>>> 3.3.8 Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: amsamba 
>>>> smbclient-version 4.3.8-Debian Tue Apr 19 17:28:09 2016: thd-0x18e0200: 
>>>> Amsamba: /usr/bin/smbclient Tue Apr 19 17:28:09 2016: thd-0x18e0200: 
>>>> Amsamba: amandapass: /etc/amandapass Tue Apr 19 17:28:09 2016: 
>>>> thd-0x18e0200: Amsamba: password_rdr 3 Tue Apr 19 17:28:09 2016: 
>>>> thd-0x18e0200: Amsamba: warning: close() on unopened filehandle 1 at 
>>>> /usr/lib/amanda/application/amsamba line 426.
>>>>
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: password_wtr 4 
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: warning: close() on 
>>>> unopened filehandle 2 at /usr/lib/amanda/application/amsamba line 427.
>>>>
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: execute:
>>>> /usr/bin/smbclient /usr/bin/smbclient 
>>>> //monster.someurl.de/austausch -U backup -E -c quit Tue Apr 19 17:28:09 
>>>> 2016: thd-0x18e0200: Amsamba:
>>>> stderr: WARNING: The "syslog" option is deprecated Tue Apr 19
>>>> 17:28:09
>>>> 2016: thd-0x18e0200: Amsamba: smbclient: WARNING: The "syslog"
>>>> option is deprecated Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: 
>>>> stderr: Error reading password from file descriptor 3: empty password Tue 
>>>> Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: smbclient: Error reading 
>>>> password from file descriptor 3: empty password Tue Apr 19 17:28:09 2016: 
>>>> thd-0x18e0200: Amsamba: stderr:
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: smbclient:
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: stderr: Domain=[someurl] 
>>>> OS=[Unix] Server=[Samba 3.6.24]
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_utime   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_stime   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_maxrss  : 23572
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_ixrss   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_idrss   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_isrss   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_minflt  : 3839 
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_majflt  : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_nswap   : 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_inblock : 0 
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_oublock : 16 
>>>> Tue Apr
>>>> 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_msgsnd  : 0 Tue Apr 19
>>>> 17:28:09 2016: thd-0x18e0200: Amsamba: ru_msgrcv  : 0 Tue Apr 19
>>>> 17:28:09 2016: thd-0x18e0200: Amsamba: ru_nsignals: 0
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_nvcsw   : 10
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: ru_nivcsw  : 579 
>>>> Tue Apr 19 17:28:09 2016: thd-0x18e0200: Amsamba: pid 8732 finish 
>>>> time Tue Apr 19 17:28:09 2016
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Jean-Louis Martineau [mailto:jmartin...@carbonite.com]
>>>> Gesendet: Dienstag, 19. April 2016 12:38
>>>> An: Tobias Köck
>>>> Cc: AMANDA users
>>>> Betreff: Re: sendbackup: critical (fatal): error [no backup size 
>>>> line]
>>>>
>>>> There is no possible fix for the GNUTAR application (it is deprecated).
>>>> If you switch to the 'amsamba' application, then the attached patch can 
>>>> fix it.
>>>> Can someone test it?
>>>>
>>>> Jean-Louis
>>>>
>>>> On 19/04/16 05:50 AM, Tobias Köck wrote:
>>>>> Hi guys,
>>>>>
>>>>> I got the same mentioned problem with the a newer Amanda Server 
>>>>> and a new smbclient
>>>>>
>>>>> - Package: amanda-server
>>>>> Source: amanda
>>>>> Version: 1:3.3.8-1
>>>>> Installed-Size: 890
>>>>>
>>>>> - Package: smbclient
>>>>> Source: samba
>>>>> Version: 2:4.3.8+dfsg-
>>>>>
>>>>> - amstatus abc status
>>>>>
>>>>> sendbackup.20160419005647.debug:Tue Apr 19 00:56:47 2016:
>>>>> thd-0x5589cc151000: sendbackup: critical (fatal): error [no backup 
>>>>> size line]
>>>>>
>>>>> - less sendbackup.20160419005647.debug
>>>>>
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: pid 3141 
>>>>> ruid 34 euid 34 version 3.3.8: start at Tue Apr 19 00:56:47 2016 
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: Version 3.3.8 
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: pid 3141 ruid 
>>>>> 34 euid 34 version 3.3.8: rename at Tue Apr 19 00:56:47 2016
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:   Parsed 
>>>>> request as: program `GNUTAR'
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      disk `//monster.someurl.de/dev'
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      device `//monster.someurl.de/dev'
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      level 0
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      since NODATE
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      options `'
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup:                 
>>>>>      datapath `AMANDA'
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: start:
>>>>> localhost://monster.someurl.de/dev lev 0 Tue Apr 19 00:56:47 2016:
>>>>> thd-0x5589cc151000: sendbackup: gnutar: backup of 
>>>>> \\monster.someurl.de\dev Tue Apr 19 00:56:47 2016: thd-0x5589cc151000:
>>>>> sendbackup: Spawning "/usr/bin/smbclient smbclient 
>>>>> "\\\\monster.someurl.de\\dev" -U backup -E -d0 -Tqca -" in pipeline Tue 
>>>>> Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: gnutar: 
>>>>> /usr/bin/smbclient: pid 3144 Tue Apr 19 00:56:47 2016: 
>>>>> thd-0x5589cc151000: sendbackup: Started backup Tue Apr 19 00:56:47 2016: 
>>>>> thd-0x5589cc151000: sendbackup: Started index creator: "/bin/tar -tf - 
>>>>> 2>/dev/null | sed -e 's/^\.//'"
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: 118:
>>>>> strange(?): Error reading password from file descriptor 7: empty password 
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: 118: strange(?):
>>>>> Tue Apr 19 00:56:47 2016: thd-0x5589cc151000: sendbackup: 114:
>>>>> normal(|): Domain=[someurl] OS=[Unix] Server=[Samba 3.6.24] Tue 
>>>>> Apr
>>>>> 19
>>>>> 00:56:47 2016: thd-0x5589cc151000: sendbackup: 118: strange(?):
>>>>> cli_setatr failed: NT_STATUS_ACCESS_DENIED Tue Apr 19 00:56:47 2016:
>>>>> thd-0x5589cc151000: sendbackup: 118: strange(?): tar:712  Total 
>>>>> bytes
>>>>> received: 8196 Tue Apr 19 00:56:47 2016: thd-0x5589cc151000:
>>>>> sendbackup: Index created successfully Tue Apr 19 00:56:47 2016:
>>>>> thd-0x5589cc151000: sendbackup: critical (fatal): error [no backup 
>>>>> size line] 
>>>>> /usr/lib/amanda/libamanda-3.3.8.so(+0x2a0e7)[0x7f6df2f270e7]
>>>>> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x1f4)[0x7f6df1c0894
>>>>> 4
>>>>> ]
>>>>> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7f6df1c08b6f]
>>>>> /usr/lib/amanda/sendbackup(parse_backup_messages+0x28c)[0x5589ca73
>>>>> 5
>>>>> 2 c c ] /usr/lib/amanda/sendbackup(main+0x14be)[0x5589ca732c8e]
>>>>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f6df11e
>>>>> 8
>>>>> 6
>>>>> 1
>>>>> 0 ] /usr/lib/amanda/sendbackup(_start+0x29)[0x5589ca733d59]
>>>>>
>>>>> -  As mentioned before it works with 
>>>>> smbclient_4.1.17+dfsg-2+deb8u1_amd64.deb
>>>>>
>>>>> Is there a solution in planing? It's not really a good thing to use a 
>>>>> forced downgrade from smbclient.
>>>>>
>>>>> Greetings and thanks
>>>>> Tobias
>>>>>


Reply via email to