It looks like there is some problem with Passenger. IIRC the only way I have 
used Passenger is with Whimsy.

I did setupmymac --update-all and it said 
$ brew upgrade passenger
Warning: passenger 6.0.5 already installed

When I go to the browser localhost I get the whimsy home page but then clicking 
on officer tools http://localhost/officers/ I get a 500 error report which 
takes me to the server logs. Looks like some mismatch between ruby and 
passenger?

...
[ N 2020-06-17 09:39:22.0860 52824/T1 age/Wat/WatchdogMain.cpp:1373 ]: Starting 
Passenger watchdog...
[ N 2020-06-17 09:39:22.1471 52826/T1 age/Cor/CoreMain.cpp:1340 ]: Starting 
Passenger core...
[ N 2020-06-17 09:39:22.1474 52826/T1 age/Cor/CoreMain.cpp:256 ]: Passenger 
core running in multi-application mode.
[ W 2020-06-17 09:39:22.1880 52826/T1 age/Cor/CoreMain.cpp:1007 ]: WARNING: 
potential privilege escalation vulnerability detected. Phusion Passenger is 
running as root, and part(s) of the Passenger root path 
(/usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini)
 can be changed by non-root user(s):

 - 
/usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini
 is not secure: it can be modified by user clr
 - /usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger is 
not secure: it can be modified by user clr
 - /usr/local/opt/passenger/libexec/src/ruby_supportlib is not secure: it can 
be modified by user clr
 - /usr/local/opt/passenger/libexec/src is not secure: it can be modified by 
user clr
 - /usr/local/opt/passenger/libexec is not secure: it can be modified by user 
clr
 - /usr/local/opt/passenger is not secure: it can be modified by user clr
 - /usr/local/opt is not secure: it can be modified by user clr

Please either fix up the permissions for the insecure paths, or install 
Passenger in a different location that can only be modified by root.
[ N 2020-06-17 09:39:22.1881 52826/T1 age/Cor/CoreMain.cpp:1015 ]: Passenger 
core online, PID 52826
[Wed Jun 17 09:39:22.191098 2020] [mpm_prefork:notice] [pid 52815] AH00163: 
Apache/2.4.34 (Unix) Phusion_Passenger/6.0.5 configured -- resuming normal 
operations
[Wed Jun 17 09:39:22.191124 2020] [mpm_prefork:info] [pid 52815] AH00164: 
Server built: Feb 22 2019 20:20:11
[Wed Jun 17 09:39:22.191155 2020] [core:notice] [pid 52815] AH00094: Command 
line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Jun 17 09:39:22.191163 2020] [core:debug] [pid 52815] log.c(1568): 
AH02639: Using SO_REUSEPORT: no (1)
[Wed Jun 17 09:39:22.191170 2020] [mpm_prefork:debug] [pid 52815] 
prefork.c(918): AH00165: Accept mutex: none (default: flock)
[Wed Jun 17 09:39:22.193519 2020] [proxy:debug] [pid 52828] proxy_util.c(1908): 
AH00925: initializing worker proxy:reverse shared
[Wed Jun 17 09:39:22.193621 2020] [proxy:debug] [pid 52828] proxy_util.c(1965): 
AH00927: initializing worker proxy:reverse local
[Wed Jun 17 09:39:22.193692 2020] [proxy:debug] [pid 52828] proxy_util.c(2016): 
AH00931: initialized single connection worker in child 52828 for (*)
[ N 2020-06-17 09:39:22.7463 48497/T1 age/Cor/CoreMain.cpp:1325 ]: Passenger 
core shutdown finished
[ N 2020-06-17 09:39:22.9971 52821/T1 age/Cor/CoreMain.cpp:1325 ]: Passenger 
core shutdown finished
[ N 2020-06-17 09:39:24.9302 52826/T5 age/Cor/SecurityUpdateChecker.h:519 ]: 
Security update check: no update found (next check in 24 hours)
[Wed Jun 17 09:45:47.016721 2020] [proxy:debug] [pid 55089] proxy_util.c(1908): 
AH00925: initializing worker proxy:reverse shared
[Wed Jun 17 09:45:47.017128 2020] [proxy:debug] [pid 55089] proxy_util.c(1965): 
AH00927: initializing worker proxy:reverse local
[Wed Jun 17 09:45:47.017195 2020] [proxy:debug] [pid 55089] proxy_util.c(2016): 
AH00931: initialized single connection worker in child 55089 for (*)
App 55090 output:  [passenger_native_support.bundle] trying to compile for the 
current user (_www) and Ruby interpreter...
App 55090 output:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to 
disable)
App 55090 output:      Warning: compilation didn't succeed. To learn why, read 
this file:
App 55090 output:      
/var/folders/zz/zyxvpxvq6csfxvn_n000008r000026/T/passenger_native_support-ji9i8p.log
App 55090 output:  [passenger_native_support.bundle] finding downloads for the 
current Ruby interpreter...
App 55090 output:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to 
disable)
App 55090 output:      Could not download 
https://github.com/phusion/passenger/releases/download/release-6.0.5/rubyext-ruby-2.7.1-x86_64-macosx.tar.gz:
 The requested URL returned error: 404 Not Found
App 55090 output:      Trying next mirror...
App 55090 output:      Could not download 
https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/6.0.5/rubyext-ruby-2.7.1-x86_64-macosx.tar.gz:
 The requested URL returned error: 404 
App 55090 output:      Trying next mirror...
App 55090 output:      Could not download 
https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/6.0.5/rubyext-ruby-2.7.1-x86_64-macosx.tar.gz:
 The requested URL returned error: 403 Forbidden
App 55090 output:  [passenger_native_support.bundle] will not be used (can't 
compile or download) 
App 55090 output:   --> Passenger will still operate normally.
App 55090 output: Error: The application encountered the following error: 
Permission denied @ rb_sysopen - /Users/clr/.whimsy (Errno::EACCES)
App 55090 output:     
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0/psych.rb:577:in `initialize'
App 55090 output:     
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0/psych.rb:577:in `open'
App 55090 output:     
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0/psych.rb:577:in `load_file'
App 55090 output:     
/Users/clr/apache/git/whimsy/lib/whimsy/asf/config.rb:47:in `<class:Config>'
App 55090 output:     
/Users/clr/apache/git/whimsy/lib/whimsy/asf/config.rb:27:in `<module:ASF>'
App 55090 output:     
/Users/clr/apache/git/whimsy/lib/whimsy/asf/config.rb:6:in `<top (required)>'
App 55090 output:     /Users/clr/apache/git/whimsy/lib/whimsy/asf.rb:1:in 
`require_relative'
App 55090 output:     /Users/clr/apache/git/whimsy/lib/whimsy/asf.rb:1:in `<top 
(required)>'
App 55090 output:     /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:1:in 
`require_relative'
App 55090 output:     /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:1:in 
`<top (required)>'
App 55090 output:     config.ru:1:in `require'
App 55090 output:     config.ru:1:in `block in <main>'
App 55090 output:     
/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in 
`instance_eval'
App 55090 output:     
/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in 
`initialize'
App 55090 output:     config.ru:1:in `new'
App 55090 output:     config.ru:1:in `<main>'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:101:in
 `eval'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:101:in
 `preload_app'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:189:in
 `block in <module:App>'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:378:in
 `run_block_and_record_step_progress'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:188:in
 `<module:App>'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:30:in
 `<module:PhusionPassenger>'
App 55090 output:     
/usr/local/Cellar/passenger/6.0.5/libexec/src/helper-scripts/rack-preloader.rb:29:in
 `<main>'
[ E 2020-06-17 09:45:53.7479 52826/Tr age/Cor/App/Implementation.cpp:221 ]: 
Could not spawn process for application /srv/whimsy/www/board/agenda: The 
application encountered the following error: Permission denied @ rb_sysopen - 
/Users/clr/.whimsy (Errno::EACCES)
  Error ID: c30aee3e
  Error details saved to: /tmp/passenger-error-5BSVVQ.html

[ E 2020-06-17 09:45:53.7652 52826/T8 age/Cor/Con/CheckoutSession.cpp:276 ]: 
[Client 1-1] Cannot checkout session because a spawning error occurred. The 
identifier of the error is c30aee3e. Please see earlier logs for details about 
the error.
Craig L Russell
c...@apache.org

Reply via email to