Hi David, Thank you for the tip on Koha-shell. I ran the export script using koha-shell and it generated some results. Now to figure out why it fails on the front end.
On the server, I ran the commands: sudo koha-shell *myInstanceName* (once inside the koha-shell): /usr/share/koha/bin/export_records.pl -Evan On Mon, Jul 15, 2024 at 4:58 PM David Nind <da...@davidnind.com> wrote: > Hi Evan. > > On Tue, 16 Jul 2024 at 07:49, Evan Stewart <evanstewart...@gmail.com> > wrote: > >> Hi David, >> >> Thank you for the tips. >> >> I'm using Koha 23.11.06.000. I have a few thousand records in my instance >> with multiple libraries created in the same instance. >> >> The error page appears when I click "export catalog data". It fails >> before getting to the query page. >> >> When I run the command line script, I receive the following error. >> >> *Command:* >> /usr/bin/perl /usr/share/koha/bin/export_records.pl >> >> *Message:* >> Can't locate Koha/Script.pm in @INC (you may need to install the >> Koha::Script module) (@INC contains: /etc/perl >> /usr/local/lib/i386-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 >> /usr/lib/i386-linux-gnu/perl5/5.32 /usr/share/perl5 >> /usr/lib/i386-linux-gnu/perl-base /usr/lib/i386-linux-gnu/perl/5.32 >> /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/koha/bin/ >> export_records.pl line 25. >> BEGIN failed--compilation aborted at /usr/share/koha/bin/ >> export_records.pl line 25. >> >> *Odd thing: *I see that Koha/Script.pm is located at >> /usr/share/koha/lib/Koha/Script.pm >> >> >> Any advice? >> >> -Evan >> > > I've never run Koha in a production environment, but I think this is > something to with the environment variables. > > Were you logged in to your server as root? > > I think you need to use sudo koha-shell yourinstancename (then Koha will > have the right settings for your instance of Koha). > > This should work with package installs, but if Koha was installed a > different way then I'm not sure. > > Hopefully, others can comment further on how this should be done > correctly, and the location of the files (as I don't know). > > (I've included your reply to me and sent to the mailing list - for some > reason the default with the general mailing list is to reply to the sender > and not reply all.) > > David Nind > New Zealand > _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha