I recently updated container image versions for both Portabase and the agent. I initially pulled with the latest tag for testing and now wanted to pin the version. However, backup of my MySQL databases stopped working after this. The reason is that the agent tries to connect to the socket when the database is not actually on the same host. Instead, the database is reached over tcp by using ssh tunneling. Thus the backups fail with the following error:
-- Connecting to localhost...
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
I looked at the documentation for MySQL database but I could not see any new configuration indicating a way for me to specify the method by which the agent should connect to the database.
I'm not exactly sure when this happened, I stepped down version by version until 1.12 and it was still not working. I then selected 1.8 since that was released around the time I initially pulled the image and that worked. So it was somewhere between 1.8 and 1.12.
Is there a setting we can use to specify using tcp and not the socket?
I recently updated container image versions for both Portabase and the agent. I initially pulled with the latest tag for testing and now wanted to pin the version. However, backup of my MySQL databases stopped working after this. The reason is that the agent tries to connect to the socket when the database is not actually on the same host. Instead, the database is reached over tcp by using ssh tunneling. Thus the backups fail with the following error:
I looked at the documentation for MySQL database but I could not see any new configuration indicating a way for me to specify the method by which the agent should connect to the database.
I'm not exactly sure when this happened, I stepped down version by version until 1.12 and it was still not working. I then selected 1.8 since that was released around the time I initially pulled the image and that worked. So it was somewhere between 1.8 and 1.12.
Is there a setting we can use to specify using tcp and not the socket?