Can't connect to portainer hostest server

I recently got an umbrel home for christmas and i've been messing around with portainer, i decided to make a minecraft server on there and installed itzgy's minecaft server template. i have port forwarded the default minecraft port and have checked everywhere but when i try connecting to the server it give me the error "getsockopt". can anyone help me with this problem? i have looked through the file directory for the server settings as well as using nmap and reading the server logs and as far as i can tell nothing is wrong except that i cannot connect to the server.
31 Replies
Alex
AlexOP3w ago
sorry for the paraphraph TLDR: receive "getsockopt" when connecting to portainer minecraft server
Alex
AlexOP3w ago
No description
Tamz
Tamz3w ago
getspockopt usually means server isnt propertly setup not as in ip, port, etc but like actual server setup (of mc)
Alex
AlexOP3w ago
i tried setting up the same system (without umbrel) on my laptop and ran minecraft alongside it and it worked with the same host
Tamz
Tamz3w ago
hm
Alex
AlexOP3w ago
like i ran minecraft on the same server as where i was hosting it on, the problem is i cant acces it outside of the localhost
Tamz
Tamz3w ago
ok send some logs !Logs
Carl-bot
Carl-bot3w ago
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file. Where can I find the server log? Logs are stored in <server_directory>/logs/. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log file. Some providers have a separate page for logs and may hide the "logs" folder. On Aternos: • Go to https://aternos.org/log/. On Minehut and server.pro: • Go to the "files" tab in the left menu. • Navigate to the root directory of your server. • From there navigate to /logs/latest.log. What should I do with the log? • First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing. • If you got the latest.log file or created a .txt file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/. • If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)
Admincraft Canned Responses
Alex
AlexOP3w ago
ill send a better log file, i restarted the server a few times
[init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 7 1000 1000 1024 Jan 20 22:33 /data'

[init] Resolving type given VANILLA

[init] Resolved version given LATEST into 1.21.4

[mc-image-helper] 01:59:00.648 INFO : Created/updated 1 property in /data/server.properties

[init] Setting initial memory to 1G and max to 1G

[init] Starting the Minecraft server...

Starting net.minecraft.server.Main

[01:59:06] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]

[01:59:08] [ServerMain/INFO]: Loaded 1370 recipes

[01:59:08] [ServerMain/INFO]: Loaded 1481 advancements

[01:59:08] [Server thread/INFO]: Starting minecraft server version 1.21.4

[01:59:08] [Server thread/INFO]: Loading properties

[01:59:08] [Server thread/INFO]: Default game type: SURVIVAL

[01:59:08] [Server thread/INFO]: Generating keypair

[01:59:08] [Server thread/INFO]: Starting Minecraft server on *:25565

[01:59:08] [Server thread/INFO]: Using epoll channel type

[01:59:08] [Server thread/INFO]: Preparing level "world"

[01:59:08] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Server thread/INFO]: Time elapsed: 2636 ms

[01:59:11] [Server thread/INFO]: Done (2.925s)! For help, type "help"

[01:59:11] [Server thread/INFO]: Starting remote control listener

[01:59:11] [Server thread/INFO]: Thread RCON Listener started

[01:59:11] [Server thread/INFO]: RCON running on 0.0.0.0:25575
[init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 7 1000 1000 1024 Jan 20 22:33 /data'

[init] Resolving type given VANILLA

[init] Resolved version given LATEST into 1.21.4

[mc-image-helper] 01:59:00.648 INFO : Created/updated 1 property in /data/server.properties

[init] Setting initial memory to 1G and max to 1G

[init] Starting the Minecraft server...

Starting net.minecraft.server.Main

[01:59:06] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]

[01:59:08] [ServerMain/INFO]: Loaded 1370 recipes

[01:59:08] [ServerMain/INFO]: Loaded 1481 advancements

[01:59:08] [Server thread/INFO]: Starting minecraft server version 1.21.4

[01:59:08] [Server thread/INFO]: Loading properties

[01:59:08] [Server thread/INFO]: Default game type: SURVIVAL

[01:59:08] [Server thread/INFO]: Generating keypair

[01:59:08] [Server thread/INFO]: Starting Minecraft server on *:25565

[01:59:08] [Server thread/INFO]: Using epoll channel type

[01:59:08] [Server thread/INFO]: Preparing level "world"

[01:59:08] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Worker-Main-3/INFO]: Preparing spawn area: 0%

[01:59:11] [Server thread/INFO]: Time elapsed: 2636 ms

[01:59:11] [Server thread/INFO]: Done (2.925s)! For help, type "help"

[01:59:11] [Server thread/INFO]: Starting remote control listener

[01:59:11] [Server thread/INFO]: Thread RCON Listener started

[01:59:11] [Server thread/INFO]: RCON running on 0.0.0.0:25575
Tamz
Tamz3w ago
are you joining with mc 1.21.4? you can also use !mclogs
Carl-bot
Carl-bot3w ago
You should not post your logs in-line or screenshots of your console, it makes it harder to process and us slower to reply
Use a paste service of your choice, or mclogs supporting log syntax highlight and IP filtering
Admincraft Canned Responses
Alex
AlexOP3w ago
yeah
Tamz
Tamz3w ago
can you share the part where you try to join and it gives an error
Alex
AlexOP3w ago
yeah lemme just load up minecraft
Alex
AlexOP3w ago
No description
Tamz
Tamz3w ago
in the server logs...
Alex
AlexOP3w ago
oh sorry the thing is there is no change to the logs whatsoever thats what i dont get
Tamz
Tamz3w ago
it doesnt show you connecting?
Alex
AlexOP3w ago
no
Tamz
Tamz3w ago
then what
Alex
AlexOP3w ago
wdym its the same as the logs above just with this
[02:00:11] [Server thread/INFO]: Server empty for 60 seconds, pausing
[02:00:11] [Server thread/INFO]: Server empty for 60 seconds, pausing
Tamz
Tamz3w ago
ok so 1 you cant connect = server port setup is wrong
Alex
AlexOP3w ago
i mean its configured
No description
Alex
AlexOP3w ago
No description
Tamz
Tamz3w ago
seems not as the server isnt receiving you to connect even if you get the getspockopt error itll still show you "Tried" to conect
Alex
AlexOP3w ago
https://mclo.gs/YPNaFJq i was tinkering with different network options on portainer and i got this error when starting up the server
mclo.gs
Unknown Log [#YPNaFJq]
61 lines
Alex
AlexOP3w ago
im either getting closer or furthur @Tamz
Tamz
Tamz3w ago
that just seems like a broken server jar try using pufferfish or paper server jar
Alex
AlexOP3w ago
thx ill look into it
Snow Kit
Snow Kit3w ago
You somehow broke DNS with docker
chiisana
chiisana3w ago
Yeah, looks like whatever is managing the stack has created a network that is internal/local only, and put the service on that network instead of one that is actually exposed

Did you find this page helpful?