I'm getting errors from chg-chio. It would appear that it doesn't work with the newer perl in freebsd. A basic amcheck generates the following:
=============================================== %su operator -c "amcheck -t DailySet" Amanda Tape Server Host Check ----------------------------- amcheck-server: could not get changer info: string "fi" may clash with future reserved word at /usr/local/libexec/amanda/chg-chio line 369. =============================================== When I replace the 'fi' with a '}', I get : =============================================== %su operator -c "amcheck DailySet" Amanda Tape Server Host Check ----------------------------- Holding disk /usr/tapecache: 14241114 KB disk space available, that's plenty amcheck-server: could not get changer info: "main::prefix" used only once: possible typo at /usr/local/libexec/amanda/chg-chio line 58. Amanda Backup Client Hosts Check -------------------------------- Client check: 1 host checked in 0.105 seconds, 0 problems found (brought to you by Amanda 2.4.3b2) =============================================== amcheck.20020703223926.debug contains: ======================================= amcheck: debug 1 pid 4072 ruid 2 euid 0 start time Wed Jul 3 22:39:26 2002 amcheck: dgram_bind: socket bound to 0.0.0.0.854 changer: got exit: 2 str: Name "main::prefix" used only once: possible typo at /usr/local/libexec/amand a/chg-chio line 58. could not get changer info: "main::prefix" used only once: possible typo at /usr/local/libexec/amanda/c hg-chio line 58. amcheck-server: pid 4073 finish time Wed Jul 3 22:39:26 2002 amcheck: pid 4072 finish time Wed Jul 3 22:39:26 2002 ======================================= I set $prefix="/usr/local"; in chg-chio just to be sure. (I had problems with that earlier) but i get the same error message for line 58. pkg_info shows the amanda ports i installed: ================== amanda-client-2.4.3b2 The Advanced Maryland Automatic Network Disk Archiver amanda-server-2.4.3b2_2 The Advanced Maryland Automatic Network Disk Archiver ================== changer.debug shows: ============================ Wed Jul 3 22:42:48 2002: enter: getTapeParams Wed Jul 3 22:42:48 2002: running: /bin/chio -f /dev/null params Wed Jul 3 22:44:14 2002: enter: getTapeParams Wed Jul 3 22:44:14 2002: running: /bin/chio -f /dev/null params Wed Jul 3 22:48:29 2002: enter: getTapeParams Wed Jul 3 22:48:29 2002: running: /bin/chio -f /dev/null params ============================ Obviously, this is not right. I move changerdev into amanda.conf and changer.debug does: ------------------------- Wed Jul 3 22:56:50 2002: enter: getTapeParams Wed Jul 3 22:56:50 2002: running: /bin/chio -f /dev/ch0 params Wed Jul 3 22:56:50 2002: /dev/ch0: 10 slots, 2 drives, 1 picker Wed Jul 3 22:56:50 2002: /dev/ch0: current picker: 0 Wed Jul 3 22:56:50 2002: leave: getTapeParams: 10, 2, 1 Wed Jul 3 22:56:50 2002: enter: getTapeStatus Wed Jul 3 22:56:50 2002: running: /bin/chio -f /dev/ch0 status Wed Jul 3 22:56:50 2002: picker 0: Wed Jul 3 22:56:50 2002: slot 0: <ACCESS,FULL> Wed Jul 3 22:56:50 2002: slot 1: <ACCESS,FULL> Wed Jul 3 22:56:50 2002: slot 2: <ACCESS,FULL> Wed Jul 3 22:56:50 2002: slot 3: <ACCESS> Wed Jul 3 22:56:50 2002: slot 4: <ACCESS> Wed Jul 3 22:56:50 2002: slot 5: <ACCESS> Wed Jul 3 22:56:50 2002: slot 6: <ACCESS> Wed Jul 3 22:56:50 2002: slot 7: <ACCESS> Wed Jul 3 22:56:50 2002: slot 8: <ACCESS> Wed Jul 3 22:56:50 2002: slot 9: <ACCESS> Wed Jul 3 22:56:50 2002: drive 0: <ACCESS> Wed Jul 3 22:56:50 2002: drive 1: <ACCESS> Wed Jul 3 22:56:50 2002: enter: getCurrentTape Wed Jul 3 22:56:50 2002: leave: getCurrentTape: 0 Wed Jul 3 22:56:50 2002: leave: getTapeStatus: 3 Wed Jul 3 22:56:50 2002MT -> /usr/local/sbin/ammt -f Wed Jul 3 22:56:50 2002: enter: Load: 1 Wed Jul 3 22:56:50 2002: running: /bin/chio -f /dev/ch0 move slot 0 drive 0 Wed Jul 3 22:57:08 2002: leave: Load Wed Jul 3 22:57:08 2002: 1 10 1 -------------------------------- Since I don't know perl, OBVIOUSLY it's a perl issue ;) Any ideas on what could be causing: %su operator -c "amcheck DailySet" Amanda Tape Server Host Check ----------------------------- Holding disk /usr/tapecache: 14241150 KB disk space available, that's plenty amcheck-server: could not get changer info: badly formed result from changer: "Name "main::prefix" used only once: possible typo at /usr/local/libexec/amanda/chg-chio line 58." manually running chio seems to work fine for all commands, but when amanda tries it just goes to hell. All (reasonably sane) suggestions are welcome. Thank you. -Stephen Apologies if you get a duplicate. My mailer crashed during the send.
