Build Forge bfagent.log Not Getting Updated/Rotated
Hello,
I have Build Forge Server v8.0.0.4 setup in my environment and am also running v8.0.0.4 Build Forge agent on RHEL 6.8 server.
I am trying to configure log rotation for bfagent.log located under /opt/buildforge/logs/ but have not been very successful either.
And now I have screwed up the log writing it seems. The bfagent.log file is no longer getting updated. I have tried restarting xinetd services as as well as the agent server but to no avail.
Does anyone have any idea how I can make Build Forge agent write to the log file again? Also, how do I setup log rotation for this log file?
Thank you.
|
One answer
Hello JY,
Comments Hey Joshua,
Thanks for taking the time to answer my question! Now I believe where the problem lies.
I upgraded the Build Forge agent from v7.1.3.1 to v8.0.0.4. In the original /etc/bfagent.conf, the activity log was enabled and customized to log under /opt/buildforge/logs/bfagent.log
When I upgraded to v8.0.0.4, the setting was wiped out and I missed to reconfigure this parameter in the /etc/bfagent.conf file which explains why it's not writing to the /opt/buildforge/logs/bfagent.log file.
After the configuration, I tried to delete the bfagent.log file to see if a new log file will be generated and indeed it does, upon the running of a new job. So first issue is addressed.
Now going to the next question of log rotation. Are there really no innate mechanism of log rotation?
If that's the case, I'll probably have to come up with a cron job to do the log rotation...
Joshua Keefe
commented Sep 06 '17, 10:00 a.m.
Hello JY,
J Y
commented Sep 06 '17, 10:31 p.m.
Noted, Joshua. In that case, I will disable it.
Thanks alot for the help!
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.