Topic: Debian + nginx + unicorn - chpst: fatal

startup unicorn prints chpst: fatal: unable to setgroups: permission denied

Maybe there are any startup options.

config

worker_processes 4 # это число процессов, которые будут запускаться для unicorn$
 
working_directory "/home/quicktouch/web-app"
 
listen "/home/quicktouch/web-app/tmp/sockets/unicorn.sock", :backlog => 64
 
pid "/home/quicktouch/web-app/tmp/pids/unicorn.pid"
 
stderr_path "/home/quicktouch/web-app/log/unicorn.stderr.log"
stdout_path "/home/quicktouch/web-app/log/unicorn.stdout.log"

run

#!/bin/sh
exec 2>&1
export USER=quicktouch
export HOME=/home/$USER
export RAILS_ENV=production
UNICORN="/home/quicktouch/.rvm/bin/rvm  ruby-1.9.3-p374@quicktouch exec bundle $
UNICORN_CONF=/etc/unicorn/quicktouch.rb
cd $HOME/web-app
exec chpst -u $USER $UNICORN -c $UNICORN_CONF