Facing error with stringio

36 views
Skip to first unread message

oraganti adithya

unread,
Sep 25, 2024, 8:35:27 AM9/25/24
to Canvas LMS Users
Hi Team,

I am facing some error while runnig the sudo RAILS_ENV=production bundle exec rake canvas:compile_assets.

Parallel::UndumpableException: RuntimeError: you must run "webpack" first
/var/canvas/lib/canvas/cdn/registry/webpack.rb:58:in `load_manifest_from_disk'
/var/canvas/lib/canvas/cdn/registry/webpack.rb:30:in `initialize'
/var/canvas/lib/canvas/cdn/registry.rb:100:in `new'
/var/canvas/lib/canvas/cdn/registry.rb:100:in `webpack'
/var/canvas/lib/canvas/cdn/registry.rb:89:in `bundler'
/var/canvas/lib/canvas/cdn/registry.rb:56:in `include?'
/var/canvas/lib/canvas/cdn.rb:62:in `should_be_in_bucket?'
/var/canvas/lib/canvas/cdn.rb:67:in `asset_host_for'
/var/canvas/config/application.rb:307:in `block (2 levels) in <class:Application>'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/actionview-7.0.8/lib/action_view/helpers/asset_url_helper.rb:286:in `compute_asset_host'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/actionview-7.0.8/lib/action_view/helpers/asset_url_helper.rb:212:in `asset_path'
/var/canvas/lib/canvas/cdn/revved_asset_urls.rb:26:in `path_to_asset'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/actionview-7.0.8/lib/action_view/helpers/asset_url_helper.rb:231:in `asset_url'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/actionview-7.0.8/lib/action_view/helpers/asset_url_helper.rb:390:in `image_url'
/var/canvas/lib/brandable_css.rb:102:in `block in variables_map_with_image_urls'
/var/canvas/lib/brandable_css.rb:100:in `transform_values'
/var/canvas/lib/brandable_css.rb:100:in `variables_map_with_image_urls'
/var/canvas/lib/brandable_css.rb:175:in `block in computed_variables'
/var/canvas/lib/brandable_css.rb:174:in `each'
/var/canvas/lib/brandable_css.rb:174:in `each_with_object'
/var/canvas/lib/brandable_css.rb:174:in `computed_variables'
/var/canvas/lib/brandable_css.rb:182:in `all_brand_variable_values'
/var/canvas/app/models/brand_config.rb:145:in `to_json'
/var/canvas/app/models/brand_config.rb:177:in `block (2 levels) in <class:BrandConfig>'
/var/canvas/app/models/brand_config.rb:198:in `save_all_files!'
/var/canvas/config/initializers/active_record.rb:766:in `each'
/var/canvas/config/initializers/active_record.rb:766:in `block in find_each'
/var/canvas/config/initializers/active_record.rb:787:in `block in find_in_batches'
/var/canvas/config/initializers/active_record.rb:967:in `block in in_batches_with_copy'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'

I and in my error.log i found this error.

App 7223 output: Error: The application encountered the following error: You have already activated stringio 3.0.1, but your Gemfile requires stringio 3.0.8. Since stringio is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports stringio as a default gem. (Gem::LoadError)

and I followed the
https://elearningevolve.com/blog/install-canvas-lms/#:~:text=sudo%20gem%20install%20stringio%20%2Dv%203.1.1%3B%20sudo%20gem%20uninstall%20base64%3B%20sudo%20gem%20install%20base64%20%2Dv%200.2.0 

but it is not working and using bellow versions

ruby 3.1
bundle 2.4.20 which is configured in my gemfile.lock and before_rb

can you guys help me how to resolve this.

regards,
Adithya

Reply all
Reply to author
Forward
0 new messages