Error: "no passwd entry for app"

3 views
Skip to first unread message

Mark A. Richman

unread,
May 7, 2008, 4:14:01 PM5/7/08
to Capistrano
I am using `cap servers:setup` with the railsmachine gem, and I get
this error:

* executing `servers:setup'
* executing `deploy:setup'
* executing "umask 02 && mkdir -p /var/www/apps/myproject /var/www/
apps/myproject/releases /var/www/apps/myproject/shared /var/www/apps/
myproject/shared/system /var/www/apps/myproject/shared/log /var/www/
apps/myproject/shared/pids"
servers: ["localhost"]
Password:
[localhost] executing command
** [out :: localhost] sudo: no passwd entry for app!
command finished

Any suggestions?

Thanks,
Mark

Mirko

unread,
May 7, 2008, 4:37:14 PM5/7/08
to Capistrano
We came across the same problem yesterday. It seemed to start
happening after upgrading to Capistrano 2.3.0. Perhaps a regression?
We found some earlier information about this problem. Apparently, one
of the Capistrano tasks runs as user "app" by default, rather than as
the specified user.

We had to add "set :runner, 'username'" to our Capistrano script to
make it work again. I think "set :runner, user" should do the trick,
too.

-Mirko

Jamis Buck

unread,
May 7, 2008, 6:56:00 PM5/7/08
to capis...@googlegroups.com
Right. Some tasks that used to just do a raw "sudo" now use the same
sudo logic as deploy:start. If you don't have an "app" user, just set
the :runner variable as Mirko suggested.

- Jamis

Reply all
Reply to author
Forward
0 new messages