Comments (6)
On another note mcbe_backup and mcbe_log seem to work with the new update.
from mcscripts.
May 21 10:18:12 majima systemd[1]: Starting Automatically download Minecraft Bedrock Edition server ZIP...
May 21 10:18:13 majima bash[80484]: 2021-05-21 10:18:13 URL:https://www.minecraft.net/en-us/download/server/bedrock [309070] -> "-" [1]
May 21 10:18:13 majima systemd[1]: mcbe-getzip.service: Succeeded.
May 21 10:18:13 majima systemd[1]: Finished Automatically download Minecraft Bedrock Edition server ZIP.
May 21 11:18:18 majima systemd[1]: Starting Automatically download Minecraft Bedrock Edition server ZIP...
May 21 11:30:10 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 11:42:05 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 11:54:00 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 12:05:57 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 12:18:00 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 12:29:59 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 12:41:57 majima bash[80792]: Read error (Connection reset by peer) in headers.
May 21 12:53:58 majima bash[80792]: Read error (Connection reset by peer) in headers.
Heh, looks like it may have been this way for a while. User agent spoofing may work around this, getjar script is also affected.
from mcscripts.
wget --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0" -nv https://www.minecraft.net/en-us/download/server/bedrock -O -
My face when that succeeded
So I don't really like the idea of spoofing user agents to get around this issue. However, it is clear that if I want this to continue working I need to do this. It's possible this is a Microsoft policy, wget https://www.microsoft.com/en-us/
is 403. It's also possible Mojang thought me and other people hit the server too hard at 10 AM every day. I would like to know what anyone else thinks. Should I spoof the user agent? Should I make a unique user agent for MCscripts, go for maximum meme value with IE11, or spoof a popular browser? User agent hello world
even works so it's possible to be honest with them and work around this at the same time. I just have a feeling it may be targeted at the MCscripts project itself and not web scraping in general. Maybe I could add a random multi-minute wait and reduce the mcbe-getzip timer to once a day.
from mcscripts.
I can download https://minecraft.azureedge.net/bin-linux/bedrock-server-1.17.0.03.zip
no user agent so this was likely not targeted at MCscripts. I will probably reduce the frequency of the timer to twice a day and rely on a better offset for it than boot time to something far more random. Since the desired functionality is no delay the delay will move from the timer to a flag for random delay. Any ideas?
from mcscripts.
From Ubuntu:
When the apt job starts, it will sleep for a random period between 0 and APT::Periodic::RandomSleep seconds. The default value is "1800" so that the script will stall for up to 30 minutes (1800 seconds) so that the mirror servers are not crushed by everyone running their updates all at the same time.
A sleep $((RANDOM % 30))
would mimic this, $RANDOM is not crypto grade random but it's good enough for load relief. At the timer level an option for this exists: https://www.freedesktop.org/software/systemd/man/systemd.timer.html#RandomizedDelaySec=
from mcscripts.
TheRemote/MinecraftBedrockServer#87 (comment) blames the CDN for this change. That makes the most sense, and possibly something to keep an eye on going forward: Who their CDN is and what the CDN's policies are.
https://community.akamai.com/customers/s/question/0D54R00007GjCANSA3/why-does-akamai-edge-services-sometime-just-not-send-any-response-leaving-the-connection-to-timeout?language=en_US sounds like this is a common issue.
from mcscripts.
Related Issues (20)
- Dependency failed for Automatically remove Minecraft Bedrock Edition server world backups more than 2-weeks-old @ MCBE. HOT 2
- Autoupdate failed HOT 2
- Need to use dos2unix on server.properties from Windows server HOT 5
- Add verbose flag HOT 1
- After updating, discord webhook prints xuid's rather than usernames HOT 3
- mcbe-getzip service fails to start with dependency failure HOT 3
- Incorrect permissions on bedrock_server file after most recent BDS update HOT 1
- auto update for minecraft on ubuntu desktop version HOT 12
- move_servers.sh deleted bedrock server and didn't move it when backup_dir already contained bedrock directory HOT 5
- mcbe-rmbackup tries to delete files in wrong directory HOT 1
- No Response from https://www.minecraft.net HOT 23
- Mention Pugmatt's BedrockConnect as a Nintendo Switch workaround HOT 3
- Autoupdate script updates server to incompatible version HOT 3
- Issue with EULA accepting HOT 2
- Documentation? HOT 11
- Missing `g` termination in sed command
- Multiple Bedrock Servers HOT 2
- Backup fails without helpful error message if server.properties contains CRLF line terminations HOT 1
- Screen support? HOT 4
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 mcscripts.