View Issue Details

IDProjectCategoryView StatusLast Update
0000084WolfAdminSetup & Configurationpublic2018-02-06 13:10
Reporterleroy04 Assigned ToTimo  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
PlatformET 3.00 serverOSlinux 
Product Version1.1.0 
Summary0000084: Config fails to load when homepath is not the same as basepath
DescriptionI was installing wolfadmin in 3rd party server where fs_homepath is different from fs_basepath. It throws this output in log:

Lua API: Loading luascripts/wolfadmin/main.lua
[WolfAdmin] Module 1.1.0 (30 January 2017) loaded successfully. Created by Timo 'Timothy' Smit.
[WolfAdmin] util.files.open(): file wolfadmin.cfg opened
[WolfAdmin] util.files.loadCFG(): 1 entries loaded in 0 ms
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
[WolfAdmin] util.files.open(): file rules.cfg opened
[WolfAdmin] util.files.loadCFG(): 0 entries loaded in 0 ms
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ls: cannot access /gs/et/base/nq/luascripts/wolfadmin/commands/client/: No such file or directory
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ls: cannot access /gs/et/base/nq/luascripts/wolfadmin/commands/server/: No such file or directory
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ls: cannot access /gs/et/base/nq/luascripts/wolfadmin/commands/admin/: No such file or directory
[WolfAdmin] commands.load(): 0 entries loaded in 8 ms
[WolfAdmin] util.files.open(): file greetings.cfg opened
[WolfAdmin] util.files.loadCFG(): 0 entries loaded in 0 ms
_____________

Changing line 0000028 from util/files.lua from
command = 'ls -1 "'..wolfa_getBasePath()..'luascripts/wolfadmin/'..directory..'"'

to

command = 'ls -1 "'..wolfa_getHomePath()..'luascripts/wolfadmin/'..directory..'"'

Seems to solve the problem giving this output:

Lua API: Loading luascripts/wolfadmin/main.lua
[WolfAdmin] Module 1.1.0 (30 January 2017) loaded successfully. Created by Timo 'Timothy' Smit.
[WolfAdmin] util.files.open(): file wolfadmin.cfg opened
[WolfAdmin] util.files.loadCFG(): 1 entries loaded in 0 ms
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
[WolfAdmin] util.files.open(): file rules.cfg opened
[WolfAdmin] util.files.loadCFG(): 0 entries loaded in 0 ms
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' from LD_PRELOAD cannot be preloaded: ignored.
[WolfAdmin] commands.load(): 36 entries loaded in 13 ms
[WolfAdmin] util.files.open(): file greetings.cfg opened
[WolfAdmin] util.files.loadCFG(): 0 entries loaded in 0 ms
Steps To ReproduceUse different basepath and homepath.
Additional Information
fs_basepath is '/gs/et/base' and fs_homepath is '/gs/et/srvX' (where X is a number depending on server).
TagsNo tags attached.
ModNoQuarter
Mod versionnq 1.2.9
Standaloneno

Activities

Timo

2018-02-06 13:10

administrator   ~0000107

WolfAdmin should be installed in fs_basepath, rather than fs_homepath. From my perspective the fs_basepath should contain static files (e.g. pk3 archives, lua scripts), whereas fs_homepath should contain files that may change over time and are server-specific (e.g. configs, databases). The documentation may not be too clear on this, so I will update the docs for 1.1.1 and 1.2.0 instead.

Issue History

Date Modified Username Field Change
2017-03-17 21:54 leroy04 New Issue
2018-02-06 13:10 Timo Note Added: 0000107
2018-02-06 13:10 Timo Status new => resolved
2018-02-06 13:10 Timo Resolution open => won't fix
2018-02-06 13:10 Timo Assigned To => Timo