juspay / services-flake

NixOS-like services for Nix flakes
https://community.flake.parts/services-flake
MIT License
342 stars 28 forks source link

Could not create unix socket lock file error in mysql service when timezones are imported #169

Closed attilaersek closed 4 months ago

attilaersek commented 4 months ago

If importTimeZones is true or default-time-zone then the configureTimezones script will be executed during startScript initialization, if and only the dataDir does not exists.

The initialization fails with similar error:

[mysql  ] 2024-04-22T15:42:53.257499Z 0 [ERROR] Could not create unix socket lock file ./data/mysql/config.sock.lock.

The socket path used in configureTimezones script is relative and mysql fails to create it.