Re: Problems with amsamba on Debian Jessie since upgrade

2016-04-20 Thread Stefan G. Weichinger
Am 20.04.2016 um 15:30 schrieb Jean-Louis Martineau:

> It's hard to fix documentation when user don't tell how to improve it.
> Can you tell us the additional stuff?

You are right, sorry.
I just wanted to wait for an example, maybe I misunderstood something etc

My definitions so far, note comment in dumptype:

define application-tool app_amsamba {
plugin "amsamba"
property "SMBCLIENT-PATH" "/usr/bin/smbclient"
property "AMANDAPASS" "/etc/amanda/amandapass"
property "ALLOW-ANONYMOUS" "guest"
}

define dumptype vr_samba {
comment ""
index yes
holdingdisk yes
priority high
program "APPLICATION"   # this line was not mentioned
# in the amsamba-manpage
# gives error when missing
application "app_amsamba"
dumpcycle 5
maxdumps 4
}

>> Now it tells me it can't find amandapass, even when I double-checked the
>> server/path/permissions ...
>>
> Did it literally tell you "can't find amandapass"?

I had to symlink /etc/amandapass to /etc/amanda/amandapass to make it work.

When I set

property "AMANDAPASS" "/etc/amanda/amandapass"

or not, it misses "/etc/amandapass" and vice versa. Strange.

-

Additionally I have to say that I hit problems with the combo

samba-4.2.11 and amanda-3.3.9 (gentoo linux)

samba-4.2.9 works now for me, AFAIK

with 4.2.11 I got errors in amcheck regarding the amsamba-DLEs,
something around reading a file (I assume amandapass, it only said "file
descriptor 3" or so). I can re-test tmrw (have to reinstall samba-4.2.11
first) and give you more detailled reports. Currently there are backups
active!

Thanks, Stefan



AW: AW: AW: sendbackup: critical (fatal): error [no backup size line]

2016-04-20 Thread Tobias Köck
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 

AW: AW: sendbackup: critical (fatal): error [no backup size line]

2016-04-20 Thread Tobias Köck
For some reason the MUA didn't transfer the newline characters for the entries 
but the entries are in separate lines.

-Ursprüngliche Nachricht-
Von: owner-amanda-us...@amanda.org [mailto:owner-amanda-us...@amanda.org] Im 
Auftrag von Tobias Köck
Gesendet: Mittwoch, 20. April 2016 11:27
An: Jean-Louis Martineau
Cc: AMANDA users
Betreff: AW: AW: sendbackup: critical (fatal): error [no backup size line]

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: 

AW: AW: sendbackup: critical (fatal): error [no backup size line]

2016-04-20 Thread Tobias Köck
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: 

Re: WORM media

2016-04-20 Thread Stefan G. Weichinger
Am 2016-04-19 um 01:06 schrieb Debra S Baddorf:

> I forgot to reply —  I’ve just started using specific DLEs inside of
> disklist  (I had been creating differently named dumptypes  inside of
> amanda.conf) so I’ll have to look at that too.   But I also use named
> dumptypes inside of other named dumptypes   (A  inherits all of B,
> etc)   so that, on an archive run,   I just add the archival lines
> into   the  “master”  definition,   and then all the other
> definitions  already include  “master” as their  basis.   Does that
> make sense,  or do you need examples?

I think I got it, thanks ;)

> BUT  I already have a cronjob  doing  “amadmin force”  before my
> archive job  JUST TO BE SURE   anyway.   You know,  belt  plus
> suspenders. Never hurts.   I don’t consider it  unpolished!

It depends ;-) I think it would be more elegant to not have to use
"amadmin force". Everything covered by the amanda config, no need to
remember two things. But that's academic discussion in a way ;-)




Re: Problems with amsamba on Debian Jessie since upgrade

2016-04-20 Thread Stefan G. Weichinger
Am 2016-04-15 um 11:41 schrieb Tobias Köck:
> Hi there,
> 
> as reported before I have the same problem.
> 
> I have tried the newest update it didn't work, too.
> 
> At the moment I have reverted to Samba version
> 
> 4.1.17+dfsg-2

I try to use amsamba-application with amanda 3.3.9 on gentoo.

Could someone provide a working example of the definition of the
application using the amsamba-plugin, plus dumptype plus example DLE?

To me it looks like the amsamba-manpage isn't fully correct, at least I
had to specify additional stuff to make it even amcheck.

Now it tells me it can't find amandapass, even when I double-checked the
server/path/permissions ...