capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

Failed to restart unicorn_myApp_production.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files. #92

Closed marvindanig closed 8 years ago

marvindanig commented 8 years ago

On my rails 5 app I have:

Gemfile.lock:
    capistrano-unicorn-nginx (3.2.0)
      capistrano (>= 3.1)
      sshkit (>= 1.2.0)

$ cap production deploy fails at:

Running /usr/bin/env service unicorn_myApp_production restart as marvin@bubbl.in

The error log is described on the stackoverflow question here; it seems to seek a sudo qualifier to start the unicorn service.

How do I configure cap-uni-nginx to use sudo instead?

marvindanig commented 8 years ago

For some reason gem wasn't updated to 3.4.0 on the server side. It works normally now.