Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Library not being initialized and failing to connect #20

Open
lemontoucher opened this issue Oct 15, 2019 · 2 comments
Open

Library not being initialized and failing to connect #20

lemontoucher opened this issue Oct 15, 2019 · 2 comments

Comments

@lemontoucher
Copy link

I'm running /tg/station with the latest pre-compiled binary under Debian. Right now, the library fails to connect to the SQL server with the following messages:

[2019-10-15 16:34:54.437] Running /tg/ revision: 2019-10-15
 - origin/master: fbcc06ca029ed6141a2448adef4944d528a7217a
[2019-10-15 16:34:54.449] Loading config file config.txt...
[2019-10-15 16:34:54.451] Loading config file game_options.txt...
[2019-10-15 16:34:54.464] Loading config file dbconfig.txt...
[2019-10-15 16:34:54.465] Loading config file comms.txt...
[2019-10-15 16:34:54.465] Loading config file antag_rep.txt...
[2019-10-15 16:34:54.473] Loading config file maps.txt...
[2019-10-15 16:34:54.475] Loading config file in_character_filter.txt...
[2019-10-15 16:34:54.514] runtime error: Library not initialized!
 - proc name: Connect (/datum/controller/subsystem/dbcore/proc/Connect)
 -   source file: dbcore.dm,93
 -   usr: null
 -   src: Database (/datum/controller/subsystem/dbcore)
 -   call stack:
 - Database (/datum/controller/subsystem/dbcore): Connect()
 - load admins(null)
 - world: New()
 - 
[2019-10-15 16:34:54.515] SQL: Failed to connect to database while loading admins. Loading from backup.
[2019-10-15 16:34:54.516] runtime error: Cannot execute null.IsComplete().
 - proc name: run query (/datum/DBQuery/proc/run_query)
 -   source file: dbcore.dm,359
 -   usr: null
 -   src: /datum/DBQuery (/datum/DBQuery)
 -   call stack:
 - /datum/DBQuery (/datum/DBQuery): run query(1)
 - /datum/DBQuery (/datum/DBQuery): Execute(1, 1)
 - load admin ranks(1, null)
 - load admins(null)
 - world: New()
 - 
[2019-10-15 16:34:54.517] runtime error: Cannot execute null.GetErrorCode().
 - proc name: Execute (/datum/DBQuery/proc/Execute)
 -   source file: dbcore.dm,332
 -   usr: null
 -   src: /datum/DBQuery (/datum/DBQuery)
 -   call stack:
 - /datum/DBQuery (/datum/DBQuery): Execute(1, 1)
 - load admin ranks(1, null)
 - load admins(null)
 - world: New()
 - 
[2019-10-15 16:34:54.518] SQL: Error loading admin ranks from database. Loading from backup.
[2019-10-15 16:34:54.518] Unable to locate admins backup file.
[2019-10-15 16:34:54.528] runtime error: Cannot execute null.IsComplete().
 - proc name: run query (/datum/DBQuery/proc/run_query)
 -   source file: dbcore.dm,359
 -   usr: null
 -   src: /datum/DBQuery (/datum/DBQuery)
 -   call stack:
 - /datum/DBQuery (/datum/DBQuery): run query(1)
 - /datum/DBQuery (/datum/DBQuery): Execute(1, 1)
 - load admins(null)
 - world: New()
 - 
[2019-10-15 16:34:54.529] runtime error: Cannot execute null.GetErrorCode().
 - proc name: Execute (/datum/DBQuery/proc/Execute)
 -   source file: dbcore.dm,332
 -   usr: null
 -   src: /datum/DBQuery (/datum/DBQuery)
 -   call stack:
 - /datum/DBQuery (/datum/DBQuery): Execute(1, 1)
 - load admins(null)
 - world: New()
 - 
[2019-10-15 16:34:54.529] SQL: Error loading admins from database. Loading from backup.
[2019-10-15 16:34:54.530] runtime error: Cannot execute null.IsComplete().
 - proc name: IsConnected (/datum/controller/subsystem/dbcore/proc/IsConnected)
 -   source file: dbcore.dm,163
 -   usr: null
 -   src: Database (/datum/controller/subsystem/dbcore)
 -   call stack:
 - Database (/datum/controller/subsystem/dbcore): IsConnected()
 - Database (/datum/controller/subsystem/dbcore): Connect()
 - Database (/datum/controller/subsystem/dbcore): CheckSchemaVersion()
 - world: New()
 - 
[2019-10-15 16:34:54.532] runtime error: Library not initialized!
 - proc name: Connect (/datum/controller/subsystem/dbcore/proc/Connect)
 -   source file: dbcore.dm,93
 -   usr: null
 -   src: Database (/datum/controller/subsystem/dbcore)
 -   call stack:
 - Database (/datum/controller/subsystem/dbcore): Connect()
 - Database (/datum/controller/subsystem/dbcore): CheckSchemaVersion()
 - world: New()
 - 
[2019-10-15 16:34:54.532] SQL: Your server failed to establish a connection with the database.
[2019-10-15 16:34:54.533] runtime error: Cannot execute null.IsComplete().
 - proc name: IsConnected (/datum/controller/subsystem/dbcore/proc/IsConnected)
 -   source file: dbcore.dm,163
 -   usr: null
 -   src: Database (/datum/controller/subsystem/dbcore)
 -   call stack:
 - Database (/datum/controller/subsystem/dbcore): IsConnected()
 - Database (/datum/controller/subsystem/dbcore): Connect()
 - Database (/datum/controller/subsystem/dbcore): SetRoundID()
 - world: New()
 - 
[2019-10-15 16:34:54.534] runtime error: Library not initialized!
 - proc name: Connect (/datum/controller/subsystem/dbcore/proc/Connect)
 -   source file: dbcore.dm,93
 -   usr: null
 -   src: Database (/datum/controller/subsystem/dbcore)
 -   call stack:
 - Database (/datum/controller/subsystem/dbcore): Connect()
 - Database (/datum/controller/subsystem/dbcore): SetRoundID()
 - world: New()
 - 

Seems like a bug to me. Any ideas?

@lemontoucher
Copy link
Author

@Cyberboss, anyone?

@Gh0sT2242
Copy link
Contributor

Gh0sT2242 commented Nov 17, 2019

@lemontoucher seems to me that your database cannot be found, be sure you have your dbconfig set correctly, as well as you have all of the files necessary for sql to work. libBSQL.so, BSQL.dm, the MariaDB .so, etc.

also be sure you linked the scheme to your database :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants