|
You last visited: Today at 15:29
Advertisement
Problem wih DB connection
Discussion on Problem wih DB connection within the Shaiya PServer Development forum part of the Shaiya Private Server category.
11/04/2015, 18:24
|
#1
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
Problem wih DB connection
Hi, i am having a problem installing a server Shaiya on my vps.I'm using clean omega files. I've looked everywhere but nothing has been helpful.
Here is my log:
PS_DBAGENT__system
2015-11-04 17:06:38 PS_DBAGENT__system log start (DBAgent01)
2015-11-04 17:06:54 DB gamedata connect error
2015-11-04 17:06:54 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:54 DBKillCountSave db alloc failed
2015-11-04 17:06:54 SAVE kill count ERROR
2015-11-04 17:06:54 CKeepObeliskMgr:  BSave db alloc failed
2015-11-04 17:06:54 SAVE g_KeepObeliskMgr ERROR
2015-11-04 17:06:54 GuildMgrSave:  BSave db alloc failed
2015-11-04 17:06:54 SAVE g_GuildMgrSave ERROR
2015-11-04 17:06:54 PS_DBAGENT__system log end (DBAgent01)
2015-11-04 17:06:54 3 1 SService::ServiceCtrlDispatcher(): service shutdown
PS_GAME__system
2015-11-04 17:06:40 PS_GAME__system log start (Game254) [KR]
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/sorp1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/croco1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/croco2
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Troll1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Spink1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/GoldenPig
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Sorp3
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/SorpNamed1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/SorpNamed2
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Sorp2
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/CrocoNamed1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/CrocoNamed2
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/CrocoNamed3
22015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/OrcNamed1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/OrcNamed2
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/OrcNamed3
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/TrollNamed1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/HellTouthNamed1
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Deinos
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Parridalis
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Alcarian
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/ZinAlcaria
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Belizabeth
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Kirhiross
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/CrypticOne
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Haruhion
2015-11-04 17:06:40 Loaded Behavior In Factory : data/ai/Freezing
22015-11-04 17:06:58 DB gamedef connect error
2015-11-04 17:06:58 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:58 Call save all waiting...
2015-11-04 17:06:58 Call save all failed dbagent disconnected(user count = 0)...
2015-11-04 17:06:58 server shutdown Connection INFO : T=000:00:00:000, NumC=0,CMin=0,CMax=0,CAvg=0.00, CAva=0,CReq=0,CCnt=0,DCCnt=0, CTimeT=000:00:00:000,CTimeAvg=000:00:00:000, RBT=0,RBS=0,RBSC=0,SBT=0,SBS=0,SBSC=0
2015-11-04 17:06:58 PS_GAME__system log end (Game254)
2015-11-04 17:06:58 3 1 SService::ServiceCtrlDispatcher(): service shutdown
iceCtrlDispatcher(): service shutdown
PS_GAMELOG__system
2015-11-04 17:06:38 PS_GAMELOG__system log start (GameLog01)
2015-11-04 17:06:54 DB gamelog connect error
2015-11-04 17:06:54 init db error
2015-11-04 17:06:54 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:54 PS_GAMELOG__system log end (GameLog01)
2015-11-04 17:06:54 3 1 SService::ServiceCtrlDispatcher(): service shutdown
PS_LOGIN__system
2015-11-04 17:06:40 PS_LOGIN__system log start (Login01)
2015-11-04 17:06:56 DB userdata connect error, id=Shaiya, pass=Shaiya123
2015-11-04 17:06:56 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:56 PS_LOGIN__system log end (Login01)
2015-11-04 17:06:56 3 1 SService::ServiceCtrlDispatcher(): service shutdown
PS_SESSION__system
2015-11-04 17:06:34 PS_SESSION__system log start (Session)
2015-11-04 17:06:36 userlog connect failed
2015-11-04 17:06:36 initserver() failed
2015-11-04 17:06:36 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:36 PS_SESSION__system log end (Session)
2015-11-04 17:06:36 3 1 SService::ServiceCtrlDispatcher(): service shutdown
PS_USERLOG__system
2015-11-04 17:06:32 PS_USERLOG__system log start (UserLog)
2015-11-04 17:06:49 DB userlog connect error, Server=127.0.0.1, DBName=PS_UserData, User=Shaiya, Pass=Shaiya123
2015-11-04 17:06:49 3 1 SService::ServiceCtrlDispatcher(): m_pService->Init()
2015-11-04 17:06:49 PS_USERLOG__system log end (UserLog)
2015-11-04 17:06:49 3 1 SService::ServiceCtrlDispatcher(): service shutdown
If I try to connect with sql server management studio through credentials (Shaiya and Shaiya123) from vps connects but if i try to connect from my pc doesn't connect.
That's all, thanks guys
|
|
|
11/04/2015, 19:04
|
#2
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
|
Error connecting to Database. Double check you have the Shaiya - Shaiya123 user in SQL (security)
Make sure all the encrypted passwords are set in your .ini files as well. There is a tool inside PSM_Server called ps_passwordEnc. Use that with password Shaiya123 for each place you see something like this in your .ini files.
Code:
GameData=127.0.0.1, PS_GameData, shaiya, D0B874C7F08BED32E3B312C1C861AA9F80D2EDE505EB072D98A4EDABC37CE0D734D737B8F8713AD56B6761B24A73545091BF52388E980BDD5AB6B9F3C9D49063547874D6E26C50C663D4DB47FAC20FA671675AA1467999666DB0E61E154E0A7A1E321446A30CEF003A4B55E999345D440E73537A9B3B6EA8EA04182D763E9A24
I usually create a new enc.password for each separate line like that. But I'm not sure if it's needed.
Also, make sure you have your linked servers installed and set properly.
 - Credits to ShaiyaOmega
|
|
|
11/04/2015, 19:36
|
#3
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
Quote:
Originally Posted by Truth1010
Error connecting to Database. Double check you have the Shaiya - Shaiya123 user in SQL (security)
Make sure all the encrypted passwords are set in your .ini files as well. There is a tool inside PSM_Server called ps_passwordEnc. Use that with password Shaiya123 for each place you see something like this in your .ini files.
Code:
GameData=127.0.0.1, PS_GameData, shaiya, D0B874C7F08BED32E3B312C1C861AA9F80D2EDE505EB072D98A4EDABC37CE0D734D737B8F8713AD56B6761B24A73545091BF52388E980BDD5AB6B9F3C9D49063547874D6E26C50C663D4DB47FAC20FA671675AA1467999666DB0E61E154E0A7A1E321446A30CEF003A4B55E999345D440E73537A9B3B6EA8EA04182D763E9A24
I usually create a new enc.password for each separate line like that. But I'm not sure if it's needed.
Also, make sure you have your linked servers installed and set properly.
 - Credits to ShaiyaOmega
|
Thanks but everything already done, i installed same files on a virtual machine for a test local server and there were no problems but since i'm trying on vps i'm having this problem. I think it is a configuration problem of sql server i already configured the firewall but still nothing
|
|
|
11/04/2015, 20:25
|
#4
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
As log say
Code:
2015-11-04 17:06:54 DB gamedata connect error
Your server files cant connect to your sql database.
Problem is in your sql config.
First you should test connect with Sql Manager "connect Object explorer" with SQL Auth and Server Name =127.0.0.1 Pass Shaiya123
|
|
|
11/04/2015, 20:45
|
#5
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
|
Have you allowed outside access to the VPS so that you can actually connect with the database from your home PC?
It's been a long time since i used a VPS, but if i remember right, you have to allow some settings depending on your host to allow connections.
|
|
|
11/04/2015, 23:59
|
#6
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
Quote:
Originally Posted by SnickQ
As log say
Code:
2015-11-04 17:06:54 DB gamedata connect error
Your server files cant connect to your sql database.
Problem is in your sql config.
First you should test connect with Sql Manager "connect Object explorer" with SQL Auth and Server Name =127.0.0.1 Pass Shaiya123
|
SnickQ, i already tested it and from the vps sql manager connect but from my pc doesn't connect
Quote:
Originally Posted by Truth1010
Have you allowed outside access to the VPS so that you can actually connect with the database from your home PC?
It's been a long time since i used a VPS, but if i remember right, you have to allow some settings depending on your host to allow connections.
|
Truth1010, i've allowed outside access (firewall settings and sql server->properties->connections->allow remote connections)
|
|
|
11/05/2015, 00:08
|
#7
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
Code:
select @@servername
You should have 127.0.0.1
if not
Code:
sp_dropserver 'your sql name'
GO
sp_addserver '127.0.0.1', local
GO
also check your sql config
|
|
|
11/05/2015, 00:17
|
#8
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
|
What exactly are you trying to connect to SSMS with?
the host IP, or 127.0.0.1 (local) ?
The server name needs to be whatever it is on your host PC. If i remember correctly the IP of the VPS should be enough, then use SQL auth for user/pass.
If all else fails, contact your VPS host company. They may be blocking it on their end for some reason. I had the same problem with a webserver being blocked from the host until i messaged them asking about it and they got it fixed right away.
|
|
|
11/05/2015, 00:35
|
#9
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
Quote:
Originally Posted by Truth1010
What exactly are you trying to connect to SSMS with?
the host IP, or 127.0.0.1 (local) ?
The server name needs to be whatever it is on your host PC. If i remember correctly the IP of the VPS should be enough, then use SQL auth for user/pass.
If all else fails, contact your VPS host company. They may be blocking it on their end for some reason. I had the same problem with a webserver being blocked from the host until i messaged them asking about it and they got it fixed right away.
|
his server files cant connect to local sql server
|
|
|
11/05/2015, 01:04
|
#10
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
|
Not entirely sure what OP is actually asking. I thought it was one thing at first, then another. Now i'm starting to think that he has the DB held on his VPS, but the PSM_Client/Server held on his home PC.
So he uses the ServerPatchConfig from his home PC to start the server, and all database entries go to his VPS.
If that is what you are trying to do, Piccoloale. Then in your config .ini files, you need to write like this.
Code:
[SERVER]
ServerName=Game
ServerPort=
MaxConnection=3000
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
DBAgent=127.0.0.1
GameLog=127.0.0.1
[DB]
GameDef=VPS IP, PS_GameDefs, DB USER, 061F863CE8E7059E75D8BEDB44E1B415BFBFD8579AE47E46A6EC4375E7E6F68E794E3E35C754B3B1F5712C3171A49E94E4787D7ED624F02009B674C6BE5D8852F947D6808BF4518331BC6B3B726E4A6AF9ED4B50FB987C271442E5BE7DD2FE76F4B72360BFA34238C0FB883640B12E103D22C97C8E85D3B3182166828D0084C6
GameData=VPS IP, PS_GameData, DB USER, 6FFB54AFCEB3E77917276E25637656C9E24E13DE462C9855421C67CD29938A5A87371DFA15BD7094CF644EEC2D5E2FF55374891A8325FE76295FEF259FFEC29E66EC1BC73B18FAB2EF391C4FDCA4E1ED983F1CA01240F43DE97DFF7B3E0F2412015B4D5C2BD91D59C976977BC974EE67CD9A85D00D819DBA20CCBE3857085666
[GAMEINFO]
GameName=Server Name
GamePublicIP=HOME IP
GameVersion=0x00000000
GameLogDBID=1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
|
|
|
11/05/2015, 07:04
|
#11
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
Quote:
Originally Posted by SnickQ
Code:
select @@servername
You should have 127.0.0.1
if not
Code:
sp_dropserver 'your sql name'
GO
sp_addserver '127.0.0.1', local
GO
also check your sql config

|
SnickQ, i checked and i've 127.0.0.1...All others settings checked and set fine
Quote:
Originally Posted by Truth1010
Not entirely sure what OP is actually asking. I thought it was one thing at first, then another. Now i'm starting to think that he has the DB held on his VPS, but the PSM_Client/Server held on his home PC.
So he uses the ServerPatchConfig from his home PC to start the server, and all database entries go to his VPS.
If that is what you are trying to do, Piccoloale. Then in your config .ini files, you need to write like this.
Code:
[SERVER]
ServerName=Game
ServerPort=
MaxConnection=3000
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
DBAgent=127.0.0.1
GameLog=127.0.0.1
[DB]
GameDef=VPS IP, PS_GameDefs, DB USER, 061F863CE8E7059E75D8BEDB44E1B415BFBFD8579AE47E46A6EC4375E7E6F68E794E3E35C754B3B1F5712C3171A49E94E4787D7ED624F02009B674C6BE5D8852F947D6808BF4518331BC6B3B726E4A6AF9ED4B50FB987C271442E5BE7DD2FE76F4B72360BFA34238C0FB883640B12E103D22C97C8E85D3B3182166828D0084C6
GameData=VPS IP, PS_GameData, DB USER, 6FFB54AFCEB3E77917276E25637656C9E24E13DE462C9855421C67CD29938A5A87371DFA15BD7094CF644EEC2D5E2FF55374891A8325FE76295FEF259FFEC29E66EC1BC73B18FAB2EF391C4FDCA4E1ED983F1CA01240F43DE97DFF7B3E0F2412015B4D5C2BD91D59C976977BC974EE67CD9A85D00D819DBA20CCBE3857085666
[GAMEINFO]
GameName=Server Name
GamePublicIP=HOME IP
GameVersion=0x00000000
GameLogDBID=1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
|
Truth1010, sorry if i was not clear and for my bad english. I'm not trying to start nothing from my pc, i am working completely on a server, all files are there just i was trying to connect to remote database on my vps with vps remote ip
|
|
|
11/05/2015, 08:36
|
#12
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
|
Oh i see now. In that case...
Check TCP port 1433. That needs to be open for remote access to SQL. TCP port 1434 may also be needed, that's for the SQL Browser.
And when connecting remotely, if you are set to have named instances, other than default. Then you must connect like
Code:
12.34.56.78\SQLINSTANCENAME
The logs you originally posted show that the server is failing to connect to the DB though, that's why the confusion. It looks like your asking 1 question, but showing problems linked to another
|
|
|
11/05/2015, 09:28
|
#13
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
Quote:
Originally Posted by Truth1010
Oh i see now. In that case...
Check TCP port 1433. That needs to be open for remote access to SQL. TCP port 1434 may also be needed, that's for the SQL Browser.
And when connecting remotely, if you are set to have named instances, other than default. Then you must connect like
Code:
12.34.56.78\SQLINSTANCENAME
The logs you originally posted show that the server is failing to connect to the DB though, that's why the confusion. It looks like your asking 1 question, but showing problems linked to another 
|
Port 1433 and also 1434 are opened anyway I don't care this problem for now... My priority is to start server...Any ideas?
|
|
|
11/06/2015, 10:21
|
#14
|
elite*gold: 0
Join Date: Apr 2012
Posts: 46
Received Thanks: 2
|
#up someone?
|
|
|
11/06/2015, 11:23
|
#15
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
Put some screen how you config your SQL because we cant see your sql and cant help you.
|
|
|
 |
|
Similar Threads
|
Need Help in Connection Problem
09/02/2014 - CO2 Private Server - 2 Replies
Guys got a Problem in my source can connect, this what happens when i use hamachi server i can log in to the game, when i use static ip or vps i cant log in to the game its look frozen no bar loading and sometime it say wrong password or account it look like its not public source it only private where to find and fixed the connection in client source. please need help just this one.
|
[Help Me]Connection problem
07/12/2011 - Rappelz - 1 Replies
Hi,
When I want to connect it gets stuck at the login page how should it be please
http://img684.imageshack.us/img684/7664/rappelzsc reen00000002u.jpg
|
Connection Problem
06/04/2011 - Flyff Private Server - 2 Replies
Hai Elitepvpers,
Ich hab Änderungen an meiner Resource vorgenommen und wollte dann den Server starten. Nun gut das geht alles, nur wenn sich dann User einlogen wollen crashed bei ihnen der Client sobald sie in die World connecten wollen Habe vorsichthalber mal neue .res Dateien patchen lassen und die neuz.exe in den Patcher getan, doch die hilft auch nicht weiter. Habe sogar da ich dachte das meine Änderungen einfach fail sind, ein Resource Backup draufgespielt als noch alles ohne Probleme...
|
Connection problem
06/04/2011 - DarkOrbit - 7 Replies
Hi,
I would need help with DarkOrbit.
If the menu, click Start, begins to run as the star map.
When you click on START in the startup window begins to create a connection that never forms a take I can not play at all. Is not so only in DarkOrbit but in all games like him. :mad:
Help me please. How can it be? :confused:
Thank you. :handsdown:
|
Connection Problem
03/06/2010 - WoW Private Server - 4 Replies
Mein Kumpel und ich haben uns entschlossen einen WoW pserver zu machen was uns auch gelung, er kann von sich zu hause drauf über hamachi connecten , alles top ...
Aber wie kommt er auf meine Navicat Datenbank rauf?
Ich habe eine "Novo" server also ein Server der leicht zu erstellen geht ..
Danke im Vorraus ;)
|
All times are GMT +1. The time now is 15:29.
|
|