Error coming while running on linux server
#1

Guys, so i am a newbie scripter, i have scripted the sfcnr server, and it's an mysql server, everything is working fine on windows server, the mysql database is loaded and CnR gamemode as well loaded successfully, see this server_log
(NOTE: This is windows server_log)

Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[10:06:12] 
[10:06:12] Server Plugins
[10:06:12] --------------
[10:06:12]  Loading plugin: crashdetect
[10:06:12]   crashdetect v4.8.5 is OK.
[10:06:12]   Loaded.
[10:06:12]  Loading plugin: streamer
[10:06:12] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[10:06:12]   Loaded.
[10:06:12]  Loading plugin: sscanf
[10:06:12] 

[10:06:12]  ===============================

[10:06:12]       sscanf plugin loaded.     

[10:06:12]          Version:  2.8.1        

[10:06:12]    © 2012 Alex "******" Cole  

[10:06:12]  ===============================

[10:06:12]   Loaded.
[10:06:12]  Loading plugin: CTime
[10:06:12]   Failed.
[10:06:12]  Loading plugin: Whirlpool
[10:06:12]  
[10:06:12]  ==================
[10:06:12]  
[10:06:12]   Whirlpool loaded
[10:06:12]  
[10:06:12]  ==================
[10:06:12]  
[10:06:12]   Loaded.
[10:06:12]  Loading plugin: FileManager
[10:06:12] ******************
[10:06:12] ** FILE MANAGER **
[10:06:12] **    Loaded    **
[10:06:12] ** Version 1.5 **
[10:06:12] ******************
[10:06:12]   Loaded.
[10:06:12]  Loading plugin: dns
[10:06:12] 

*** DNS Plugin v2.4 by Incognito loaded ***

[10:06:12]   Loaded.
[10:06:12]  Loading plugin: irc
[10:06:12] 

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

[10:06:12]   Loaded.
[10:06:12]  Loading plugin: socket
[10:06:12]   Failed.
[10:06:12]  Loading plugin: nativechecker
[10:06:12]   Loaded.
[10:06:12]  Loading plugin: mysql
[10:06:12]  SA:MP MySQL Plugin v2.1.1 Loaded.
[10:06:12]   Loaded.
[10:06:12]  Loaded 9 plugins.

[10:06:12] [MySQL] Thread running. Threadsafe: Yes.
[10:06:12] 
[10:06:12] Filterscripts
[10:06:12] ---------------
[10:06:12]   Loading filterscript 'fps.amx'...
[10:06:12]   Unable to load filterscript 'fps.amx'.
[10:06:12]   Loading filterscript 'objecteditor.amx'...
[10:06:12] -----------------------------------------------------------------------------

[10:06:12]                          > Drebin's Object Editor <                          
[10:06:12]                                    v1.0.0                                    
[10:06:12]                                                                              
[10:06:12]                                 ©Drebin 2012                                 
[10:06:12]                                                                              
[10:06:12] -----------------------------------------------------------------------------

[10:06:12]   Loading filterscript 'object-loader.amx'...
[10:06:12] INFO: [Init] Debug Level: 0
[10:06:12] INFO: [Init] 0 Total objects
[10:06:12] INFO: [Init] 0 Objects to remove
[10:06:12]   Loaded 2 filterscripts.

[10:06:13]    Error: Function not registered: 'mysql_query'
[10:06:13]    Error: Function not registered: 'mysql_store_result'
[10:06:13]    Error: Function not registered: 'mysql_num_rows'
[10:06:13]    Error: Function not registered: 'mysql_free_result'
[10:06:13]    Error: Function not registered: 'mysql_fetch_row'
[10:06:13]    Error: Function not registered: 'mysql_real_escape_string'
[10:06:13]    Error: Function not registered: 'mysql_init'
[10:06:13]    Error: Function not registered: 'mysql_connect'
[10:06:13]    Error: Function not registered: 'mysql_close'
[10:06:13]  
[10:06:13]  
[10:06:13]  
[10:06:13]  ======================================= 
[10:06:13]  |                                     | 
[10:06:13]  |        YSI version 3.09.0684        | 
[10:06:13]  |        By Alex "******" Cole        | 
[10:06:13]  |                                     | 
[10:06:13]  ======================================= 
[10:06:13]  
[10:06:13] [MySQL] Connected (0) to 'sql6119746'@'sql6.freesqldatabase.com via TCP/IP'.
[10:06:13] [MySQL] Server Version 5.5.49-0ubuntu0.14.04.1.
[10:06:13] Loading Vehicles
[10:06:13] (27) Loaded! Owner: 28
[10:06:13] (28) Loaded! Owner: 28
[10:06:13] (29) Loaded! Owner: 152
[10:06:13] (30) Loaded! Owner: 1
[10:06:13] (31) Loaded! Owner: 3
[10:06:13] 
-----------------------------------
[10:06:13] CNRSF (v2.17) GuthiX Loaded
[10:06:13] ------------------------------------

[10:06:13] Number of vehicle models: 95
Its giving some mysql errors by nativechecker.dll but the server is working fine.

Now i have loaded this server on a ultra-h host with linux plugins, so, the server not loaded, and giving a error.
Код:
Script[gamemodes/CnR.amx]: Run time error 19: "File or function is not found"
See the whole server_log of linux server (Ultra-H Host)

Код:
	
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[06:42:29] password = ""  (string)
[06:42:29] 
[06:42:29] Server Plugins
[06:42:29] --------------
[06:42:29]  Loading plugin: regex.so
[06:42:29] 

[06:42:29] ______________________________________

[06:42:29]  Regular Expression Plugin v0.2.1 loaded
[06:42:29] ______________________________________

[06:42:29]  By: Fro © Copyright <TBG> 2009-2011
[06:42:29] ______________________________________

[06:42:29]   Loaded.
[06:42:29]  Loading plugin: sscanf.so
[06:42:29] 

[06:42:29]  ===============================

[06:42:29]       sscanf plugin loaded.     

[06:42:29]          Version:  2.8.1        

[06:42:29]    © 2012 Alex "******" Cole  

[06:42:29]  ===============================

[06:42:29]   Loaded.
[06:42:29]  Loading plugin: mysql.so
[06:42:29] 

  > MySQL plugin R7 successfully loaded.

[06:42:29]   Loaded.
[06:42:29]  Loading plugin: streamer.so
[06:42:29] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[06:42:29]   Loaded.
[06:42:29]  Loading plugin: nativechecker.so
[06:42:29]   Loaded.
[06:42:29]  Loaded 5 plugins.

[06:42:29] 
[06:42:29] Filterscripts
[06:42:29] ---------------
[06:42:29]   Loading filterscript 'UltraHost.amx'...
[06:42:29]   Loading filterscript 'objecteditor.amx'...
[06:42:30] -----------------------------------------------------------------------------

[06:42:30]                          > Drebin's Object Editor <                          
[06:42:30]                                    v1.0.0                                    
[06:42:30]                                                                              
[06:42:30]                                 �Drebin 2012                                 
[06:42:30]                                                                              
[06:42:30] -----------------------------------------------------------------------------

[06:42:30]   Loaded 2 filterscripts.

[06:42:31]    Error: Function not registered: 'mysql_query'
[06:42:31]    Error: Function not registered: 'mysql_fetch_row'
[06:42:31]    Error: Function not registered: 'mysql_init'
[06:42:31] Script[gamemodes/CnR.amx]: Run time error 19: "File or function is not found"
[06:42:31] Number of vehicle models: 0
Please guys, help me out from this linux server error.
And sorry for my bad english but i hope you can understand it easily.

Thank you.
Reply
#2

Use the mysql_static.so plugin.
Reply
#3

nativechecker should be at the end of the plugins line, and check your runtimes due to 2 other plugins not loading.

mysql_static shouldn't be needed due to the plugin itself loading.
Reply
#4

Also, check if you're using the right MySQL plugin. The gamemode might be written to use a specific version and you're loading a different version (which most likely contains different functions and syntax's).
Reply
#5

Bro its working fine on windows server but not at the linux server. and the Nativechecker file is at the last of the plugins, and i have loaded all the plugins .so
Reply
#6

Quote:
Originally Posted by GuthiX
Посмотреть сообщение
Bro its working fine on windows server but not at the linux server. and the Nativechecker file is at the last of the plugins, and i have loaded all the plugins .so
Alright then, I hadn't seen that you posted up 2 logs, one for windows, one for linux...


What you're saying though still isn't working out. If you ran this on the windows server with that log file, it says it won't be working... Especially the MySQL portion of your script.

and this
Код:
[06:42:31]    Error: Function not registered: 'mysql_query'
[06:42:31]    Error: Function not registered: 'mysql_fetch_row'
[06:42:31]    Error: Function not registered: 'mysql_init'
[06:42:31] Script[gamemodes/CnR.amx]: Run time error 19: "File or function is not found"
says MySQL has a problem on the linux server, even with the plugin loaded, with less errors than the Windows server log.

Still, it's saying MySQL is having a real problem. Try removing nativechecker first off as it's not for running on production servers to see if those last errors go away.
Reply
#7

Unloaded nativechecker.so on linux server, not giving even a single error now, but only giving runtime error:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[15:17:37] password = ""  (string)
[15:17:37] 
[15:17:37] Server Plugins
[15:17:37] --------------
[15:17:37]  Loading plugin: regex.so
[15:17:37] 

[15:17:37] ______________________________________

[15:17:37]  Regular Expression Plugin v0.2.1 loaded
[15:17:37] ______________________________________

[15:17:37]  By: Fro © Copyright <TBG> 2009-2011
[15:17:37] ______________________________________

[15:17:37]   Loaded.
[15:17:37]  Loading plugin: sscanf.so
[15:17:37] 

[15:17:37]  ===============================

[15:17:37]       sscanf plugin loaded.     

[15:17:37]          Version:  2.8.1        

[15:17:37]    © 2012 Alex "******" Cole  

[15:17:37]  ===============================

[15:17:37]   Loaded.
[15:17:37]  Loading plugin: mysql.so
[15:17:37] 

  > MySQL plugin R7 successfully loaded.

[15:17:37]   Loaded.
[15:17:37]  Loading plugin: streamer.so
[15:17:37] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[15:17:37]   Loaded.
[15:17:37]  Loaded 4 plugins.

[15:17:37] 
[15:17:37] Filterscripts
[15:17:37] ---------------
[15:17:37]   Loading filterscript 'UltraHost.amx'...
[15:17:37]   Loading filterscript 'objecteditor.amx'...
[15:17:37] -----------------------------------------------------------------------------

[15:17:37]                          > Drebin's Object Editor <                          
[15:17:37]                                    v1.0.0                                    
[15:17:37]                                                                              
[15:17:37]                                 �Drebin 2012                                 
[15:17:37]                                                                              
[15:17:37] -----------------------------------------------------------------------------

[15:17:37]   Loaded 2 filterscripts.

[15:17:37] Script[gamemodes/CnR.amx]: Run time error 19: "File or function is not found"
[15:17:37] Number of vehicle models: 0
And NOTE: When i unloaded nativechecker.dll from windows server, it's not giving a single error and gamemode loaded successfully, please help me.
Reply
#8

Recompile and reupload your gamemode to the server. Check that you have all the plugins you've used in the includes, on the server.


Have you had this gamemode long and have you added anything to it?

CTime and File Manager aren't on the linux server
Reply
#9

Bro first read carefully, its working fine on windows server but not on the linux. And i also havn't loaded that plugins on linux, just loaded, mysql.so, streamer.so, sscanf.so
Reply
#10

Meh, I give up...


Your problem is related to those missing plugins... If you can't see that, then you're not worth my time.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)