azerothcore / mod-cfbg

Cross-faction Battleground for AzerothCore
MIT License
13 stars 42 forks source link

Config not being read #3

Closed milestorme closed 5 years ago

milestorme commented 5 years ago

the conf is not being read , confirmed on my server Debian 9 By default the module is disabled

BarbzYHOOL commented 5 years ago

@Winfidonarleyan we need you!

milestorme commented 5 years ago

@Stoabrogga I made the issue here

Will try fix this arvo

Winfidonarleyan commented 5 years ago

@milestorme You add config .conf?

Winfidonarleyan commented 5 years ago

In this module, the config works fine, there are no problems with the configuration if you configure it correctly

In travis - config work :/

milestorme commented 5 years ago

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

milestorme commented 5 years ago

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 clearlogs` 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`

milestorme commented 5 years ago

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!`

milestorme commented 5 years ago

I have 25 modules working all confs working the only fail is this module it needs fixing

milestorme commented 5 years ago

https://cdn.discordapp.com/attachments/553105276023341107/614260769105903616/Untitled.png

ghost commented 5 years ago

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".

ghost commented 5 years ago

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.

milestorme commented 5 years ago

Guess Iโ€™ll just hack fix mine , since thereโ€™s no help ๐Ÿ‘Œ no need for a conf anyway

Viste commented 5 years ago

what you talk about here? all works as should. need both files conf and conf.dist plz read code.

milestorme commented 5 years ago

@Viste

ghost commented 5 years ago

@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.

milestorme commented 5 years ago

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

ghost commented 5 years ago

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.

Viste commented 5 years ago

i guess debian is shit ) dont have this on CentOS and ArchLinux @milestorme can you show ls -la in your etc folder?

ghost commented 5 years ago

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.

Viste commented 5 years ago

@Stoabrogga in past days yes for now its not true

milestorme commented 5 years ago

@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

milestorme commented 5 years ago

why was this closed not resolved. re opening @BarbzYHOOL

Winfidonarleyan commented 5 years ago

1. Without CFBG.conf and with CFBG.conf.dist

image image

2 With CFBG.conf and with CFBG.conf.dist

image image

FrancescoBorzi commented 5 years ago

No drama here. Issue reopened since the problem is still there.

Any help is welcome, other discussions are not.

Viste commented 5 years ago

What problem? do you have this problem? I don't, make a video at the end of the week.

Yehonal commented 5 years ago

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

Winfidonarleyan commented 5 years ago

In win and in Debian 9 normal work

xDevICCI commented 5 years ago

in Ubuntu, CFBG / conf work fine !

Winfidonarleyan commented 5 years ago

@xDevICCI thanks for the feedback

Winfidonarleyan commented 5 years ago

@FrancescoBorzi Not problem :/ Config is correct working

Yehonal commented 5 years ago

Nice :)

BarbzYHOOL commented 5 years ago

we all know it works in ubuntu, but milestorme is on debian 9, dunno if that makes a difference

Viste commented 5 years ago

ubuntu(in core) = debian what difference ?? i dont have troubles on Arch

FrancescoBorzi commented 5 years ago

๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘ ๐Ÿ‘Ž :relieved: :sweat_drops: :sweat_drops: :sweat_drops: