-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels