On Ruby 2.6 and higher the AppSignal for Ruby gem does not install and no data is being received by AppSignal.com.
- AppSignal for Ruby package versions:
v2.8.0and earlier (until
Upon upgrading to Ruby 2.6 or higher on Linux based hosts AppSignal stops reporting data because the AppSignal extension could not be installed on Ruby 2.6. This is caused by system libraries that are not linked against the Ruby installation being required by the AppSignal gem. The two problematic required libraries are
In order to fix the installation issue for the AppSignal extension these libraries need to be statically linked to the extension library created during installation of the AppSignal gem in your app. This was added in Ruby gem
The following AppSignal extension builds are affected:
- Linux musl builds. Used by Alpine Linux and older libc versions installed on app hosts.
- Linux libc builds. Used by most Linux distributions, such as Ubuntu.
- No data is being received by AppSignal from your app after upgrading your app's Ruby version.
When your application starts AppSignal for Ruby logs the following message in the
[<timestamp> (process) #<pid>][ERROR] appsignal: Failed to load extension (cannot load such file -- appsignal_extension), please check the install.log file in the ext directory of the gem and email us at firstname.lastname@example.org [<timestamp> (process) #<pid>][INFO] appsignal: Not starting appsignal, extension is not loaded
install.logfile in the AppSignal for Ruby gem
ext/directory contains a platform specific error message.
E, [<timestamp> #<pid>] ERROR -- : Installation failed: Aborting installation, libappsignal.a or appsignal.h not found
Downgrade to an earlier Ruby version.
Upgrade to AppSignal for Ruby gem version
Please let us know at email@example.com if you are currently experiencing this issue and an upgrade did not help.