prestonelam2003 / CobaltEssentials

CobaltEssentials for beamMP
GNU General Public License v3.0
28 stars 10 forks source link

core.so error - dependency issue? #14

Closed jladefoged closed 1 year ago

jladefoged commented 1 year ago

I'm running BeamMP server in a docker container (https://github.com/RouHim/beammp-container-image) and trying to use CobaltEssentials. I'm not sure if it's a dependency issue or whats going on. I have one client mod (works fine).

I get the following error:

[21/11/22 13:45:36] [INFO] ALL SYSTEMS STARTED SUCCESSFULLY, EVERYTHING IS OKAY 
Error relocating Resources/Server/CobaltEssentials/socket/core.so: lua_newuserdatauv: symbol not found 
[21/11/22 13:45:31] [LUA ERROR] TriggerLocalEvent: error loading module 'socket.core' from file 'Resources/Server/CobaltEssentials/socket/core.so': 
[21/11/22 13:45:31] [LUA] [Cobalt] CobaltDB Connector Loaded 
[21/11/22 13:45:31] [LUA] [Cobalt] json Lib Loaded 
[21/11/22 13:45:31] [LUA] [Cobalt] Loading CobaltCommands 
[21/11/22 13:45:31] [LUA] [Cobalt] Utils Loaded 
[21/11/22 13:45:31] [LUA] [Cobalt] CobaltEssentials Initiated 
[21/11/22 13:45:31] [LUA] [Cobalt] -------------Loading Cobalt Essentials v1.7.2------------ 
[21/11/22 13:45:31] [LUA]  
[21/11/22 13:45:30] [INFO] PluginMonitor started 
[21/11/22 13:45:30] [INFO] Server up-to-date! 
[21/11/22 13:45:30] [INFO] Vehicle data network online on port 30814 with a Max of 10 Clients 
[21/11/22 13:45:30] [INFO] Vehicle event network online 
[21/11/22 13:45:30] [INFO] Loaded 1 Mods 
[21/11/22 13:45:30] [INFO] Sentry disabled in unofficial build. Automatic error reporting disabled. 
[21/11/22 13:45:30] [INFO] BeamMP Server v3.1.1 
20dka commented 1 year ago

Hey there, the included core.so file was generated on Ubuntu 22.04, i believe this is the cause of incompatibility. Try this one for 20.04: link

related: I'm soon going to release multiple versions of CE, and making luasocket an optional dependency (only RCON uses it)

jladefoged commented 1 year ago

Look like it's working. The core.so error is gone and I get a lot of other errors which is properly related to CE not being configured yet.

jladefoged commented 1 year ago

I think this issue is solved in version 1.7.3 as it does no longer include the /socket/core.so file?

20dka commented 1 year ago

It should be, please confirm if you can

jladefoged commented 1 year ago

Works like a charm :+1:

jladefoged commented 1 year ago

Closing issue