• tmysql is not working or connecting
    18 replies, posted
Hello Facepunch I am having the following problem I have bought Gban from scriptfodder ( link : [url]https://scriptfodder.com/scripts/view/1647[/url] ) And i have contacted the provider of the script and the lua creator of the script and they cant seem to figure out what is going wrong I have the following server os : Debian 8 I have installed the dll file inside /lua/bin/gmsv_tmysql_linux, i have used mysqloo for a long time but wanted to change i have personaly contacted the creator and he suggested said creating a thread :) They said i dindt need to have a includes/modules/tmysql4.lua The error i am getting from tmysql : [CODE] Couldn't include file 'includes/modules/tmysql4.lua' (File not found) (@addons/gban/lua/gban/server/sv_wrapper.lua (line 16)) [ERROR] addons/gban/lua/gban/server/sv_wrapper.lua:16: Module not found! 1. require - [C]:-1 2. unknown - addons/gban/lua/gban/server/sv_wrapper.lua:16 3. include - [C]:-1 4. AddDirectory - addons/gban/lua/gban/init.lua:28 5. unknown - addons/gban/lua/gban/init.lua:46 6. include - [C]:-1 7. unknown - addons/gban/lua/autorun/gban.lua:12 And [ERROR] addons/gban/lua/gban/server/sv_core.lua:69: attempt to index field 'Database' (a nil value) 1. fn - addons/gban/lua/gban/server/sv_core.lua:69 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179 [ERROR] addons/gban/lua/gban/server/sv_core.lua:69: attempt to index field 'Database' (a nil value) 1. fn - addons/gban/lua/gban/server/sv_core.lua:69 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179 [/CODE] I hope u guys can help me around :D
it should be gmsv_tmysql4_linux.dll, have you downloaded the correct module?
Download the latest version from here: [url]https://facepunch.com/showthread.php?t=1442438[/url]
I am sorry i have the correct module and the latest version. What now? edit after renaming it to the right one ( missed the 4 ) i get this error [CODE][ERROR] addons/gban/lua/gban/server/sv_wrapper.lua:16: Couldn't load module library! 1. require - [C]:-1 2. unknown - addons/gban/lua/gban/server/sv_wrapper.lua:16 3. include - [C]:-1 4. AddDirectory - addons/gban/lua/gban/init.lua:28 5. unknown - addons/gban/lua/gban/init.lua:46 6. include - [C]:-1 7. unknown - addons/gban/lua/autorun/gban.lua:12 [ERROR] addons/gban/lua/gban/server/sv_wrapper.lua:16: Couldn't load module library! 1. require - [C]:-1 2. unknown - addons/gban/lua/gban/server/sv_wrapper.lua:16 3. include - [C]:-1 4. AddDirectory - addons/gban/lua/gban/init.lua:28 5. unknown - addons/gban/lua/gban/init.lua:46 6. include - [C]:-1 7. unknown - addons/gban/lua/autorun/gban.lua:12 [/CODE]
You're running a linux server correct? Run your server like this and it should output a more detailed error. [code]LD_LIBRARY_PATH=garrysmod/bin:bin:. LD_DEBUG=libs ./srcds_linux -game garrysmod +map gm_construct[/code]
I had this same problem yesterday. First run ldd on the file to make you have all the dependencies. [CODE]ldd gmsv_tmysql4_linux.dll[/CODE] If that's fine check that you have GLIBCXX_3.4.21: [CODE]strings /usr/lib/i386-linux-gnu/libstdc++.so.6 | grep GLIBCXX[/CODE] If steam's using a different libstdc++, check that one instead!
[QUOTE=BlackAwps;48961821]You're running a linux server correct? Run your server like this and it should output a more detailed error. [code]LD_LIBRARY_PATH=garrysmod/bin:bin:. LD_DEBUG=libs ./srcds_linux -game garrysmod +map gm_construct[/code][/QUOTE] Pastebin of server boot : [url]http://pastebin.com/gk20n7Xz[/url] [editline]23rd October 2015[/editline] [QUOTE=bloxgate;48962282]I had this same problem yesterday. First run ldd on the file to make you have all the dependencies. [CODE]ldd gmsv_tmysql4_linux.dll[/CODE] If that's fine check that you have GLIBCXX_3.4.21: [CODE]strings /usr/lib/i386-linux-gnu/libstdc++.so.6 | grep GLIBCXX[/CODE] If steam's using a different libstdc++, check that one instead![/QUOTE] Seems like i am missing : GLIBCXX_3.4.21 [CODE]/home/yannick/ttt/garrysmod/lua/bin# ldd gmsv_tmysql4_linux.dll ./gmsv_tmysql4_linux.dll: /usr/lib32/libstdc++.so.6: version `GLIBCXX_3.4.21' no t found (required by ./gmsv_tmysql4_linux.dll) linux-gate.so.1 (0xebd75000) libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xeb87b000) libm.so.6 => /lib32/libm.so.6 (0xeb835000) libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xeb818000) libc.so.6 => /lib32/libc.so.6 (0xeb66e000) /lib/ld-linux.so.2 (0xebd76000) [/CODE]
Mind trying this build? [url]https://github.com/blackawps/gm_tmysql4/raw/master/lib/linux/libgm_tmysql4.so[/url] Just rename it to gmsv_tmysql4_linux.dll I compiled it on Ubuntu 12.04 so the glib version should be old enough that your server will be able to run it.
[QUOTE=BlackAwps;48967819]Mind trying this build? [url]https://github.com/blackawps/gm_tmysql4/raw/master/lib/linux/libgm_tmysql4.so[/url] Just rename it to gmsv_tmysql4_linux.dll I compiled it on Ubuntu 12.04 so the glib version should be old enough that your server will be able to run it.[/QUOTE] I wanna thank you for all your responses , but that dind't help ._. I realy dont know what is going on.
You said you were on Debian 8, and that's what I was using to build the module originally. Have you updated it recently? I don't know what else to tell you.
[QUOTE=BlackAwps;48968827]You said you were on Debian 8, and that's what I was using to build the module originally. Have you updated it recently? I don't know what else to tell you.[/QUOTE] I haven't tried the module but in my Debian 8 installation, /usr/lib32/libstdc++.so.6 points to /usr/lib32/libstdc++.so.6.0.20 which goes up to GLIBCXX_3.4.20. Ubuntu doesn't look like it does any better until 15.10.
You know what. I think I know the issue. I'm using the latest libmysqlclient and it might have been compiled with a more recent glib and since I'm statically linking it, its causing the issues. I'll investigate and tinker with using an older version of libmysqlclient.
Install gcc-5 if possible and then you should have GLIBCXX_3.4.21, then just make sure gmod is using the right libstdc++ (my server was using a different one at first).
[QUOTE=bloxgate;48974167]Install gcc-5 if possible and then you should have GLIBCXX_3.4.21, then just make sure gmod is using the right libstdc++ (my server was using a different one at first).[/QUOTE] It not not on the stable branch thus it is a bit harder to get it to install. By chance do you remember how you got it installed?
mysqloo is working for me what i find weird ._. Still looking for help :)
Okay okay so. I just compiled the module with Debian Wheezy 7. I checked the strings on it and it will need GLIBCXX_3.4.11 which should definitely be old enough. [url]https://github.com/blackawps/gm_tmysql4/raw/master/lib/linux/libgm_tmysql4.so[/url] Rename it to gmsv_tmysql4_linux.dll and please tell me if it works. I really really think I fixed the issue once and for all, but I could be wrong.
[QUOTE=BlackAwps;48987862]Okay okay so. I just compiled the module with Debian Wheezy 7. I checked the strings on it and it will need GLIBCXX_3.4.11 which should definitely be old enough. [url]https://github.com/blackawps/gm_tmysql4/raw/master/lib/linux/libgm_tmysql4.so[/url] Rename it to gmsv_tmysq4_linux.dll and please tell me if it works. I really really think I fixed the issue once and for all, but I could be wrong.[/QUOTE] Seemed to be a working one . Thanks but it still giving me this error : [CODE] /home/yannick/testserver/garrysmod/lua/bin# ldd gmsv_tmysq4_linux.dll linux-gate.so.1 (0xe078c000) libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xe028c000) libm.so.6 => /lib32/libm.so.6 (0xe0246000) libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xe0229000) libc.so.6 => /lib32/libc.so.6 (0xe007e000) /lib/ld-linux.so.2 (0xe078d000) [/CODE] [CODE] [ERROR] addons/gban/lua/gban/server/sv_wrapper.lua:16: Module not found! 1. require - [C]:-1 2. unknown - addons/gban/lua/gban/server/sv_wrapper.lua:16 3. include - [C]:-1 4. AddDirectory - addons/gban/lua/gban/init.lua:28 5. unknown - addons/gban/lua/gban/init.lua:46 6. include - [C]:-1 7. unknown - addons/gban/lua/autorun/gban.lua:12 [/CODE]
[QUOTE=Yannnick;49002458]Seemed to be a working one . Thanks but it still giving me this error : [CODE] /home/yannick/testserver/garrysmod/lua/bin# ldd gmsv_tmysq4_linux.dll linux-gate.so.1 (0xe078c000) libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xe028c000) libm.so.6 => /lib32/libm.so.6 (0xe0246000) libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xe0229000) libc.so.6 => /lib32/libc.so.6 (0xe007e000) /lib/ld-linux.so.2 (0xe078d000) [/CODE] [CODE] [ERROR] addons/gban/lua/gban/server/sv_wrapper.lua:16: Module not found! 1. require - [C]:-1 2. unknown - addons/gban/lua/gban/server/sv_wrapper.lua:16 3. include - [C]:-1 4. AddDirectory - addons/gban/lua/gban/init.lua:28 5. unknown - addons/gban/lua/gban/init.lua:46 6. include - [C]:-1 7. unknown - addons/gban/lua/autorun/gban.lua:12 [/CODE][/QUOTE] [quote] gmsv_tmysq4_linux.dll [/quote] Shouldn't that be gmsv_tmysql4_linux.dll? Andreblue I'm on Ubuntu, not Debian, so I was just able to add the toolchain test build repository and get gcc-5 that way. Not sure how you'd do it on Debian, though you don't need it anymore.
Hi, I have exactly the same problem. But tmysql4 that you gave here doesn't work for me. Could you please help me ?
Sorry, you need to Log In to post a reply to this thread.