Passenger-status command and the instance registry

46 views
Skip to first unread message

Jim Haungs

unread,
Apr 9, 2016, 7:27:32 PM4/9/16
to phusion-...@googlegroups.com
I'm on a brand-new CentOS7 machine, running Passenger 5.0.27 under apache 2.4.6. 

The passenger-memory-stats command works fine, but passenger-status claims Passenger is not running. 

I found this answer on Stack Overflow regarding the registry tmp directory:


I traced down where Passenger is putting its tmp dir, and when I tried the command below (as root), the passenger-status command starts, but then dies with an error about the overly long socket name. 

How can I predict what this crazy tmp directory name will be? It changes every time I restart apache. Should I instead I hard-code /tmp into my mod_passenger.conf file?


env PASSENGER_INSTANCE_REGISTRY_DIR=/tmp/systemd-private-1d789f50b42240af9af182fc689cbe1f-httpd.service-pbTEyd/tmp  passenger-status

Version : 5.0.27
Date    : 2016-04-09 23:19:24 +0000
Instance: a3MYkCBR (Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips Phusion_Passenger/5.0.27)

/usr/local/rvm/gems/ruby-2.3.0/gems/passenger-5.0.27/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb:94:in `initialize': too long unix socket path (114bytes given but 108bytes max) (ArgumentError)
from /usr/local/rvm/gems/ruby-2.3.0/gems/passenger-5.0.27/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb:94:in `new'
from /usr/local/rvm/gems/ruby-2.3.0/gems/passenger-5.0.27/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb:94:in `http_request'
from /usr/local/rvm/gems/ruby-2.3.0/gems/passenger-5.0.27/bin/passenger-status:113:in `show_status'

Daniel Knoppel

unread,
Apr 11, 2016, 4:58:40 AM4/11/16
to Phusion Passenger Discussions
The dir looks to me like apache has been configured on your system to receive a private systemd tmp. See also: Service-Private /tmp.

One way would be to turn that off. Another would be to indeed hardcode the instance folder to something of choice (doesn't have to be tmp). The 108 limit is a system limit that we unfortunately can't do anything about.

- Daniel

Daniel Knoppel

unread,
Apr 11, 2016, 5:14:04 AM4/11/16
to Phusion Passenger Discussions
By the way: If you use our RPM packages (recommended way to install), this should work out-of-the-box (we reconfigure the path there).

- Daniel
Reply all
Reply to author
Forward
0 new messages