Closed milestorme closed 5 years ago
@Winfidonarleyan we need you!
@Stoabrogga I made the issue here
Will try fix this arvo
@milestorme You add config .conf
?
In this module, the config works fine, there are no problems with the configuration if you configure it correctly
In travis - config work :/
same console error here as on a live azerothcore config does not work fine its broken on Debian 9 and on ubuntu
Using World DB: ACDB 335.3 (dev)
1705
Initializing Scripts...
1706
Loading C++ scripts
1707
1708
Module config: Invalid or missing configuration file : /home/travis/build/milestorme/azerothcore-wotlk/env/dist/etc/CFBG.conf
1709
Module config: Verify that the file exists and has '[worldserver]' written in the top of the file!
1710
Module config: Use default settings!
1711
1712
Will clear logs
table of entries older than 1209600 seconds every 10 minutes.
1713
Using DataDir /home/travis/build/azerothcore/azerothcore-wotlk/env/dist/data/
1714
WORLD: VMap support included. LineOfSight:1, getHeight:1, indoorCheck:1 PetLOS:1
1715
1716
Loading Trinity strings...
1717
Loaded 1167 trinity strings in 2 ms 1718
this is the azerothcore travis same error
Initializing Scripts... 1706 Loading C++ scripts 1707 1708 Module config: Invalid or missing configuration file : /home/travis/build/azerothcore/azerothcore-wotlk/env/dist/etc/CFBG.conf 1709 Module config: Verify that the file exists and has '[worldserver]' written in the top of the file! 1710 Module config: Use default settings! 1711 1712 Will clear
logs` table of entries older than 1209600 seconds every 10 minutes.
1713
Using DataDir /home/travis/build/azerothcore/azerothcore-wotlk/env/dist/data/
1714
WORLD: VMap support included. LineOfSight:1, getHeight:1, indoorCheck:1 PetLOS:1
1715
1716
Loading Trinity strings...
1717
Loaded 1167 trinity strings in 2 ms`
and same error on a live server `AC>.reload conf AC>Re-Loading config settings...
Module config: Invalid or missing configuration file : /home/wowtorn/rocketAC/etc/CFBG.conf Module config: Verify that the file exists and has '[worldserver]' written in the top of the file! Module config: Use default settings!
Will clear logs
table of entries older than 1209600 seconds every 10 minutes.
WORLD: VMap support included. LineOfSight:1, getHeight:1, indoorCheck:1 PetLOS:1
AnticheatModule Loaded.
Module config: Invalid or missing configuration file : /home/wowtorn/rocketAC/etc/CFBG.conf Module config: Verify that the file exists and has '[worldserver]' written in the top of the file! Module config: Use default settings!`
I have 25 modules working all confs working the only fail is this module it needs fixing
As I wrote here the Travis error is ok because Travis does not use a custom configuration file "CFBG.conf" for CFBG, it only uses the default "CFBG.conf.dist".
Ok, tested it on Ubuntu 16.04 and it works. Installed the module, then just started the server without "CFGB.conf", so this error is correct:
ERROR: Module config: Invalid or missing configuration file : /home/u1/azeroth-server/etc/CFBG.conf
ERROR: Module config: Verify that the file exists and has '[worldserver]' written in the top of the file!
ERROR: Module config: Use default settings!
After that stopped the server and copied the configuration file:
cp azeroth-server/etc/CFBG.conf.dist azeroth-server/etc/CFBG.conf
Started the server again and no errors anymore, so seems to work correctly.
Guess Iโll just hack fix mine , since thereโs no help ๐ no need for a conf anyway
what you talk about here? all works as should. need both files conf and conf.dist plz read code.
@Viste
@milestorme I'm sorry, but I can only test Ubuntu 16.04, don't have Debian 9 available. But as far as I understand cmake the file name is always determined the same way here, independently from the module: https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/worldserver/CMakeLists.txt#L195
So if the default file name is "CFBG.conf.dist" the cmake command "get_filename_component" with component "NAME_WE" will strip the file extension and the resulting name will be "CFBG.conf". If you have this file in the correct directory there's something wrong with it, e.g. it has the wrong file name (case-sensitive!) or wrong permissions.
Yeah I know , I been helping others with all the same advice for other modules, and been fixing configs to work on other modules, I understand I need both , I understand they need to have correct permissions, what I canโt understand is why it wonโt read on my Debian server
I know that this is just wild guessing, but you could also check if your config file contains a space after the file name. This is not possible on Windows, but on Linux.
i guess debian is shit ) dont have this on CentOS and ArchLinux
@milestorme can you show ls -la
in your etc folder?
Just another guess: Debian 9 seems to support SELinux. Don't know if you use this, but I had problems with this some time ago on CentOS concerning file access.
@Viste Debian is great, it's one of the most stable operating systems out there.
@Stoabrogga in past days yes for now its not true
@Stoabrogga @viste Checked all that stuff , everything there is kosher. Iโm very confused as to why i have 30+ working configs and one that doesnโt , hopefully someone else can repeat this , hate have 1 bad config out of over 30 , I looked over the script in this , the config is written different to what Iโm used to . Not sure I can fix it myself
why was this closed not resolved. re opening @BarbzYHOOL
1. Without CFBG.conf
and with CFBG.conf.dist
2 With CFBG.conf
and with CFBG.conf.dist
No drama here. Issue reopened since the problem is still there.
Any help is welcome, other discussions are not.
What problem? do you have this problem? I don't, make a video at the end of the week.
Guys i want remember you that paths are handled different way on Windows and Linux. Are you using standard way to include conf files? let me check
In win and in Debian 9 normal work
in Ubuntu, CFBG / conf work fine !
@xDevICCI thanks for the feedback
@FrancescoBorzi Not problem :/ Config is correct working
Nice :)
we all know it works in ubuntu, but milestorme is on debian 9, dunno if that makes a difference
ubuntu(in core) = debian what difference ?? i dont have troubles on Arch
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ :relieved: :sweat_drops: :sweat_drops: :sweat_drops:
the conf is not being read , confirmed on my server Debian 9 By default the module is disabled