Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download Passenger native support #35

Closed
theblackhole opened this issue Aug 30, 2016 · 6 comments
Closed

Can't download Passenger native support #35

theblackhole opened this issue Aug 30, 2016 · 6 comments
Labels

Comments

@theblackhole
Copy link

theblackhole commented Aug 30, 2016

Hello,

The redmine:passenger image doesn't work : it can't download passenger 5.0.30 because the urls are unreachable.
I also tried on my pc and it's the same : 404 for the first one and 403 for the mirror.

Edit : it seems like the latest available version of rubyext-ruby is 2.2.3 not 2.2.5 : https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/

Logs :

root@7a3f2f7b3460:/usr/src/redmine/log# cat passenger.3000.log
[ 2016-08-30 12:47:49.9388 35/7f7300998740 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2016-08-30 12:47:49.9441 38/7ff5bc714740 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2016-08-30 12:47:49.9444 38/7ff5bc714740 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2016-08-30 12:47:49.9459 38/7ff5bc714740 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 38
[ 2016-08-30 12:47:49.9519 43/7fbfaaa80740 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2016-08-30 12:47:49.9525 43/7fbfaaa80740 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 43
App 76 stdout:
App 76 stderr:  [passenger_native_support.so] trying to compile for the current user (redmine) and Ruby interpreter...
App 76 stderr:
App 76 stderr:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 76 stderr:
App 76 stderr:      Warning: compilation didn't succeed. To learn why, read this file:
App 76 stderr:
App 76 stderr:      /tmp/passenger_native_support-1qr8uj8.log
App 76 stderr:
App 76 stderr:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 76 stderr:
App 76 stderr:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 76 stderr:
App 76 stderr:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/rubyext-ruby-2.2.5-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found
App 76 stderr:      Trying next mirror...
App 76 stderr:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/rubyext-ruby-2.2.5-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 76 stderr:  [passenger_native_support.so] will not be used (can't compile or download)
App 76 stderr:
App 76 stderr:   --> Passenger will still operate normally.
App 76 stderr:
App 76 stderr: /usr/local/bundle/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
App 100 stdout:
@theblackhole theblackhole changed the title Can't download Passenger 5.0.30 Can't download Passenger native support binary Aug 30, 2016
@theblackhole theblackhole changed the title Can't download Passenger native support binary Can't download Passenger native support Aug 30, 2016
@yosifkit
Copy link
Member

That looks like passenger 5 does not support the latest version of ruby 2.2 (2.2.5). 😢 Though it looks like 5.0.x has never supported Ruby 2.2: https://blog.phusion.nl/2015/03/04/phusion-passenger-5-0-1-released/#minimumrailsversionisnow23.

@tianon and I think that we'll bump to Ruby 2.3 for Redmine 3.3 and then downgrade to passenger 4 for 3.2 and 3.1`.

@theblackhole
Copy link
Author

theblackhole commented Aug 30, 2016

Hi ! Sorry I was wrong, after investigation, the native support isn't required for passenger to work. 😄
So after fixing some problems on my host config, redmine:passenger does work fine and without this binary.
Apparently there is just a tiny performance decrease without it : https://solidfoundationwebdev.com/blog/posts/error-skipping-compiling-of-passenger_native_support-so-with-passenger.

Btw, in the link you've provided, they are talking about rails 2.3 not ruby 2.3 😉

@theblackhole
Copy link
Author

theblackhole commented Aug 30, 2016

Also, I've tried targeting ruby 2.2.3 directly since it's the latest version available : theblackhole/redmine@03ad48d
But some libraries are missing (I have added them on the apt section of the Dockerfile but it wasn't enough) (sorry I've not committed all the tests on my fork because this was a huge mess 😆 and then I've resolved my config issue).

Edit :
http://stackoverflow.com/questions/34886367/failed-linking-passenger-5-0-23-native-support-with-ruby-2-2-4
Interesting how this was solved. I'll may try that if I have the time.

@yosifkit
Copy link
Member

Oh I see... silly me. 😞

Regardless of my apparent lack of comprehension, do you think we should change the versions as I described? Or maybe target a more specific version of ruby?

@theblackhole
Copy link
Author

theblackhole commented Aug 30, 2016

Sorry I'm not a ruby expert but I will answer the best as I can ^^

Right now, if we doesn't solve this low priority issue with the native extension (by targeting a more specific version + doing something to fix these .so libraries issue), it think it isn't needed to target a more specific version to work well.
However since redmine 3.3 supports ruby 2.3 I think it's harmless to bump to 2.3 for this version.
Also, I don't think a downgrade is required for redmine < 3.3 because the 3.x branch uses rails 4.2. So it fits the passenger requirement (rails > 2.3) ( #headache #SoManySimilarVersions xD )

@yosifkit
Copy link
Member

yosifkit commented May 1, 2018

Closing old issue. I don't see anything actionable.

@yosifkit yosifkit closed this as completed May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants