Comments (7)
Hmmm. It shouldn't literally have verselect in start.sh. That is replaced by SetupMinecraft.sh (unless you are reusing an old copy of SetupMinecraft.sh).
Have you been using the script for a while? It used to work by saving a standalone copy but these days it's just ran with:
curl https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/SetupMinecraft.sh | bash
I'd for sure try this first (when it asks for the installation path leave it the default of ~). I think you may be using a SetupMinecraft from back before verselect was replaced in SetupMinecraft.sh by this line (line 132): sed -i "s:verselect:$Version:g" start.sh
Thus your real line should look like:
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A -o paperclip.jar https://papermc.io/api/v1/paper/1.17.1/latest/download
in your actual start.sh inside ~/minecraft/start.sh. Can you check/verify this? I just checked mine and it still looks happy here. That URL in the browser seems to yield me the current 143 version as intended here at https://papermc.io/api/v1/paper/1.17.1/latest/download and should update at 4am normally.
I'm also getting the "my build is old" warning in the server upon startup if that is what prompted this, but you get the exact same version in the browser with the non verselect URL so it definitely seems to be the latest build despite the warning.
from raspberrypiminecraft.
Thanks for the fast reply!
I was using the script for the first time today; coming from papermc 1.16.5 and installing into the same directory (~/minecraft) overwriting the old content.
As I have tried a lot manually I can not proof having the wrong line after installation. But I am sure that the mentioned error occured on first start either.
If I read you correctly it will be enough, to replace my wrong line with your above line in ~/minecraft/start.sh to correct the script so it downloads the newest version automatically at 4am?
from raspberrypiminecraft.
I tried this out, but still getting the same error when running start.sh:
./world_the_end/level.dat_old
Updating to most recent paperclip version ...
curl: (6) Could not resolve host: paperclip.jar
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
Starting Minecraft server. To view window type screen -r minecraft.
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
Here is an extract of my start.sh script:
...
# Update paperclip.jar
echo "Updating to most recent paperclip version ..."
# Test internet connectivity first
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" -s google.com -o /dev/null
if [ "$?" != 0 ]; then
echo "Unable to connect to update website (internet connection may be down). Skipping update ..."
else
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A -o paperclip.jar https://papermc.io/api/v1/paper/1.17.1/latest/download
fi
echo "Starting Minecraft server. To view window type screen -r minecraft."
echo "To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D"
screen -dmS minecraft java -jar -Xms400M -Xmx3239M /home/ubuntu/minecraft/paperclip.jar
What is still wrong here?
PS: sorry for the bad formatting - I couldn't do better
PPS: is the user-agent-parameter "-A" allowed to be empty?
from raspberrypiminecraft.
No that should not be empty. Let's try if I put the user agent in there from the earlier lines. I just uploaded the fix to GitHub.
Definitely run SetupMinecraft.sh again with:
curl https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/SetupMinecraft.sh | bash
and it will build it with the updated templates I just uploaded for you. Ideally this time you should not need to make any changes at all after letting SetupMinecraft.sh update it.
It looks like it's not picking up the -o parameter to me possibly because the -A without the parameter is eating it. It says I'm running build 145 after the fix for what it's worth (and the warning is gone) so this may have got it unstuck here. Let's see if that gets it for you!
from raspberrypiminecraft.
Should be fixed here, script and README updated
from raspberrypiminecraft.
Thank you for the quick fix and your effort!
Unfortunately my kids wanted back to 1.16.5 because of 1.17.1 being too unstable for them.
So I restored a backup and therefore all 1.17 stuff got overwritten.
I think we will have another try on 1.17.1 in a few weeks and surely we will use your (updated) script again.
from raspberrypiminecraft.
Hey davie2000,
Thanks for confirming! If you're having any trouble with the older versions you can follow the instructions to do a manual version override install (you basically download the script and open it at nano and change the version at the top, as well as set AllowLocalCopy=1, full instructions in the GitHub documentation / this web page). That would let you install the newest versions on 1.16.5 if you wanted to stay on it. If everything is working fine though you can just leave it alone until things stabilize here.
This isn't the first time the newer versions have been super, super unstable and you can almost count on it so I completely understand. Either way you should be covered.
Thanks again for reporting this, I had just done the curl conversion 3 days prior to you opening this. I missed the parameter on that one command so my server wasn't updating either. It had only just been 3 days so I was just starting to get the warning but this would have happened for everyone that installed in those 3 days since that curl line was essentially broken. Take care!
from raspberrypiminecraft.
Related Issues (20)
- "Enter amount of memory"-text: add "M" in example HOT 1
- Server does not start HOT 2
- Server restart and Maintaining connection HOT 7
- Suggestion: Update backup script to utilize all cores HOT 1
- Unable to Set Path Variable - restart.sh HOT 3
- Installation fails, server does not start. HOT 3
- Unsupported Java detected (61.0) HOT 4
- Update for 1.19 version HOT 3
- Does not pull latest paper version HOT 1
- Setting up the script gives a error. HOT 8
- Feature suggestion/fork suggestion: Forge version? HOT 1
- Version 1.19.3 HOT 3
- Typo in the readme.md HOT 1
- 1.19.4 support? HOT 4
- Open JDK 20 support? HOT 1
- Required OpenJDK version 18 could not be installed HOT 1
- Feature suggestion/fork suggestion: web console
- When I try to start the server nothing happens. HOT 1
- 1.20 update?
- server not starting properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberrypiminecraft.