Bug 21769 - koha-restore file-exists
Summary: koha-restore file-exists
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: 16.11
Hardware: All Linux
: P4 normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-06 09:27 UTC by Heinrich Hartl
Modified: 2019-05-10 09:56 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heinrich Hartl 2018-11-06 09:27:47 UTC
I have two virtual servers. vm-prod is running the production, vm-dev was created long ago as clone from vm-prod. Update procedures are always first tried using vm-dev and only then applied to vm-prod. So there is a lot of similarity between these two vm's. vm-prod and vm-dev are ubuntu 14.4 LTS, koha 16.11.
I did 

hhl@koha-VM-dev:~ >
sudo koha-remove library
[sudo] password for hhl:
Removing Koha instance library
Stopping Zebra server for library
* Stopping Koha indexing daemon for library [ OK ]
* Restarting web server apache2 [ OK ]

sudo koha-restore library-2018-10-25.sql.gz library-2018-10-25.tar.gz
hhl@koha-VM-dev:~ >
 sudo koha-restore        library-2018-10-25.sql.gz       library-2018-10-25.tar.gz
[sudo] password for hhl:
ERROR: File exists: /var/lib/koha/library/
ERROR: File exists: /var/lib/koha/library/authorities/
ERROR: File exists: /var/lib/koha/library/authorities/register/
ERROR: File exists: /var/lib/koha/library/authorities/key/
ERROR: File exists: /var/lib/koha/library/authorities/tmp/
ERROR: File exists: /var/lib/koha/library/authorities/shadow/
ERROR: File exists: /var/lib/koha/library/biblios/
ERROR: File exists: /var/lib/koha/library/biblios/register/
ERROR: File exists: /var/lib/koha/library/biblios/register/sort100-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/dict-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort23-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/recdA-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort29-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambC-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort143-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort58-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort40-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambD-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort19-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambA-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort68-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/recdB-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort139-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort44-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/isambB-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort6-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/reci-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort11-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/gmatch-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort94-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort36-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/register/sort202-0.mf
ERROR: File exists: /var/lib/koha/library/biblios/key/
ERROR: File exists: /var/lib/koha/library/biblios/tmp/
ERROR: File exists: /var/lib/koha/library/biblios/shadow/
ERROR: File exists: /var/lib/koha/library/plugins/
ERROR: File exists: /var/lib/koha/library/uploads/
ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'koha_library'@'%'
Warning: You passed -x which is already the default and is now deprecated
item-level_itypes set but no itemtype set for item (64339) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64342) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64334) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64344) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64348) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64343) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (65556) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64341) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64352) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64892) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (65581) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64337) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64338) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (64596) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
item-level_itypes set but no itemtype set for item (61258) at /usr/share/koha/lib/Koha/Schema/Result/Item.pm line 698.
 * Restarting web server apache2                                                 [Fri Nov 02 15:16:48.516017 2018] [core:warn] [pid 19897] AH00111: Config variable ${instance} is not defined
[Fri Nov 02 15:16:48.516171 2018] [core:warn] [pid 19897] AH00111: Config variable ${instance} is not defined
[ OK ]
hhl@koha-VM-dev:~ >

I am confused - an error should stop a procedure
I am pleased - the koha instance on vm-dev subsequently was running, a few simple tests succeeded
I am afraid - there may be some serious malfunction not to be detected easily

Where can a find an explanation for above messages?
Are there activities required to resolve problems?
Comment 1 Heinrich Hartl 2018-11-06 09:33:02 UTC
This is how I created the files later used with koha-restore

hhl@koha-VM-Prod:~$ koha-list
library
hhl@koha-VM-Prod:~$ sudo koha-dump –output /home/hhl  library 
hhl@koha-VM-Prod:~$ ll lib*
-rw-r-----  1 root library-koha 91687560 Okt 25 22:45 library-2018-10-25.sql.gz
-rw-------  1 root root         91919411 Okt 25 22:45 library-2018-10-25.tar.gz
Comment 2 Rudolf Byker 2019-05-10 09:56:59 UTC
Does this still happen on your side? On my side, as long as koha-remove does not show any warnings or errors the files are gone.