Skip to content

Randomly missing user_properties entries in mysql database #54

@deajan

Description

@deajan

While developping grommunio_exporter for prometheus, I switched from admin-cli to mysql queries in order to fetch data.

I noticed that mysql results are sometimes incoherent.
Launching mysql manually, I got the following results from the same mysql session, with a couple of seconds between each request.
When the data is missing, just "looking" at the user via the grommunio-admin-gui populates the data again.

MariaDB [grommunio]> SELECT * FROM user_properties WHERE user_id = 46;
+---------+------------+----------+-------------+--------------------+
| user_id | proptag    | order_id | propval_bin | propval_str        |
+---------+------------+----------+-------------+--------------------+
|      46 |  235405332 |        1 | NULL        | 0                  |
|      46 |  237174787 |        1 | NULL        | 29                 |
|      46 |  805371935 |        1 | NULL        | REDACTED NAME      |
|      46 |  805765184 |        1 | NULL        | 133996427090000000 |
|      46 |  956628995 |        1 | NULL        | 0                  |
|      46 |  975568927 |        1 | NULL        | France             |
|      46 | 1713176587 |        1 | NULL        | 0                  |
|      46 | 1723006996 |        1 | NULL        | 0                  |
|      46 | 1723072532 |        1 | NULL        | 0                  |
+---------+------------+----------+-------------+--------------------+
9 rows in set (0,000 sec)

MariaDB [grommunio]> SELECT * FROM user_properties WHERE user_id = 46;
+---------+------------+----------+-------------+--------------------+
| user_id | proptag    | order_id | propval_bin | propval_str        |
+---------+------------+----------+-------------+--------------------+
|      46 |  235405332 |        1 | NULL        | 305680429          |
|      46 |  237174787 |        1 | NULL        | 36                 |
|      46 |  805371935 |        1 | NULL        | REDACTED NAME      |
|      46 |  805765184 |        1 | NULL        | 133996427090000000 |
|      46 |  956628995 |        1 | NULL        | 0                  |
|      46 |  975568927 |        1 | NULL        | France             |
|      46 | 1073020931 |        1 | NULL        | 7340032            |
|      46 | 1713176587 |        1 | NULL        | 0                  |
|      46 | 1718222851 |        1 | NULL        | 6291456            |
|      46 | 1718484995 |        1 | NULL        | 5242880            |
|      46 | 1723006996 |        1 | NULL        | 305629274          |
|      46 | 1723072532 |        1 | NULL        | 51155              |
+---------+------------+----------+-------------+--------------------+
12 rows in set (0,001 sec)

I can reproduce this issue quite easily, on two separate servers.
Any idea why proptags seem to appear / disappear ? Is the mysql database perhaps a cache only for gromox ?

Of course, I still get these error messages (have them since I use gromox 2.1x or so), but they don't necessary correlate (times don't match):

2025-11-13 12:27:11 93336 [Warning] Aborted connection 93336 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 12:44:41 94819 [Warning] Aborted connection 94819 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 12:44:41 94818 [Warning] Aborted connection 94818 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 12:46:00 95797 [Warning] Aborted connection 95797 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 12:46:00 95796 [Warning] Aborted connection 95796 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:02:00 97789 [Warning] Aborted connection 97789 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:02:00 97790 [Warning] Aborted connection 97790 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:06:12 97792 [Warning] Aborted connection 97792 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:06:12 97791 [Warning] Aborted connection 97791 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:25:00 100617 [Warning] Aborted connection 100617 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)
2025-11-13 13:25:00 100616 [Warning] Aborted connection 100616 to db: 'grommunio' user: 'grommunio' host: 'localhost' (Got an error reading communication packets)

Vanilla mysql config.
Running on OpenSUSE 15.6 uptodate with:

  • gromox-3.1.113.g937e7f8-lp156.36.1.x86_64
  • mariadb-10.11.14-150600.4.14.1.x86_64

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions