On Mon, 13 May 2019 22:23:30 -0400
Nathan Stratton Treadway <natha...@ontko.com> wrote:

> On Mon, May 13, 2019 at 14:36:09 -0600, Charles Curley wrote:
> > The short of it is that JSON.pm is not in my @INC. It has been
> > installed, at /usr/local/share/perl/5.24.1/Amanda/Report/. But that
> > does not appear to be in my @INC array.  
> 
> In my installation (Amanda 1:3.5.1-4~WIP+4 built for Ubuntu Bionic
> from the Debian source package), the amanda-common pacakge contains
> the "json.pm" file at the path
>   /usr/lib/x86_64-linux-gnu/amanda/perl/Amanda/Report/json.pm
> ... but "JSON.pm" (which is referenced by Amanda's json.pm), found at
> /usr/share/perl5/JSON.pm, is from the libjson-perl package.
> 
> So... do you have libjson-perl installed?
> 
> (libjson-perl is listed as s dependency of of the amanda-server
> package: https://packages.debian.org/sid/amanda-server
> , though I haven't tracked down where in the build process that
> dependency gets added.)

apt-file reports 61 files named JSON.pm, in different places and
different packages. One of them is libjson-perl. Sigh.

However, that solved that dependency. Thank you. One more, while we're
at it....

libencode-locale-perl

I have added both to my script, pending fixing the amanda package
dependency list.

The next problem is, in short, I was trying to do things as
backup:backup. Wrong, amanda insists on running and owning things as
amandabackup:amandabackup.

In long:

amlabel: critical (fatal): create debug directory "/var/log/amanda/server/": 
Permission denied
amlabel: create debug directory "/var/log/amanda/server/": Permission denied
/usr/lib/x86_64-linux-gnu/amanda/libamanda-3.5.1.git.19364c7b.so(+0x42d92)[0x7fa09877bd92]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x1e4)[0x7fa097c155c4]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x8f)[0x7fa097c157cf]
/usr/lib/x86_64-linux-gnu/amanda/libamanda-3.5.1.git.19364c7b.so(+0x430de)[0x7fa09877c0de]
/usr/lib/x86_64-linux-gnu/amanda/libamanda-3.5.1.git.19364c7b.so(debug_open+0x37)[0x7fa09877c9a7]
/usr/lib/x86_64-linux-gnu/amanda/libamanda-3.5.1.git.19364c7b.so(debug_init+0x20)[0x7fa09877c96d]
/usr/local/share/perl/5.24.1/auto/Amanda/Debug/libDebug.so(_wrap_debug_init+0x102)[0x7fa098e4c1b6]
/usr/bin/perl(Perl_pp_entersub+0x450)[0x55733d8f4560]
/usr/bin/perl(Perl_runops_standard+0x16)[0x55733d8ecaa6]
/usr/bin/perl(perl_run+0x319)[0x55733d8728a9]
/usr/bin/perl(main+0x13d)[0x55733d84ba5d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa09a1592e1]
/usr/bin/perl(_start+0x2a)[0x55733d84ba9a]
root@amanda:

Permissions were:

root@amanda:/var/log/amanda# ll
total 16
drwxr-x--- 3 amandabackup disk 4096 May 13 13:43 .
drwxr-xr-x 7 root         root 4096 May 14 00:06 ..
drwxr-x--- 3 amandabackup disk 4096 May 13 13:39 amanda.save
-rw-r--r-- 1 root         root 3335 May 13 13:43 install.log
root@amanda:/var/log/amanda#

I changed all of them to amandabackup:amandabackup. That still bombs.
Trying to find out why, I did it manually:

su - amandabackup -c 'mkdir -p /var/log/amanda/server/'

That worked. But I still get the same error!?!?!? But the vtapes are
there. So I changed them all to backup:backup. That worked, but I got
the error message:

amlabel: must be executed as the "amandabackup" user instead of the
"backup" user

That told me I should run my script as amandabackup, not as backup. I
fixed that up, and I was able to create my vtapes.

-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com

Reply via email to