Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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 ]

Author Topic: B3 failing to start up - plugin issues?  (Read 4294 times)

Offline RZY

  • Newbie
  • *
  • Posts: 6
B3 failing to start up - plugin issues?
« on: October 19, 2014, 08:35:33 PM »
Hello all, hope you're all enjoying your Sunday :)

I have a promod server set up on my server, following the installing guides found here to install B3: http://forum.bigbrotherbot.net/installation-support/(tutorial-video)-install-b3-on-a-linux-vps-phase-one-two-three/msg16452/#msg16452

Although instead of using the B3 config generator I done everything through the command line.

First of all, I'll give you some info about my server. I currently have all dependencies installed, my database is set up:



My server is running fine (Promod Live 2.20) (although currently getting Server Violation: Punkbuster Disabled. But I'll leave that for another forum, I'll keep this B3 specific :)

I'm using the code source following the video tutorials linked above as I'm running a Linux (Ubuntu 14.04 x32).



I start B3 by running the following command from my b3 directory (/home/joe/b3):

Code: [Select]
python ./b3_run.py

Which unfortunately returns an error:

Code: [Select]
Starting www.bigbrotherbot.net (b3) v1.9.2 [posix] [PoisonIvy]

Using config file: b3.xml
checking for updates...
latest B3 stable version is 1.9.2
...no update available.
Using external plugin directory: /home/joe/b3/b3/extplugins
Activating log   : b3.log
Connecting to DB : OK
Using Gamelog    : /home/joe/cod4/main/games_mp.log
Testing RCON     : OK
Loading Events   : 34 events loaded
Loading Plugins  : Exited with status 220
B3 Error, check log file.

My extplugins directory appears to be correct:





Here's the b3.log file:

Code: [Select]
141019 14:25:55	BOT    	'www.bigbrotherbot.net (b3) v1.9.2 [posix] [PoisonIvy]'
141019 14:25:55 BOT    'Python: 2.7.6 (default, Mar 22 2014, 22:59:38) \n[GCC 4.8.2]'
141019 14:25:55 BOT    'Default encoding: ascii'
141019 14:25:55 BOT    'Starting Cod4Parser v1.3.9 for server 127.0.0.1:28960'
141019 14:25:55 BOT    '--------------------------------------------'
141019 14:25:55 BOT    'Attempting to connect to database mysql://root:******@localhost/cod4...'
141019 14:25:55 BOT    'Connected to database [1 times]'
141019 14:25:55 BOT    'Game log /home/joe/cod4/main/games_mp.log'
141019 14:25:55 BOT    'Starting bot reading file /home/joe/cod4/main/games_mp.log'
141019 14:25:55 BOT    'rcon status Cache Expire Time: [2 sec] Type: [memory]'
141019 14:25:55 VERBOSE "RCON sending (127.0.0.1:28960) 'status'"
141019 14:25:56 BOT    'Loading Plugins (external plugin directory: /home/joe/b3/b3/extplugins)'
141019 14:25:56 BOT    'Loading Plugin #1 censor [plugin_censor.xml]'
141019 14:25:56 BOT    'CensorPlugin: Loading config plugin_censor.xml for CensorPlugin'
141019 14:25:56 CRITICAL 'CensorPlugin: Could not find config file plugin_censor.xml'
Traceback (most recent call last):
  File "/home/joe/b3/b3/plugin.py", line 93, in loadConfig
    self.config = b3.config.load(fileName)
  File "/home/joe/b3/b3/config.py", line 290, in load
    if config.load(fileName):
  File "/home/joe/b3/b3/config.py", line 198, in load
    raise ConfigFileNotFound(fileName)
ConfigFileNotFound: <unprintable ConfigFileNotFound object>

My extplugins directory (shown above) only contains a few files and one conf folder - should there be more in there? They're not provided in the source code.



My b3.xml file (which contains all my configurations) lists the following plugins - of which were put in there during configuration I guess?:

Code: [Select]
<settings name="plugins">
<set name="external_dir">@b3/extplugins</set>
</settings>
<plugins>
<!-- plugin order is important. Plugins that add new in-game commands all depend on the admin plugin. Make sure to have the admin plugin before them. -->
<plugin config="@conf/plugin_censor.xml" name="censor" />
<plugin config="@conf/plugin_spamcontrol.xml" name="spamcontrol" />
<plugin config="@conf/plugin_admin.xml" name="admin" />
<plugin config="@conf/plugin_tk.xml" name="tk" />
<plugin config="@conf/plugin_stats.xml" name="stats" />
<plugin config="@conf/plugin_pingwatch.xml" name="pingwatch" />
<plugin config="@conf/plugin_adv.xml" name="adv" />
<plugin config="@conf/plugin_status.xml" name="status" />
<plugin config="@conf/plugin_welcome.xml" name="welcome" />
<plugin config="@conf/plugin_punkbuster.xml" name="punkbuster" />
<!-- You can add new/custom plugins to this list using the same form as above. -->
</plugins>



I hope I've provided enough info for someone to kindly help out :)

Many thanks, RZY

Offline RZY

  • Newbie
  • *
  • Posts: 6
Re: B3 failing to start up - plugin issues?
« Reply #1 on: October 19, 2014, 08:44:23 PM »
I thought I'd test to see what happened if I also removed all plugins listed in my config file and my log then returned this error:

Code: [Select]
141019 14:38:19	CRITICAL	'AdminPlugin is essential and MUST be loaded! Cannot continue without admin plugin.'
None

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: B3 failing to start up - plugin issues?
« Reply #2 on: October 19, 2014, 11:17:01 PM »
You had everything ok the first time when you had this:

Code: [Select]
<plugins>
<!-- plugin order is important. Plugins that add new in-game commands all depend on the admin plugin. Make sure to have the admin plugin before them. -->
<plugin config="@conf/plugin_censor.xml" name="censor" />
<plugin config="@conf/plugin_spamcontrol.xml" name="spamcontrol" />
<plugin config="@conf/plugin_admin.xml" name="admin" />
<plugin config="@conf/plugin_tk.xml" name="tk" />
<plugin config="@conf/plugin_stats.xml" name="stats" />
<plugin config="@conf/plugin_pingwatch.xml" name="pingwatch" />
<plugin config="@conf/plugin_adv.xml" name="adv" />
<plugin config="@conf/plugin_status.xml" name="status" />
<plugin config="@conf/plugin_welcome.xml" name="welcome" />
<plugin config="@conf/plugin_punkbuster.xml" name="punkbuster" />
<!-- You can add new/custom plugins to this list using the same form as above. -->
</plugins>

The error that was making B3 fail to start was this:
Quote
141019 14:25:56   CRITICAL   'CensorPlugin: Could not find config file plugin_censor.xml'
Traceback (most recent call last):
  File "/home/joe/b3/b3/plugin.py", line 93, in loadConfig
    self.config = b3.config.load(fileName)
  File "/home/joe/b3/b3/config.py", line 290, in load
    if config.load(fileName):
  File "/home/joe/b3/b3/config.py", line 198, in load
    raise ConfigFileNotFound(fileName)
ConfigFileNotFound: <unprintable ConfigFileNotFound object>

You should be trying to locate this: b3/conf/plugin_censor.xml
All the confgs listed in the b3.xml should have a file that correspond to that location. Make sure the directory is not named incorrectly and the files that should be in it exists.

Another thing, your extplugins folder is not correct. It is supposed to be inside the "b3" folder.
Inside you b3 folder supposed to look something like this:


Notice the "conf" folder (which has plugin configs) and "extplugins" folder is in same location.
Keep is mind that "b3/conf" and "b3/extplugins/conf" is 2 different folders altogether.

This is what the file tree supposed to look like:


You will only be interacting with the top first, fourth and fifth entries on that tree.

good luck!
:)
« Last Edit: October 19, 2014, 11:18:50 PM by ph03n1x »

Offline RZY

  • Newbie
  • *
  • Posts: 6
Re: B3 failing to start up - plugin issues?
« Reply #3 on: October 21, 2014, 08:32:41 PM »
Hey ph03n1x,

I fortunately managed to sort it out myself, I re-installed b3 - but there seems to be an issue with the manual install.

The plugins that get downloaded, extracted and moved don't appear to do everything fully.

Some plugins were downloaded to the packages folder (b3/extplugins/packages) but not even extracting. So I just opened them up myself, followed the README provided in those set of files and set it up myself.

Having another issue now though, b3 doesn't appear to be responding to any commands. So after some reading I did the other night, it turned out to be my games_mp.log file for the server itself. It wasn't writing to anything, so where I specified b3 to read from that log file, it was reading a blank file.

If anyone knows anything as to why my server isn't writing to the log file that'd be brilliant. I'm continuing to do some research anyway.

Also, ph03n1x, regards to my folder structure - everything is as per the source code, and appears to match what you have there so not sure what you thought was wrong there? (Bare in mind that the folders are cropped in the image, I only needed to show the extplugins folder for the details I was giving)

Thanks for getting back to me.

~ RZY

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: B3 failing to start up - plugin issues?
« Reply #4 on: October 22, 2014, 01:50:35 PM »
Your games_mp.log is not syncing as it should. In the server.cfg make sure you set g_logsync to 2, like this:
Code: [Select]
set g_logsync "2"

Restart server for it to take effect.

About the structure...I just noticed that it was displaying in folder-menu style... so you can disregard what I said about that..lol!

good luck!
:)

Online 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 failing to start up - plugin issues?
« Reply #5 on: October 22, 2014, 03:10:59 PM »
Also, if you are using a mod then the location of the games_mp log file will most likely be in the mod folder. Anyway, you need to find the one that is being updated and make sure that you link to that one.

If you are using Promod, do a search for Promod on the site to find tips specific to Promod.

 


Rate this page +1 at Google Search

anything