Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databases connected via Unix domain sockets aren't well supported #177

Open
klausbrunner opened this issue May 18, 2022 · 2 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@klausbrunner
Copy link

klausbrunner commented May 18, 2022

The current logic in docker-entrypoint.sh to build ROUNDCUBEMAIL_DSNW will always add ":portnumber" to the string. This doesn't work when the "host" is actually a Unix domain socket specification of the form "unix(/var/bla/sockets)", as the resulting connection string is invalid.

My current workaround is to add an overriding configuration PHP file that redefines $config['db_dsnw']. Works, but it's a bit of a hack.

Suggestion: don't add the colon + port number unless one is explicitly passed in. The default should be fine in most cases anyway. Of course, wait_for_it.sh can't be used the same way then.

@navossoc
Copy link

Same, I'm using the HOST and PORT on the ENV vars and overriding it on the config file too...

@pabzm pabzm added bug Something isn't working help wanted Extra attention is needed labels Nov 8, 2024
@pabzm
Copy link
Member

pabzm commented Nov 8, 2024

Sounds like a solvable bug. 👍 Would someone post a pull request to propose a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants