Automatic bedrock update failed, manual bedrock update procedure how to, bedrock 1.20.80.05

OS Name/Version: Debian Linux 11, Linux 5.10.0-28-amd64 on x86_64

Product Name/Version: MinecraftModule version 1.0.0.3 by CubeCoders Limited

Problem Description:
minecraft bedrock edition won’t update automaticly, need solution for manual update

[10:10:48] [Core Info]            : Starting AMP version 2.5.0.6 (Callisto), built 17/04/2024 22:09
[10:10:48] [Core Info]            : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[10:10:48] [Logger Info]          : Purging old audit logs (this may take a moment)...
[10:10:48] [Core Info]            : Running in a Docker environment.
[10:10:48] [Core Info]            : OS: Linux / x86_64
[10:10:48] [Core Info]            : CPU: AMD EPYC 7282 16-Core Processor (6C/6T)
[10:10:48] [Core Info]            : RAM: 15996MB
[10:10:48] [Core Info]            : AMP Instance ID: d97351ca-5535-4f3f-b813-1f7780fd2bff
[10:10:49] [Loader Info]          : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[10:10:49] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[10:10:49] [Loader Info]          : Loaded FileManagerPlugin by CubeCoders Limited
[10:10:49] [Loader Info]          : Loaded EmailSenderPlugin by CubeCoders Limited
[10:10:49] [Loader Info]          : Loaded WebRequestPlugin by CubeCoders Limited
[10:10:49] [Loader Info]          : Loaded LocalFileBackupPlugin by CubeCoders Limited
[10:10:49] [Loader Info]          : Loaded CommonCorePlugin by CubeCoders Limited
[10:10:49] [Scheduler Warning]    : Schedule trigger 3528029a-706d-4440-82e4-44556fdf2f55 has a mismatched ID!
[10:10:49] [Core Info]            : Licence Present: AMP Professional Edition
[10:10:49] [FileManager Notice]   : Using keypair with fingerprint 
[10:10:49] [Minecraft Info]       : Modpack cache is up-to-date.
[10:10:49] [FileManager Info]     : SFTP Server started on 0.0.0.0:2224
[10:10:49] [Webserver Info]       : Websockets are enabled.
[10:10:50] [Logger Info]          : RouterTimer@10Hz with 2 jobs started
[10:10:50] [Webserver Info]       : Webserver started on http://127.0.0.1:8081
[10:10:50] [Core Info]            : Checking for AMP updates...
[10:10:50] [Core Info]            : AMP is up to date.
[10:11:04] [Minecraft Warning]    : Unable to get Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock
[10:11:04] [Core Error]           : TaskCanceledException
[10:11:04] [Core Error]           : [0] (TaskCanceledException) : The operation was canceled.
[10:11:04] [Core Error]           :   at MinecraftModule.UpdateManager.GetBedrockVersion () 
[10:11:04] [Core Error]           : ObjectDisposedException
[10:11:04] [Core Error]           : [1] (ObjectDisposedException) : Cannot access a disposed object.
Object name: 'MobileAuthenticatedStream'.
[10:11:04] [Core Error]           :   at Net.Http.HttpConnection.FillAsync () 
  at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed) 
[10:11:04] [Minecraft Info]       : Trying first Bedrock info fallback...
[10:11:09] [Minecraft Warning]    : Unable to get first fallback Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock: Match not found.
[10:11:09] [Minecraft Info]       : Trying second Bedrock info fallback...
[10:11:09] [Minecraft Info]       : Latest Bedrock version: 1.20.71.01
[10:11:40] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[10:11:40] [Core Activity]        : Authentication success
[10:11:45] [API:admin Activity]   : Updating the application.

Steps to reproduce:

Actions taken to resolve so far:

  • server restart
  • declared specific bedrock version (1.20.80.05) in server settings

How to update manually? Location for bedrock server ZIP file needed.

Microsoft hates automatic downloads, so a new workaround was added to the dev branch.

Firstly take a backup. Then:
From the Linux command line, run sudo su -l amp to switch to the amp user.
Run ampinstmgr switch TheInstnaceName01 development (a workaround was added in the dev stream)
From there you should be good to update the server.

Did not work for me. Switched to development branch, did server restart, updated, same error.

I tried to curl the URL from root terminal and got
(92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

curl -v https://www.minecraft.net/en-us/download/server/bedrock
*   Trying 23.48.23.185:443...
* Connected to www.minecraft.net (23.48.23.185) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=*.minecraft.net
*  start date: Jul 28 18:34:44 2023 GMT
*  expire date: Jun 27 23:59:59 2024 GMT
*  subjectAltName: host "www.minecraft.net" matched cert's "*.minecraft.net"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure TLS Issuing CA 02
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d4d846e620)
> GET /en-us/download/server/bedrock HTTP/2
> Host: www.minecraft.net
> user-agent: curl/7.74.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
* HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
* stopped the pause stream!
* Connection #0 to host www.minecraft.net left intact
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

tried http 1.1 and stream is stable

curl -v --http1.1  https://www.minecraft.net/en-us/download/server/bedrock
*   Trying 23.48.23.185:443...
* Connected to www.minecraft.net (23.48.23.185) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=*.minecraft.net
*  start date: Jul 28 18:34:44 2023 GMT
*  expire date: Jun 27 23:59:59 2024 GMT
*  subjectAltName: host "www.minecraft.net" matched cert's "*.minecraft.net"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure TLS Issuing CA 02
*  SSL certificate verify ok.
> GET /en-us/download/server/bedrock HTTP/1.1
> Host: www.minecraft.net
> User-Agent: curl/7.74.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing

maybe some issue with my vps host?!

I need to know how to update manualy. I dropped the bedrock server ZIP (bedrock-server-1.20.80.05.zip) into the instance root but it won’t be recognised. Overwriting the server files will be revoked to old known version.

You would have to unzip it first and upload the bedrock executable for linux. If you’re running into issues with your VPS you would need to contact your host. If you’re using Hostinger, we are not Hostinger support.

I am running my own debian VPServer. No “Hostinger” involved.

I am still not able to manualy update the server instance. Overwriting will lead into an error on start and revoking to 1.20.71.1

[09:43:28] [Minecraft Warning]    : Unable to get Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock
[09:43:28] [Core Error]           : TaskCanceledException
[09:43:28] [Core Error]           : [0] (TaskCanceledException) : The operation was canceled.
[09:43:28] [Core Error]           :   at MinecraftModule.UpdateManager.GetBedrockVersion () 
[09:43:28] [Core Error]           : ObjectDisposedException
[09:43:28] [Core Error]           : [1] (ObjectDisposedException) : Cannot access a disposed object.
Object name: 'MobileAuthenticatedStream'.
[09:43:28] [Core Error]           :   at Net.Http.HttpConnection.FillAsync () 
  at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed) 
[09:43:28] [Minecraft Info]       : Trying first Bedrock info fallback...
[09:43:33] [Minecraft Warning]    : Unable to get first fallback Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock: Match not found.
[09:43:33] [Minecraft Info]       : Trying second Bedrock info fallback...
[09:43:33] [Minecraft Info]       : Latest Bedrock version: 1.20.71.01
[09:43:38] [API:admin Activity]   : Updating the application.

Try disabling docker for that instance if it’s running in docker, docker might be buggering up your manual override. Also make sure that you’re uploading it over SFTP and not as some other Linux user, as that’ll mess up file permissions.
I was able to get mine updating fine after switching it to the development stream.
If you’re unable to get it updated via the dev stream or manually you’ll just have to wait till next wednesday when the changes are merged into mainline.

1 Like

Issue fixed today. Instance in docker mode updated + restarted. Then minecraft server update successful. Should I switch back to stable branch with the instance?

If you feel more comfortable with mainline you should yeah. Usually it’s fine, but if you forget about it you may be confused the next time there are breaking changes pushed to dev.