Does anyone have any insight as to why changes to the ccnet.config file are not being accepted by ccnet?
We have a ccnet.config file that holds about 30 projects. Usually, if you need the configuration reloaded we can just 'touch' the file and save it, and the ccnet.log shows that ccnet has noticed the config changes and reloads the config with the changes. Here's an example of it working:
2010-02-15 09:33:42,465 [4804:INFO] Config file modification detected for C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config
2010-02-15 09:33:42,465 [4804:INFO] Configuration changed: Restarting CruiseControl.NET Server
2010-02-15 09:33:42,465 [4804:INFO] Reading configuration file "C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config"
2010-02-15 09:33:42,793 [4804:INFO] Stopping integrator for project: BatchFileExecutor.branch
2010-02-15 09:33:42,793 [4804:INFO] Stopping integrator for project: DeliveriesService.branch
However, just now I have done mods to the file, saved it and only gotten the:
2010-02-15 09:33:42,465 [4804:INFO] Config file modification detected for C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config
line and not the evidence of all the config changes being populated. I've noticed that sometimes if I've broken the XML, the file (quietly! argh!)refuses to load, but I've validated the file using the supplied 'CCvalidator.exe' tool and it checks out OK.
I've tried restarting the ccnet service, as sometimes that does the trick, but not this time.
So right now, ccnet is using the previous version of the config file, and just won't let go of it! We are using version 1.4.4.83.
Cheers, Lance
It isn't documented, but CC.NET waits for all running builds to stop before reloading the configuration or before shutting down.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With