Open duclm1992 opened 5 months ago
You seem to be missing Gemfile.lock, or have somehow caused it to become unlocked. Canvas is not compatible with sqlite3 >= 2.0. See https://github.com/instructure/canvas-lms/blob/release/2024-07-03.147/Gemfile.lock#L1089
Cody Cutrer Software Engineer Instructure
You seem to be missing Gemfile.lock, or have somehow caused it to become unlocked. Canvas is not compatible with sqlite3 >= 2.0. See https://github.com/instructure/canvas-lms/blob/release/2024-07-03.147/Gemfile.lock#L1089 - we're locked to 1.7.3. Cody Cutrer Software Engineer Instructure
oh, does that mean my system is running sqlite3 version >=2.0?
I tried checking the Gemfile.lock file again, and saw that line 565 was left as is sqlite3 (>= 1.4, < 3.0)
. Is this the problem I'm having?
You seem to be missing Gemfile.lock, or have somehow caused it to become unlocked. Canvas is not compatible with sqlite3 >= 2.0. See https://github.com/instructure/canvas-lms/blob/release/2024-07-03.147/Gemfile.lock#L1089 - we're locked to 1.7.3. Cody Cutrer Software Engineer Instructure
Thank you very much, I fixed that error by specifying gem 'sqlite3', "~> 1.7.3"
in Gemfile, and it worked.
However, when I then run rake db:migrate I get the following error:
rake aborted!
ActiveRecord::ConnectionNotEstablished: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: password authentication failed for user "ccne"
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:87:in `rescue in new_client'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/var/canvas/config/application.rb:187:in `block in postgresql_connection'
/var/canvas/config/application.rb:183:in `each'
....
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/querying.rb:22:in `order'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/tasks/switchman.rake:61:in `scope'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/tasks/switchman.rake:108:in `block (3 levels) in shardify_task'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/switchman/database_server.rb:189:in `unguard'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/tasks/switchman.rake:92:in `block (2 levels) in shardify_task'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/guardrail-3.0.3/lib/guard_rail.rb:11:in `block in activate'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:374:in `with_role_and_shard'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:156:in `connected_to'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/guardrail-3.0.3/lib/guard_rail.rb:11:in `activate'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/switchman/guard_rail.rb:13:in `activate'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-inst-jobs-4.0.16/lib/switchman_inst_jobs/guard_rail.rb:10:in `activate'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.6.5/lib/tasks/switchman.rake:91:in `block in shardify_task'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Although in the config/database.yml file I configured the following:
production:
adapter: postgresql
encoding: utf8
database: canvas_production
host: localhost
username: canvas
password: ccneadmin
timeout: 5000
Have you set the environment variable RAILS_ENV
to production
?
I try to install package analytics into canvas. When I run command Bunble update, I get the following error:
I tried searching on internet but couldn't find a fix. Can someone help me? Thank you!
Source code Canvas I git clone from Intructure/Canvas-lms and install follow guide in Production Start.