I am running Passenger Enterprise 5.0.23 on CentOS7 server and lately we are facing many times "Resisting deployment error!"
What I tried first is to increase timeout (passenger_start_timeout), but that doesn't really solve anything and error still appears from time to time.
I tried to strace process to see what really happens and I found one block repeating over and over again:
===========================
select(17, [0 16], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGQUIT {si_signo=SIGQUIT, si_code=SI_USER, si_pid=20649, si_uid=1000} ---
write(4, "!", 1) = 1
--- SIGVTALRM {si_signo=SIGVTALRM, si_code=SI_TKILL, si_pid=11872, si_uid=1000} ---
rt_sigreturn() = 1
rt_sigreturn() = -1 EINTR (Interrupted system call)
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(2, "[ 2016-04-27 13:05:34.3980 11872"..., 45802) = 45802
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(2, "[ 2016-04-27 13:05:34.3990 11872"..., 283) = 283
sched_yield() = 0
select(17, [0 16], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted if no handler)
. . .
===========================
Seems like passenger is trying to acquire some handler (socket or file), but it can't, so it retries over and over again until timeout is reached.
When everything works fine, it looks like this:
===========================
select(17, [0 16], NULL, NULL, NULL) = 1 (in [0])
futex(0xed76a4, FUTEX_WAIT_BITSET_PRIVATE, 5, {32760110, 107706373}, ffffffff) = -1 ETIMEDOUT (Conne
ction timed out)
futex(0xed7718, FUTEX_WAKE_PRIVATE, 1) = 0
===========================
I can't find these errors in any log.
What exactly is passenger trying to do or any ideas where to look for the cause of the problem?
Thanks!