Phusion Passenger cannot start Rails application - ruby-on-rails

Any help would be greatly appreciated. I'm trying to run basic Rails apps on my server.
I'm running Ubuntu and nginx. Ideally I'd like to be able to still run php apps so nginx+Phusion seems like the way to go.
A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- bundler
Exception class:
LoadError
0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
2 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/utils.rb 325 in prepare_app_process'
3 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb 156 ininitialize_server'
4 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/utils.rb 563 in report_app_init_status'
5 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb 154 ininitialize_server'
6 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server.rb 204 in start_synchronously'
7 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server.rb 180 instart'
8 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb 129 in start'
9 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb 253 inspawn_rack_application'
10 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb 132 in lookup_or_add'
11 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb 246 inspawn_rack_application'
12 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb 82 in synchronize'
13 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize'
14 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb 244 in spawn_rack_application'
15 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb 137 inspawn_application'
16 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb 275 in handle_spawn_application'
17 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server.rb 357 insend'
18 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server.rb 357 in server_main_loop'
19 /var/lib/gems/1.8/gems/passenger-3.0.19/lib/phusion_passenger/abstract_server.rb 206 instart_synchronously'
20 /var/lib/gems/1.8/gems/passenger-3.0.19/helper-scripts/passenger-spawn-server 99

It seems like you installed passenger to your system ruby installation and not for the 1.9.3-p374 version via rvm. Try to follow the below steps:
rvm use 1.9.3-p374
gem install bundler passenger
passenger-install-apache2-module
Then use the instructions from the last command and configure your apache with them. Additionally, go to the project directory and do
rvm use 1.9.3-p374
bundle install
That should do the trick.

Related

webApp not loading Passenger + nginx + ruby 2.6.8 + rails 6.0.4 #digitalOcean

I recently upgrade ruby version and Rails version to 2.6.8 and 6.0.4 respectively, the app is running fine when I run it through "rails start" command, but when we invoke it through passenger through nginx then the app does not load and throws errors.
I used rvm to install ruby-2.6.8,
I used rvmsudo to start nginx: rvmsudo service nginx start/restart.
I Used latest bundler which was giving bundler version issue and then I downgraded it to bundler-1.17.3 then bundler version issue resolved but this issue came.
nginx - 1.14.x
passenger- 6.0.10
ruby- 2.6.8
rails- 6.0.4
[passenger_native_support.so] trying to compile for the current user (nobody) and Ruby interpreter...
(set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
Warning: compilation didn not succeed. To learn why, read this file:
/tmp/passenger_native_support-1s7i1rz.log
[passenger_native_support.so] finding downloads for the current Ruby interpreter...
(set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
Could not download https://github.com/phusion/passenger/releases/download/release-6.0.10/rubyext-ruby-2.6.8-x86_64-linux.tar.gz: The requested URL returned error: 404
Trying next mirror...
Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/6.0.10/rubyext-ruby-2.6.8-x86_64-linux.tar.gz: The requested URL returned error: 404
Trying next mirror...
Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/6.0.10/rubyext-ruby-2.6.8-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
[passenger_native_support.so] will not be used (can not compile or download)
--> Passenger will still operate normally.
Unable to autodetect the currently active RVM gem set name. This could happen if you ran this program using "sudo" instead of "rvmsudo". When using RVM, you are always supposed to use "rvmsudo" instead of "sudo!".
Please try rerunning this program using "rvmsudo". If that does not help, please contact this programs author for support.
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb:82: [BUG] Segmentation fault at 0x00007f53c62fb210
ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux]
-- Ruby level backtrace information ----------------------------------------
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in "<main>"
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in "<module:PhusionPassenger>"
/usr/share/passenger/helper-scripts/rack-preloader.rb:188:in "<module:App>"
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:390:in "run_block_and_record_step_progress"
/usr/share/passenger/helper-scripts/rack-preloader.rb:189:in "block in <module:App>"
/usr/share/passenger/helper-scripts/rack-preloader.rb:91:in "preload_app"
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:220:in "run_load_path_setup_code"
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:536:in "running_bundler"
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:541:in "rescue in running_bundler"
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb:82:in "ruby_command"
-- Machine register context ------------------------------------------------
RIP: 0x00007f4bc7875b7d RBP: 0x00000007fffffff0 RSP: 0x00007ffe0577d4f0
RAX: 0x000055bee28728e0 RBX: 0x00007f53c62fb210 RCX: 0x00007f53c62fb218
RDX: 0x00007f4bc62fb220 RDI: 0x00007f4bc63fada8 RSI: 0x00007f4bc63fada8
R8: 0x000055bee202a350 R9: 0x000055bee20a02e8 R10: 0x00007f4bc63fada8
R11: 0x00007f4bc62fb219 R12: 0x00000000fffffffe R13: 0x00007f4bc62fb218
R14: 0x00007f4bc7b90b98 R15: 0x0000000000000000 EFL: 0x0000000000010202
-- C level backtrace information -------------------------------------------
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(rb_vm_bugreport+0x769) [0x7f4bc78859d9] vm_dump.c:715
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(rb_bug_context+0xe7) [0x7f4bc76c7777] error.c:609
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(sigsegv+0x42) [0x7f4bc77ece72] signal.c:998
/lib/x86_64-linux-gnu/libc.so.6(0x7f4bc7259040) [0x7f4bc7259040]
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(rb_vm_exec+0x72d) [0x7f4bc7875b7d] vm.c:2094
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(ruby_exec_internal+0xd6) [0x7f4bc76ce516] eval.c:262
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(ruby_exec_node+0x1d) [0x7f4bc76d0bed] eval.c:326
/usr/local/rvm/rubies/ruby-2.6.8/bin/../lib/libruby.so.2.6(ruby_run_node+0x2e) [0x7f4bc76d41ae] eval.c:318
/usr/local/rvm/rubies/ruby-2.6.8/bin/ruby(main+0x5b) [0x55bee0a2a94b] ./main.c:42
-- Other runtime information -----------------------------------------------
* Loaded script: Passenger AppPreloader: /home/twirll/web/apps/twirllapp
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
4 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
5 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
6 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/rbconfig.rb
7 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/compatibility.rb
8 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/defaults.rb
9 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/deprecate.rb
10 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/errors.rb
11 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/version.rb
12 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/requirement.rb
13 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/platform.rb
14 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/basic_specification.rb
15 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/stub_specification.rb
16 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/delegate.rb
17 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/rfc2396_parser.rb
18 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/rfc3986_parser.rb
19 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/common.rb
20 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/generic.rb
21 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/file.rb
22 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/ftp.rb
23 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/http.rb
24 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/https.rb
25 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/ldap.rb
26 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/ldaps.rb
27 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri/mailto.rb
28 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/uri.rb
29 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/specification_policy.rb
30 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/util/list.rb
31 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/stringio.so
32 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/specification.rb
33 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/exceptions.rb
34 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/util.rb
35 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/bundler_version_finder.rb
36 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/dependency.rb
37 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb
38 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/monitor.rb
39 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb
40 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/core_ext/kernel_warn.rb
41 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems.rb
42 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/path_support.rb
43 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/version.rb
44 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/core_ext/name_error.rb
45 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/levenshtein.rb
46 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/jaro_winkler.rb
47 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checker.rb
48 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
49 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
50 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
51 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
52 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/key_error_checker.rb
53 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/null_checker.rb
54 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/formatters/plain_formatter.rb
55 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean.rb
56 /usr/lib/ruby/vendor_ruby/phusion_passenger.rb
57 /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb
58 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/fileutils/version.rb
59 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/etc.so
60 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/fileutils.rb
61 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/tmpdir.rb
62 /usr/lib/ruby/vendor_ruby/phusion_passenger/constants.rb
63 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/base64.rb
64 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb
65 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tmpio.rb
66 /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb
67 /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/operating_system.rb
68 /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/ruby.rb
69 /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/binary_compatibility.rb
70 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/shellwords.rb
71 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/shellwords.rb
72 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/logger.rb
73 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/download.rb
74 /usr/lib/ruby/vendor_ruby/phusion_passenger/native_support.rb
75 /usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb
76 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/strscan.so
77 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/forwardable/impl.rb
78 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/forwardable.rb
79 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/json.rb
80 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/socket.so
81 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/io/wait.so
82 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/socket.rb
83 /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb
84 /usr/lib/ruby/vendor_ruby/phusion_passenger/debug_logging.rb
85 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/pathname.so
86 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/pathname.rb
87 /usr/lib/ruby/vendor_ruby/phusion_passenger/ruby_core_enhancements.rb
88 /usr/lib/ruby/vendor_ruby/phusion_passenger/ruby_core_io_enhancements.rb
89 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/x86_64-linux/fcntl.so
90 /usr/lib/ruby/vendor_ruby/phusion_passenger/message_channel.rb
91 /usr/lib/ruby/vendor_ruby/phusion_passenger/message_client.rb
92 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/native_support_utils.rb
93 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/unseekable_socket.rb
94 /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb
95 /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb
96 /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tee_input.rb
97 /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb
98 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/version.rb
99 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/compatibility_guard.rb
100 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/constants.rb
101 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/text.rb
102 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/user_interaction.rb
103 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/config_file.rb
104 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/rubygems_integration.rb
105 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/current_ruby.rb
106 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/shared_helpers.rb
107 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/ext/builder.rb
108 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/fileutils/lib/fileutils.rb
109 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendored_fileutils.rb
110 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/errors.rb
111 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/environment_preserver.rb
112 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/plugin/api.rb
113 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/plugin.rb
114 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/git.rb
115 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/installed.rb
116 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/specific_file.rb
117 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/local.rb
118 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/lock.rb
119 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source/vendor.rb
120 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/rubygems/source.rb
121 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/gem_helpers.rb
122 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/match_platform.rb
123 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/rubygems_ext.rb
124 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/build_metadata.rb
125 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler.rb
126 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/settings.rb
127 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/ui.rb
128 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/ui/silent.rb
129 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/ui/rg_proxy.rb
130 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/feature_flag.rb
131 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source.rb
132 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source/path.rb
133 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source/git.rb
134 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source/rubygems.rb
135 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/lockfile_parser.rb
136 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/set.rb
137 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/definition.rb
138 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/dependency.rb
139 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/ruby_dsl.rb
140 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/dsl.rb
141 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source_list.rb
142 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source/metadata.rb
143 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/ruby_version.rb
144 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/lazy_specification.rb
145 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/index.rb
146 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/tsort.rb
147 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/spec_set.rb
148 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/compatibility.rb
149 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb
150 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb
151 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/errors.rb
152 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
153 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb
154 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb
155 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb
156 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb
157 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb
158 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb
159 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb
160 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb
161 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb
162 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/state.rb
163 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb
164 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb
165 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb
166 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/resolver.rb
167 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb
168 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo.rb
169 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/vendored_molinillo.rb
170 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/resolver/spec_group.rb
171 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/resolver.rb
172 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/source/gemspec.rb
173 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/runtime.rb
174 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/dep_proxy.rb
175 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/remote_specification.rb
176 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/stub_specification.rb
177 /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/2.6.0/bundler/endpoint_specification.rb
I also checked this log file /tmp/passenger_native_support-1s7i1rz.log
# current user is: nobody
# mkdir -p /nonexistent/.passenger/native_support/6.0.10/ruby-2.6.8-x86_64-linux
Encountered permission error, but no more directories to try. Giving up.
-------------------------------
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.0.3.1
- RUBY VERSION: 2.6.8 (2021-07-07 patchlevel 205) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-2.6.8
- USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.6.0
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-2.6.8/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-2.6.8/bin
- SPEC CACHE DIRECTORY: /root/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rvm/gems/ruby-2.6.8
- /usr/local/rvm/rubies/ruby-2.6.8/lib/ruby/gems/2.6.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/rvm/gems/ruby-2.6.8/bin
- /usr/local/rvm/gems/ruby-2.6.8#global/bin
- /usr/local/rvm/rubies/ruby-2.6.8/bin
- /usr/local/rvm/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
Can someone please help me here, I am kind of stuck in this activity.
let me know if need any other information.
I checked the log in detail,
on the 4th line the below log file was mentioned, it had captured the error, and the error was about a permission of a folder so that certain files can be written into it.
/tmp/passenger_native_support-1s7i1rz.log
I hope this helps someone who is looking for similar problem. the characters at last in filename 1s7i1rz may vary everytime this problem appears.

Rails server command bug

I started a new ruby-on-rails project called "myrubyblog", changed directories to my project then launched rails server command, but the terminal then outputs me this after an incredible amount of lines of information I don't understand;
-- Other runtime information -----------------------------------------------
* Loaded script: bin/rails
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
4 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/enc/encdb.so
5 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/enc/trans/transdb.so
6 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/rbconfig.rb
7 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/compatibility.rb
8 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/defaults.rb
9 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/deprecate.rb
10 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/errors.rb
11 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/version.rb
12 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/requirement.rb
13 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/platform.rb
14 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/basic_specification.rb
15 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/stub_specification.rb
16 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/util/list.rb
17 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/stringio.so
18 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/rfc2396_parser.rb
19 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/rfc3986_parser.rb
20 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/common.rb
21 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/generic.rb
22 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ftp.rb
23 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/http.rb
24 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/https.rb
25 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ldap.rb
26 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ldaps.rb
27 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/mailto.rb
28 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri.rb
29 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/specification.rb
30 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/exceptions.rb
... (up to 320 lines)
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abandon
What is that supposed to mean?

Passenger error Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound) on Bluehost shared hosting

I have to use bluehost shared hosting for some reason. I upgraded ruby to version 2.1.1 and Rails to version 4.2.2 (Following this article http://www.haydonryan.com/installing-ruby-2-1-1p76-and-rails-4-0-4-on-bluehost/).
Then I uploaded my application and followed instructions provided by Bluehost at https://my.bluehost.com/cgi/help/rails
Now when I go to the domain obortunity.org I get this error message:-
Ruby (Rack) application could not be started
Error message:
Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
Application root:
/home4/obortuni/rails_apps/obortunity
Backtrace:
0 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/spec_set.rb 92 in block in materialize'
1 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/spec_set.rb 85 inmap!'
2 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/spec_set.rb 85 in materialize'
3 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/definition.rb 114 inspecs'
4 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/definition.rb 159 in specs_for'
5 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/definition.rb 148 inrequested_specs'
6 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/environment.rb 18 in requested_specs'
7 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb 13 insetup'
8 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler.rb 120 in setup'
9 /etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 326 inprepare_app_process'
10 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 156 in block in initialize_server'
11 /etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 563 inreport_app_init_status'
12 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 154 in initialize_server'
13 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 204 instart_synchronously'
14 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 180 in start'
15 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 129 instart'
16 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb 253 in block (2 levels) in spawn_rack_application'
17 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 132 inlookup_or_add'
18 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb 246 in block in spawn_rack_application'
19 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 82 inblock in synchronize'
20 prelude> 10:in synchronize'
21 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize'
22 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb 244 in spawn_rack_application'
23 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb 137 inspawn_application'
24 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb 275 in handle_spawn_application'
25 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 357 inserver_main_loop'
26 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 206 in start_synchronously'
27 /etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99 in
'
For some reason Passenger is stuck on previous version of ruby which comes default in bluehost shared hosting. I tried 3-4 hours searching for a possible solution but couldn't find any.
Really looking forward for someones help. Thanks
I did not work with bluehost before, but here are few suggestions, hope they can help:
You can try to check where ruby version is set for Passenger. It depends how it is running on bluehost, if it is nginx - you can try to specify ruby version explicitly in webapp.conf file. If it is apache (did not work with it directly) - there should be it's own configuration file, where you can try to set the version explicitly
https://www.phusionpassenger.com/library/config/apache/reference/
If the previous point did not help I would try to edit .bashrc file, not sure if it can be a problem (as I am using rvm), but it sounds strange for me:
In setup article you provided is stated to edit .bashrc file:
export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3 - could you check
what you have there? If you upgraded to new ruby - probably path to ruby 2.1.1 gems folder should be specified.

Ruby Could not initialize MySQL client library

I updated my ruby on Bluehost following the guide below.
http://www.haydonryan.com/installing-ruby-2-1-1p76-and-rails-4-0-4-on-bluehost/
http://www.haydonryan.com/rails-4-passenger-and-bluehost-with-a-cameo-from-wordpress/
Then I installed redmine using the guide from bluehost.
If I run rails s through ssh, I get
=> Booting WEBrick
=> Rails 4.2.4 application starting in development on localhost 3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[2015-10-13 06:45:51] INFO WEBrick 1.3.1
[2015-10-13 06:45:51] INFO ruby 2.2.3 (2015-08-18) [x86_64-linux]
[2015-10-13 06:45:51] INFO WEBrick::HTTPServer#start: pid=19685 port=3000
However, if I open the url from my browser, I get the error message below. What could be causing this?
Error message: Could not initialize MySQL client library Exception
class: RuntimeError Application root: /home/user/rails_apps/redmine
Backtrace:
# File Line Location
0 /home/user/ruby/gems/gems/activesupport-4.2.4/lib/active_support/dependencies.rb
274 in require
1 /home/user/ruby/gems/gems/activesupport-4.2.4/lib/active_support/dependencies.rb
274 in block in require
2 /home/user/ruby/gems/gems/activesupport-4.2.4/lib/active_support/dependencies.rb
240 in load_dependency
3 /home/user/ruby/gems/gems/activesupport-4.2.4/lib/active_support/dependencies.rb
274 in require
4 /home/user/ruby/gems/gems/mysql2-0.3.20/lib/mysql2.rb 31 in
5 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 76 in require
6 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 76 in block (2 levels) in require
7 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 72 in each
8 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 72 in block in require
9 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 61 in each
10 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler/runtime.rb 61 in require
11 /home/user/ruby/gems/gems/bundler-1.10.6/lib/bundler.rb 134 in require
12 /home5/user/rails_apps/redmine/config/application.rb 5 in
13 /home5/user/rails_apps/redmine/config/environment.rb 2 in require
14 /home5/user/rails_apps/redmine/config/environment.rb 2 in
15 config.ru 3 in require
16 config.ru 3 in block in
17 /home/user/ruby/gems/gems/rack-1.6.4/lib/rack/builder.rb 55 in instance_eval
18 /home/user/ruby/gems/gems/rack-1.6.4/lib/rack/builder.rb 55 in initialize
19 config.ru 1 in new
20 config.ru 1 in
21 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
225 in eval
22 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
225 in load_rack_app
23 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
157 in block in initialize_server
24 /etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 563 in report_app_init_status
25 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
154 in initialize_server
26 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
204 in start_synchronously
27 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
180 in start
28 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
129 in start
29 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
253 in block (2 levels) in spawn_rack_application
30 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
132 in lookup_or_add
31 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
246 in block in spawn_rack_application
32 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
82 in block in synchronize
33 prelude> 10:in synchronize
34 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
79 in synchronize
35 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
244 in spawn_rack_application
36 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
137 in spawn_application
37 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
275 in handle_spawn_application
38 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
357 in server_main_loop
39 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
206 in start_synchronously
40 /etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99
in

The application spawner server exited unexpectedly: Connection refused

I am getting the following error just after my host updated to Phusion Passenger 3.0. It happens "sometimes", for no apparent reason. If the problem was a gem, I guess I would always get the error.
I can reproduce the bug somewhat easily by clicking the same link over and over again.
Any idea?
Passenger encountered the following error:
The application spawner server exited unexpectedly: Connection refused - /tmp/passenger.1.0.17525/generation-3/spawn-server/socket.8572.59234504525620
Exception class:
PhusionPassenger::Rack::ApplicationSpawner::Error
Backtrace:
File Line Location
0 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb 118 in spawn_application'
1 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 257 inspawn_rack_application'
2 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb 82 in synchronize'
3 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize'
4 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 244 in spawn_rack_application'
5 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 137 inspawn_application'
6 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 275 in handle_spawn_application'
7 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 357 insend'
8 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 357 in server_main_loop'
9 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 206 instart_synchronously'
10 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server 99
Have you checked if there is any permission issue in the /tmp directory? This message looks strange:
Connection refused - /tmp/passenger.1.0.17525/generation-3/spawn-server/socket.8572.59234504525620
Plus, last version of Passenger is 3.0.12, although an upgrade will not probably fix the issue.

Resources