Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: B3 can't run... Cod2

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts

    B3 can't run... Cod2

    Hi,

    I install b3 from this tutorial: http://www.youtube.com/watch?v=j4QUkwf2pXQ

    And I have a problem... When i enter command /etc/init.d/b3 start I have communition:
    * Starting [ OK ]

    but when I write command /etc/init.d/b3 status I have communition:
    * stopped
    I have system : 5.1.67-0ubuntu0.11.10.1

    Please, help me!

  2. #2
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Did you checked the error log? (Do you use one?)
    No ... No ... this is not possible .......

  3. #3
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes:

    130216 23:29:30 BOT 'www.bigbrotherbot.net (b3) v1.8.2 [posix] [Seda]'
    130216 23:29:30 BOT 'Python: 2.7.2+ (default, Oct 4 2011, 20:03:08) \n[GCC 4.6.1]'
    130216 23:29:30 BOT 'Default encoding: ascii'
    130216 23:29:30 BOT 'Starting Cod2Parser v1.3.0 for server 91.121.255.26:28960'
    130216 23:29:30 BOT '--------------------------------------------'
    130216 23:29:30 BOT 'Attempting to connect to database
    130216 23:29:30 ERROR "Database connection failed, working in remote mode: connect() argument 3 must be string, not None - [('/home/cod2server/b3-1.8.2/b3/storage/database.py', 239, 'connect', 'self.db = self.getConnection()'), ('/home/cod2server/b3-1.8.2/b3/storage/database.py', 184, 'getConnection', 'use_unicode = True)'), ('/usr/lib/pymodules/python2.7/MySQLdb/__init__.py', 81, 'Connect', 'return Connection(*args, **kwargs)'), ('/usr/lib/pymodules/python2.7/MySQLdb/connections.py', 187, '__init__', 'super(Connection, self).__init__(*args, **kwargs2)')]"
    Last edited by songo; 16th February 2013 at 18:56.

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by songo View Post
    Yes:

    130216 23:29:30 BOT 'www.bigbrotherbot.net (b3) v1.8.2 [posix] [Seda]'
    130216 23:29:30 BOT 'Python: 2.7.2+ (default, Oct 4 2011, 20:03:08) \n[GCC 4.6.1]'
    130216 23:29:30 BOT 'Default encoding: ascii'
    130216 23:29:30 BOT 'Starting Cod2Parser v1.3.0 for server 91.121.255.26:28960'
    130216 23:29:30 BOT '--------------------------------------------'
    130216 23:29:30 BOT 'Attempting to connect to database
    130216 23:29:30 ERROR "Database connection failed, working in remote mode: connect() argument 3 must be string, not None - [('/home/cod2server/b3-1.8.2/b3/storage/database.py', 239, 'connect', 'self.db = self.getConnection()'), ('/home/cod2server/b3-1.8.2/b3/storage/database.py', 184, 'getConnection', 'use_unicode = True)'), ('/usr/lib/pymodules/python2.7/MySQLdb/__init__.py', 81, 'Connect', 'return Connection(*args, **kwargs)'), ('/usr/lib/pymodules/python2.7/MySQLdb/connections.py', 187, '__init__', 'super(Connection, self).__init__(*args, **kwargs2)')]"
    Your configuration for the database is something wrong with. The error says that the 3rd argument must be a string (text) for remote connection.

    Check the b3.xml config in b3/conf. There will be something like this:
    Code:
    <!-- Your database info: [mysql]://[db-user]:[db-password]@[db-server[:port]]/[db-name] -->
    <set name="database">mysql://b3:pass@localhost/b3</set>
    Last edited by Mitch; 16th February 2013 at 20:37.

  5. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (16th February 2013)

  6. #5
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    How checked mysql ? (db-server and port)

    PS: When I write command : mysql I have this error:

    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    Last edited by songo; 17th February 2013 at 11:26.

  7. #6
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    This error means you use the wrong DB User or Password.
    Try to logon with the password or set an new one.
    No ... No ... this is not possible .......

  8. #7
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OK I login to mysql... Why my b3 can't run...?

  9. #8
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Did you checked if its the right password in the b3 config?
    No ... No ... this is not possible .......

  10. #9
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hmm... how change mysql password?

  11. #10
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Do you use PHPMyAdmin? Or just mysql by console?
    No ... No ... this is not possible .......

  12. The Following User Says Thank You to Earliboy For This Useful Post:

    kung foo man (17th February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •