Closed Bug 1775103 Opened 3 years ago Closed 3 years ago

Ubuntu upgrade from 18 to 20 breaks bugzilla

Categories

(Bugzilla :: Bugzilla-General, defect)

5.0.6
defect

Tracking

()

RESOLVED DUPLICATE of bug 1774883

People

(Reporter: ben.vandermerwe, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44

Steps to reproduce:

Upgrade Ubuntu running bugillza from 18.04 to 20.04 LTS.

Actual results:

Bugzilla stopped working. The apache web server reported this in its error log:

loadable library and perl binaries are mismatched (got handshake key 0xde00080, needed 0xcd00080)

Running perl ./checksetup.pl started listing modules and then also stopped with the same error.

Expected results:

It should have just worked. Checksetup should have told you how to fix the problem.

I googled and found similar errors, with no clear answer or workaround. Some perl solutions for this just send you down a rabbit hole. Finally justdave (David Miller) helped me. Please record this information somewhere on your wiki, or have checksetup.pl help (if it stops with a mismatched error, have it tell you how to fix it) or make install-module.pl detect this situation and handle it (detect the mismatch or zap the lib directory if it already exists or something).

If you upgrade the linux version on which bugzilla runs, you need to do this (please record in the wiki):

cd /var/www/html/bugzilla
sudo perl ./checksetup.pl

If it lists dependencies and then you get errors about mismatched binaries for one of them, do this:

rm -rf lib
sudo /usr/bin/perl ./install-module.pl --all
sudo perl ./checksetup.pl

If you get this error: this error "undefined subroutine utf8::SWASHNEW called at Bugzilla/Util.pm line 109."
(This is a bug fixed in 5.2 according to dave)

cd Bugzilla
nano Util.pm
Find and put a hash in front of this line (109): $var =~ tr/\x{202a}-\x{202e}//d;
Save and exit.
cd ..

sudo perl ./checksetup.pl

And it should complete and work fine.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.