3 months ago
Hello Railway Support Team,
I am experiencing a critical, persistent connection failure with my MySQL service that seems to be related to data corruption and resource stalling.
1. Service Details:
Project Name: cimedical
Service Name: MySql
Service ID: 4462fdab-19bb-4059-9ace-f649d72e2828
2. The Persistent Error:
The database is failing to start up after multiple redeployments. The service status shows:
Database Connection: ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/run/mysqld/mysqld.sock
3. Initial Cause (Pre-Redeploy Logs):
Before the service started failing consistently, the deployment logs showed a critical InnoDB stall:
A long semaphore waitA writer (thread id...) has reserved it in mode SXOS WAIT ARRAY INFO: reservation count [large number]
4. Current Status:
The server seems to be crashing immediately after starting up because it cannot load the volume data correctly. The recent deployment logs show initialization completing, followed by the crash (indicated by the persistent ERROR 2002):
InnoDB initialization has endedServer upgrade from '80405' to '80407' started
Please let me know the best way to proceed. Thank you for your help!
1 Replies
3 months ago
This appears to be an InnoDB startup failure caused by a corrupted or stalled data directory, not a socket or networking issue. The earlier semaphore wait and the crash during InnoDB initialization point to a wedged InnoDB state, and redeploys keep reattaching the same volume.
The recommended fix is to either recreate the MySQL volume, or start the service with innodb-force-recovery to extract a dump and then rebuild the database on a fresh volume.