Bug 29158

Summary: Web installer fails to load account_offset_types.sql
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Installation and upgrade (web-based installer)Assignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Martin Renvoize (ashimema) <martin.renvoize>
Severity: normal    
Priority: P5 - low CC: gmcharlt, jonathan.druart, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
21.11.00
Circulation function:
Bug Depends on: 22435    
Bug Blocks:    
Attachments: Bug 29158: (bug 22435 follow-up) Remove ref to account_offset_types.sql in intaller
Bug 29158: (bug 22435 follow-up) Remove ref to account_offset_types.sql in intaller

Description Katrin Fischer 2021-10-02 20:32:48 UTC
There is an error running the web installer on current master:

account_offset_types.sql

Something went wrong loading file /home/vagrant/kohaclone/installer/data/mysql/mandatory/account_offset_types.sql (Couldn't read '/home/vagrant/kohaclone/installer/data/mysql/mandatory/account_offset_types.sql' : No such file or directory at /usr/share/perl5/DBIx/RunSQL.pm line 174. ) at /home/vagrant/kohaclone/C4/Installer.pm line 584.
Comment 1 Jonathan Druart 2021-10-25 09:51:34 UTC
Created attachment 126818 [details] [review]
Bug 29158: (bug 22435 follow-up) Remove ref to account_offset_types.sql in intaller

Caused by
  commit 3d6a6e79f79bfbc17807072faf0ff1d4e6aafb82
  Bug 22435: (follow-up) Drop account_offset_types table
that removes the file but the reference to it from the installer
process.

Test plan:
Go through the install process and notice that the following warning
does not appear in the log:
[2021/10/25 09:47:58] [WARN] Something went wrong loading file /kohadevbox/koha/installer/data/mysql/mandatory/account_offset_types.sql (Couldn't read '/kohadevbox/koha/installer/data/mysql/mandatory/account_offset_types.sql' : No such file or directory at /usr/share/perl5/DBIx/RunSQL.pm line 180.
Comment 2 Martin Renvoize (ashimema) 2021-10-26 13:47:22 UTC
Created attachment 126914 [details] [review]
Bug 29158: (bug 22435 follow-up) Remove ref to account_offset_types.sql in intaller

Caused by
  commit 3d6a6e79f79bfbc17807072faf0ff1d4e6aafb82
  Bug 22435: (follow-up) Drop account_offset_types table
that removes the file but the reference to it from the installer
process.

Test plan:
Go through the install process and notice that the following warning
does not appear in the log:
[2021/10/25 09:47:58] [WARN] Something went wrong loading file /kohadevbox/koha/installer/data/mysql/mandatory/account_offset_types.sql (Couldn't read '/kohadevbox/koha/installer/data/mysql/mandatory/account_offset_types.sql' : No such file or directory at /usr/share/perl5/DBIx/RunSQL.pm line 180.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 3 Martin Renvoize (ashimema) 2021-10-26 13:47:52 UTC
Damn, I shouldn't have missed that.

Works as expected, thanks for the fix.. going straight for PQA :)
Comment 4 Jonathan Druart 2021-10-26 14:42:10 UTC
Pushed to master for 21.11, thanks to everybody involved!