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

investigate why log rotation isn't working #36

Open
drh-stanford opened this issue Nov 21, 2016 · 2 comments
Open

investigate why log rotation isn't working #36

drh-stanford opened this issue Nov 21, 2016 · 2 comments
Labels

Comments

@drh-stanford
Copy link

drh-stanford commented Nov 21, 2016

see robot-master -- it's workflow_service.log got to 28GB`

  workflow do
    url 'https://example/workflow'
    logfile 'log/workflow_service.log'
    shift_age 'weekly'
  end
@eefahy
Copy link

eefahy commented Nov 21, 2016

You might want to just remove this bit of code as now puppet manages log rotation on that file and ships it to afs. see: https://github.com/sul-dlss/puppet/blob/76029dc5b4e0daf652d59a05acd1f4829151f735/hieradata/node/sul-lyberservices-prod.stanford.edu.eyaml#L21-L30

@jmartin-sul
Copy link
Member

it appears this issue still comes up occasionally, though the relevant code has changed somewhat since it was filed. see:

https://app.honeybadger.io/projects/68956/faults/74870729
https://github.com/sul-dlss/technical-metadata-service/blob/573227fa63502181f6d432d47330ecbd9c6094cf/app/jobs/technical_metadata_workflow_job.rb#L15
https://github.com/sul-dlss/technical-metadata-service/blob/573227fa63502181f6d432d47330ecbd9c6094cf/app/jobs/technical_metadata_workflow_job.rb#L41
https://github.com/sul-dlss/technical-metadata-service/blob/573227fa63502181f6d432d47330ecbd9c6094cf/Gemfile.lock
https://github.com/sul-dlss/dor-workflow-client/blob/v3.23.0/lib/dor/workflow/client.rb#L90-L94

/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:752 :in `initialize`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:752 :in `open`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:752 :in `create_logfile`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:746 :in `rescue in open_logfile`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:742 :in `open_logfile`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:736 :in `set_dev`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:671 :in `initialize`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:387 :in `new`
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/logger.rb:387 :in `initialize`
[GEM_ROOT]/gems/dor-workflow-client-3.23.0/lib/dor/workflow/client.rb:93 :in `new`
[GEM_ROOT]/gems/dor-workflow-client-3.23.0/lib/dor/workflow/client.rb:93 :in `default_logger`
[GEM_ROOT]/gems/dor-workflow-client-3.23.0/lib/dor/workflow/client.rb:36 :in `initialize`
[PROJECT_ROOT]/app/jobs/technical_metadata_workflow_job.rb:41 :in `new`
[PROJECT_ROOT]/app/jobs/technical_metadata_workflow_job.rb:41 :in `client`
[PROJECT_ROOT]/app/jobs/technical_metadata_workflow_job.rb:24 :in `log_success`
[PROJECT_ROOT]/app/jobs/technical_metadata_workflow_job.rb:15 :in `perform`
[GEM_ROOT]/gems/activejob-6.1.0/lib/active_job/execution.rb:48 :in `block in perform_now`

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

No branches or pull requests

3 participants