Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: Latest Build producing errors...  (Read 2110 times)

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Latest Build producing errors...
« on: February 18, 2015, 07:25:18 PM »
<b3.parsers.insurgency.InsurgencyParser object at 0x02BDA4D0>> (53440944) - 0s -1m -1h -1d -1M -1DOW'
150217 18:42:59 BOT 'All plugins started'
150217 18:42:59 INFO 'STDOUT "Error: \'NoneType\' object has no attribute \'strip\'"'
150217 18:42:59 INFO "STDOUT '\\n'"
150217 18:42:59 ERROR "STDERR 'Traceback (most recent call last):\\n'"
150217 18:42:59 ERROR 'STDERR \' File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\__init__.py", line 213, in start\\n\''
150217 18:42:59 ERROR 'STDERR \' File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parser.py", line 625, in start\\n\''
150217 18:42:59 ERROR 'STDERR \' File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parsers\\\\insurgency.py", line 271, in pluginsStarted\\n\''
150217 18:42:59 ERROR 'STDERR \' File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parsers\\\\insurgency.py", line 229, in patch_b3_admin_plugin\\n\''
150217 18:42:59 ERROR 'STDERR "AttributeError: \'NoneType\' object has no attribute \'strip\'\\n"'
150217 18:43:00 VERBOSE 'StatusPlugin: building XML status'
150217 18:43:00 VERBOSE 'StatusPlugin: cleaning database table: current_coop_svars...'
150217 18:43:00 VERBOSE 'StatusPlugin: cleaning database table: current_coop_clients...'
150217 18:43:01 DEBUG 'StatusPlugin: writing XML status to conf\\status.xml'
150217 18:43:01 VERBOSE 'Ping check started'
« Last Edit: February 19, 2015, 02:08:59 AM by zdanman »

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #1 on: February 18, 2015, 07:27:55 PM »
http://www.acedev.net/files/insurgency/diag/331

b3.log and console.log can be found there

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Latest Build producing errors...
« Reply #2 on: February 18, 2015, 08:32:07 PM »
Thanks for reporting this. I'll fix it for the next daily build

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #3 on: February 18, 2015, 11:13:09 PM »
updated to 332 and it is outputting the following errors in b3.log....

Code: [Select]
150218 16:10:12	DEBUG	'PublistPlugin: publist will send heartbeat at 03:36 every day'
150218 16:10:12 VERBOSE 'Added crontab <bound method PublistPlugin.update of <b3.plugins.publist.PublistPlugin instance at 0x0341B490>> (53032176) - 0s 36m 3h -1d -1M -1DOW'
150218 16:10:12 INFO 'PublistPlugin: initial heartbeat will be sent to B3 master server at 15 minutes'
150218 16:10:12 VERBOSE 'Added crontab <bound method PublistPlugin.update of <b3.plugins.publist.PublistPlugin instance at 0x0341B490>> (53384496) - 0s 15m -1h -1d -1M -1DOW'
150218 16:10:12 VERBOSE 'Added crontab <bound method InsurgencyParser._dumpEventsStats of <b3.parsers.insurgency.InsurgencyParser object at 0x02C61FD0>> (54295792) - 0s -1m -1h -1d -1M -1DOW'
150218 16:10:12 BOT    'All plugins started'
150218 16:10:12 INFO 'Admin plugin patched'
150218 16:10:12 BOT    'Starting event dispatching thread'
150218 16:10:12 BOT    'Start reading game events'
150218 16:10:12 DEBUG 'AUTODOC: saving html documentation'
150218 16:10:12 VERBOSE 'AUTODOC: looking for conf\\templates/autodoc/b3doc-ng_template.html'
150218 16:10:12 DEBUG 'AUTODOC: Template = conf\\templates/autodoc/b3doc-ng_template.html'
150218 16:10:12 DEBUG 'AUTODOC: get commands with level <= 100'
150218 16:10:12 DEBUG 'AUTODOC: writing to C:\\bluefang\\servers\\server1876\\docs\\b3_doc.html'
150218 16:10:12 INFO "STDOUT 'Error: __read_input() takes exactly 1 argument (2 given)'"
150218 16:10:12 INFO "STDOUT '\\n'"
150218 16:10:12 ERROR "STDERR 'Traceback (most recent call last):\\n'"
150218 16:10:12 ERROR 'STDERR \'  File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\__init__.py", line 213, in start\\n\''
150218 16:10:12 ERROR 'STDERR \'  File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parser.py", line 629, in start\\n\''
150218 16:10:12 ERROR 'STDERR \'  File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parser.py", line 1182, in run\\n\''
150218 16:10:12 ERROR 'STDERR \'  File "c:\\\\jenkins_slave\\\\workspace\\\\B3-1.10-dist-daily\\\\b3\\\\parser.py", line 1377, in read\\n\''
150218 16:10:12 ERROR "STDERR 'TypeError: __read_input() takes exactly 1 argument (2 given)\\n'"
150218 16:10:30 INFO 'RCON SEND: sm_say [CiD]: Welcome to CiD Clan Brutal Co-Op'
150218 16:10:30 INFO u'RCON RECEIVED: L 02/18/2015 - 16:10:30: [basechat.smx] "Console<0><Console><Console>" triggered sm_say (text [CiD]: Welcome to CiD Clan Brutal Co-Op)\nL 02/18/2015 - 16:10:30: rcon from "23.81.154.166:62707": command "sm_say [CiD]: Welcome to CiD Clan Brutal Co-Op"\n'
150218 16:10:30 VERBOSE 'Ping check started'
150218 16:11:00 VERBOSE 'StatusPlugin: building XML status'

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Latest Build producing errors...
« Reply #4 on: February 18, 2015, 11:57:31 PM »
Thanks again. I'll provide a fix asap

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Latest Build producing errors...
« Reply #5 on: February 19, 2015, 12:54:16 AM »
dev build 333 should help with that issue

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #6 on: February 19, 2015, 02:01:10 AM »
Everything is working (no errors anyway) as of Build 333.  So far so good.

Will update if any more errors are seen.

THANK YOU!

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: [FIXED] Latest Build producing errors...
« Reply #7 on: February 19, 2015, 02:07:06 AM »
I take that back lol

xlrstats is having probs....
b3.log:

Code: [Select]
150218 19:03:41	VERBOSE	'Added crontab <bound method CtimePlugin.purge of <xlrstats.CtimePlugin instance at 0x034E2A30>> (57638864) - 0s 0m 11h -1d -1M -1DOW'
150218 19:03:41 DEBUG 'CtimePlugin: starting subplugin...'
150218 19:03:41 DEBUG 'CtimePlugin: register event <Client Authenticated>'
150218 19:03:41 DEBUG 'CtimePlugin: created event mapping: <Client Authenticated:onAuth>'
150218 19:03:41 DEBUG 'CtimePlugin: register event <Client Disconnect>'
150218 19:03:41 DEBUG 'CtimePlugin: created event mapping: <Client Disconnect:onDisconnect>'
150218 19:03:41 ERROR 'Could not start plugin xlrstats'
Traceback (most recent call last):
  File "c:\jenkins_slave\workspace\B3-1.10-dist-daily\b3\parser.py", line 1010, in startPlugins
  File "c:\jenkins_slave\workspace\B3-1.10-dist-daily\b3\parser.py", line 1003, in start_plugin
  File "c:\jenkins_slave\workspace\B3-1.10-dist-daily\b3\plugin.py", line 335, in onStartup
  File "C:\bluefang\servers\server1867\extplugins\xlrstats\__init__.py", line 327, in startup
    mapstats = self.get_MapStats(self.console.game.mapName)
  File "C:\bluefang\servers\server1867\extplugins\xlrstats\__init__.py", line 766, in get_MapStats
    assert name is not None
AssertionError
150218 19:03:41 BOT     'Starting plugin publist'
150218 19:03:41 DEBUG 'Set cvar _B3 = [B3 v1.10.0.dev333-20150218 [nt]]'
150218 19:03:41 INFO 'RCON SEND: None'
150218 19:03:41 DEBUG 'PublistPlugin: publist will send heartbeat at 21:09 every day'
« Last Edit: February 19, 2015, 02:09:16 AM by zdanman »

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #8 on: February 19, 2015, 01:34:56 PM »
bump

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #9 on: February 20, 2015, 12:39:48 AM »
I went in and checked for myself....

It looks like this code is causing this error....
Code: [Select]
    def get_MapStats(self, name):
        assert name is not None
        s = MapStats()

Turns out the Insurgency Parser does not always record map...
therefore this asserts...

My temporary fix was changing the above to the following:

Code: [Select]
    def get_MapStats(self, name):
        if name is None:
            return None
        s = MapStats()

Wish the devs would look at this deeper....
« Last Edit: February 20, 2015, 12:41:36 AM by zdanman »

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Latest Build producing errors...
« Reply #10 on: February 20, 2015, 12:44:06 AM »
I'm not very experienced in XLRstats but I believe this would need to be fixed in the parser rather than in the plugin

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #11 on: February 20, 2015, 07:05:20 PM »
any suggestions?

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2611
Re: Latest Build producing errors...
« Reply #12 on: February 20, 2015, 10:18:53 PM »
Was the server actually running when you started B3?

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Latest Build producing errors...
« Reply #13 on: February 21, 2015, 03:02:50 PM »
..... yeah

this is a problem the parser currently has.

you can see this in the current_svars table because sometimes it does not contain anything in the map field.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Latest Build producing errors...
« Reply #14 on: February 21, 2015, 03:37:28 PM »
This is strange and I don't get it because when B3 starts here what's happening:


The only thing I can imagine is that the queryServerInfo() method of the Insurgency parser fails at reading the map name from the game server response. To investigate this here's what you can do:
  • stop B3
  • in the B3 main config file, set the log level down to 8 (so we can see the rcon answers in the log)
  • start B3 and wait for it to initialize
  • post your full b3.log file here showing a rcon "status" query and its response

 


Rate this page +1 at Google Search