Fwd: Koha Digest, Vol 60, Issue 7
Hello, We did a backup of the file structure as you recommended on our machine. The upgrade for rc went wrong and I now get error 500 for both opac and intranet. I can give more information about our upgrade if anyone is interested. The question is how can I restore koha from the file structure (usr and etc) with a clean instalation (we used koha live cd r5) and if this is not possible anymore how can I extract our previous databases and put them the new instalation. We use Unimarc here. Hope you can help. Hugo Rodrigues Librarian Biblioteca da Metropolitana --- Message: 5 Date: Tue, 5 Oct 2010 11:54:16 -0300 From: Tomas Cohen Arazi <tomascohen@gmail.com> Subject: Re: [Koha] How to upgrade 3.0 to 3.2 To: Yatheesh Y <yatheeshb@gmail.com> Cc: Koha@lists.katipo.co.nz Message-ID: <AANLkTimNHEGi2YGZfraa+=B7B8_ONs0rk9MaCDnCs0Mg@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 2010/10/5 Yatheesh Y <yatheeshb@gmail.com>:
hello
we are using 3.0 koha on ubunta? I want migrate? 3.2? what is process
As when you installed your koha you should read the file INSTALL.ubuntu from your install sources. Specifically the section named 'UPGRADE'. I'd add the recommendation of making a backup of your filesystem and database, just in case. If you have a normal 'standard' koha install this could be sthing like: mysqldump -pPASS -uUSER DBNAME > kohadb-20101005.sql tar cvzf koha-backup-20101005.tar.gz /etc/koha /usr/share/koha kohadb-20101005.sql To+
2010/10/12 Hugo Rodrigues <hugoseixasr@gmail.com>:
Hello,
We did a backup of the file structure as you recommended on our machine. The upgrade for rc went wrong and I now get error 500 for both opac and intranet. I can give more information about our upgrade if anyone is interested.
The error will be caused by a new perl module dependency, the wonderful Liz Rea has updated the documentation to include this. You can get rid of the error by installing the module If you are using debian you can do sudo apt-get install libauthen-cas-client-perl otherwise sudo cpan Authen::Cas::Client
The question is how can I restore koha from the file structure (usr and etc) with a clean instalation (we used koha live cd r5) and if this is not possible anymore how can I extract our previous databases and put them the new instalation. We use Unimarc here.
Hopefully when you install the missing module, you will no longer have to :) Chris
Cris, I installed the module but my 500 error continues. Even after reboot. I think the system is already messed up beyond repair... We now have two systems, one with the upgraded koha (but messed up due to our "interventions" and another one were we tried to restore the system by replacing the directories with the backup ones (our IT guy thought this was enough) Can you help here? Thank you very much for the help! 2010/10/13 Chris Cormack <chris@bigballofwax.co.nz>
2010/10/12 Hugo Rodrigues <hugoseixasr@gmail.com>:
Hello,
We did a backup of the file structure as you recommended on our machine. The upgrade for rc went wrong and I now get error 500 for both opac and intranet. I can give more information about our upgrade if anyone is interested.
The error will be caused by a new perl module dependency, the wonderful Liz Rea has updated the documentation to include this. You can get rid of the error by installing the module
If you are using debian you can do sudo apt-get install libauthen-cas-client-perl otherwise sudo cpan Authen::Cas::Client
The question is how can I restore koha from the file structure (usr and
with a clean instalation (we used koha live cd r5) and if this is not possible anymore how can I extract our previous databases and put them
etc) the
new instalation. We use Unimarc here.
Hopefully when you install the missing module, you will no longer have to :)
Chris
On 14 October 2010 01:03, Hugo Rodrigues <hugoseixasr@gmail.com> wrote:
Cris, I installed the module but my 500 error continues. Even after reboot. I think the system is already messed up beyond repair...
We now have two systems, one with the upgraded koha (but messed up due to our "interventions" and another one were we tried to restore the system by replacing the directories with the backup ones (our IT guy thought this was enough) Can you help here?
Thank you very much for the help!
Is the backup one erroring as well? What is the actual error if you look in the apache error logs? Chris
On Wed, Oct 13, 2010 at 9:59 AM, Chris Cormack <chris@bigballofwax.co.nz> wrote:
On 14 October 2010 01:03, Hugo Rodrigues <hugoseixasr@gmail.com> wrote:
Cris, I installed the module but my 500 error continues. Even after reboot. I think the system is already messed up beyond repair...
We now have two systems, one with the upgraded koha (but messed up due to our "interventions" and another one were we tried to restore the system by replacing the directories with the backup ones (our IT guy thought this was enough) Can you help here?
Thank you very much for the help!
Is the backup one erroring as well? What is the actual error if you look in the apache error logs?
[Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: mainpage.pl [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/500.pl' failed [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: 500.pl [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] File does not exist: /usr/share/koha/intranet/htdocs/favicon.ico [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/404.pl' failed [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] Premature end of script headers: 404.pl
On 14 October 2010 02:02, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
On Wed, Oct 13, 2010 at 9:59 AM, Chris Cormack <chris@bigballofwax.co.nz> wrote:
On 14 October 2010 01:03, Hugo Rodrigues <hugoseixasr@gmail.com> wrote:
Cris, I installed the module but my 500 error continues. Even after reboot. I think the system is already messed up beyond repair...
We now have two systems, one with the upgraded koha (but messed up due to our "interventions" and another one were we tried to restore the system by replacing the directories with the backup ones (our IT guy thought this was enough) Can you help here?
Thank you very much for the help!
Is the backup one erroring as well? What is the actual error if you look in the apache error logs?
[Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: mainpage.pl [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/500.pl' failed [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: 500.pl [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] File does not exist: /usr/share/koha/intranet/htdocs/favicon.ico [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/404.pl' failed [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] Premature end of script headers: 404.pl
Ohh sounds to me a lot like permission errors, do an ls -l in /usr/share/koha/intranet/cgi-bin/ It sounds to me like they arent set to executable Chris
bibliotecakoha@bibliotecakoha-desktop:/usr/share/koha/intranet/cgi-bin$ sudo ls -l total 108 -rw-r--r-- 1 bibliotecakoha bibliotecakoha 3635 2010-02-16 13:23 about.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 acqui drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 admin drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 authorities drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 catalogue drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 cataloguing -rw-r--r-- 1 bibliotecakoha bibliotecakoha 992 2009-10-20 11:01 changelanguage.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 circ -rw-r--r-- 1 bibliotecakoha bibliotecakoha 3749 2009-10-20 11:01 edithelp.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 errors -rw-r--r-- 1 bibliotecakoha bibliotecakoha 1919 2009-10-20 11:01 help.pl drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 installer -rw-r--r-- 1 bibliotecakoha bibliotecakoha 659 2010-05-15 00:51 kohaversion.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 labels -rw-r--r-- 1 bibliotecakoha bibliotecakoha 1894 2009-10-20 11:01 mainpage.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 members drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 offline_circ drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reports drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reserve drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reviews drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 serials drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 sms drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 suggestion drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 svc drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 tags drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 tools drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 virtualshelves bibliotecakoha@bibliotecakoha-desktop:/usr/share/koha/intranet/cgi-bin$ 2010/10/13 Chris Cormack <chris@bigballofwax.co.nz>
On 14 October 2010 02:02, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
On Wed, Oct 13, 2010 at 9:59 AM, Chris Cormack <chris@bigballofwax.co.nz> wrote:
On 14 October 2010 01:03, Hugo Rodrigues <hugoseixasr@gmail.com> wrote:
Cris, I installed the module but my 500 error continues. Even after reboot. I think the system is already messed up beyond repair...
We now have two systems, one with the upgraded koha (but messed up due to our "interventions" and another one were we tried to restore the system by replacing the directories with the backup ones (our IT guy thought this was enough) Can you help here?
Thank you very much for the help!
Is the backup one erroring as well? What is the actual error if you look in the apache error logs?
[Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: mainpage.pl [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/500.pl' failed [Tue Oct 12 06:42:22 2010] [error] [client 127.0.1.1] Premature end of script headers: 500.pl [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] File does not exist: /usr/share/koha/intranet/htdocs/favicon.ico [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] (13)Permission denied: exec of '/usr/share/koha/intranet/cgi-bin/errors/404.pl' failed [Tue Oct 12 06:42:25 2010] [error] [client 127.0.1.1] Premature end of script headers: 404.pl
Ohh sounds to me a lot like permission errors, do an ls -l in
/usr/share/koha/intranet/cgi-bin/
It sounds to me like they arent set to executable
Chris
On 14 October 2010 02:23, Hugo Rodrigues <hugoseixasr@gmail.com> wrote:
bibliotecakoha@bibliotecakoha-desktop:/usr/share/koha/intranet/cgi-bin$ sudo ls -l total 108 -rw-r--r-- 1 bibliotecakoha bibliotecakoha 3635 2010-02-16 13:23 about.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 acqui drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 admin drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 authorities drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 catalogue drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 cataloguing -rw-r--r-- 1 bibliotecakoha bibliotecakoha 992 2009-10-20 11:01 changelanguage.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 circ -rw-r--r-- 1 bibliotecakoha bibliotecakoha 3749 2009-10-20 11:01 edithelp.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 errors -rw-r--r-- 1 bibliotecakoha bibliotecakoha 1919 2009-10-20 11:01 help.pl drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 installer -rw-r--r-- 1 bibliotecakoha bibliotecakoha 659 2010-05-15 00:51 kohaversion.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 labels -rw-r--r-- 1 bibliotecakoha bibliotecakoha 1894 2009-10-20 11:01 mainpage.pl drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 members drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 offline_circ drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reports drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reserve drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 reviews drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 serials drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 sms drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 suggestion drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 svc drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 tags drwxr-xr-x 3 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 tools drwxr-xr-x 2 bibliotecakoha bibliotecakoha 4096 2010-06-03 00:28 virtualshelves bibliotecakoha@bibliotecakoha-desktop:/usr/share/koha/intranet/cgi-bin$
Ah ha, I'm not sure what you've done, but yes those .pl files need to be executable. try a chmod +x /usr/share/koha/intranet/cgi-bin/mainpage.pl And then try the main page of the staff/intranet client again, if that works, you need to fix all the .pl files I'm heading to sleep now, but hopefully that has you on the right track Chris
Thank you. That worked! Best wishes, Hugo 2010/10/13 Chris Cormack <chris@bigballofwax.co.nz>
bibliotecakoha@bibliotecakoha-desktop:/usr/share/koha/intranet/cgi-bin$
Ah ha, I'm not sure what you've done, but yes those .pl files need to be executable.
try a chmod +x /usr/share/koha/intranet/cgi-bin/mainpage.pl
And then try the main page of the staff/intranet client again, if that works, you need to fix all the .pl files
I'm heading to sleep now, but hopefully that has you on the right track
Chris
participants (3)
-
Chris Cormack -
Hugo Rodrigues -
Tomas Cohen Arazi