#SA-MP Linux Error
95 messages · Page 1 of 1 (latest)
are u using -d3?
yes
are u using any log-cores plugin?
yes discord-connector + mysql
if so try to see inside logs/ folder
sometimes when server crashes without a reason, the main error can be inside of logs folder and you will only see the linux error if you have the terminal open
When I look at the logs there, it's logging based on the directories on my Windows setup.
ive had a similar error and it was a mysql error that i did
open them and remove everything, leave it blank, and try to set up again to "regenerate" the error
of course, can you please wait for a moment?
np
I haven't encountered any crash situations yet, but there's something that caught my attention. Why is there a directory related to Windows present here, even though I'm on Linux? @peak lily
[07/11/23 11
10] [plugins/mysql] error #1146 while executing query "SELECT * FROM streets": Table 'depa.streets' doesn't exist (C:\Users\Administrator\Desktop\test-server\gamemodes\depa.pwn:132 -> C:\Users\Administrator\Desktop\test-server\pawno\include\PreviewModel.inc:811)
Good question, but that could be one of the main errors, create that table on linux or windows idk
If its on windows maybe u are opening the wrong thing 😹
I didn't fully understand what you meant, but it's evident that you said something jokingly. What am I supposed to understand from your statement, 'Create that table on Linux or Windows'?
Create the table on both platforms, i dont know why either the reason the log-core is getting your windows path, thats why i sai:d "If its on windows maybe u are opening the wrong thing"
To be honest, I have previously opened a server with this game mode and never encountered such a problem, and I don't know why I'm experiencing this problem now.
I've never saw that too about opening a linux server and getting windows path
I do think you're opening samp-server.exe instead of samp03svr
How can I open .exe files on Linux without Wine? I already use the 'nohup ./samp03svr &' command when running it.
Oh maybe seeing this i just saw the hour
could be that u uploaded the old logs inside linux and thats why it has windows pathes in it
nvm nvm
"To be honest, I don't think that's the case either because all I did was transfer all the files, install SQL, establish the SQL connection, and then perform the transfer of the updated .amx file via FTP to open the server. Previously, this game mode was working smoothly on Linux."
After the crash, log-core only recorded this error: '[07/11/23 11
42] [log-core] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0).' The previous errors were irrelevant as they occurred while the server was running.
discord-connector didn't provide any logs.
As its log-core error its something related to MySQL / DCC
Try debugging / reverting previous changes to see what u did and fix it
yes ur right but discord-connector didn't create any files.
available
available?
The plain YSF plugin is not working, it only accepts YSF_DL because I am using DL. YSF automatically shuts itself down.
seems like YSF is the problem here, it expect one thing but got somethign else
well don't load it at all
just load the DL version then or the working version
Do you want me to try with just YSF_DL?
I know YSF (non dl) and (raknet) work fine together, cause I run them together with SKY
yes
What do you say about the things we talked about above, like Windows file directory, etc.?
Click here.
so when you build with -d3 it stores extra information about the build itself
so you clearly built it on Windows, so it will store the path at which you built it from
I'm already compiling through Windows, and the pawn.cfg contains the -d3 parameter.
Yes, that is what I am saying
When I compile on Windows, there are no issues at all, but when I compile on Linux, there are numerous errors and it doesn't get compiled.
all of that information is information that was stored with the .amx file when you built it on Windows, that information is available to crashdetect which is why you are seeing Windows paths on linux here
that is probably an issue with your setup
there is no problem compiling on Windows and running on Linux.
I just checked, the YSF include is already commented out in the game mode. Now I'll remove it from the plugin section. I will test it that way.
you could try loading YSF before raknet
or load it after Raknet, so it hooks Raknet last making it the first to process it
It looks correct?
it was the same
nothing has changed.
only YSF removed.
YSF_DL before or after? i didnt fully understand, i apologize
wait did you remove both YSF and YSF_DL? or just the one?
No, only YSF was deleted, YSF_DL is still active.
Okay, so have you tried since removing YSF?
No
alright, well that would be the first thing to do now and test
Actually, I'm thinking that there is no place where YSF is used in the game mode, wouldn't it be more reasonable to remove it directly?
if you don't make use of it, then don't load it
OK. gimme a sec
Bullshit. It's really strange, I was able to enter the game, but normally in the game mode, it should ask me for a password or something. Why is it not asking? I don't have this issue on Windows, but I have this issue on Linux.
I would assume your db query didn't run
BTW, thank you so much..
After making sure, I can return.
@idle cosmos There are no issues with the queries, and the connection to the database is established, but it's not returning any results. What could be the reason for this?
does your db actually have tables/data in them?
yes
check your mysql plugin logs
[07/11/23 12
01] [plugins/mysql] cache_get_value_name_int: value 'NULL' is not a number (callbacks.pwn:271)
[07/11/23 12
01] [plugins/mysql] cache_get_value_name_int: value 'NULL' is not a number (callbacks.pwn:271)
After connecting to the database, while loading the server, it already prints messages saying 'MYSQL connection established' and indicating the number of streets and ATMs. Do these cause any issues?
well you should fix those errors
if your table column value should not be null, then you should of given the table column a valid default value
if it should be null, then you need to check if it's null before getting the value
However, when on Windows, these issues could be overlooked, and the server was functioning properly.
sure, but you shouldn't ever ignore errors
You're right, while this can be overlooked in Windows, why isn't it overlooked in Linux? Instead of prompting for a password, it should bring up the game.
I doubt this is related to your issue. I am talking about in general. Like if you have errors, you are more or likely to expirence unexpected behaviour through the lifecycle of your application. So it's best to make sure you fix them
Yes, you're absolutely right. I will resolve these issues. It just seems strange to me that something that works in Windows doesn't work in Linux. What's even stranger is that I had opened the exact same game mode before without encountering these kinds of errors.
why don't you debug and work out what isn't being called?
I'm actually going to check that now, I just continued chatting with you to avoid being disrespectful.
no worries lol
BTW, I'd like to thank you once again. I think my job will be even easier from now on.
👍