-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySQL: Upgrading fails due to stricter SQL mode #1028
Comments
Hi @khaoula-abaidi ,
I think you should also transfer the database. |
I've transfered the database also |
So you either missing the database configuration in |
/usr/lib/sympa/bin/sympa.pl --upgrade --from=6.1.24 --to=6.2.40 notice main:: Sympa 6.2.40 Started |
@khaoula-abaidi , if you know, could you please tell us what is the version of MySQL (or MariaDB) server you are using? |
@khaoula-abaidi , could you please apply this patch and try again? |
MYSQL version is : |
Thanks for information. Could you please apply this patch and try again? |
I would not get sympa.pl --health_check works with MySQL 8 database. This patch helps to fix the problem. |
Thanks for reporting bug and confirming fix! This fix will be included in the next release. |
Using : /usr/lib/sympa/bin/sympa.pl --health_check i've got this message :Database sympa defined in sympa.conf has not the right structure or is unreachable. verify db_xxx parameters in sympa.conf |
To migrate from 6.1.24 to 6.2.24 , will you tell me What files do I need to transfer from a list directory, espacially lists that editors , owners and subscribers are from data_sources ? |
@khaoula-abaidi , could you please apply this patch and try again? |
i've didn't apply the patch but i've the migration is well done. |
Hello , i've tried the patch and the problem is resolved , thank you |
Currently the problem is resolved. |
The fix will be included in the next release of Sympa (6.2.60), which is proposed to be released on 21st December this year. |
Will the bug fix for version 6.2.60 only be limited to the MySQL.pm program or the database? |
I have not confirmed yet, but problem you reported may be avoided by adding
in the Or, if you have root user privilege on mysql server, execute this expression SET GLOBAL sql_mode = ''; Either of those operations has the same effect as the fix included in 6.2.60. However, if you share the MySQL database with the other software, they might be affected by the operation above. Fixes on 6.2.60 won't affect the other software. |
When the new release Sympa 6.2.60 will be deployed into the repositories Ubuntu 20.04 ? |
When the new release Sympa 6.2.60 will be deployed into the repositories Ubuntu 20.04 ? |
I suppose never. Ubuntu 20.04 (focal) adopts Sympa 6.2.40 as upstream, and I think this may not be changed. An alternative is to apply the patch fixing this bug to Sympa 6.2.40 you installed (However, everytime you upgrade your Sympa, you have to apply this patch again). |
So there will never be a new version of Sympa into ubuntu 20.04 and it will still the lastest version of sympa the 6.2.40? |
That's how these distributions work. |
Version
From 6.1.24 TO Sympa 6.2.40
Migration method
Transfer .incl files , expl lists , topics , scenari
Stop services sympa , apache2 ,postfix
/usr/lib/sympa/bin/sympa.pl --upgrade
Restart services sympa, apache2, postfix
Expected behavior
Use of uninitialized value $effective_size in numeric ge (>=) at /usr/share/sympa/lib/Sympa/DatabaseManager.pm line 712.
Use of uninitialized value $effective_size in numeric ge (>=) at /usr/share/sympa/lib/Sympa/DatabaseManager.pm line 712.
Database sympa defined in sympa.conf has not the right structure or is unreachable. verify db_xxx parameters in sympa.conf
Actual behavior
Erreur interne du serveur
Sympa a été confronté à une erreur interne
Veuillez contacter le listmaster
Erreurs : Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List.pm line 7055.
Pile d'appel
DIED: Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List.pm line 7055.
at /usr/share/sympa/lib/Sympa/List.pm line 7055.
Sympa::List::sync_include_admin(Sympa::List [email protected]) called at /usr/share/sympa/lib/Sympa/List.pm line 418
Sympa::List::new('Sympa::List', 'listexample2', 'xxxx.yyyy.fr', HASH(0x55e0ab115f40)) called at /usr/share/sympa/lib/Sympa/List.pm line 7855
Sympa::List::get_lists('xxxx.yyyy.fr') called at /usr/lib/cgi-bin/sympa/wwsympa.fcgi line 9559
main::do_get_latest_lists() called at /usr/lib/cgi-bin/sympa/wwsympa.fcgi line 1566
Additional information
The text was updated successfully, but these errors were encountered: