[Bug 39460] New: koha-common (--configure)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Bug ID: 39460 Summary: koha-common (--configure) Change sponsored?: --- Product: Koha Version: 24.11 Hardware: All OS: Linux Status: NEW Severity: enhancement Priority: P5 - low Component: Installation and upgrade (command-line installer) Assignee: koha-bugs@lists.koha-community.org Reporter: Igor.A.Sychev@mail.ru QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Настраивается пакет koha-common (24.11.03-2) … Upgrading database schema for koha3 dpkg: ошибка при обработке пакета koha-common (--configure): installed koha-common package post-installation script subprocess returned error exit status 1 При обработке следующих пакетов произошли ошибки: koha-common E: Sub-process /usr/bin/dpkg returned an error code (1) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED CC| |dcook@prosentient.com.au --- Comment #1 from David Cook <dcook@prosentient.com.au> --- There isn't really a bug description here. Rather, it sounds like you could use some support. I suggest one of the options available at https://koha-community.org/support/ -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #2 from Igor A. Sychev <Igor.A.Sychev@mail.ru> --- The error occurred during the update. apt upgrade ... Setting up koha-common (24.11.03-2) ... Upgrading database schema for koha3 dpkg: error processing package koha-common (--configure): installed koha-common package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: koha-common E: Sub-process /usr/bin/dpkg returned an error code (1) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Igor A. Sychev <Igor.A.Sychev@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |REOPENED -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|REOPENED |RESOLVED --- Comment #3 from David Cook <dcook@prosentient.com.au> --- This isn't a valid bug report. Please consult the support link posted previously. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- Someone else seems to be having the same problem: https://chat.koha-community.org/koha-community/pl/h1gk86f5t7dw3m4w35huwdcd7o -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #5 from David Cook <dcook@prosentient.com.au> --- Since there are 2 people reporting errors here I thought I'd take a deeper look. Decided to take a KTD from a custom 23.11.x to the Koha community released 24.11.03-2. Upgrading database schema for kohadev /usr/sbin/koha-upgrade-schema: 44: /kohadevbox/koha/installer/data/mysql/needs_update.pl: not found dpkg: error processing package koha-common (--configure): installed koha-common package post-installation script subprocess returned error exit status 127 Errors were encountered while processing: koha-common E: Sub-process /usr/bin/dpkg returned an error code (1) -- But... that's because my Koha git repo is still on 23.11.x, so let me try that again using the tag v24.11.03-2 Upgrading database schema for kohadev Use of uninitialized value $pref in string eq at /kohadevbox/koha/installer/data/mysql/db_revs/231200005.pl line 89. 0E0 Upgrade to 23.12.00.000 [00:06:57]: Increase DBRev for 23.12 <Lots of valid upgrade lines...> Upgrade to 24.11.03.000 [00:07:07]: Koha 24.11.03 release Enabling plugins on node rabbit@kohadevbox: rabbitmq_stomp The following plugins have been configured: rabbitmq_stomp Applying plugin configuration to rabbit@kohadevbox... Plugin configuration unchanged. * Restarting RabbitMQ Messaging Server rabbitmq-server [ OK ] Restarting memcached: memcached. -- It's looking OK to me. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #6 from David Cook <dcook@prosentient.com.au> --- I think I might be reproducing the problem now... After a fine install for koha-common, I upgraded koha-l10n to 24.11.03-2. Then I re-installed koha-common 24.11.03-2 and now I'm getting the error: Preparing to unpack .../koha-common_24.11.03-2_all.deb ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. Unpacking koha-common (24.11.03-2) over (24.11.03-2) ... Setting up koha-common (24.11.03-2) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Upgrading database schema for kohadev dpkg: error processing package koha-common (--configure): installed koha-common package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: koha-common E: Sub-process /usr/bin/dpkg returned an error code (1) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- root@kohadevbox:koha$ koha-upgrade-schema kohadev Upgrading database schema for kohadev root@kohadevbox:koha$ echo $? 1 As I said on Mattermost, I had a feeling that "koha-upgrade-schema INSTANCE" was probably silently failing, and that appears to be the case. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Severity|enhancement |blocker Summary|koha-common (--configure) |Debian package install | |broken in 24.11 if no | |database change included in | |package Status|RESOLVED |REOPENED -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |34088 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34088 [Bug 34088] Schema upgrade should short circuit faster if no upgrade needs to be done -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Debian package install |Debian package install |broken in 24.11 if no |broken in 24.11 if no |database change included in |database change included in |package |package (ie 24.11.03-2) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Debian package install |Debian package install |broken in 24.11 if no |broken in 24.11 if no |database change included in |database change included in |package (ie 24.11.03-2) |package (e.g. 24.11.03-2) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- Apologies for the delay on this one, Igor. This kind of issue does require additional information. Luckily, someone on Mattermost provided some extra information, which gave me an idea, and I was able to reproduce the problem on my system. I can confirm it's from bug 34088, since tweaking "installer/data/mysql/needs_update.pl" to not return an exit code of 1 fixed the problem. Now I can run "dpkg --configure koha-common" and it completes successfully. A workaround would be to do this: 1. vi /usr/share/koha/intranet/cgi-bin/installer/data/mysql/needs_update.pl 2. Perform the following change: -exit !Koha::Installer->needs_update; +Koha::Installer->needs_update; +exit; 3. dpkg --configure koha-common 4. apt-get install koha-common 5. Confirm that everything is fine now That should get your system back into a healthy state, while we work on resolving the deeper problem... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- Created attachment 180084 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180084&action=edit Bug 39460: Fix koha-upgrade-schema when no DB change needed This patch fixes koha-upgrade-schema so that it returns an exit code of 0 whether or not a DB change is needed. This is important so that koha-common.postinst proceeds correctly even when there is no DB change needed (e.g. for 24.11.03-2) Test plan: 0. Apply the patch 1. cp debian/scripts/koha-upgrade-schema /usr/sbin/koha-upgrade-schema 2. dpkg-reconfigure koha-common 3. Note the process completes correctly 4. koha-upgrade-schema kohadev 5. Note following text appears very quickly: Upgrading database schema for kohadev No database change required 6. koha-mysql kohadev update systempreferences set value = '24.1102000' where variable = 'Version'; 7. Clear memcached 8. koha-upgrade-schema kohadev 9. Note that it applies the 24.11.03 database upgrade -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |dcook@prosentient.com.au |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180084|0 |1 is obsolete| | --- Comment #10 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 180085 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180085&action=edit Bug 39460: Fix koha-upgrade-schema when no DB change needed This patch fixes koha-upgrade-schema so that it returns an exit code of 0 whether or not a DB change is needed. This is important so that koha-common.postinst proceeds correctly even when there is no DB change needed (e.g. for 24.11.03-2) Test plan: 0. Apply the patch 1. cp debian/scripts/koha-upgrade-schema /usr/sbin/koha-upgrade-schema 2. dpkg-reconfigure koha-common 3. Note the process completes correctly 4. koha-upgrade-schema kohadev 5. Note following text appears very quickly: Upgrading database schema for kohadev No database change required 6. koha-mysql kohadev update systempreferences set value = '24.1102000' where variable = 'Version'; 7. Clear memcached 8. koha-upgrade-schema kohadev 9. Note that it applies the 24.11.03 database upgrade Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|24.11 |unspecified CC| |jonathan.druart@gmail.com, | |mtj@kohaaloha.com, | |paul.derscheid@lmscloud.de Keywords| |rel_24_11_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA QA Contact|testopia@bugs.koha-communit |martin.renvoize@openfifth.c |y.org |o.uk CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180085|0 |1 is obsolete| | --- Comment #11 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 180223 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180223&action=edit Bug 39460: Fix koha-upgrade-schema when no DB change needed This patch fixes koha-upgrade-schema so that it returns an exit code of 0 whether or not a DB change is needed. This is important so that koha-common.postinst proceeds correctly even when there is no DB change needed (e.g. for 24.11.03-2) Test plan: 0. Apply the patch 1. cp debian/scripts/koha-upgrade-schema /usr/sbin/koha-upgrade-schema 2. dpkg-reconfigure koha-common 3. Note the process completes correctly 4. koha-upgrade-schema kohadev 5. Note following text appears very quickly: Upgrading database schema for kohadev No database change required 6. koha-mysql kohadev update systempreferences set value = '24.1102000' where variable = 'Version'; 7. Clear memcached 8. koha-upgrade-schema kohadev 9. Note that it applies the 24.11.03 database upgrade Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_24_11_candidate |rel_22_11_candidate, | |rel_23_11_candidate, | |rel_24_05_candidate Version(s)| |24.11 released in| | --- Comment #12 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Nice work David! Pushed to 24.11.x for 24.11.03 (24.11.03-3) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|24.11 |24.11.03 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|24.11.03 |25.05.00,24.11.03 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #13 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 25.05! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_22_11_candidate, | |rel_23_11_candidate, | |rel_24_05_candidate | --- Comment #14 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Talked to Jonathan and it seems that this change is only needed for 24.11. Therefore removing the rel_XX_YY_candidate keywords again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aliakbar.petiwala88@gmail.c | |om --- Comment #15 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- *** Bug 39478 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 --- Comment #16 from Igor A. Sychev <Igor.A.Sychev@mail.ru> --- Thanks! It's working! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m Status|Pushed to main |Pushed to stable --- Comment #17 from Fridolin Somers <fridolin.somers@biblibre.com> --- I see it is in 24.11.x Fix status -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |Needs documenting CC| |wainuiwitikapark@catalyst.n | |et.nz --- Comment #18 from Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> --- Not backporting to 22.11 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39460 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Resolution|--- |FIXED Status|Needs documenting |RESOLVED --- Comment #19 from David Nind <david@davidnind.com> --- Bug fix, no changes to the manual required. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org