Minecraft server (aws/linux) discord webhook error
0
votes
1
answer
35
views
I have a Minecraft server running on an EC2 Instance (AWS), which runs a Linux (CentOS). I altered the
minecraft.service
system process to
-ini
ExecStart=python3 run_server.py
This python script pulls a run.json
file, which fills in server jar name, webhook URL, role ID, and jvm args. This is what it looks like:
-json
{
"server_jar":"server.jar",
"jvm_args":"-Xms1G -Xmx4G",
"webhook_url":"your_url_here",
"role_id":"your_role_here"
}
When I run sudo systemctl start minecraft
followed by sudo systemctl status minecraft
I get this error:
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.12/subprocess.py", line 1953, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'java -Xmx3G -Xms3G -jar server.jar nogui'
Asked by Igor Blinkow
(1 rep)
Mar 4, 2024, 04:10 AM
Last activity: Mar 12, 2024, 08:59 PM
Last activity: Mar 12, 2024, 08:59 PM