Bug 13925 - koha-restore doesn't start Zebra
Summary: koha-restore doesn't start Zebra
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Packaging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 01:47 UTC by David Cook
Modified: 2023-12-28 20:42 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2015-03-30 01:47:20 UTC
It appears that Zebra isn't started for an instance after koha-restore is run.
Comment 1 David Cook 2015-03-30 02:38:50 UTC
Here's my koha-restore output:

sudo koha-restore library.sql.gz library.tar.gz
ERROR: File exists: /var/lib/koha/library/
ERROR: File exists: /var/lib/koha/library/plugins/
ERROR: File exists: /var/lib/koha/library/biblios/
ERROR: File exists: /var/lib/koha/library/biblios/key/
ERROR: File exists: /var/lib/koha/library/biblios/shadow/
ERROR: File exists: /var/lib/koha/library/biblios/tmp/
ERROR: File exists: /var/lib/koha/library/biblios/register/
ERROR: File exists: /var/lib/koha/library/biblios/register/reci-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/gmatch-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/dict-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambB-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/recdB-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambA-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambD-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambC-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort18-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/recdA-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort23-0.mf
ERROR: File exists: /var/lib/koha/library/authorities/
ERROR: File exists: /var/lib/koha/library/authorities/key/
ERROR: File exists: /var/lib/koha/library/authorities/shadow/
ERROR: File exists: /var/lib/koha/library/authorities/tmp/
ERROR: File exists: /var/lib/koha/library/authorities/register/
ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'koha_library'@'%'
[ ok ] Restarting web server: apache2 ... waiting .

I was wondering why I couldn't search anything... and then realized it's because Zebra hadn't started up!
Comment 2 Rudolf Byker 2019-05-10 09:58:58 UTC
This is still the case in 2019. But I'm not sure if it's a bug. Zebra may be started as follows:

sudo koha-zebra --start "${INSTANCE}"
Comment 3 Katrin Fischer 2020-01-06 15:39:30 UTC
(In reply to Rudolf Byker from comment #2)
> This is still the case in 2019. But I'm not sure if it's a bug. Zebra may be
> started as follows:
> 
> sudo koha-zebra --start "${INSTANCE}"

I am not sure about it being a bug either - but maybe we could add a note to the output?
Comment 4 David Cook 2022-12-06 06:29:45 UTC
In hindsight, I don't think this needs a change