View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000084 | WolfAdmin | Setup & Configuration | public | 2017-03-17 21:54 | 2018-02-06 13:10 |
Reporter | leroy04 | Assigned To | Timo | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Platform | ET 3.00 server | OS | linux | ||
Product Version | 1.1.0 | ||||
Summary | 0000084: Config fails to load when homepath is not the same as basepath | ||||
Description | I 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 Reproduce | Use 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). | ||||
Tags | No tags attached. | ||||
Mod | NoQuarter | ||||
Mod version | nq 1.2.9 | ||||
Standalone | no | ||||
|
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. |