Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

Thread: amdump creates no backup

  1. #21
    Join Date
    May 2011
    Posts
    32

    Default

    if you need more info.
    I#m willing to give you all of it. Just name it

  2. #22
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    amidxtaped is the program that read the tape.
    Do you have an amidxtaped.*.debug file?

  3. #23
    Join Date
    May 2011
    Posts
    32

    Default

    here is the text of amidxtaped*.* :
    Code:
    amanda@amanda-server:/ $ cat /var/log/amanda/amidxtaped.20110531142531.debug
    amidxtaped: debug 1 pid 23414 ruid 33 euid 33: start at Tue May 31 14:25:31 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.041: > LABEL=testbu-1:1
    amidxtaped: time 0.041: > FSF=1
    amidxtaped: time 0.041: > HEADER
    amidxtaped: time 0.041: > DEVICE=file:/backups/testbu/slots/slot1
    amidxtaped: time 0.041: > HOST=^amanda-client$
    amidxtaped: time 0.041: > DISK=^/test$
    amidxtaped: time 0.041: > DATESTAMP=20110531
    amidxtaped: time 0.041: > END
    amidxtaped: Client understands split dumpfiles
    amidxtaped: try_socksize: send buffer size is 65536
    amidxtaped: time 0.045: bind_portrange2: trying port=945
    amidxtaped: time 0.045: stream_server: waiting for connection: 0.0.0.0.53990
    amidxtaped: Local port 53990 set aside for data
    amidxtaped: time 0.096: stream_accept: connection from 192.168.1.243.659
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: Sending output to file descriptor 4
    amidxtaped: Using tapedev file:/backups/testbu/slots/slot1
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    Could not rewind device 'file:/backups/testbu/slots/slot1': tape_rewind: tape open: file:/backups/testbu/slots/slot1: Permission denied
    could not open tape device file:/backups/testbu/slots/slot1: Permission denied
    amidxtaped: Got bad response from amrecover: ERROR
    amidxtaped: time 8.023: Got bad response from amrecover: ERROR
    amidxtaped: time 8.023: pid 23414 finish time Tue May 31 14:25:39 2011
    So he has no permission to open the tape... but i allready read that error, and i did a chmod 777 to see if the prob is solved:

    Code:
    amanda@amanda-server:/ $ ls -oas /backups/testbu/slots/
    total 68
    8 drwxrwxrwx 7 amanda 4096 May 31 13:06 .
    8 drwxrwxrwx 6 amanda 4096 May 31 12:01 ..
    4 lrwxrwxrwx 1 amanda   27 May 31 13:06 data -> /backups/testbu/slots/slot1
    8 -rwxrwxrwx 1 amanda   11 May 31 14:25 info
    8 drwxrwxrwx 2 amanda 4096 May 31 12:19 slot1
    8 drwxrwxrwx 2 amanda 4096 May 31 12:00 slot2
    8 drwxrwxrwx 2 amanda 4096 May 31 12:00 slot3
    8 drwxrwxrwx 2 amanda 4096 May 31 12:00 slot4
    8 drwxrwxrwx 2 amanda 4096 May 31 12:00 slot5
    he should be able to read....

    ok somehow he rewrites the permissions. i redid the chmod and now the log says:
    Code:
    amanda@amanda-server:/ $ vi /var/log/amanda/amidxtaped.20110531145041.debug
    amidxtaped: debug 1 pid 23523 ruid 33 euid 33: start at Tue May 31 14:50:41 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.042: > LABEL=testbu-1:1
    amidxtaped: time 0.042: > FSF=1
    amidxtaped: time 0.042: > HEADER
    amidxtaped: time 0.042: > DEVICE=changer
    amidxtaped: time 0.042: > HOST=^amanda-client$
    amidxtaped: time 0.042: > DISK=^/test$
    amidxtaped: time 0.042: > DATESTAMP=20110531
    amidxtaped: time 0.042: > END
    amidxtaped: Restoring from changer, checking labels
    amidxtaped: Locking devices
    amidxtaped: could not open log file /backups/testbu/log: Permission denied
    amidxtaped: time 0.053: could not open log file /backups/testbu/log: Permission denied
    amidxtaped: time 0.053: pid 23523 finish time Tue May 31 14:50:41 2011
    But it has the correct mode set :
    Code:
    amanda@amanda-server:/ $ ls -oas /backups/
    total 32
    8 drwxrwxrwx  4 amanda 4096 May 23 15:30 .
    8 drwxr-xr-x 24 root   4096 May 23 14:48 ..
    8 drwxrwxrwx  2 amanda 4096 May 31 12:00 amanda
    8 drwxrwxrwx  6 amanda 4096 May 31 12:01 testbu
    and

    Code:
    amanda@amanda-server:/ $ ls -oas /backups/testbu/
    total 184
     8 drwxrwxrwx 6 amanda  4096 May 31 12:01 .
     8 drwxrwxrwx 4 amanda  4096 May 23 15:30 ..
    16 -rwxrwxrwx 1 amanda 10786 May 31 12:00 amdump.1
    12 -rwxrwxrwx 1 amanda  6758 May 31 11:49 amdump.2
    16 -rwxrwxrwx 1 amanda 10731 May 31 11:39 amdump.3
    16 -rwxrwxrwx 1 amanda 11049 May 31 11:36 amdump.4
    12 -rwxrwxrwx 1 amanda  6756 May 31 11:30 amdump.5
    16 -rwxrwxrwx 1 amanda 10866 May 30 14:54 amdump.6
     8 drwxrwxrwx 3 amanda  4096 May 30 14:54 curinfo
     8 drwxrwxrwx 3 amanda  4096 May 30 14:54 index
     8 -rwxrwxrwx 1 amanda   653 May 30 14:54 log.20110530.0
     8 -rwxrwxrwx 1 amanda   420 May 31 11:30 log.20110531.0
     8 -rwxrwxrwx 1 amanda   604 May 31 11:36 log.20110531.1
     8 -rwxrwxrwx 1 amanda   644 May 31 11:39 log.20110531.2
     8 -rwxrwxrwx 1 amanda   421 May 31 11:49 log.20110531.3
     8 -rwxrwxrwx 1 amanda   594 May 31 12:00 log.20110531.4
     8 drwxrwxrwx 2 amanda  4096 May 24 09:37 oldlog
     8 drwxrwxrwx 7 amanda  4096 May 31 13:06 slots
    Last edited by bv_chris; May 31st, 2011 at 05:01 AM.

  4. #24
    Join Date
    May 2011
    Posts
    32

    Default

    So i tried creating the log-dir, but amidxtaped complains about the existens of the directory.
    Wich service/programm creates the log dir? do i need to write it in the .amandahosts?
    It should have the permission to do so, or am I missing something?

  5. #25
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    'log' is a file, it must not exists, amidxtaped create it.

  6. #26
    Join Date
    May 2011
    Posts
    32

    Default

    but somehow it seems that amidxtaped can't create it. is there a option for this somewhere?
    because it has the permission to write...

    and i forgot
    THANK you a lot martineau. You help me a lot here!!!

    ------------------------------------------------------added
    so i tried chaning the logdir entry in amanda.conf to /backups/testbu/log
    when i do this, amrecover looses the indexs...
    i see many log.* in the dir... but why cant he access them. this is to high for me
    Last edited by bv_chris; May 31st, 2011 at 05:41 AM.

  7. #27
    Join Date
    May 2011
    Posts
    32

    Default

    Hello again.
    My problem hasnt changed BUT another one added itself. now when i amcheck the config i get:

    Code:
    Amanda Tape Server Host Check
    -----------------------------
    WARNING: program /usr/sbin/amcheck: not setuid-root
    Holding disk /backups/amanda: 709180 KB disk space available, using 606780 KB
    slot 2: read label `testbu-2', date `X'
    
    NOTE: skipping tape-writable test
    Tape testbu-2 label ok
    Server check took 0.098 seconds
    
    Amanda Backup Client Hosts Check
    --------------------------------
    ERROR: NAK amanda-client: host amanda-server: port 54620 not secure
    Client check: 1 host checked in 5.039 seconds, 1 problem found
    I played a bit around with permissions to see if that solves my previous problems, but it was futile. no changes. still the permission problem + the new one.
    what i tried (to get amrecover working)
    - changed permissions of /backups/ recursive (log-dir etc...)
    - changed permissions of the scripts
    - added to .amandahosts root AND amanda line. (host and client)
    - changed permission of the programs

    still the same error:
    amidxtaped: debug 1 pid 2541 ruid 33 euid 33: start at Mon Jun 6 09:25:29 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.041: > LABEL=testbu-1:1
    amidxtaped: time 0.041: > FSF=1
    amidxtaped: time 0.041: > HEADER
    amidxtaped: time 0.041: > DEVICE=changer
    amidxtaped: time 0.041: > HOST=^amanda-client$
    amidxtaped: time 0.041: > DISK=^/test$
    amidxtaped: time 0.041: > DATESTAMP=20110531
    amidxtaped: time 0.041: > END
    amidxtaped: Restoring from changer, checking labels
    amidxtaped: Locking devices
    amidxtaped: could not open log file /backups/testbu/log: Permission denied
    amidxtaped: time 0.049: could not open log file /backups/testbu/log: Permission denied
    amidxtaped: time 0.049: pid 2541 finish time Mon Jun 6 09:25:29 2011
    what i dont get is this :
    amindexd: debug 1 pid 2831 ruid 33 euid 33: start at Mon Jun 6 09:48:33 2011
    amindexd: version 2.5.0p2
    amindexd: < 220 amanda-server AMANDA index server (2.5.0p2) ready.
    amindexd: > SECURITY USER root
    bsd security: remote host amanda-client user root local user amanda
    amindexd: < 200 Access OK
    amindexd: > FEATURES fffffeff9ffeffff07
    amindexd: < 200 FEATURES fffffeff9ffeffff07
    amindexd: > DATE 2011-06-06
    amindexd: < 200 Working date set to 2011-06-06.
    amindexd: > SCNF testbu
    amindexd: < 200 Config set to testbu.
    amindexd: > HOST amanda-client
    amindexd: < 200 Dump host set to amanda-client.
    amindexd: > DISK /
    amindexd: < 501 Disk amanda-client:/ is not in your disklist.
    amindexd: > DISK rootfs
    amindexd: < 501 Disk amanda-client:rootfs is not in your disklist.
    amindexd: > DISK /tset
    amindexd: < 501 Disk amanda-client:/tset is not in your disklist.
    amindexd: > DISK /test
    amindexd: - 2011-05-31 0 testbu-1 1 -1
    amindexd: < 200 Disk set to /test.
    amindexd: > OISD /
    amindexd: f /backups/testbu/index/amanda-client/_test/20110531_0
    amindexd: < 200 "/" is a valid directory
    amindexd: > OLSD /
    amindexd: < 200- Opaque list of /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /pewpew
    ...
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /test_9
    amindexd: < 200 Opaque list of /
    amindexd: > DATE 2011-05-31
    amindexd: < 200 Working date set to 2011-05-31.
    amindexd: > OISD /
    amindexd: f /backups/testbu/index/amanda-client/_test/20110531_0
    amindexd: < 200 "/" is a valid directory
    amindexd: > OLSD /
    amindexd: < 200- Opaque list of /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /pewpew
    ...
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /test_9
    amindexd: < 200 Opaque list of /
    amindexd: > ORLD /
    amindexd: < 200- Opaque list of /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /pewpew
    ...
    amindexd: < 201- 2011-05-31 0 testbu-1:1 1 /test_9
    amindexd: < 200 Opaque list of /
    amindexd: > TAPE
    amindexd: tapedev_is amrecover_changer: changer
    amindexd: < 200 changer
    amindexd: ? unexpected EOF
    amindexd: pid 2831 finish time Mon Jun 6 09:48:58 2011
    He gets the information from amanda-server ... because the /backups/testbu/index/amanda-client/_test/20110531_0 is the index needed.
    So amrecover can connect to the server, get some infos, but can't open the tapes or create logs..

    when i try using the direkt path to the slots (like file:/backups/testbu/slots/) then i get another error indicating some permission errors...:
    Code:
    amidxtaped: debug 1 pid 2948 ruid 33 euid 33: start at Mon Jun  6 10:04:58 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.041: > LABEL=testbu-1:1
    amidxtaped: time 0.041: > FSF=1
    amidxtaped: time 0.041: > HEADER
    amidxtaped: time 0.041: > DEVICE=file:/backups/testbu/slots/
    amidxtaped: time 0.041: > HOST=^amanda-client$
    amidxtaped: time 0.041: > DISK=^/test$
    amidxtaped: time 0.041: > DATESTAMP=20110531
    amidxtaped: time 0.041: > END
    amidxtaped: Client understands split dumpfiles
    amidxtaped: try_socksize: send buffer size is 65536
    amidxtaped: time 0.045: bind_portrange2: trying port=942
    amidxtaped: time 0.045: stream_server: waiting for connection: 0.0.0.0.45598
    amidxtaped: Local port 45598 set aside for data
    amidxtaped: time 0.093: stream_accept: connection from 192.168.1.243.659
    bsd security: remote host amanda-client user root local user amanda
    amidxtaped: Sending output to file descriptor 4
    amidxtaped: Using tapedev file:/backups/testbu/slots/
    Could not rewind device 'file:/backups/testbu/slots/': tape_rewind: tape open: file:/backups/testbu/slots/: Permission denied
    ...
    open: file:/backups/testbu/slots/: Permission denied
    could not open tape device file:/backups/testbu/slots/: Permission denied
    so amidxtaped tries to access the tape, but access is refused.

    ls -oa on /backup/testbu
    Code:
    amanda@amanda-server:~ $ ls -oa /backups/testbu/
    total 184
    drwxrwxrwx 6 amanda  4096 May 31 15:38 .
    drwxrwxrwx 4 amanda  4096 May 23 15:30 ..
    -rwxrwxrwx 1 amanda 10786 May 31 12:00 amdump.1
    -rwxrwxrwx 1 amanda  6758 May 31 11:49 amdump.2
    -rwxrwxrwx 1 amanda 10731 May 31 11:39 amdump.3
    -rwxrwxrwx 1 amanda 11049 May 31 11:36 amdump.4
    -rwxrwxrwx 1 amanda  6756 May 31 11:30 amdump.5
    -rwxrwxrwx 1 amanda 10866 May 30 14:54 amdump.6
    drwxrwxrwx 3 amanda  4096 May 30 14:54 curinfo
    drwxrwxrwx 3 amanda  4096 May 30 14:54 index
    -rwxrwxrwx 1 amanda   653 May 30 14:54 log.20110530.0
    -rwxrwxrwx 1 amanda   420 May 31 11:30 log.20110531.0
    -rwxrwxrwx 1 amanda   604 May 31 11:36 log.20110531.1
    -rwxrwxrwx 1 amanda   644 May 31 11:39 log.20110531.2
    -rwxrwxrwx 1 amanda   421 May 31 11:49 log.20110531.3
    -rwxrwxrwx 1 amanda   594 May 31 12:00 log.20110531.4
    drwxrwxrwx 2 amanda  4096 May 24 09:37 oldlog
    drwxrwxrwx 7 amanda  4096 Jun  6 10:05 slots
    and on one dir deeper :
    Code:
    amanda@amanda-server:~ $ ls -oa /backups/testbu/slots/
    total 68
    drwxrwxrwx 7 amanda 4096 Jun  6 10:05 .
    drwxrwxrwx 6 amanda 4096 May 31 15:38 ..
    lrwxrwxrwx 1 amanda   27 Jun  6 10:05 data -> /backups/testbu/slots/slot1
    -rwxrwxrwx 1 amanda   11 Jun  6 10:05 info
    drwxrwxrwx 2 amanda 4096 Jun  6 07:48 slot1
    drwxrwxrwx 2 amanda 4096 May 31 12:00 slot2
    drwxrwxrwx 2 amanda 4096 May 31 12:00 slot3
    drwxrwxrwx 2 amanda 4096 May 31 12:00 slot4
    drwxrwxrwx 2 amanda 4096 May 31 12:00 slot5
    why cant it open it?
    do i need to specify access to the files via lan?is there a special file for this?
    i dont know what to do else -.-

    #####
    Ok i fixed the new problem by chmod s+u on amcheck. it works correct now.
    but still the "log-error" remains.
    #####
    i give up. now amanda doesnt do a backup anymore because his FUCKING PORT IS NOT SECURE... and i changed nothing. god i'm so pissed.
    Last edited by bv_chris; June 6th, 2011 at 04:27 AM.

  8. #28
    Join Date
    May 2011
    Posts
    32

    Default

    Hello again.

    After i raped my server with configurations i decided to set it up anew.

    I reinstalled amanda. and oh low and behold amdump worked on its first try.

    sadly a new problem arose, which i cant fix.
    This time i have permission errors -.- :
    1. When i try to amrecover from the client it says:

    Code:
    root@amanda-client:~ # /usr/sbin/amrecover testbu -t amanda-server.bv.de -s amanda-server.bv.de
    AMRECOVER Version 2.5.0p2. Contacting server on amanda-server.bv.de ...
    220 amanda-server AMANDA index server (2.5.0p2) ready.
    200 Access OK
    Setting restore date to today (2011-06-08)
    200 Working date set to 2011-06-08.
    Scanning /backups/amanda...
    200 Config set to testbu.
    200 Dump host set to amanda-client.
    Trying disk / ...
    Trying disk rootfs ...
    Can't determine disk and mount point from $CWD '/root'
    amrecover> setdisk /test
    200 Disk set to /test.
    No index records for disk for specified date
    If date correct, notify system administrator
    this i can manually fix when i run

    Code:
    /bin/gzip -dc '/backups/testbu/data/index/amanda-client/_test/20110608_0.gz' 2>/dev/null | sort > '/backups/testbu/data/index/amanda-client/_test/20110608_0'
    as User amanda on the amanda-server .
    log says:
    Code:
    amindexd: debug 1 pid 5318 ruid 33 euid 33: start at Wed Jun  8 14:53:51 2011
    amindexd: version 2.5.0p2
    amindexd: < 220 amanda-server AMANDA index server (2.5.0p2) ready.
    amindexd: > SECURITY USER root
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amindexd: < 200 Access OK
    amindexd: > FEATURES fffffeff9ffeffff07
    amindexd: < 200 FEATURES fffffeff9ffeffff07
    amindexd: > DATE 2011-06-08
    amindexd: < 200 Working date set to 2011-06-08.
    amindexd: > SCNF testbu
    amindexd: < 200 Config set to testbu.
    amindexd: > HOST amanda-client
    amindexd: < 200 Dump host set to amanda-client.
    amindexd: > DISK /
    amindexd: < 501 Disk amanda-client:/ is not in your disklist.
    amindexd: > DISK rootfs
    amindexd: < 501 Disk amanda-client:rootfs is not in your disklist.
    amindexd: > DISK /test
    amindexd: - 2011-06-08 0 testbu-1 1 -1
    amindexd: < 200 Disk set to /test.
    amindexd: > OISD /
    amindexd: uncompress command: /bin/gzip -dc '/backups/testbu/data/index/amanda-client/_test/20110608_0.gz' 2>/dev/null | sort > '/backups/testbu/data/index/amanda-client/_test/20110608_0'
    sh: /backups/testbu/data/index/amanda-client/_test/20110608_0: Permission denied
    amindexd: < 599 System error "/bin/gzip -dc '/backups/testbu/data/index/amanda-client/_test/20110608_0.gz' 2>/dev/null | sort > '/backups/testbu/data/index/amanda-client/_test/20110608_0'" failed
    so amanda-client isnt allowed to use amindexd to access the index files and do something.
    as i stated above i can work around this by manually executing the code above, but that is very unclean.

    when i fixed this issue and run amrecover again on the client i get a permission error on the log files.
    Log-File for log-permission Errors:
    [PHP]amidxtaped: debug 1 pid 5488 ruid 33 euid 33: start at Wed Jun 8 15:03:59 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.042: > LABEL=testbu-1:1
    amidxtaped: time 0.042: > FSF=1
    amidxtaped: time 0.042: > HEADER
    amidxtaped: time 0.042: > DEVICE=changer
    amidxtaped: time 0.042: > HOST=^amanda-client$
    amidxtaped: time 0.042: > DISK=^/test$
    amidxtaped: time 0.042: > DATESTAMP=20110608
    amidxtaped: time 0.042: > END
    amidxtaped: Restoring from changer, checking labels
    amidxtaped: Locking devices
    amidxtaped: could not open log file /backups/testbu/data/logs/log: Permission denied
    amidxtaped: time 0.043: could not open log file /backups/testbu/data/logs/log: Permission denied
    amidxtaped: time 0.043: pid 5488 finish time Wed Jun 8 15:03:59 2011
    [/PHP]


    My permissions:
    backup-dir:
    Code:
    root@amanda-server:/etc/amanda/testbu # ls /backups/ -oas
    total 32
    8 drwxrwxrwx  4 amanda 4096 Jun  8 14:15 .
    8 drwxr-xr-x 23 root   4096 Jun  8 14:05 ..
    8 drwxrwxrwx  2 amanda 4096 Jun  8 14:39 amanda
    8 drwxrwxrwx  4 amanda 4096 Jun  8 14:15 testbu
    backup/testbu-dir:
    Code:
    root@amanda-server:/etc/amanda/testbu # ls /backups/testbu/ -oas
    total 32
    8 drwxrwxrwx 4 amanda 4096 Jun  8 14:15 .
    8 drwxrwxrwx 4 amanda 4096 Jun  8 14:15 ..
    8 drwxrwxrwx 5 amanda 4096 Jun  8 14:37 data
    8 drwxrwxrwx 8 amanda 4096 Jun  8 14:48 slots
    backup/testbu/data-dir:
    Code:
    root@amanda-server:/etc/amanda/testbu # ls /backups/testbu/data/ -oas
    total 40
    8 drwxrwxrwx 5 amanda 4096 Jun  8 14:37 .
    8 drwxrwxrwx 4 amanda 4096 Jun  8 14:15 ..
    8 drwxrwxrwx 3 amanda 4096 Jun  8 14:39 curinfo
    8 drwxrwxrwx 3 amanda 4096 Jun  8 14:39 index
    8 drwxrwxrwx 3 amanda 4096 Jun  8 14:39 logs
    and so on. the permissions i set with chmod -R 777 /backups to see if that changes something. It doesn't...

    Am i getting it right that the client connects as "root" to the amanda-server but executes the programms as amanda?
    If that is true then the permissions should be correct.
    Maybe something is wrong with my .amandahost file?
    amandahost-server:
    Code:
    amanda-client.bv.de root amindexd amidxtaped
    amanda-client.bv.de amanda amindexd amidxtaped
    
    amanda-client root amindexd amidxtaped
    amanda-client amanda amindexd amidxtaped
    i added amanda-client lines to see if that helps. NO it doesn't

    Anyone a clue? I would really really appreciate it
    Last edited by bv_chris; June 8th, 2011 at 05:16 AM.

  9. #29
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    Quote Originally Posted by bv_chris View Post
    Code:
    amindexd: debug 1 pid 5318 ruid 33 euid 33: start at Wed Jun  8 14:53:51 2011
    amindexd is run as user id 33, is it the userid of the amanda user?

  10. #30
    Join Date
    May 2011
    Posts
    32

    Default

    /etc/passwd :

    Code:
    amanda:x:33:6:Amanda user:/var/lib/amanda:/bin/bash
    os i guess amanda is the userid 33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •