Elasticbeanstalk + Ruby 3.2.2 platform sassc LoadError

695 views Asked by At

I'm getting error when trying to deploy Rails 7.1 application on ElasticBeanstalk Ruby 3.2 platform

Could not open library /var/app/current/vendor/bundle/ruby/3.2.0/gems/sassc-2.4.0/lib/sassc/libsass.so': /var/app/current/vendor/bundle/ruby/3.2.0/gems/sassc-2.4.0/lib/sassc/libsass.so: cannot open shared object file: No such file or directory. (LoadError)

ruby version 3.2.2

  • I checked the files on server, there is no libsass.so file in gems folder, while on local machine it's in place.
  • locally is working
  • The deployment finished with "status":"SUCCESS"
  • On previous Ruby-3.0.6 platform everything was ok.

Never see that happened before. Frustrated.

Tried to run bundle install manually on server, the same.

UPDATE: Finally I spent some time to learn how to use Docker with Rails. Now deployment goes much faster also any binary dependency can be easily included to the build. Not using EB ruby platform anymore.

1

There are 1 answers

4
darkinSyde On

i was getting the same error. Downgrading sassc to 2.1 in gemfile solved problem for me:

gem 'sassc', '~> 2.1'

Please check this issue for more answers. Installing sassc with --disable-march-tune-native option seems to be a solution for most cases.