#SA-MP Linux Error

95 messages · Page 1 of 1 (latest)

red urchin
#

The issue I'm facing is related to this: while we can compile and run this game mode smoothly on our Windows server, we're experiencing problems and crashes after transitioning to our Linux server, even though we've converted the plugins to .so format. Does anyone have any ideas on how we can solve this?

peak lily
#

are u using -d3?

red urchin
#

yes

peak lily
red urchin
peak lily
#

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

red urchin
#

When I look at the logs there, it's logging based on the directories on my Windows setup.

peak lily
#

ive had a similar error and it was a mysql error that i did

peak lily
red urchin
#

of course, can you please wait for a moment?

peak lily
#

np

red urchin
#

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 114210] [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)

peak lily
#

If its on windows maybe u are opening the wrong thing 😹

red urchin
#

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'?

peak lily
#

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"

red urchin
#

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.

peak lily
#

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

red urchin
peak lily
#

could be that u uploaded the old logs inside linux and thats why it has windows pathes in it

red urchin
peak lily
#

Hmm, weird

#

Did the discord-connector log had something?

red urchin
#

After the crash, log-core only recorded this error: '[07/11/23 115942] [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.

red urchin
peak lily
#

Try debugging / reverting previous changes to see what u did and fix it

red urchin
#

yes ur right but discord-connector didn't create any files.

idle cosmos
#

YSF and YSF_DL?

#

interesting you are loading essentially the same plugin twice?

red urchin
idle cosmos
#

available?

red urchin
idle cosmos
#

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

red urchin
#

Do you want me to try with just YSF_DL?

idle cosmos
#

I know YSF (non dl) and (raknet) work fine together, cause I run them together with SKY

#

yes

red urchin
#

What do you say about the things we talked about above, like Windows file directory, etc.?

idle cosmos
#

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

red urchin
idle cosmos
#

Yes, that is what I am saying

red urchin
#

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.

idle cosmos
#

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.

red urchin
#

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.

idle cosmos
#

you could try loading YSF before raknet

#

or load it after Raknet, so it hooks Raknet last making it the first to process it

red urchin
idle cosmos
#

where was it in the list before?

#

was it before or after raknet before?

red urchin
#

nothing has changed.

#

only YSF removed.

idle cosmos
#

so move it to before Raknet then

#

alright ,well try with it removed then for now

red urchin
#

YSF_DL before or after? i didnt fully understand, i apologize

idle cosmos
#

wait did you remove both YSF and YSF_DL? or just the one?

red urchin
#

No, only YSF was deleted, YSF_DL is still active.

idle cosmos
#

Okay, so have you tried since removing YSF?

red urchin
#

No

idle cosmos
#

alright, well that would be the first thing to do now and test

red urchin
#

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?

idle cosmos
#

if you don't make use of it, then don't load it

red urchin
#

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.

idle cosmos
#

I would assume your db query didn't run

red urchin
#

BTW, thank you so much..

red urchin
#

@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?

idle cosmos
#

does your db actually have tables/data in them?

red urchin
#

yes

idle cosmos
#

check your mysql plugin logs

red urchin
#

[07/11/23 122901] [plugins/mysql] cache_get_value_name_int: value 'NULL' is not a number (callbacks.pwn:271)
[07/11/23 122901] [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?

idle cosmos
#

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

red urchin
#

However, when on Windows, these issues could be overlooked, and the server was functioning properly.

idle cosmos
#

sure, but you shouldn't ever ignore errors

red urchin
#

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.

idle cosmos
#

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

red urchin
#

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.

idle cosmos
#

why don't you debug and work out what isn't being called?

red urchin
#

I'm actually going to check that now, I just continued chatting with you to avoid being disrespectful.

idle cosmos
#

no worries lol

red urchin
#

BTW, I'd like to thank you once again. I think my job will be even easier from now on.

idle cosmos
#

👍