Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong ELF class: ELFCLASS64 #192

Open
Goosegit11 opened this issue Feb 12, 2025 · 6 comments
Open

wrong ELF class: ELFCLASS64 #192

Goosegit11 opened this issue Feb 12, 2025 · 6 comments

Comments

@Goosegit11
Copy link

failed to dlopen /home/tf2/server/tf/addons/metamod/bin/linux64/server.so error=/home/tf2/server/tf/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
Unable to load plugin "addons/metamod/bin/linux64/server"

using tf2-mge image

@Goosegit11
Copy link
Author

Goosegit11 commented Feb 12, 2025

tf2 | magnitude of 'Cn' or increase the magnitude of 'An'. For example,
tf2 | try 'C-0.001' instead of 'C-0.1' or 'A-0.999' instead of 'A-0.9'.
tf2 | L 02/12/2025 - 05:46:11: [sbpp_main.smx] Database failure: Could not find Database conf "sourcebans". See Docs: https://sbpp.github.io/docs/
tf2 | L 02/12/2025 - 05:46:11: [SM] Exception reported: Database failure: Could not find Database conf "sourcebans"
tf2 | L 02/12/2025 - 05:46:11: [SM] Blaming: sbpp_main.smx
tf2 | L 02/12/2025 - 05:46:11: [SM] Call stack trace:
tf2 | L 02/12/2025 - 05:46:11: [SM] [0] SetFailState
tf2 | L 02/12/2025 - 05:46:11: [SM] [1] Line 216, sbpp_main.sp::OnPluginStart
tf2 | L 02/12/2025 - 05:46:11: [SM] Unable to load plugin "sbpp_main.smx": Error detected in plugin startup (see error logs)
tf2 | L 02/12/2025 - 05:46:11: [SM] Exception reported: Database failure: could not find database config: sourcebans
tf2 | L 02/12/2025 - 05:46:11: [SM] Blaming: sbpp_comms.smx
tf2 | L 02/12/2025 - 05:46:11: [SM] Call stack trace:
tf2 | L 02/12/2025 - 05:46:11: [SM] [0] SetFailState
tf2 | L 02/12/2025 - 05:46:11: [SM] [1] Line 219, sbpp_comms.sp::OnPluginStart
tf2 | L 02/12/2025 - 05:46:11: [SM] Unable to load plugin "sbpp_comms.smx": Error detected in plugin startup (see error logs)
tf2 | L 02/12/2025 - 05:46:11: [SM] Unable to load plugin "sbpp_report.smx": Could not find required plugin "sourcebans++"

and it seems server works but running vanilla with cp_badlands.

@garrappachc
Copy link
Member

You're running 32-bit version of the TF2 server. Loading 64-bit extensions will always fail. This message is expected, it's not an error, since the 32-bit version of the metamod is loaded successfully.

@Goosegit11
Copy link
Author

Goosegit11 commented Feb 12, 2025

but it's a premade image for the tf2-mge plugin, I haven't changed anything
Why is it trying to use 64-bit plugins with a 32-bit server?

@garrappachc
Copy link
Member

The 64-bit metamod build comes with the metamod extension, they bundle both 32-bit and 64-bit builds. Server loads the 32-bit version and complains about the 64-bit one, but it doesn't harm it in any way.

@garrappachc
Copy link
Member

But you're right, I can get rid of the incompatible binary just to silence the error. It may be confusing.

@Goosegit11
Copy link
Author

Goosegit11 commented Feb 12, 2025

Turns out I had some map configuration issues going on, that's why my server couldn't start properly

Yeah and it's not the only one, there's a couple of errors showing in the console but everything works flawlessly!

Thanks for an explanation :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants