Skip to content
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

Use of uninitialized value $effective_size in DatabaseManager.pm line 712 #1252

Closed
Cyrille37 opened this issue Oct 17, 2021 · 5 comments · Fixed by #1254
Closed

Use of uninitialized value $effective_size in DatabaseManager.pm line 712 #1252

Cyrille37 opened this issue Oct 17, 2021 · 5 comments · Fixed by #1254
Labels
Milestone

Comments

@Cyrille37
Copy link

Cyrille37 commented Oct 17, 2021

Version

  • Sympa 6.2.40
  • Perl 5.30.0
  • Ubuntu 20.04 LTS (focal)
  • Mysql-server 8.0.26

Installation method

apt install sympa

Actual behavior

Running sympa --health_check throw warnings :

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.
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.
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.
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.
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.
Use of uninitialized value $effective_size in numeric ge (>=) at /usr/share/sympa/lib/Sympa/DatabaseManager.pm line 712.
@ikedas
Copy link
Member

ikedas commented Oct 17, 2021

Hi @Cyrille37 ,

  • Which RDBMS are you using for Sympa? Please tell the name and the version.
  • Can you show the dump of the table structures? E.g.
    • With MySQL: SHOW COLUMNS FROM logs_table;
    • With SQLite: SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'logs_table';
    • and so on.

@Cyrille37
Copy link
Author

Hi @ikedas
Sorry, I forgot: Mysql-server 8.0.26

mysql> SHOW COLUMNS FROM logs_table;
+-------------------+--------------+------+-----+---------+-------+
| Field             | Type         | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+-------+
| date_logs         | int          | YES  |     | NULL    |       |
| robot_logs        | varchar(80)  | YES  |     | NULL    |       |
| list_logs         | varchar(50)  | YES  |     | NULL    |       |
| action_logs       | varchar(50)  | NO   |     | NULL    |       |
| parameters_logs   | varchar(100) | YES  |     | NULL    |       |
| target_email_logs | varchar(100) | YES  |     | NULL    |       |
| user_email_logs   | varchar(100) | YES  |     | NULL    |       |
| msg_id_logs       | varchar(255) | YES  |     | NULL    |       |
| status_logs       | varchar(10)  | NO   |     | NULL    |       |
| error_type_logs   | varchar(150) | YES  |     | NULL    |       |
| client_logs       | varchar(100) | YES  |     | NULL    |       |
| daemon_logs       | varchar(10)  | NO   |     | NULL    |       |
| usec_logs         | int          | YES  |     | NULL    |       |
+-------------------+--------------+------+-----+---------+-------+
13 rows in set (0.00 sec)

@ikedas
Copy link
Member

ikedas commented Oct 18, 2021

@Cyrille37 , can you apply this patch to check if the problem will be solved?

@ikedas
Copy link
Member

ikedas commented Oct 22, 2021

@Cyrille37 , I'll merge it for now, and it will be included in the next beta in the next week.

ikedas added a commit that referenced this issue Oct 22, 2021
MySQL: probe_db() cannot update int fields with MySQL 8.0.17 or later (#1252)
@Cyrille37
Copy link
Author

Sorry @ikedas I did not get time to test.
Thanks for you patch & merge.
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants