In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)Connection to Database = Failed
Pages: [1]   Go Down
  Print  
Author Topic: Connection to Database = Failed  (Read 311 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Mw2
Posts: 7
Offline Offline
« on: March 26, 2011, 06:52:11 AM »

Hey. I have problems with the Database - Connection.

Game: Cod 6 - MW2

Quote
Connecting to DB : Failed!
Traceback <most recent call last>:
File "b3\run.pyo" line 174, in main
File "b3\run.pyo" line 138, in run
File "b3\__init__.pyo", line 161 in start
File "b3\parser.pyo", line 314, in __init__
TypeError: 'NoneType' object is unsubscriptable
Press the [ENTER] key

Config:

Quote
<?xml version="1.0"?>
<configuration>
  <settings name="b3">
    <set name="parser">cod6</set>
    <set name="database">mysql://B3:********@localhost/b3</set>
    <set name="bot_name">Root</set>
    <set name="bot_prefix">^0(^2Root^0)^2</set>
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <set name="time_zone">CST</set>
    <set name="log_level">22</set>
    <set name="logfile">C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\docs\\b3.log</set>
  </settings>
  <settings name="server">
    <set name="rcon_password">******</set>
    <set name="port">28960</set>
    <set name="game_log"></set>
    <set name="public_ip">88.198.7.6</set>
    <set name="rcon_ip">127.0.0.1</set>
    <set name="punkbuster">off</set>
  </settings>
  <settings name="autodoc">
    <set name="type">html</set>
    <set name="maxlevel">100</set>
    <set name="destination">C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\docs\\b3_doc.html</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <set name="banned">$clientname^7 was banned $reason</set>
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\extplugins</set>
  </settings>
  <plugins>
    <plugin name="censor" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_censor.xml"/>
    <plugin name="spamcontrol" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_spamcontrol.xml"/>
    <plugin name="admin" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_admin.xml"/>
    <plugin name="tk" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_tk.xml"/>
    <plugin name="stats" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_stats.xml"/>
    <plugin name="pingwatch" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_pingwatch.xml"/>
    <plugin name="adv" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_adv.xml"/>
    <plugin name="status" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_status.xml"/>
    <plugin name="welcome" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_welcome.xml"/>
    <plugin name="punkbuster" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\plugin_punkbuster.xml"/>
    <plugin name="xlrstats" config="C:\\Users\\Administrator\\Desktop\\Tools\\Modern Warfare 2\\B3\\extplugins\\conf\\xlrstats.xml"/>
  </plugins>
</configuration>
« Last Edit: March 26, 2011, 07:07:21 AM by 82ndAB.Bravo17 » Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #1 on: March 26, 2011, 07:12:45 AM »

Firstly I removed the passwords from the xml you posted incase they were the real ones, usually not a good idea to leave them in a post.

But you have 2 problems:

1 You username/password/dbname combination is wrong, so you need to check those which is giving you the Connecting to DB: Failed! message

2 You have no game_log set in  <set name="game_log"></set> which is giving the actual error.
Logged
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Mw2
Posts: 7
Offline Offline
« Reply #2 on: March 26, 2011, 07:30:05 PM »

The database login is 100% correct. The game_log work yet. But it shows me: Connection to database : Failed.
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #3 on: March 26, 2011, 08:40:26 PM »

Either you do not have the sql server running, your db settings are wrong, or you have a problem with your sql server.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal