plugin troubleshooting - can't load?

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
musculargenius
Private First Class
Private First Class
Posts: 24
Joined: Sun Jul 01, 2018 12:17 am
Location: Dallas, TX

plugin troubleshooting - can't load?

Post by musculargenius »

How can I troubleshoot this error? Seems I'm unable to load plugins. Is this because I'm not running bzfs as root? Looks like all plugin .so files are 0644 so I don't see why it's a problem...

Code: Select all

WARNING: unable to load the plugin; chathistory
WARNING: unable to load the plugin; autoFlagReset
Sorry if folks are getting tired of my questions! I'm just trying to make the best servers possible, to be a good bzflag steward/citizen.
musculargenius
Private First Class
Private First Class
Posts: 24
Joined: Sun Jul 01, 2018 12:17 am
Location: Dallas, TX

Re: plugin troubleshooting - can't load?

Post by musculargenius »

I should clarify that I've tried all forms of -loadplugin -- all with the same results

-loadplugin chathistory # FAILS
-loadplugin chathistory.so # FAILS
-loadplugin /usr/lib/bzflag-server/chathistory.so # FAILS

...as well as all of the above 'in quotes' (as in -loadplugin 'chathistory', etc, etc)

The only thing I haven't tried doing is changing ownership over the plugin files to the user running bzfs...
musculargenius
Private First Class
Private First Class
Posts: 24
Joined: Sun Jul 01, 2018 12:17 am
Location: Dallas, TX

Re: plugin troubleshooting - can't load?

Post by musculargenius »

ok... seeing more of what's going on. the plugins that came with the server package on Debian 9 don't appear to be compatible with the bzfs server they shipped with. Running bzfs with -ddd yielded this extra insight:

Code: Select all

Jul 03 12:48:15 waki bzflagserver01[25577]: Plugin: chathistory found but does not contain bz_GetPlugin method, error /usr/games/bzfs: undefined symbol: bz_GetPlugin
So I'm guessing I should run a custom-compiled version of bzfs??
musculargenius
Private First Class
Private First Class
Posts: 24
Joined: Sun Jul 01, 2018 12:17 am
Location: Dallas, TX

Re: plugin troubleshooting - can't load?

Post by musculargenius »

ok that was it! the bzflag server that comes packaged with debian 9 (latest stable release) has issues. I compiled my own bzfs and plugins from source and they load just fine. The mystery is solved. Thanks for playing!
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: plugin troubleshooting - can't load?

Post by blast »

For what it's worth, I didn't seem to have a problem loading the plugins with the 2.4.8 bzfs that Debian 9 ships. Regardless, I don't suggest using the packaged server anyway because it's generally going to be outdated and it automatically runs a copy of bzfs.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
alfa1
Private First Class
Private First Class
Posts: 168
Joined: Tue Dec 04, 2012 10:21 pm

Re: plugin troubleshooting - can't load?

Post by alfa1 »

Is this because I'm not running bzfs as root?
Never run bzfs (or any other server within possible) as the root user due to security risks.
musculargenius wrote: Tue Jul 03, 2018 5:32 pm I'm just trying to make the best servers possible, to be a good bzflag steward/citizen.
Good for that!

Just in case: Compiling on Linux - Help for Beginners (and Not So Beginners) .
musculargenius
Private First Class
Private First Class
Posts: 24
Joined: Sun Jul 01, 2018 12:17 am
Location: Dallas, TX

Re: plugin troubleshooting - can't load?

Post by musculargenius »

alfa1 wrote: Fri Jul 13, 2018 7:01 pm
Is this because I'm not running bzfs as root?
Never run bzfs (or any other server within possible) as the root user due to security risks.
musculargenius wrote: Tue Jul 03, 2018 5:32 pm I'm just trying to make the best servers possible, to be a good bzflag steward/citizen.
Good for that!

Just in case: Compiling on Linux - Help for Beginners (and Not So Beginners) .
No need to worry. I would never run it as root even if that's the only way it ran. As the saying goes, I was born at night, but I wasn't born last night. ;-)
Post Reply