Closed theoneandonly-vector closed 4 years ago
Hi @theoneandonly-vector,
"disk error" means that kopano-server could not write the received data to disk/database. You should be looking in its logging for further insights.
I do see a ton of: [warning] SQL [00001519] info: MySQL server has gone away. Reconnecting while it's working completely fine.
and I get this:
kopano_server | 2020-06-15T18:35:41.764948: [error ] mysql_real_connect: Unknown MySQL server host 'db' (-3)
kopano_server | 2020-06-15T18:35:42.314752: [warning] Replacing notification request for ID 6050246659330295928
kopano_server | 2020-06-15T18:35:44.762561: [error ] KDatabase::DoSelect(): query failed: "MYSQL not initialized", query: SELECT hierarchy_id FROM stores WHERE stores.user_id=18 LIMIT 1
kopano_server | 2020-06-15T18:35:48.172061: [warning] Replacing notification request for ID 4237756867761773496
kopano_server | 2020-06-15T18:35:49.401172: [error ] SQL [00000000] Failed: Unknown MySQL server host 'db' (-3), Query Size: 63, Query: "SELECT hierarchy_id FROM stores WHERE stores.user_id=31 LIMIT 1"
kopano_server | 2020-06-15T18:35:52.308664: [error ] KDatabase::DoSelect(): query failed: "MYSQL not initialized", query: SELECT hierarchy_id FROM stores WHERE stores.user_id=31 LIMIT 1
kopano_server | 2020-06-15T18:35:54.821510: [warning] Replacing notification request for ID 9638860224364359190
kopano_server | 2020-06-15T18:35:57.407228: [error ] SQL [00000000] Failed: Unknown MySQL server host 'db' (-3), Query Size: 63, Query: "SELECT hierarchy_id FROM stores WHERE stores.user_id=16 LIMIT 1"
kopano_server | 2020-06-15T18:36:00.176355: [error ] KDatabase::DoSelect(): query failed: "MYSQL not initialized", query: SELECT hierarchy_id FROM stores WHERE stores.user_id=16 LIMIT 1
kopano_server | 2020-06-15T18:36:03.952301: [warning] Writeout of logon/off time cache unsuccessful
kopano_server | 2020-06-15T18:36:10.745419: [warning] Replacing notification request for ID 1315267430910946821
kopano_server | 2020-06-15T18:36:15.305998: [error ] SQL [00000000] Failed: Unknown MySQL server host 'db' (-3), Query Size: 63, Query: "SELECT hierarchy_id FROM stores WHERE stores.user_id=17 LIMIT 1"
kopano_server | 2020-06-15T18:36:19.164564: [error ] KDatabase::DoSelect(): query failed: "MYSQL not initialized", query: SELECT hierarchy_id FROM stores WHERE stores.user_id=17 LIMIT 1
kopano_server | 2020-06-15T18:36:18.531382: [warning] Replacing notification request for ID 5853284035397166315
kopano_server | 2020-06-15T18:36:23.573017: [error ] SQL [00000000] Failed: Unknown MySQL server host 'db' (-3), Query Size: 63, Query: "SELECT hierarchy_id FROM stores WHERE stores.user_id=11 LIMIT 1"
kopano_server | 2020-06-15T18:36:26.210103: [error ] KDatabase::DoSelect(): query failed: "MYSQL not initialized", query: SELECT hierarchy_id FROM stores WHERE stores.user_id=11 LIMIT 1
kopano_server | 2020-06-15T18:36:29.154350: [warning] Writeout of logon/off time cache unsuccessful
kopano_server | 2020-06-15T18:36:32.147121: [warning] Replacing notification request for ID 6615280907016544630
Unknown MySQL server host 'db'
Kind of sounds like a dns issue between kopano-server and the database server.
do you have an idea why this happens after some time?
No, without direct access or knowledge about the host system I don't have an idea what could cause it.
Do you have some tips for debbuging when it happens next time?
When it happens:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Describe the bug After a few days I can't receive E-mails anymore. When I restart the containers it will work again for a few days.
To Reproduce Steps to reproduce the behavior: Send an E-Mail -> Kopano-user.
Expected behavior The E-Mail will be delivered to my inbox.
Log docker-compose logs -f kopano_dagent: