Hide Forgot
When updating to mod_passenger 4.x, rubygem-passenger-3.0.12-force-native.patch has been removed. It is true this patch is not needed now, but we still have to tell mod_passenger somehow that in Fedora we use different directories then the once configured by default in ResourceLocator.h: > string root = rootOrFile; > binDir = root + "/bin"; > agentsDir = root + "/buildout/agents"; > helperScriptsDir = root + "/helper-scripts"; > resourcesDir = root + "/resources"; > docDir = root + "/doc"; > rubyLibDir = root + "/lib"; It looks mod_passenger 4.x can load INI file as "PassengerRoot" with [locations] section containing all the hardcoded paths. I think we should use this way in Fedora and define default INI file with the local paths to agentsDir, binDir and so on... Following part of ResourceLocator.h describes the configuration variables available for the INI file: > string file = rootOrFile; > IniFileSectionPtr options = IniFile(file).section("locations"); > binDir = getOption(file, options, "bin_dir"); > agentsDir = getOption(file, options, "agents_dir"); > helperScriptsDir = getOption(file, options, "helper_scripts_dir"); > resourcesDir = getOption(file, options, "resources_dir"); > docDir = getOption(file, options, "doc_dir"); > rubyLibDir = getOption(file, options, "ruby_libdir");
Changing priority, because without this change, mod_passenger is not useful out-of-box.
Example INI file which can be used as PassengerRoot (I'm not sure with doc_dir): [locations] bin_dir=/usr/bin agents_dir=/usr/lib64/gems/exts/passenger-4.0.18/agents helper_scripts_dir=/usr/share/gems/gems/passenger-4.0.18/helper-scripts resources_dir=/usr/share/gems/gems/passenger-4.0.18/resources doc_dir=/usr/share/gems/doc/ ruby_libdir=/usr/share/gems/gems/passenger-4.0.18/lib
Ok, there are more configuration variables which have to be set, but I think you got the idea...
Created attachment 817783 [details] proposed patch This patch adds "locations.ini" into passenger's lib directory as described in <https://github.com/phusion/passenger/blob/master/doc/Packaging.txt.md>. This file contains paths to passenger directories as they are packaged in Fedora. I've tested this patch and mod_passenger is working out-of-box for me with this patch applied.
Created attachment 817809 [details] proposed patch v2 Previous patch was corrupted. This one is OK This patch adds "locations.ini" into passenger's lib directory as described in <https://github.com/phusion/passenger/blob/master/doc/Packaging.txt.md>. This file contains paths to passenger directories as they are packaged in Fedora. I've tested this patch and mod_passenger is working out-of-box for me with this patch applied.
Hi again, committing this patch would really help people using F20 once released. Right now rubygem-passenger does not work out-of-box and without creating this locations.ini file manually one can't use it.
Commit: http://pkgs.fedoraproject.org/gitweb/?p=rubygem-passenger.git;a=commitdiff;h=0ac3d9366b55d934024a1409b812b9a5f80e209e Package: rubygem-passenger-4.0.18-3.fc20 Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=477165
Commit: http://pkgs.fedoraproject.org/gitweb/?p=rubygem-passenger.git;a=commitdiff;h=299aa9376a7c78c810e57e2d857f128502bdb604 Package: rubygem-passenger-4.0.18-3.fc21 Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=477166
rubygem-passenger-4.0.18-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rubygem-passenger-4.0.18-3.fc20
Using Fedora 20, using the latest build solve the issue "watchdog executable not found" starting apache with mod_passenger I had with the -2 build. Now, trying to run a ruby app (chiliproject), I get the following error: Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter $ locate passenger_native_support.so /usr/lib64/gems/ruby/passenger-4.0.18/lib/native/passenger_native_support.so IMO, that seems related to the current bug to me; passenger cannot find one of its files. Let me know if it is not, I'll open another bug.
Package rubygem-passenger-4.0.18-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rubygem-passenger-4.0.18-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-21082/rubygem-passenger-4.0.18-3.fc20 then log in and leave karma (feedback).
rubygem-passenger-4.0.18-4.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rubygem-passenger-4.0.18-4.fc20
When will rubygem-passenger-4.0.18-4.fc20 get pushed to stable? I had to deploy it from updates-testing (which fixed this issue for me). Kind of a deal-breaker for folks trying to deploy ruby/rails apps on F20 who might not know about updates-testing or be willing to temporarily enable the repo...
rubygem-passenger-4.0.18-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.