PDA

View Full Version : Permission denied



tecnicos
February 17th, 2011, 02:52 AM
Hi, I'm having problems conuracion of Amanda Backup, I have version 3.2.1 on CentOS5.5, check to make throws me the following error, you can help

Thanks

Greetings


-sh-3.2$ amcheck infra
Amanda Tape Server Host Check
-----------------------------
ERROR: oldlog dir /etc/amanda/infra/oldlog: not writable
Check permissions
/usr/libexec/amanda/chg-disk: line 122: /etc/amanda/infra/changer-access: Permission denied
slot ?: /usr/libexec/amanda/chg-disk: could not access or create '/etc/amanda/infra/changer-access'
ERROR: /usr/libexec/amanda/chg-disk: could not access or create '/etc/amanda/infra/changer-access'
ERROR: info dir /etc/amanda/infra/curinfo: not writable
Check permissions
Server check took 0.709 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 0 hosts checked in 0.000 seconds. 0 problems found.

(brought to you by Amanda 3.2.1)
-sh-3.2$

tecnicos
February 17th, 2011, 03:09 AM
Hi, I managed to fix the bug in the permissions on / etc / amanda / below but to make the throws me another error amcheck

Thanks

Greetings

Please help

-sh-3.2$ amcheck infra
Amanda Tape Server Host Check
-----------------------------
slot 11: contains an empty volume
slot 12: contains an empty volume
slot 1: contains an empty volume
slot 2: contains an empty volume
slot 3: contains an empty volume
slot 4: contains an empty volume
slot 5: contains an empty volume
slot 6: contains an empty volume
slot 7: contains an empty volume
slot 8: contains an empty volume
slot 9: contains an empty volume
slot 10: contains an empty volume
Taper scan algorithm did not find an acceptable volume.
(expecting a new volume)
ERROR: No acceptable volumes found
Server check took 7.673 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 0 hosts checked in 0.000 seconds. 0 problems found.

(brought to you by Amanda 3.2.1)

tecnicos
February 17th, 2011, 03:36 AM
Hi, I attached log

-sh-3.2$ more amcheck.20110217133053.debug
Thu Feb 17 13:30:53 2011: amcheck: pid 3930 ruid 0 euid 501 version 3.2.1: start at Thu Feb 17 13:30:53 2011
Thu Feb 17 13:30:53 2011: amcheck: pid 3930 ruid 0 euid 501 version 3.2.1: rename at Thu Feb 17 13:30:53 2011
Thu Feb 17 13:30:53 2011: amcheck-server: Spawning "/usr/libexec/amanda/amcheck-device /usr/libexec/amanda/amcheck-device infra"
in pipeline
Thu Feb 17 13:30:55 2011: amcheck-server: userbad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: confbad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: tapebad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: disklow: 0
Thu Feb 17 13:30:55 2011: amcheck-server: logbad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: infobad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: indexbad: 0
Thu Feb 17 13:30:55 2011: amcheck-server: pgmbad: 0
Thu Feb 17 13:30:55 2011: amcheck: pid 3930 finish time Thu Feb 17 13:30:55 2011
-sh-3.2$
-sh-3.2$ amdump amdump.20110217133111.debug
parse error: could not open conf file "/etc/amanda/amdump.20110217133111.debug/amanda.conf": No such file or directory
amdump: errors processing config file at /usr/sbin/amdump line 70.

-sh-3.2$


Thanks

Help !!!!!

paddy
February 17th, 2011, 11:02 AM
amdump takes configuration name as parameter. You have provide a log file
as parameter.

amdump infra should work.

amcheck failures indicate that you have not labelled the media. Use amlabel command for labeling.