Server Starts and Quits Immediately

Discussions and advertising of dedicated, private servers made by players, for players

Lightless
 
Posts: 2
Joined: 03 Apr 2015, 21:50

Server Starts and Quits Immediately

Post by Lightless » 03 Apr 2015, 21:57

I've tried this a few times, but i get the same result when I attempt to run the server. I've followed the steam guide to the letter, and i even checked out similar video guides on youtube. However, i keep getting this error in my Log

Code: Select all
//-------------------------- 4/3/2015 -- 14:39:16 -- v0.3.4.0 --
ECHO 2015-04-03 14:39:16.499 {00} <NOSCOPE> --------- Loading DIRS ---------
HACK 2015-04-03 14:39:16.499 {00} <NOSCOPE> v0.3.4.0
ECHO 2015-04-03 14:39:16.509 {00} <NOSCOPE>
ECHO 2015-04-03 14:39:16.509 {01} <onStart>
--------- Initializing Directory: scripts ---------
ECHO 2015-04-03 14:39:16.509 {02} <initServer>
--------- Initializing LiF Server: Server Scripts ---------
ECHO 2015-04-03 14:39:16.519 {02} <initServer> Loading CmConfiguration
ECHO 2015-04-03 14:39:16.519 {02} <initServer> Init of DB interface
ERRR 2015-04-03 14:39:16.519 {02} <initServer> CmDb::_connect() - connection error #1045: Access denied for user 'root'@'localhost' (using password: YES)
ERRR 2015-04-03 14:39:16.519 {02} <initServer> CmServerInfoManager::processLocalWorlds() - can't connect to MySQL!
ERRR 2015-04-03 14:39:16.519 {02} <initServer> Fatal: Can't init local world (id=). Terminating.
ECHO 2015-04-03 14:39:16.519 {00} <NOSCOPE> Engine initialized...
core/scripts/server/server.cs (78): Unable to find function destroyWorld


I searched it on google with minimal results. :(

If someone could help me figure this out that'd be awesome.

User avatar
Dayradon
 
Posts: 24
Joined: 24 Mar 2015, 06:40

Re: Server Starts and Quits Immediately

Post by Dayradon » 04 Apr 2015, 07:20

I'm no expert and I'm just trying to help (which seems to be in limited supply around here unless your part of the exclusive club of members it seems).

1. It definitely can not connect to the MySql database.
2. it lists the port and the pass word used.

When you installed MariaDB you had to select a root password during install. That's the password it is looking for.

Besides anything else, you must get it connecting to the DB.

The first error in your log is:

Code: Select all
ERRR 2015-04-03 14:39:16.519 {02} <initServer> CmDb::_connect() - connection error #1045: Access denied for user 'root'@'localhost' (using password: YES)


Check your config_local.cs file in the base install directory.
(mine is C:\Program Files (x86)\Steam\SteamApps\common\Life is Feudal Your Own Dedicated Server\config_local.cs)

Mine reads as:
Code: Select all
$cm_config::DB::Connect::server =   "127.0.0.1"; // server IP or domain name. Can enter port if it is not default
$cm_config::DB::Connect::user =     "root"; // MUST be a user with ROOT privileges in order to create new DBs
$cm_config::DB::Connect::password = "YourROOTpassword"; // password for that user


Confirm in that file, the user listed as (root) not (root@localhost)
Confirm in that file, the password "YourROOTpassword" is the same password that you use when you launch HeidiSQL and are in the session manager.

That's the first step.


:sorry: I find it pathetic with the amount of dedicated servers out there, and 40 views, no one was willing to give you some advice. Says alot about those server owners.


Lightless
 
Posts: 2
Joined: 03 Apr 2015, 21:50

Re: Server Starts and Quits Immediately

Post by Lightless » 04 Apr 2015, 09:51

Well I'm glad you helped and it worked. Thank you so much for taking the time to stop and help me. I'm new to Heidi I've used dumbed down versions before, but it does not compare. The problem was simply the user name. I had it set to a user i created based off one of the videos i watched and i just needed to leave it as "Root". So if anyone else sees this and is having the same problem. fix your username!

Return to Private Servers

cron