Can't search after loading a 3.8 sql dump into 3.10
I have an instance running 3.8.7 off the official packages. I take the .sql.gz file produced by the backup-script in that installation and move it to another server where I have installed 3.10, again from the official packages. Then I create a new 3.10 instance on the new server with the same name as the instance on the old server ("esme"), gunzip the sql dump file and load it into the new installation, with this: sudo koha-mysql myinstance < dump.sql Then I do: sudo koha-upgrade-schema esme sudo koha-rebuild-zebra -f esme Everything looks good (the output from koha-upgrade-schema is here: http://paste.koha-community.org/304), but I can't search in the new installation. I get a search results page that has: 1. "You did not specify any search criteria." in the title of the page 2. "Error: Can't call method "raw" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 461." in the body of the page. The only thing that happens in /var/log/koha/esme/opac-error.log is this, which seems benign: [Mon Dec 10 13:29:35 2012] [error] [client x.x.x.x] [Mon Dec 10 13:29:35 2012] opac-search.pl: Use of uninitialized value $error in concatenation (.) or string at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 509., referer: http://esme.testing.bibkat.no/cgi-bin/koha/opac-main.pl If I create another instance on the new server, run through the web installer manually then export the records from the old server and stage/import them into the new server then searching works just fine (after I run koha-rebuild-zebra -f). As far as I can tell, the contents of /etc/koha/sites/esme/zebra-biblios.cfg are identical for the two instances. Reindexing looks like this: $ sudo koha-rebuild-zebra -f -v esme Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/esme/biblios Zebra authorities directory = /var/lib/koha/esme/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== 101.................................................................................................. Records exported: 150 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/esme/biblios Zebra authorities directory = /var/lib/koha/esme/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ==================== Records exported: 0 ==================== REINDEXING zebra ==================== skipping biblios ==================== CLEANING ==================== Anyone got any clues about what could be happening here? Best regards, Magnus Enger libriotech.no
I think about BZ3087 : http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3087 Le 10/12/2012 14:00, Magnus Enger a écrit :
I have an instance running 3.8.7 off the official packages. I take the .sql.gz file produced by the backup-script in that installation and move it to another server where I have installed 3.10, again from the official packages. Then I create a new 3.10 instance on the new server with the same name as the instance on the old server ("esme"), gunzip the sql dump file and load it into the new installation, with this:
sudo koha-mysql myinstance < dump.sql
Then I do:
sudo koha-upgrade-schema esme sudo koha-rebuild-zebra -f esme
Everything looks good (the output from koha-upgrade-schema is here: http://paste.koha-community.org/304), but I can't search in the new installation. I get a search results page that has:
1. "You did not specify any search criteria." in the title of the page
2. "Error: Can't call method "raw" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 461." in the body of the page.
The only thing that happens in /var/log/koha/esme/opac-error.log is this, which seems benign:
[Mon Dec 10 13:29:35 2012] [error] [client x.x.x.x] [Mon Dec 10 13:29:35 2012] opac-search.pl: Use of uninitialized value $error in concatenation (.) or string at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 509., referer: http://esme.testing.bibkat.no/cgi-bin/koha/opac-main.pl
If I create another instance on the new server, run through the web installer manually then export the records from the old server and stage/import them into the new server then searching works just fine (after I run koha-rebuild-zebra -f).
As far as I can tell, the contents of /etc/koha/sites/esme/zebra-biblios.cfg are identical for the two instances.
Reindexing looks like this:
$ sudo koha-rebuild-zebra -f -v esme Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/esme/biblios Zebra authorities directory = /var/lib/koha/esme/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== 101.................................................................................................. Records exported: 150 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/esme/biblios Zebra authorities directory = /var/lib/koha/esme/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ====================
Records exported: 0 ==================== REINDEXING zebra ==================== skipping biblios ==================== CLEANING ====================
Anyone got any clues about what could be happening here?
Best regards, Magnus Enger libriotech.no _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Fridolyn SOMERS Biblibre - Pôle Support fridolyn.somers@biblibre.com <mailto:fridolyn.somers@biblibre.com>
On Mon, Dec 10, 2012 at 10:59 AM, Fridolyn SOMERS <fridolyn.somers@biblibre.com> wrote:
I think about BZ3087 : http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3087
Probably BZ9235: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9235 Saludos To+
Tomas, Probably BZ9235:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9235
backup.sh is not used by the packages. Actually, I don't think it i used by anything. We were troubleshooting the issue on IRC, and Fridolyn's theory was correct. Magnus reported a new bug for it: bug 9256 ( http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9256 ). Regards, Jared -- Jared Camins-Esakov Bibliographer, C & P Bibliography Services, LLC (phone) +1 (917) 727-3445 (e-mail) jcamins@cpbibliography.com (web) http://www.cpbibliography.com/
On 10 December 2012 21:00, Jared Camins-Esakov <jcamins@cpbibliography.com> wrote:
We were troubleshooting the issue on IRC, and Fridolyn's theory was correct. Magnus reported a new bug for it: bug 9256 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9256 ).
Thanks for your help on this, Fridolyn and Jared! As far as I can tell, this bug breaks the 3.10 packages for marcflavour != marc21... Best regards, Magnus Enger libriotech.no
participants (4)
-
Fridolyn SOMERS -
Jared Camins-Esakov -
Magnus Enger -
Tomas Cohen Arazi