Checking whether to disconnect long-running connections for process ####

3,175 views
Skip to first unread message

Jeremiah McReynolds

unread,
Jan 22, 2017, 12:18:27 PM1/22/17
to Phusion Passenger Discussions
Okay I have officially given up, I cannot figure out what is wrong with my app. I have followed the "deploying a Ruby App on AWS server" about 10 different times now and I still get the same "Checking whether..." error when I try to load up my website. My set up is now:
  • DB: Postgre,
  • Using: RVM,
  • Ruby version: 2.3.3, 
  • Web Server: Apache2
  • Passenger version: 5.1.1
  • On: AWS
  • Rails verson: 5.0.0.1

My files are not even being served, as soon as I go to the website I get a "Something went wrong error, please check the log file". I have tried setting the passenger_pool_idle_time to 0, but that did not work. "sudo passenger-config validate-install" validated both my apache and my passenger install, so I don't think it's anything wrong with that. I tried running passenger on the test app in the tutorial and that worked. rails server runs fine - no errors on the production or development environment. So now I don't know what to do, I am stuck. Here is the error file:


[Sun Jan 22 17:16:23.291019 2017] [mpm_event:notice] [pid 27745:tid 139686427309952] AH00494: SIGHUP received.  Attempting to restart

[ 2017-01-22 17:16:23.2950 7170/7f6e73cf4700 age/Cor/CoreMain.cpp:585 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-01-22 17:16:23.2950 7170/7f6e7a8f0780 age/Cor/CoreMain.cpp:989 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-01-22 17:16:23.2951 7170/7f6e7a8f0780 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 7576, application /var/www/coreystrickland/code
[ 2017-01-22 17:16:23.2951 7170/7f6e73472700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects
[ 2017-01-22 17:16:23.2951 7170/7f6e73472700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
[ 2017-01-22 17:16:23.2953 7170/7f6e73cf4700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects
[ 2017-01-22 17:16:23.2953 7170/7f6e73cf4700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
[ 2017-01-22 17:16:23.2953 7170/7f6e7a8f0780 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 7576, application /var/www/coreystrickland/code

[ 2017-01-22 17:16:23.3007 7176/7f82c90d7700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-01-22 17:16:23.3008 7176/7f82cfd12780 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-01-22 17:16:23.3008 7176/7f82c88d6700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2017-01-22 17:16:23.3008 7176/7f82c88d6700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
[ 2017-01-22 17:16:23.3010 7176/7f82c90d7700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
[ 2017-01-22 17:16:23.3010 7176/7f82cfd12780 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
[ 2017-01-22 17:16:23.3209 8064/7fd6493e6780 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog...
[ 2017-01-22 17:16:23.3435 8067/7f7b50bfa780 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core...
[ 2017-01-22 17:16:23.3436 8067/7f7b50bfa780 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode.
[ 2017-01-22 17:16:23.3508 8067/7f7b50bfa780 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 8067
[ 2017-01-22 17:16:23.3771 8073/7fdc8c5da780 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-01-22 17:16:23.3777 8073/7fdc8c5da780 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 8073
[Sun Jan 22 17:16:23.378466 2017] [mpm_event:notice] [pid 27745:tid 139686427309952] AH00489: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.1 configured -- resuming normal operations
[Sun Jan 22 17:16:23.378485 2017] [core:notice] [pid 27745:tid 139686427309952] AH00094: Command line: '/usr/sbin/apache2'
[ 2017-01-22 17:16:23.5238 7170/7f6e7a8f0780 age/Cor/CoreMain.cpp:1055 ]: Passenger core shutdown finished
[ 2017-01-22 17:16:26.1949 8067/7f7b50b0b700 age/Cor/SecurityUpdateChecker.h:350 ]: Security update check: no update found (next check in 24 hours)


If you need any more information from me, please do not hesitate to ask. But please, help me figure this out it is absolutely killing me.

Daniel Knoppel

unread,
Jan 23, 2017, 5:33:19 AM1/23/17
to Phusion Passenger Discussions
"Checking whether to disconnect long-running connections" is not an error, it's normal when Passenger is stopping.

I see "[Sun Jan 22 17:16:23.291019 2017] [mpm_event:notice] [pid 27745:tid 139686427309952] AH00494: SIGHUP received.  Attempting to restart"

Are you sending these signals to apache? Does the error you see in the browser mention passenger at the bottom or not?

You can always try setting the passenger log level to 7 to get detailed info on what is going on, the log you pasted is either cut off or too short to show anything problematic. Also, you could temporarily turn on friendly error pages for troubleshooting.

- Daniel
Reply all
Reply to author
Forward
0 new messages