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

Unable to complete network request to host "localhost" from isql #39

Closed
SoerenHenning opened this issue May 7, 2019 · 3 comments
Closed

Comments

@SoerenHenning
Copy link

SoerenHenning commented May 7, 2019

Using the 2.5-ss image, I cannot query the database via isql as I'm getting an error saying that no networks requests to localhost can be made.

I'm starting a container via:

docker run -it -e "ISC_PASSWORD=masterkey" -e "FIREBIRD_DATABASE=test.gdb" -e "FIREBIRD_USER=test" -p 3050:3050  -v /tmp:/firebird/data --name firebird --rm jacobalberty/firebird:2.5-ss bash

Output is:

Warning - maximum 8 significant bytes of password used
setting 'test' password to 'f6a26ebc667b433f2bc6'
Use CONNECT or CREATE DATABASE to specify a database

Then I'm running:

cd /usr/local/firebird/bin
./isql ${DBPATH}/test.gdb -u test -p f6a26ebc667b433f2bc6

Which yields:

Statement failed, SQLSTATE = 08006
Unable to complete network request to host "localhost".
-Failed to establish a connection.
Use CONNECT or CREATE DATABASE to specify a database

I tested the same sequence of executions with 2.5.7-ss and 2.5.6-ss. While the error also exists in2.5.7-ss, in 2.5.6-ss everything works fine. (Note that in the latter the interactive shell has to be started separately.)

@SoerenHenning
Copy link
Author

Okay, I see what the problem is. docker run -it [...] bash overwrites the CMD, which starts the server. Therefore, there seems to be nothing wrong with the Docker image. However, may it be reasonable to change this behavior? (E.g., start the server in the entrypoint?) I'm not sure what good Docker practices are in this context.

@mrotteveel
Copy link
Contributor

This seems to be the same problem as #33

@github-actions
Copy link

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 14 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants