aph-le / home-assistant-addons

Home Assistant Minecraft Server Addons - Run your Minecraft Server with hassio.
MIT License
4 stars 2 forks source link

./run: line 103: ./bedrock-server-1.20.81.01: cannot execute binary file: Exec format error #20

Open ViperRNMC opened 6 months ago

ViperRNMC commented 6 months ago

Hi, try to install mc server on my blue (aarch64), but get this error.


 Add-on: HA Spawn Point Bedrock
 Minecraft Server Addon Bedrock Edition
-----------------------------------------------------------
 Add-on version: 2024.1.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.2  (aarch64 / odroid-n2)
 Home Assistant Core: 2024.5.5
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[09:33:23] INFO: Configuring timezone (Europe/Amsterdam)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun ha-spawn-point-bedrock (no readiness notification)
s6-rc: info: service legacy-services successfully started
Download URL 'https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.81.01.zip'
Download bedrock-server-1.20.81.01.zip started ... please wait
Removing old version
Installing new version
Create Bedrock Server Configuration
Update allow-list with allow_list in ./server.properties
Update default-player-permission-level with default_player_permission_level in ./server.properties
Update difficulty with difficulty in ./server.properties
Update gamemode with gamemode in ./server.properties
Update level-name with level_name in ./server.properties
Config: update server entry: level-name = Spawn Point Bedrock
Update max-players with max_players in ./server.properties
Update server-name with server_name in ./server.properties
Config: update server entry: server-name = Spawn Point Bedrock Server
Creating allow List
Use Allow User List: False
Creating permission List
Update User Permissions
Starting Bedrock Server
./run: line 103: ./bedrock-server-1.20.81.01: cannot execute binary file: Exec format error
[09:34:38] WARNING: Halt add-on with exit code 126
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped```
apbarratt commented 4 months ago

Experiencing the same issue here, also on aarch64 but on a Raspberry Pi 5:

s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: HA Spawn Point Bedrock
 Minecraft Server Addon Bedrock Edition
-----------------------------------------------------------
 Add-on version: 2024.1.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.4  (aarch64 / raspberrypi5-64)
 Home Assistant Core: 2024.7.1
 Home Assistant Supervisor: 2024.06.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[22:49:54] INFO: Configuring timezone (Europe/London)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun ha-spawn-point-bedrock (no readiness notification)
s6-rc: info: service legacy-services successfully started
Download URL 'https://minecraft.azureedge.net/bin-linux/bedrock-server-1.21.1.03.zip'
bedrock-server-1.21.1.03.zip already downloaded
bedrock-server-1.21.1.03.zip already Installed
Create Bedrock Server Configuration
Update allow-list with allow_list in ./server.properties
Update default-player-permission-level with default_player_permission_level in ./server.properties
Update difficulty with difficulty in ./server.properties
Update enable-lan-visibility with enable_lan_visibility in ./server.properties
Update gamemode with gamemode in ./server.properties
Update level-name with level_name in ./server.properties
Update max-players with max_players in ./server.properties
Update online-mode with online_mode in ./server.properties
Update server-name with server_name in ./server.properties
Creating allow List
Use Allow User List: False
Creating permission List
No Permission Update needed
Starting Bedrock Server
./run: line 103: ./bedrock-server-1.21.1.03: cannot execute binary file: Exec format error
[22:49:57] WARNING: Halt add-on with exit code 126
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
apbarratt commented 4 months ago

Looking at the code, it would appear that this one is using the official minecraft binaries, which would appear not to be aarm64 compatible. I assume this is why the WilliamCorsel addons use the itzg images, for now we'll have to stick with those, despite seeming to fail to pass through the environment variables properly for some reason :/