Skip to content

dbConnect fails with "Undefined symbol: ZSTD_compressCCtx" after upgrading MTA:SA server #4217

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

Closed
1 task done
Luminaire1337 opened this issue May 10, 2025 · 4 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@Luminaire1337
Copy link

Describe the bug

After upgrading to the newest version of MTA:SA server, I can no longer connect to a MySQL database

Steps to reproduce

  1. Download the newest version of MTA:SA server
  2. Connect to a MySQL database using dbConnect function
  3. Get an error

Version

Server: MTA:SA Server v1.6-release-23183 (Ubuntu 24.04, x64)
Tested on MySQL 9.x and 8.x

Additional context

No response

Relevant log output

[14:36:15] ERROR: Could not load /src/multitheftauto_linux_x64/x64/dbconmy.so - /src/multitheftauto_linux_x64/x64/dbconmy.so: undefined symbol: ZSTD_compressCCtx
[14:36:15] WARNING: mysql/db_server.lua:16: Bad usage @ 'dbConnect' [Could not connect]

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Luminaire1337 Luminaire1337 added the bug Something isn't working label May 10, 2025
@Luminaire1337 Luminaire1337 changed the title Undefined symbol: ZSTD_compressCCtx when using dbConnect with MySQL dbConnect fails with "Undefined symbol: ZSTD_compressCCtx" after upgrading MTA:SA server May 10, 2025
@MrFuji69
Copy link

same error.

@M7mmd97
Copy link

M7mmd97 commented May 11, 2025

same error

@Luminaire1337
Copy link
Author

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libzstd.so.1 ./mta-server64

Preloading the zstd library temporarily resolves this issue. Credits to danny6167 & daisu_ on Discord.

@botder
Copy link
Member

botder commented May 14, 2025

The problem should be gone in the newest nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants