Problems when running Windows developed script on a Linux server.
#1

Hi SA-MP people.

I've recently been trying to get a server up and running using Ubuntu as a platform. I've downloaded 32bit libraries to support it's execution, and have pulled the latest Linux server files down from the SA-MP site.

At the moment I only have the windows files on my desktop which I use for development. It includes all of the plugins. What I'm now trying to do is move the game-mode and the corresponding files onto the server and run it on a Linux platform.

When ran on the local Windows box I can see the IRC bots joining into the IRC network, and the server process stays running without issue. However, although I've put the equivalent .so plugins into the plugins folder and altered the server.cfg, the server just doesn't want to run correctly. I've started the server in the background, it prints out that the server has started with 100 players port 7777, but then when I monitor the IRC network the bots don't seem to join. All the correct executables for Linux are present.

Now the IRC network is hosted remotely from the server and my own host, therefore the details for the network in the script are static. Database is localhost, and located on the server, so that shouldn't cause any issues. I'm unsure where my problem lies - and without a GUI I can't see an easy way of diagnosing it like you would be able to with the server cmd window in any Windows OS.

Anyone care to shed some light? All plugins are the latest versions and it's being ran on Ubuntu 12.04 x64. Anything else Linux specific that I may be missing?
Reply
#2

On Linux without a GUI(most people use this that are running legitimate servers), you just need to view the server log(server_log.txt). You can view it without downloading it from the server itself if you use a CLI text editor (vim, nano, etc.). I find nano the most intuitive - you can install it with 'apt-get install nano' and use it to view the server log with 'nano server_log.txt'.
Reply
#3

Quote:
Originally Posted by rymax99
Посмотреть сообщение
On Linux without a GUI(most people use this that are running legitimate servers), you just need to view the server log(server_log.txt). You can view it without downloading it from the server itself if you use a CLI text editor (vim, nano, etc.). I find nano the most intuitive - you can install it with 'apt-get install nano' and use it to view the server log with 'nano server_log.txt'.
Thanks Rymax.

Funnily enough it literally sprung to mind the second I finished the post. I've resolved a few of the errors and will post the outstanding ones into this thread once collated. Just need to ensure permissions aren't the cause.
Reply
#4

Further information:

I've applied recursive permissions to all directories for the user running it, and have also tried running it as root. Here are the errors I'm encountering (and yes, both the game-mode current.amx is present, as well as sscanf.so). I've listed all plugins in the server.cfg file with the .so appended on, but have left the .amx off the end of the game-mode.

Код:
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team


[06:10:40] 
[06:10:40] Server Plugins
[06:10:40] --------------
[06:10:40]  Loading plugin: irc.so
[06:10:40] 


*** IRC Plugin v1.4.5 by Incognito loaded ***


[06:10:40]   Loaded.
[06:10:40]  Loading plugin: crashdetect.so
[06:10:40]   CrashDetect v4.14 is OK.
[06:10:40]   Loaded.
[06:10:40]  Loading plugin: streamer.so
[06:10:40]   Loaded.
[06:10:40]  Loading plugin: sccanf.so
[06:10:40]   Failed (plugins/sccanf.so: cannot
open shared object file: No such file or directory)
[06:10:40]  Loading plugin: mysql.so
[06:10:40]   Failed (libmysqlclient_r.so.16:
cannot open shared object file: No such file or directory)
[06:10:40]  Loading plugin: Whirlpool.so
[06:10:40]   Failed (plugins/Whirlpool.so: wrong
ELF class: ELFCLASS64)
[06:10:40]  Loaded 3 plugins.


[06:10:40] 
[06:10:40] Ban list
[06:10:40] --------
[06:10:40]  Loaded: samp.ban
[06:10:40] 
[06:10:40] 
[06:10:40] Filterscripts
[06:10:40] ---------------
[06:10:40]   Loading filterscript 'debug.amx'...
[06:10:40]   Unable to load filterscript
'debug.amx'.
[06:10:40]   Loading filterscript
'divabot.amx'...
[06:10:40] 
--------------------------------------
[06:10:40] VanillaBot
[06:10:40]
--------------------------------------


[06:10:40]   Loaded 1 filterscripts.


[06:10:40] *** Streamer Plugin: Warning: Include
file version (0x26105) does not match plugin version (0x27301)
(script might need to be recompiled with the latest include file)
[06:10:40] [debug] Run time error 19: "File
or function is not found"
[06:10:40] [debug]  SSCANF_Init
[06:10:40] [debug]  SSCANF_Join
[06:10:40] [debug]  SSCANF_Leave
[06:10:40] [debug]  mysql_query
[06:10:40] [debug]  mysql_store_result
[06:10:40] [debug]  mysql_num_rows
[06:10:40] [debug]  mysql_fetch_row_format
[06:10:40] [debug]  sscanf
[06:10:40] [debug]  mysql_free_result
[06:10:40] [debug]  mysql_fetch_int
[06:10:40] [debug]  mysql_real_escape_string
[06:10:40] [debug]  mysql_close
[06:10:40] [debug]  WP_Hash
[06:10:40] [debug]  mysql_retrieve_row
[06:10:40] [debug]  mysql_fetch_field_row
[06:10:40] [debug]  mysql_connect
[06:10:40] [debug]  mysql_debug
[06:10:40] [debug]  mysql_insert_id
[06:10:40] [debug]  mysql_affected_rows
[06:10:40] [debug] Run time error 19: "File
or function is not found"
[06:10:40] [debug]  SSCANF_Init
[06:10:40] [debug]  SSCANF_Join
[06:10:40] [debug]  SSCANF_Leave
[06:10:40] [debug]  mysql_query
[06:10:40] [debug]  mysql_store_result
[06:10:40] [debug]  mysql_num_rows
[06:10:40] [debug]  mysql_fetch_row_format
[06:10:40] [debug]  sscanf
[06:10:40] [debug]  mysql_free_result
[06:10:40] [debug]  mysql_fetch_int
[06:10:40] [debug]  mysql_real_escape_string
[06:10:40] [debug]  mysql_close
[06:10:40] [debug]  WP_Hash
[06:10:40] [debug]  mysql_retrieve_row
[06:10:40] [debug]  mysql_fetch_field_row
[06:10:40] [debug]  mysql_connect
[06:10:40] [debug]  mysql_debug
[06:10:40] [debug]  mysql_insert_id
[06:10:40] [debug]  mysql_affected_rows
[06:10:40] Script[gamemodes/current.amx]: Run
time error 19: "File or function is not found"
[06:10:40] Number of vehicle models: 0
[06:10:54] --- Server Shutting Down.
[06:10:54] [debug] Run time error 19: "File
or function is not found"
[06:10:54] [debug]  SSCANF_Init
[06:10:54] [debug]  SSCANF_Join
[06:10:54] [debug]  SSCANF_Leave
[06:10:54] [debug]  mysql_query
[06:10:54] [debug]  mysql_store_result
[06:10:54] [debug]  mysql_num_rows
[06:10:54] [debug]  mysql_fetch_row_format
[06:10:54] [debug]  sscanf
[06:10:54] [debug]  mysql_free_result
[06:10:54] [debug]  mysql_fetch_int
[06:10:54] [debug]  mysql_real_escape_string
[06:10:54] [debug]  mysql_close
[06:10:54] [debug]  WP_Hash
[06:10:54] [debug]  mysql_retrieve_row
[06:10:54] [debug]  mysql_fetch_field_row
[06:10:54] [debug]  mysql_connect
[06:10:54] [debug]  mysql_debug
[06:10:54] [debug]  mysql_insert_id
[06:10:54] [debug]  mysql_affected_rows
[06:10:54] 


*** IRC Plugin v1.4.5 by Incognito unloaded ***


[06:10:54] 

*** Streamer Plugin v2.7.3 by Incognito unloaded
***
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)