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

'mkdir': Permission denied #33

Open
briarsweetbriar opened this issue Jul 22, 2015 · 0 comments
Open

'mkdir': Permission denied #33

briarsweetbriar opened this issue Jul 22, 2015 · 0 comments

Comments

@briarsweetbriar
Copy link

Using 0.0.69:

$ bluepill load config/services.pill --no-privileged
/usr/share/ruby/2.0/logger.rb:601:in `initialize': Permission denied - /var/app/support/logs/bluepill.log (Errno::EACCES)
    from /usr/share/ruby/2.0/logger.rb:601:in `open'
    from /usr/share/ruby/2.0/logger.rb:601:in `create_logfile'
    from /usr/share/ruby/2.0/logger.rb:596:in `open_logfile'
    from /usr/share/ruby/2.0/logger.rb:551:in `initialize'
    from /usr/share/ruby/2.0/logger.rb:318:in `new'
    from /usr/share/ruby/2.0/logger.rb:318:in `initialize'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/logger.rb:46:in `new'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/logger.rb:46:in `create_logger'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/logger.rb:7:in `initialize'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/application.rb:27:in `new'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/application.rb:27:in `initialize'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/dsl/app_proxy.rb:9:in `new'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/dsl/app_proxy.rb:9:in `initialize'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/dsl.rb:3:in `new'
    from /usr/local/share/ruby/gems/2.0/gems/bluepill-0.0.69/lib/bluepill/dsl.rb:3:in `application'
    from /var/app/current/config/services.pill:5:in `<main>'

Both the gid and uid are set properly for this directory. In config/services.pill:

Bluepill.application('xxxxx', :foreground => false, :log_file => "/var/app/support/logs/bluepill.log") do |app|
  app.working_dir = '/var/app/support/logs'
  app.gid = 'webapp'
  app.uid = 'webapp'

  . . . .

end

And in the console:

$ ls -ld /var/app/support/
drwxr-xr-x 5 webapp webapp 4096 Jul 20 23:43 /var/app/support/

Seems like it might be related to https://github.com/arya/bluepill/issues/144. Any idea what might be going on?

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

1 participant