-
Notifications
You must be signed in to change notification settings - Fork 549
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
intermittant "out of char range (RangeError) running ruby1.8 rails 2.3.18 when reloading apache #2445
Comments
Does this reproduce with an even remotely recent ruby version? |
So far, no. Most of our servers are Ruby 2.5 based (AlmaLinux 8.6 system version), and no issues there. Had a couple servers on Ruby 2.0, but 2 servers (vs 30) so if there are issues, may not have noticed yet. Ruby 1.8 is the only place I have seen issues with this so far. |
As of today, this has also impacted a Ruby 2.0.0p648 server running Rails 3.2.21, and AlmaLinux 8.6. (As of the last ticket I just reverted to 6.0.14 for the ruby1.8 systems, as was not sure where to start in diagnosing this). Did notice that the latest passenger 6.0.15 has a glibc long long support patch though that may not be in the rpm's we generated for ruby 1.8/2.5 native library support (Our environment uses passenger 6.0.15 rpm from the passenger repo + our own rpm's for passenger_native_library.so) App 2725846 output: Error: The application encountered the following error: 1688 out of char range (RangeError) App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:119:in `chr' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:119:in `string' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:78:in `value' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:92:in `block in hash' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:140:in `repeat_until' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:88:in `hash' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:74:in `object' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:78:in `value' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:92:in `block in hash' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:140:in `repeat_until' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:88:in `hash' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:74:in `object' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:64:in `parse' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/utils/json.rb:43:in `parse' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:74:in `block in read_startup_arguments' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:73:in `open' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:73:in `read_startup_arguments' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:35:in `init' App 2725846 output: /usr/share/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb:38:in `init' App 2725846 output: /usr/share/passenger/helper-scripts/rack-preloader.rb:184:in `' App 2725846 output: /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `' App 2725846 output: /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `' [ E 2022-09-29 04:56:49.9160 2522748/T3c7 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/webapps/jigsy/current: The application encountered the following error: 1688 out of char range (RangeError) Error ID: 383e4c1b Error details saved to: /tmp/passenger-error-qa6D3F.html |
Got a report of ruby 3, i'm starting to suspect that the change to the jsoncpp lib was to blame. |
Same problem with Passenger 6.0.15 (Apache integration) with Ruby 2.5 on 64-bit Debian 10. apache 2.4.38-3 |
I've had issues trying to reproduce the bug myself so could you test if this issue is fixed in 6.0.16, you can get the pre-release packages from our testing servers by adjusting your repo definition file to use: for debian10 replace the contents of passenger's apt source list file with: |
I'll run it out to our servers, and see if it happens again. (could take a couple days, but plan to hit it with a bunch of systemctl reload httpd's as that and startup are the trigger points). Most likely tomorrow morning will be when we do this (to give more coverage time during normal business hours if things don't go well). |
I triggered 10 systemctl reload httpd's across around 39 servers. (390 reload attempts) When I ran into this originally, seemed like 1-2 servers would die a night (every 1-2 days), triggered on a systemctl reload httpd (so a 1 in 39 ish odds). I couldn't reproduce this on 6.0.16 though (Possibly resolved). AlmaLinux 8.7 |
@conathan thanks for checking. |
6.0.16 is out now and should have this fixed, thanks so much for your patience. |
Issue report
After upgrading from Passenger 6.0.14 to 6.0.15 on AlmaLinux 8.6, very intermittantly we would get a stacktrace as follows:
Out of about 30 servers, seems like every 1-2 days 1 (or 2) servers would act up when doing a logrotate. Also triggerable via systemctl reload httpd.
Rolling back to 6.0.14 appears to have stopped this from occuring
Are you sure this is a bug in Passenger?
This was working with no known issues in 6.0.14
Please try with the newest version of Passenger to avoid issues that have already been fixed
This started happening in 6.0.15
Question 1: What is the problem?
Continue working after a systemctl reload httpd
Very intermittantly has the above stacktrace.
Question 2: Passenger version and integration mode:
mod_passenger 6.0.14 running Apache 2.4.37 (Stock AlmaLinux)
Question 3: OS or Linux distro, platform (including version):
AlmaLinux 8.6, x86_64
Question 4: Passenger installation method:
Your answer:
[ ] RubyGems + Gemfile
[ ] RubyGems, no Gemfile
[ ] Phusion APT repo
[X] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[X] Other, please specify:
Also a Ruby 1.8.7 native library compiled as follows: (Adapted from upstream spec file)
rake1.8 fakeroot
NATIVE_PACKAGING_METHOD=rpm
FS_PREFIX=%{_prefix}
FS_BINDIR=%{_bindir}
FS_SBINDIR=%{_sbindir}
FS_DATADIR=%{_datadir}
FS_LIBDIR=%{_libdir}
FS_DOCDIR=%{_docdir}
RUBYLIBDIR=%{passenger_libdir}
RUBYARCHDIR=%{passenger_ruby187_libdir}
APACHE2_MODULE_PATH=%{_httpd_moddir}/mod_passenger.so
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Your answer:
Question 6: Are you using a PaaS and/or containerization? If so which one?
No
The text was updated successfully, but these errors were encountered: