Raised This Month: $ Target: $400
 0% 

Error log - Database error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDmac
Junior Member
Join Date: Jun 2010
Old 06-14-2010 , 10:44   Error log - Database error
Reply With Quote #1

After a fresh install, the plugin won't load and the sourcemod logs say this.

Quote:
L 06/15/2010 - 006:02: SourceMod error session started
L 06/15/2010 - 006:02: Info (map "zm_papys_secret_project") (file "errors_20100615.log")
L 06/15/2010 - 006:02: [CLIENTPREFS] unable to open database file
L 06/15/2010 - 006:02: [SM] Native "RegClientCookie" reported: Clientprefs is disabled due to a failed database connection
L 06/15/2010 - 006:02: [SM] Displaying call stack trace for plugin "zombiereloaded.smx":
L 06/15/2010 - 006:02: [SM] [0] Line 77, src/zr/playerclasses/clientoverlays.inc::ClassOverlayOnCookiesCrea te()
L 06/15/2010 - 006:02: [SM] [1] Line 31, src/zr/playerclasses/classevents.inc::ClassOnCookiesCreate()
L 06/15/2010 - 006:02: [SM] [2] Line 34, src/zr/cookies.inc::CookiesInit()
L 06/15/2010 - 006:02: [SM] [3] Line 154, src/zombiereloaded.sp::OnPluginStart()
L 06/15/2010 - 006:02: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
L 06/15/2010 - 006:02: [SM] Unable to load plugin "nominations.smx": Could not find required plugin "mapchooser"
Any help would be great, thanks.

Last edited by rhelgeby; 06-14-2010 at 11:50. Reason: Updated title
TheDmac is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 06-14-2010 , 11:48   Re: Error log
Reply With Quote #2

Quote:
Originally Posted by TheDmac View Post
Clientprefs is disabled due to a failed database connection
You need to setup your database connection. Check sourcemod/configs/databases.cfg.

Code:
"clientprefs"
{
    // driver can be "mysql" or "sqlite"
    "driver"		"mysql"
    "host"		"host.at.someplace"
    "database"		"mydb"
    "user"		"myuser"
    "pass"		"mypass"
    //"timeout"		"0"
    //"port"		"0"
}
I recommend a mysql database instead of sqlite, because ZR will need to store cookies for each player in your server. It will be a lot of records if you have a busy server, and I think sqlite have a limit.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
TheDmac
Junior Member
Join Date: Jun 2010
Old 06-14-2010 , 12:22   Re: Error log - Database error
Reply With Quote #3

Is this new?

I only installed it last week and can't remember doing it the first time.
TheDmac is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 06-14-2010 , 16:24   Re: Error log - Database error
Reply With Quote #4

SourceMod is configured to use sqlite for clientprefs by default. So I assume you changed it to use your own database server. If not, then it probably need write access to sourcemod/data so that sqlite database file can be created.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode