I had to contact Microsoft support to fix this issue. It turned out to be an error caused by a platform update.
All my apps on Azure App Service on Linux suddenly began to have error on start up
Beginning June 27(UTC), All my apps on Azure App Service on Linux began to fail to start up due to the following error.
/tmp/bundle/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require': libmariadbclient.so.18: cannot open shared object file: No such file or directory - /tmp/bundle/gems/mysql2-0.5.3/lib/mysql2/mysql2.so (LoadError)
I have 4 apps on 2 different tenants, and all of them are having the same error from the same day.
They are all Ruby on Rails apps and using Azure Database for MySQL for DB.
They have been running fine like half a year, and I have made no change last 1 month or so.
I need to fix this as soon as possible. Could someone please help me?
I also tried:
(1)
Including '.bundle/config' in git and push it
--> Didn't work. Azure automatically resets that file to empty on deployment
(2)
Executing '/usr/local/.rbenv/versions/2.6.2/bin/bundle install --path vendor/bundle' from the Kudu console(Bash) and restarting the app
(I specified the full path because I could not add new $PATH on Kudu)
--> Didn't work. Although the log shows it is referring to vendor/bundle directory, and the file '/home/site/wwwroot/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.so' exists, it still fails to launch with the same error.
Error:
/home/site/wwwroot/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require': libmariadbclient.so.18: cannot open shared object file: No such file or directory - /home/site/wwwroot/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.so (LoadError)
(3)
I created a new App Service Plan and new App Service on it, but it still fails with the same error.
Please refer to the attached file for the entire log.
1 additional answer
Sort by: Most helpful
-
y.y 96 Reputation points
2020-06-29T17:44:21.69+00:00 I also tried this:
https://github.com/Azure-App-Service/ruby/issues/36set environment variable 'ENABLE_KUDU_LITE = false'
But it didn't work. Still having the same error.