mschnitzer / ark-survival-ascended-linux-container-image

A docker/podman container that is able to run an ARK: Survival Ascended on a Linux host.
92 stars 17 forks source link

Can't connect to anything #85

Closed DanKrones closed 1 month ago

DanKrones commented 2 months ago

I can see that the server is up and running using Portainer. I installed it on Docker on a headless server on my home network. If I ssh into that machine and run nmap localhost -p 27020 I can see that port is open. I have opened ports 7777 and 27020 on the firewall for the server. I have forwarded port 27020 from my router to the server. If we try to connect using the game console from a Windows machine on the local network, there is no response. If I run your docker exec command from the server, I get a reply back showing the SessionName=ARK #442549 but when we look on the Steam Ark game list for unofficial servers we don't see this number listed.

mschnitzer commented 2 months ago

When you say "Steam Ark game list", do you mean the Steam server browser or the In Game server browser? There's no support to query the status of the ARK server through Steam right now, this only works for ASE.

Can you ping the internal server IP at all from your Windows PC?

DanKrones commented 2 months ago

Forgive my ignorance (My daughter asked for my help to set up a server for her) and thank you for your attention to detail in my question. I think I mean the In Game server browser.

Once the server was running, she tried to view it running in Steam from her computer. She also tried to use the console from within her game that was running (under Steam). It could not connect to port 27020.

If I log onto my linux server and do ifconfig, I get:

asanet: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.19.0.1 netmask 255.255.0.0 broadcast 172.19.255.255 inet6 fe80::42:69ff:fe1a:14c5 prefixlen 64 scopeid 0x20 ether 02:42:69:1a:14:c5 txqueuelen 0 (Ethernet) RX packets 1547 bytes 92684 (92.6 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 287 bytes 12054 (12.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

and if I ping 172.19.0.1 I get normal looking replies (no packet loss).

If we run ping on the Windows machine to 172.19.0.1 it also has normal replies (no packet loss).

-Dan

On 2024-09-09 11:11, Manuel Schnitzer wrote:

When you say "Steam Ark game list", do you mean the Steam server browser or the In Game server browser? There's no support to query the status of the ARK server through Steam right now, this only works for ASE.

Can you ping the internal server IP at all from your Windows PC?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/issues/85#issuecomment-2338777496 [2] https://github.com/notifications/unsubscribe-auth/AEXUYUYCT6I7QDF3UO4264DZVXQD3AVCNFSM6AAAAABN3KXYDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYG43TONBZGY

mschnitzer commented 2 months ago

Is the "Show player servers" checkbox checked in the server browser? This is required for self hosted servers.

DanKrones commented 2 months ago

Is this what you mean by "Server Browser" ??

-Dan

On 2024-09-12 04:39, Manuel Schnitzer wrote:

Is the "Show player servers" checkbox checked in the server browser? This is required for self hosted servers.

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/issues/85#issuecomment-2346055334 [2] https://github.com/notifications/unsubscribe-auth/AEXUYU7BAM5JTEFLQ3P3QSTZWF4OLAVCNFSM6AAAAABN3KXYDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBWGA2TKMZTGQ

DanKrones commented 2 months ago

The picture was not added to my last emailed comment. Here is the picture I meant to send when I was asking if this is what you meant by the server browser....

33ac88c4

DanKrones commented 2 months ago
image
DanKrones commented 2 months ago
image

It looks like these 2 ports are needed to be open to run this game. Especially port 7777. If I look at the open ports on our server I see the following:

image

So it seems that 7777 is not open and 27020 is open. Is this correct??

DanKrones commented 2 months ago

Ignore my last comment. It appears that UDP port 7777 is open:

image
mschnitzer commented 2 months ago

I wasn't able to investigate this further. I'm replying today or tomorrow again.

mschnitzer commented 2 months ago

If the server is not listed on the Unofficial tab (given that "Show player servers" is activated), it could be that the container itself does not have a network connection to the outside.

What does docker logs asa-server-1 say?

DanKrones commented 1 month ago

I tried uninstalling and starting over again. The command "docker-compose up -d" appeared to work:

root@saturn:/home/asa-server# docker compose up -d WARN[0000] /home/asa-server/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion [+] Running 4/4 ✔ set-permissions-1 Pulled 4.3s ✔ 41e19e06a870 Pull complete 2.4s ✔ asa-server-1 Pulled 8.2s ✔ 19a61db28155 Pull complete 6.7s [+] Running 8/8 ✔ Network asa-server_asa-network Created 0.2s ✔ Network asa-server_default Created 0.2s ✔ Volume "asa-server_steamcmd-1" Created 0.0s ✔ Volume "asa-server_server-files-1" Created 0.0s ✔ Volume "asa-server_cluster-shared" Created 0.0s ✔ Volume "asa-server_steam-1" Created 0.0s ✔ Container asa-server-set-permissions-1-1 Started 0.7s ✔ Container asa-server-1 Started

And then I did your "docker logs asa-server-1" and got this:

root@saturn:/home/asa-server# docker logs -f asa-server-1 --2024-09-24 19:47:52-- https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz Resolving steamcdn-a.akamaihd.net (steamcdn-a.akamaihd.net)... failed: Temporary failure in name resolution. wget: unable to resolve host address 'steamcdn-a.akamaihd.net' tar (child): steamcmd_linux.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now /usr/bin/start_server: line 17: ./steamcmd.sh: No such file or directory Downloading Proton version 8-21... This might take a while --2024-09-24 19:48:00-- https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton8-21/GE-Proton8-21.tar.gz Resolving github.com (github.com)... failed: Temporary failure in name resolution. wget: unable to resolve host address 'github.com'

And a bunch more unable to resolve host errors and after all this was printed, the container was no longer running. I restarted it and tried again but got the same result.

This is strange because it previously installed the game and was running. Do have any suggestions?

DanKrones commented 1 month ago

okay, this is me learning about docker. I had to change the yml file so it supports host networking. As soon as I did that the docker had connection to the internet and loaded. And now we can connect to it from the game and it plays correctly.

mschnitzer commented 1 month ago

So the issue is solved? Can we close this issue?

DanKrones commented 1 month ago

Yes the issue is solved. Thank you so much for your help!

-Dan

On 2024-09-26 08:36, Manuel Schnitzer wrote:

So the issue is solved? Can we close this issue?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you commented.Message ID: @.***>

Links:

[1] https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/issues/85#issuecomment-2377313498 [2] https://github.com/notifications/unsubscribe-auth/AEXUYU45UPQNVQAMD32C4WDZYQSYPAVCNFSM6AAAAABN3KXYDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGMYTGNBZHA