Bugzilla 5.0.6 Unable to log in after migration
Ignace Danneels
ignace.danneels at tremec.com
Wed Mar 29 13:42:54 UTC 2023
Glad that has your approval 😊
Perhaps you can help me with the following:
I’ve been comparing the params.json from the ‘old’ configuration with the ‘new’ one.
I run into 500- Internal Server Error when I port the following:
[cid:image001.png at 01D96254.12DDF010]
In the original configuration, the user_verify_class is “DB”, and the 2 parameters below are originally 0.
I used the default Strawberry Perl installation.
Oh, stupid me: I just noticed there’s an optional perl-ldap.
I tried to “ppm install perl-ldap”, but I get the following error
[cid:image002.png at 01D96255.1F410F80]
Do you know what I should do now?
Best regards,
Ing. Ignace Danneels
Controls Design Engineer
__________________________________________________________________________
TREMEC
Belgium Phone: +32 50 977766
From: Dave Miller <justdave at bugzilla.org>
Sent: Wednesday, 29 March 2023 15:22
To: support-list at bugzilla.org; Ignace Danneels <ignace.danneels at tremec.com>
Subject: RE: Bugzilla 5.0.6 Unable to log in after migration
[CYBERSECURITY DESC] MENSAJE DE UN REMITENTE EXTERNO / MESSAGE FROM AN EXTERNAL SENDER
Toma precauciones extremas, no hagas click en los enlaces.
Take extreme precautions, do not click on unknown links.
Ah, that makes sense what you did. That's one of the ideas we've tossed around about how to deal with it is renaming that table. There's a few options being discussed right now, another is just making it quote the table name properly.
On March 29, 2023 8:34:16 AM EDT, Ignace Danneels <ignace.danneels at tremec.com<mailto:ignace.danneels at tremec.com>> wrote:
Changes for MySQL 8:
(I had to dig into my knowledge of perl again. I haven’t used that for many years => switched to Python)
We have Bugzilla 5.0.3 running on MySQL 8 for quite some time now. Ever since IT decided to change to the latest version of MySQL! I think it’s up to ½ year running without issues now.
If we do, it’s because we forgot to update an SQL statement. So we fix that one, then simply continue.
The incompatibility towards MySQL 8 is basically caused by the fact that “groups” is now a reserved word.
So we changed the table name to ‘groeps’ . I’m from Belgium and ‘group’ in Dutch is ‘groep’. The plural is groepen, but we just changed one letter. So ‘groups’ has become ‘groeps’.
Then all I did was change all SQL statements to replace ‘groups’ with ‘groeps’. Only 80 replacements in 13 files.
When installing 5.0.6, I also had to modify the ABSTRACT_SCHEMA.
When running perl checksetup.pl, it tried to create the groeps table.
I found that there’s a table in the database bz_schema that contains the current layout of the database, so I changed the blob to replace all ‘groups’ by ‘groeps’ as well.
The next hurdle I encountered was in the sub _add_password_salt_separator
my $profiles
= $dbh->selectall_arrayref(
"SELECT userid, cryptpassword FROM profiles WHERE ("
. $dbh->sql_regexp("cryptpassword", "'^[^,]+{'")
. ")");
I’m quite sure it’s because the { in a regex indicates an amount of something to repeat. So I needed to escape that. It resulted in
my $profiles
= $dbh->selectall_arrayref(
"SELECT userid, cryptpassword FROM profiles WHERE ("
. $dbh->sql_regexp("cryptpassword", "'^[^,]+\\\\{'")
. ")");
That’s it. The perl checksetup.pl now ran without issues.
The site is running and I can see everything, but I can’t log in! Probably because the encrypted password in the table is an old one from the days before we used the LDAP. But I’m not sure.
I’ll look for the errorlog file. In the current server (Windows 2012), it is in the data folder. So I thought the new installation would also have it there.
Best regards,
Ing. Ignace Danneels
Controls Design Engineer
__________________________________________________________________________
TREMEC
Belgium Phone: +32 50 977766
From: Dave Miller <justdave at bugzilla.org<mailto:justdave at bugzilla.org>>
Sent: Wednesday, 29 March 2023 14:13
To: support-list at bugzilla.org<mailto:support-list at bugzilla.org>; Ignace Danneels <ignace.danneels at tremec.com<mailto:ignace.danneels at tremec.com>>
Subject: Re: Bugzilla 5.0.6 Unable to log in after migration
[CYBERSECURITY DESC] MENSAJE DE UN REMITENTE EXTERNO / MESSAGE FROM AN EXTERNAL SENDER
Toma precauciones extremas, no hagas click en los enlaces.
Take extreme precautions, do not click on unknown links.
Error 500 indicates that the webserver is encountering a problem which should be logged in the error log. That log exists somewhere, you'll need to find it. Since you're on Windows it might be in the system wide service logs in the control panel if it's not somewhere in Apache's directory structure.
Also, Bugzilla 5.0.6 is **not** compatible with MySQL 8. I'm curious to know what you did to make it work, though I suspect that might be why you're getting the error 500 (but we won't know for sure until you find the logs). My general suggestion is to use MariaDB instead (which is a drop in replacement for MySQL).
On March 29, 2023 7:55:01 AM EDT, Ignace Danneels <ignace.danneels at tremec.com<mailto:ignace.danneels at tremec.com>> wrote:
Hello,
I hope someone can help me.
Situation:
We currently have 5.0.3 running on a Windows server using a MYSQL 8 database. The site indicates Bugzilla doesn’t support MySQL 8, but the conversion was really easy.
We need to migrate to a new server and took the opportunity to install the latest version of Bugzilla (I downloaded the targ Bugzilla-5.0.6.tar.gz) and installed it on the new server.
I made a duplicate of the database (to ensure nothing gets corrupted while testing).
I installed StrawBerry Perl, then applied the same changes to ensure compatibility with MYSQL 8. I ran perl checksetup.pl and passed. The site is up and running, I can see the existing bugs and so one, but I can’t log in!
Then I read in the documentation about moving, so I copied the ‘old’ data folder to the new installation, but it results in the same error as below.
I looked at the profiles table, and my account does have a crypted password, but as the configuration was changed (ages ago) to use an LDAP, I doubt if the crypted password has anything to do with the LDAP password.
We use an ldap server, so I thought about copying ONLY the params.json file from the old server onto the new one (to transfer the settings), but then I get an error that it’s missing some resources and that’s it.
[cid:image003.png at 01D96245.EB9B9DD0]
It doesn’t indicate what the problem is, and there’s no errorlog on the server neither. So I’m just ‘floating in darkness’…
I would appreciate if someone could give me a helping hand.
I you could provide me with a profile record that has admin rights
Thank you (in advance) for any help you can offer me.
Best regards,
Ing. Ignace Danneels
Controls Design Engineer
TREMEC
TORQUE TRANSFER SOLUTIONS
Ignace.Danneels at tremec.com<mailto:Ignace.Danneels at tremec.com>
tremec.com<http://tremec.com/>
[cid:image001.jpg at 01D96244.287B07B0]
[cid:image002.png at 01D96244.287B07B0]
________________________________
Este correo electrónico es confidencial y está destinado exclusivamente para la(s) persona(s) a quien(es) se dirige. Queda estrictamente prohibida la distribución o copia del contenido de este correo. Si usted ha recibido este correo por error le suplicamos notificar inmediatamente a la persona que lo envió y borrarlo definitivamente de su sistema. Grupo Kuo, S.A.B de C.V. con domicilio en Paseo de los Tamarindos No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05110, Ciudad de México, México, podrá tratar los Datos Personales recabados vía correo electrónico con la finalidad de atender a las comunicaciones que nos haga llegar, darles seguimiento a las mismas, por motivos de seguridad y/o para cumplir con las obligaciones legales aplicables. Para más información, consulte nuestro Aviso de Privacidad en https://kuo.com.mx/avisos-privacidad. Este mensaje no constituye una aceptación, firma electrónica o un acuerdo vinculante, a menos que se especifique expresamente lo contrario en el mismo.
This e-mail is confidential and is intended only for the person(s) to whom it is addressed. Any distribution or copy hereof is strictly forbidden. If you have received this e-mail by error, we kindly ask you to notify the sender and to delete it immediately. Grupo Kuo, S.A.B. de C.V., having its address in Paseo de los Tamarindos, No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05120, Ciudad de México, Mexico, may process Personal Data collected via email in order to process the communications submitted by you, follow up on them, for security reasons and/or to fulfill applicable legal obligations. For more information, see our Privacy Notice at https://kuo.com.mx/avisos-privacidad. Nothing in this message is intended to constitute an acceptance, an electronic signature nor a binding agreement, unless a specific statement to the contrary is expressly included in this message.
________________________________
Este correo electrónico es confidencial y está destinado exclusivamente para la(s) persona(s) a quien(es) se dirige. Queda estrictamente prohibida la distribución o copia del contenido de este correo. Si usted ha recibido este correo por error le suplicamos notificar inmediatamente a la persona que lo envió y borrarlo definitivamente de su sistema. Grupo Kuo, S.A.B de C.V. con domicilio en Paseo de los Tamarindos No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05110, Ciudad de México, México, podrá tratar los Datos Personales recabados vía correo electrónico con la finalidad de atender a las comunicaciones que nos haga llegar, darles seguimiento a las mismas, por motivos de seguridad y/o para cumplir con las obligaciones legales aplicables. Para más información, consulte nuestro Aviso de Privacidad en https://kuo.com.mx/avisos-privacidad. Este mensaje no constituye una aceptación, firma electrónica o un acuerdo vinculante, a menos que se especifique expresamente lo contrario en el mismo.
This e-mail is confidential and is intended only for the person(s) to whom it is addressed. Any distribution or copy hereof is strictly forbidden. If you have received this e-mail by error, we kindly ask you to notify the sender and to delete it immediately. Grupo Kuo, S.A.B. de C.V., having its address in Paseo de los Tamarindos, No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05120, Ciudad de México, Mexico, may process Personal Data collected via email in order to process the communications submitted by you, follow up on them, for security reasons and/or to fulfill applicable legal obligations. For more information, see our Privacy Notice at https://kuo.com.mx/avisos-privacidad. Nothing in this message is intended to constitute an acceptance, an electronic signature nor a binding agreement, unless a specific statement to the contrary is expressly included in this message.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
________________________________
Este correo electrónico es confidencial y está destinado exclusivamente para la(s) persona(s) a quien(es) se dirige. Queda estrictamente prohibida la distribución o copia del contenido de este correo. Si usted ha recibido este correo por error le suplicamos notificar inmediatamente a la persona que lo envió y borrarlo definitivamente de su sistema. Grupo Kuo, S.A.B de C.V. con domicilio en Paseo de los Tamarindos No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05110, Ciudad de México, México, podrá tratar los Datos Personales recabados vía correo electrónico con la finalidad de atender a las comunicaciones que nos haga llegar, darles seguimiento a las mismas, por motivos de seguridad y/o para cumplir con las obligaciones legales aplicables. Para más información, consulte nuestro Aviso de Privacidad en https://kuo.com.mx/avisos-privacidad. Este mensaje no constituye una aceptación, firma electrónica o un acuerdo vinculante, a menos que se especifique expresamente lo contrario en el mismo.
This e-mail is confidential and is intended only for the person(s) to whom it is addressed. Any distribution or copy hereof is strictly forbidden. If you have received this e-mail by error, we kindly ask you to notify the sender and to delete it immediately. Grupo Kuo, S.A.B. de C.V., having its address in Paseo de los Tamarindos, No. 400-B, piso 31, Bosques de las Lomas, Cuajimalpa de Morelos, C.P. 05120, Ciudad de México, Mexico, may process Personal Data collected via email in order to process the communications submitted by you, follow up on them, for security reasons and/or to fulfill applicable legal obligations. For more information, see our Privacy Notice at https://kuo.com.mx/avisos-privacidad. Nothing in this message is intended to constitute an acceptance, an electronic signature nor a binding agreement, unless a specific statement to the contrary is expressly included in this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bugzilla.org/pipermail/support-list/attachments/20230329/2b735039/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11458 bytes
Desc: image001.png
URL: <http://lists.bugzilla.org/pipermail/support-list/attachments/20230329/2b735039/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 5481 bytes
Desc: image002.png
URL: <http://lists.bugzilla.org/pipermail/support-list/attachments/20230329/2b735039/attachment-0003.png>
More information about the support-list
mailing list