oddlama / minecraft-server

A simple but fully-featured minecraft server installer for linux. Comes with autostart, 3d online map, vane, account multiplexing, update script and more.
MIT License
66 stars 9 forks source link

Proxy + Server not starting #5

Closed axldroid closed 1 year ago

axldroid commented 1 year ago

What I ran: systemctl enable --now minecraft-server minecraft-proxy

Error: Failed to start minecraft-server.service: Unit minecraft-server.service is not loaded properly: Exec format error. See system logs and 'systemctl status minecraft-server.service' for details. Failed to start minecraft-proxy.service: Unit minecraft-proxy.service is not loaded properly: Exec format error. See system logs and 'systemctl status minecraft-proxy.service' for details.

oddlama commented 1 year ago

This looks like you are trying to run some executable on an unsupported architecture. My best guess is that you have a wrong version of java installed, but this most likely isn't a problem with this project so I'm not sure if I can be of much help here

axldroid commented 1 year ago

Here's a more specific error: /lib/systemd/system/minecraft-proxy.service:12: Executable path is not absolute: tmux -S /run/minecraft-proxy/tmux set -g default-shell /bin/bash ";" new-session -d "/var/lib/minecraft/deploy/contrib/server_loop.py ./start.sh"

oddlama commented 1 year ago

This seems to be specific to your distribution. You can try to fix this by executing systemctl edit minecraft-proxy.service and replacing tmux at the beginning of the ExecStart= property with the output of which tmux. Repeat for minecraft-server.service.

axldroid commented 1 year ago

I tried doing that, now I am getting a new error when trying to launch the proxy & server

Nov 14 18:32:42 mastersmp systemd[1]: minecraft-server.service: Control process exited, code=killed status=31
Nov 14 18:32:42 mastersmp systemd[1]: minecraft-server.service: Failed with result 'signal'.
Nov 14 18:32:42 mastersmp systemd[1]: Failed to start Minecraft server.
oddlama commented 1 year ago

This looks like your distribution is enforcing some kind of MAC policy (SELinux maybe?) for which an application profile might be missing. But I'm really grasping at straws here, you need to be familiar with your distribution to fix this. At this point I can guarantee that this isn't related to anything from this project specifically. You need to know the details about your specific system to fix this, if I had to guess I'd say you are using Fedora or a derivative where SELinux is enabled by default.

axldroid commented 1 year ago

I'm using Ubuntu on google cloud, I've tried it on another server and it seems to be working.. google cloud seems to be the problem for whatever reason

oddlama commented 1 year ago

They probably have some of the aforementioned restrictions in place. Glad you found a solution.