Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpms contain production.log files that are produced when running rake tasks #31

Closed
ericfranz opened this issue Jul 18, 2018 · 3 comments
Assignees

Comments

@ericfranz
Copy link
Contributor

efranz@webtest02:~$ rpm -ql ondemand-1.3.7-1.el6.x86_64 | egrep production.log$
/var/www/ood/apps/sys/activejobs/log/production.log
/var/www/ood/apps/sys/dashboard/log/production.log
/var/www/ood/apps/sys/file-editor/log/production.log
/var/www/ood/apps/sys/myjobs/log/production.log
efranz@webtest02:~$ rpm -ql ondemand-pseudofun-0.2.0-1.el6.x86_64 | egrep production.log$
/var/www/ood/apps/sys/pseudofun/log/production.log

Any production.log files produced should be removed, or when running rake tasks we should determine how to avoid producing these in the first place. In OnDemand apps log to STDOUT which is then gathered by NGINX.

When these files exist, the Rails app logs are polluted with these warning messages:

App 25936 stderr: Rails Error: Unable to access log file. Please ensure that /users/PZS0645/wiag/ood_portals/ondemand_test/sys/dashboard/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /users/PZS0645/wiag/ood_portals/ondemand_test/sys/dashboard/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

@treydock
Copy link
Collaborator

Resolved via 8a810ba

@treydock
Copy link
Collaborator

treydock commented Jul 18, 2018

I have pushed the updated packages for ondemand, ondeand-systemstatus (2b26d1a), and ondemand-pseudofun to test nodes.

I verified the updated packages did remove production.log from the previous locations.

Let me know when want these updates in production.

@treydock
Copy link
Collaborator

RPMs pushed to production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants