A
Admincraft•2y ago
Eternal

Ubuntu 20.04 unable to start server

Check the attachment.
No description
No description
114 Replies
Admincraft Meta
Admincraft Meta•2y ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by eternalthegod#0
Discount Milk
Discount Milk•2y ago
what's the contents of your start.sh
Eternal
EternalOP•2y ago
Wait a second, the remote desktop glitched out
Eternal
EternalOP•2y ago
No description
Eternal
EternalOP•2y ago
I'll send in a second but you can see in the terminal aswell
Discount Milk
Discount Milk•2y ago
Send the entire contents of the start.sh Not a screenshot of what it says in term
Eternal
EternalOP•2y ago
#!/bin/bash

while [ true ]; do
java -Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar

echo Server restarting...
echo Press CTRL + C to stop.
done
#!/bin/bash

while [ true ]; do
java -Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar

echo Server restarting...
echo Press CTRL + C to stop.
done
Discount Milk
Discount Milk•2y ago
Where did you get this from?
Eternal
EternalOP•2y ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Discount Milk
Discount Milk•2y ago
Just do
java -Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar
java -Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar
note: do you have java installed?
Eternal
EternalOP•2y ago
Ya I do
Discount Milk
Discount Milk•2y ago
Dope try this, without that auto restart mess baked in
Eternal
EternalOP•2y ago
ya Does nothing
Eternal
EternalOP•2y ago
"Run as a program"
No description
Discount Milk
Discount Milk•2y ago
Where did you get the server.jar from?
Eternal
EternalOP•2y ago
PaperMC
Discount Milk
Discount Milk•2y ago
And is the jar file marked as executable?
Eternal
EternalOP•2y ago
oh, it's not 😂
Discount Milk
Discount Milk•2y ago
:NODDERS: That'll cause problems lol
Eternal
EternalOP•2y ago
I never used a OS other than windows (didn't have the chance to)
Discount Milk
Discount Milk•2y ago
No worries Easy thing to miss
Eternal
EternalOP•2y ago
first experience, ngl the remote desktop is slower than my grandma
Discount Milk
Discount Milk•2y ago
You can do it through SSH, instead of remote desktop. Remote desktop is booty cheeks. You can use these steps to get the entire server setup, just skip the "setup your oracle account" part.
Discount Milk
Discount Milk•2y ago
Deploying in Oracle Cloud | setup.md
A modified version of the guide produced by u/Belaboy1095969 on the Admincraft reddit using Ubuntu LTS.
Eternal
EternalOP•2y ago
I know right it was such a pain thru that at least with the remote desktop I can see what's what
Discount Milk
Discount Milk•2y ago
You're doing the same thing you would be doing, just slower 👀
Eternal
EternalOP•2y ago
well, true what was the line to execute sh file again?
Discount Milk
Discount Milk•2y ago
Quite literally
Eternal
EternalOP•2y ago
sh </path/file.sh>?
Eternal
EternalOP•2y ago
:nobodyislaughing:
No description
Discount Milk
Discount Milk•2y ago
sh start.sh from the desktop folder. I'd recommend the server not run from desktop though. Should be ran using an account that doesn't have root access You're already on the desktop
Eternal
EternalOP•2y ago
Oh
Discount Milk
Discount Milk•2y ago
So just do ls
Eternal
EternalOP•2y ago
No description
Eternal
EternalOP•2y ago
ls returns all directories
Discount Milk
Discount Milk•2y ago
Alright, do ls Show me result
Eternal
EternalOP•2y ago
it's at /home/
Eternal
EternalOP•2y ago
No description
Discount Milk
Discount Milk•2y ago
Alright do cd Desktop
Eternal
EternalOP•2y ago
alright now?
Discount Milk
Discount Milk•2y ago
Or dir Desktop Now screen start.sh
Eternal
EternalOP•2y ago
Now that's confusing "no file found"
Discount Milk
Discount Milk•2y ago
Do ls Show results?
Eternal
EternalOP•2y ago
No description
Eternal
EternalOP•2y ago
I'm doing the same command now
No description
Discount Milk
Discount Milk•2y ago
Include where you saw this?
Eternal
EternalOP•2y ago
Huh? after the screen command
Eternal
EternalOP•2y ago
No description
Discount Milk
Discount Milk•2y ago
Might need to do .\start.sh
Eternal
EternalOP•2y ago
No description
Eternal
EternalOP•2y ago
No difference
Discount Milk
Discount Milk•2y ago
Hm What's the contents of start.sh? can you vim/nano it and show me?
Eternal
EternalOP•2y ago
The command you told me to replace the existing one with. Very long but with nano I can show some of the content at once
No description
Eternal
EternalOP•2y ago
All in 1 line
Discount Milk
Discount Milk•2y ago
Try following the guide from the spot I linked :NODDERS:
Eternal
EternalOP•2y ago
:angry:
Discount Milk
Discount Milk•2y ago
Apologies I need to take a leave and I know you're looking for a more instant answer
Eternal
EternalOP•2y ago
Right it's all good
ProGamingDk
ProGamingDk•2y ago
./ scripts are run with ./
Eternal
EternalOP•2y ago
The server is finally up. How can I get a new user to avoid this "root access" threat though?
ProGamingDk
ProGamingDk•2y ago
How to Create Users in Linux (useradd Command)
In Linux, you can create a user account and assign the user to different groups using the useradd command.
Eternal
EternalOP•2y ago
confusing :pepe_sad:
Eternal
EternalOP•2y ago
okay, I switched to a new minecraft user to remove the root access error but I can't run the jar now
No description
No description
No description
No description
No description
Eternal
EternalOP•2y ago
no flags, nothing.
ProGamingDk
ProGamingDk•2y ago
"permission denied"
Eternal
EternalOP•2y ago
yeah I saw that
ProGamingDk
ProGamingDk•2y ago
ur user doesnt have access to the folder.
ProGamingDk
ProGamingDk•2y ago
Linux Chown Command Help and Examples
Linux chown command help and information with chown examples, syntax, related commands, and steps on how to use chown from the command line.
ProGamingDk
ProGamingDk•2y ago
use chown to own the folder where the server is located
Eternal
EternalOP•2y ago
no idea on granting though. I used sudo useradd -m minecraft to create
Eternal
EternalOP•2y ago
No description
Eternal
EternalOP•2y ago
sudo chown minecraft:minecraft /home/minecraft/? or just minecraft
ProGamingDk
ProGamingDk•2y ago
No description
Eternal
EternalOP•2y ago
my english isn't enough for that :4338cryingsad:
ProGamingDk
ProGamingDk•2y ago
dont include it
Eternal
EternalOP•2y ago
just minecraft then? or am I causing you a headache
ProGamingDk
ProGamingDk•2y ago
just minecraft
Eternal
EternalOP•2y ago
sudo chown minecraft /home/minecraft/ I'd like your approval I don't wanna reinstall 😂 @ProGamingDK
ProGamingDk
ProGamingDk•2y ago
looks fine
Eternal
EternalOP•2y ago
Still the same.
No description
ProGamingDk
ProGamingDk•2y ago
!logs
Carl-bot
Carl-bot•2y 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
Eternal
EternalOP•2y ago
There are no plugins I can't start the server
ProGamingDk
ProGamingDk•2y ago
there should still be a latest.log
Eternal
EternalOP•2y ago
No description
ProGamingDk
ProGamingDk•2y ago
i cant use that upload latest.log or full console to mclo.gs
Eternal
EternalOP•2y ago
I don't think I can download the content of latest.log using ssh
ProGamingDk
ProGamingDk•2y ago
u can u can just sftp it
Eternal
EternalOP•2y ago
it's the same error as before
ProGamingDk
ProGamingDk•2y ago
or use bashupload
Eternal
EternalOP•2y ago
sftp what? there's no ftp set-up
ProGamingDk
ProGamingDk•2y ago
ssh does sftp u dont need to set anything up
Eternal
EternalOP•2y ago
The log is from when I ran the server as root user
[18:23:08] [ServerMain/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[18:23:08] [ServerMain/INFO]: Found new data pack file/bukkit, loading it automatically
[18:23:10] [ServerMain/INFO]: Loaded 7 recipes
[18:23:11] [Server thread/INFO]: Starting minecraft server version 1.20.1
[18:23:11] [Server thread/WARN]: ****************************
[18:23:11] [Server thread/WARN]: YOU ARE RUNNING THIS SERVER AS AN ADMINISTRATIVE OR ROOT USER. THIS IS NOT ADVISED.
[18:23:11] [Server thread/WARN]: YOU ARE OPENING YOURSELF UP TO POTENTIAL RISKS WHEN DOING THIS.
[18:23:11] [Server thread/WARN]: FOR MORE INFORMATION, SEE https://madelinemiller.dev/blog/root-minecraft-server/
[18:23:11] [Server thread/WARN]: ****************************
[18:23:11] [Server thread/INFO]: Loading properties
[18:23:11] [Server thread/INFO]: This server is running Purpur version git-Purpur-2028 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 41ab912 on HEAD)
[18:23:11] [Server thread/INFO]: Server Ping Player Sample Count: 12
[18:23:11] [Server thread/INFO]: Using 4 threads for Netty based IO
[18:23:11] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 1 worker threads, and gen parallelism of 1 threads
[18:23:13] [Server thread/INFO]: [Pufferfish] Max SIMD vector size on this system is 256 bits (int)
[18:23:13] [Server thread/INFO]: [Pufferfish] Max SIMD vector size on this system is 256 bits (float)
[18:23:13] [Server thread/INFO]: [Pufferfish] SIMD operations detected as functional. Will replace some operations with faster versions.
[18:23:13] [Server thread/INFO]: Default game type: SURVIVAL
[18:23:13] [Server thread/INFO]: Generating keypair
[18:23:13] [Server thread/INFO]: Starting Minecraft server on *:25565
[18:23:13] [Server thread/INFO]: Using epoll channel type
[18:23:13] [Server thread/INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity.
[18:23:13] [Server thread/INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity.
[18:23:14] [Server thread/INFO]: [spark] Loading server plugin spark v1.10.43
[18:23:14] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[18:23:14] [Server thread/INFO]: Preparing level "world"
[18:24:44] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[18:24:47] [Server thread/INFO]: Time elapsed: 3414 ms
[18:24:48] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[18:24:49] [Server thread/INFO]: Time elapsed: 1711 ms
[18:24:49] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[18:24:51] [Server thread/INFO]: Time elapsed: 1739 ms
[18:24:52] [Server thread/INFO]: [spark] Enabling spark v1.10.43
[18:23:08] [ServerMain/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[18:23:08] [ServerMain/INFO]: Found new data pack file/bukkit, loading it automatically
[18:23:10] [ServerMain/INFO]: Loaded 7 recipes
[18:23:11] [Server thread/INFO]: Starting minecraft server version 1.20.1
[18:23:11] [Server thread/WARN]: ****************************
[18:23:11] [Server thread/WARN]: YOU ARE RUNNING THIS SERVER AS AN ADMINISTRATIVE OR ROOT USER. THIS IS NOT ADVISED.
[18:23:11] [Server thread/WARN]: YOU ARE OPENING YOURSELF UP TO POTENTIAL RISKS WHEN DOING THIS.
[18:23:11] [Server thread/WARN]: FOR MORE INFORMATION, SEE https://madelinemiller.dev/blog/root-minecraft-server/
[18:23:11] [Server thread/WARN]: ****************************
[18:23:11] [Server thread/INFO]: Loading properties
[18:23:11] [Server thread/INFO]: This server is running Purpur version git-Purpur-2028 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 41ab912 on HEAD)
[18:23:11] [Server thread/INFO]: Server Ping Player Sample Count: 12
[18:23:11] [Server thread/INFO]: Using 4 threads for Netty based IO
[18:23:11] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 1 worker threads, and gen parallelism of 1 threads
[18:23:13] [Server thread/INFO]: [Pufferfish] Max SIMD vector size on this system is 256 bits (int)
[18:23:13] [Server thread/INFO]: [Pufferfish] Max SIMD vector size on this system is 256 bits (float)
[18:23:13] [Server thread/INFO]: [Pufferfish] SIMD operations detected as functional. Will replace some operations with faster versions.
[18:23:13] [Server thread/INFO]: Default game type: SURVIVAL
[18:23:13] [Server thread/INFO]: Generating keypair
[18:23:13] [Server thread/INFO]: Starting Minecraft server on *:25565
[18:23:13] [Server thread/INFO]: Using epoll channel type
[18:23:13] [Server thread/INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity.
[18:23:13] [Server thread/INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity.
[18:23:14] [Server thread/INFO]: [spark] Loading server plugin spark v1.10.43
[18:23:14] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[18:23:14] [Server thread/INFO]: Preparing level "world"
[18:24:44] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[18:24:47] [Server thread/INFO]: Time elapsed: 3414 ms
[18:24:48] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[18:24:49] [Server thread/INFO]: Time elapsed: 1711 ms
[18:24:49] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[18:24:51] [Server thread/INFO]: Time elapsed: 1739 ms
[18:24:52] [Server thread/INFO]: [spark] Enabling spark v1.10.43
ProGamingDk
ProGamingDk•2y ago
cant use that for anything i need the full error of when it doesnt work
Eternal
EternalOP•2y ago
this is latest.log I can't start the server due to permission issue should we wait for senor?
ProGamingDk
ProGamingDk•2y ago
or full console
also is ur server in the /home/minecraft folder oh i see the issue sudo chown -R minecraft /home/minecraft use this ^^
Eternal
EternalOP•2y ago
ya sure
ProGamingDk
ProGamingDk•2y ago
it wasnt recursive
Eternal
EternalOP•2y ago
ya, works now I'm thinking
Eternal
EternalOP•2y ago
No description
ProGamingDk
ProGamingDk•2y ago
do mind java 18 isnt recommended and u should probably use java 17
Eternal
EternalOP•2y ago
and how can I downgrade?
ProGamingDk
ProGamingDk•2y ago
Ask Ubuntu
Switch between multiple java versions
While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer Oracle version of Java: su...
Eternal
EternalOP•2y ago
also
No description
Eternal
EternalOP•2y ago
can't I just uninstall and install java?
ProGamingDk
ProGamingDk•2y ago
sure did u press ctrl + c or similar? also did u run it in a screen
Eternal
EternalOP•2y ago
not in a screen I typed in the cmd aswell
ProGamingDk
ProGamingDk•2y ago
run it in a screen
Eternal
EternalOP•2y ago
java -Xmx3G -Xms3G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 --add-modules=jdk.incubator.vector -XX:+UnlockDiagnosticVMOptions -XX:-UseAESCTRIntrinsics -jar server.jar nogui how's this meant to be a ran as a screen? or run it in in a screen
ProGamingDk
ProGamingDk•2y ago
just add screen before the command
Eternal
EternalOP•2y ago
I added a start.sh command, now this error keeps poppin up
Eternal
EternalOP•2y ago
No description
Discount Milk
Discount Milk•2y ago
You already have a server running.
Larry the Pig
Larry the Pig•2y ago
you probably have a screen open that you forgot about run screen -r to open the other screen

Did you find this page helpful?