-
Notifications
You must be signed in to change notification settings - Fork 56
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
Issue with Hostname resolve for PSQL #77
Comments
Any updates about this issue? having the same problem, do you find a workaround? |
Unfortunately no, but I didn't test it with a newer version of the server. |
This is still an ongoing issue with the latest docker image. Might be connected to: |
I created a Docker image based on AlmaLinux 9.1 Minimal and the issue persists. I'm starting to believe this has more to do with the TeamSpeak PostgreSQL plugin rather than Alpine Linux. This gist of it: FROM almalinux:9.1-minimal-20221201
ARG TEAMSPEAK_RELEASE_URL="https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2"
RUN microdnf install libpq # plus some more, not showing here for brevity
WORKDIR /app
RUN wget -O server.tar.bz2 ${TEAMSPEAK_RELEASE_URL} && \
tar xfj server.tar.bz2 && \
rm server.tar.bz2 && \
mv teamspeak3-server_linux_amd64/* . && \
rm -rf teamspeak3-server_linux_amd64 && \
touch .ts3server_license_accepted
EXPOSE 9987/udp Then starting it with Actually I'm using this on my Kubernetes cluster, where I have a separate PostgreSQL instance running in its own namespace. My GitLab deployment can connect to it no problem (from another namespace), so the hostname does work 100%. The TeamSpeak error message indicates I've configured it correctly. I'm out of ideas :( |
Update: works fine with TeamSpeak 5 Beta from https://github.com/TeamSpeak-Systems/ts-native (https://github.com/TeamSpeak-Systems/ts-native/releases/tag/beta-58rc12). I guess they just don't bother supporting PostgreSQL for TeamSpeak 3 anymore. |
Update 2: Of course the TeamSpeak 3 client doesn't work with a TeamSpeak 5 server. And the TeamSpeak 5 server requires a user account "for beta access". Guess we have to wait for the official TeamSpeak 5 release then or switch to MariaDB for TeamSpeak 3... Falling back to TeamSpeak 3 with SQLite for now. |
@computeralex92 maybe one of these two things helps you: in your docker-compose.yaml you need to add this to each service:
And then you should be able to connect the two containers. And you have to make sure that the postgresql service is up before you try to connect to it. |
@qknight that would work if the DNS resolution worked in the TeamSpeak PostgreSQL plugin. Sadly it doesn't. |
Hello,
after testing the new PSQL support for the Teamspeak Server and the Docker image, i maybe found a bug in the image or Teamspeak itself.
When trying to run PSQL and Teamspeak together in a Docker Swarm, Teamspeak is not able to resolve the hostname for the PSQL.
Since the same setup is working perfectly for MariaDB, it seems that the docker container or Teamspeak itself have a issue to resolve correctly the DB.
Here is my config:
Note: The image for the Teamspeak Server is build out of master of this git repo because the images hosted at DockerHub do not contain the required fix for the PSQL Lib yet.
The text was updated successfully, but these errors were encountered: