RC version is failing
caioquirino opened this issue · 8 comments
Hey, thanks for the awesome work! I liked the way you are downloading everything directly and keeping it up-to-date! :)
I have tried to run using the rc version and got the following error:
docker-compose.yml:
➜ cat docker-compose.yml
version: "3.9"
services:
altv:
image: eisengrind/altv-server:rc
ports:
- "7788:7788"
volumes:
- ./server.cfg:/opt/altv/server.cfg
➜ docker-compose up
Pulling altv (eisengrind/altv-server:rc)...
rc: Pulling from eisengrind/altv-server
f7ec5a41d630: Pull complete
df008b936927: Pull complete
00f3446bfa0a: Pull complete
951828b0298a: Pull complete
1d366a381e89: Pull complete
Digest: sha256:0a7a854c4fbb2ebaf5a75e4998f229434fb06f728e574d5d220ad817ab457a9a
Status: Downloaded newer image for eisengrind/altv-server:rc
Recreating altv_br_eu_altv_1 ... done
Attaching to altv_br_eu_altv_1
altv_1 | [13:45:39] alt:V Server 3.0-rc6 (rc)
altv_1 | [13:45:39] Starting Alt:V Server on Docker! on 0.0.0.0:7788
altv_1 | [13:45:39][Error] Failed to load module "/opt/altv/modules/libcsharp-module.so"
altv_1 | Module outdated, module uses SDK v48, server requires SDK v52
altv_1 | [13:45:39] Required server permissions:
altv_1 | [13:45:39] Optional server permissions:
altv_1 | [13:45:39] Starting HTTP server on 0.0.0.0:7788
altv_1 | [13:45:39] Main thread started (ThreadId: 9)
altv_1 | [13:45:39] Colshape thread started (ThreadId: 10)
altv_1 | [13:45:39] EntityStreamer thread started (ThreadId: 18)
altv_1 | [13:45:39] Server started
I'll get into it asap
Thank you @TheMysteriousVincent ! I have tried also with the release and it is also failing.
docker-compose:
version: "3.9"
services:
altv:
image: eisengrind/altv-server:release
ports:
- 7788:7788
environment:
- ALTV_VOICE_SERVER_SECRET=123456789
altv_voice:
image: eisengrind/altv-voice-server:release
ports:
- 7798:7798
- 7799:7799
log:
Creating altv_br_eu_altv_voice_1 ... done
Creating altv_br_eu_altv_1 ... done
Attaching to altv_br_eu_altv_1, altv_br_eu_altv_voice_1
altv_1 | [16:55:21] alt:V Server 2.23 (release)
altv_1 | [16:55:21] Starting Alt:V Server on Docker! on 0.0.0.0:7788
altv_1 | [16:55:21] coreclr-module: version found: 5.0.5
altv_1 | [16:55:21] coreclr-module: version found: 3.1.13
altv_1 | [16:55:21] coreclr-module: greatest version: 5.0.5
altv_1 | [16:55:21] Required server permissions:
altv_1 | [16:55:21] Optional server permissions:
altv_1 | [16:55:21] Starting HTTP server on 0.0.0.0:7788
altv_1 | [16:55:21] Main thread started (ThreadId: 9)
altv_1 | [16:55:21] Colshape thread started (ThreadId: 10)
altv_1 | [16:55:21] EntityStreamer thread started (ThreadId: 23)
altv_1 | [16:55:21] Network thread started (ThreadId: 25)
altv_1 | [16:55:21] Server started
altv_1 | Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
altv_1 | File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
altv_1 |
altv_1 |
altv_1 | /root/entrypoint.sh: line 150: 9 Aborted ./altv-server --config=/opt/altv/server.cfg $ALTV_SERVER_LOG_PATH $ALTV_SERVER_NO_LOGFILE
I think that in the release package, what is failing is that you are building with any dotnet 5.0 but it is requiring the version 5.0.0.
I will open a PR to fix the release branch okay? :)
I think that in the release package, what is failing is that you are building with any dotnet 5.0 but it is requiring the version 5.0.0.
I will open a PR to fix the release branch okay? :)
Besides the fact that this would be another issue, I think we do not have to pin that version specifically.
The reason why the server is not starting is because you forgot to add the ALTV_SERVER_DOTNET_VERSION=5
environment variable.
This enables the .NET 5 module.
Anyway, I see that the .NET 3.1 version is not working correctly, so I have to fix that.
Thank you @TheMysteriousVincent ! Please tell me if I can help you with anything and nice work on these images! Thanks also for replying so quickly.
The libnode
library provided on the alt:V CDN on the rc path is outdated and can not be used for the libjs-module anymore. I'm in contact with the alt:V devs.
Currently, I can not do anything about it.
I'll leave it open until it is resolved.
RC branch is currently not usable. Use the newest dev one instead. There the libnode module is fixed/at the newest version.
Closing this issue 'cause its not related to the Docker image anymore.