Error updating Discourse via web interface

I’m not using Cloudflare, not using any plugins. Anyone have any idea what’s going on?

Installed:

2.6.0.beta5

4GB ram

This is the last error message:

Message

Job exception: timeout expired

Backtrace

pg-1.2.3/lib/pg.rb:58:in `initialize’

pg-1.2.3/lib/pg.rb:58:in `new’

pg-1.2.3/lib/pg.rb:58:in `connect’

activerecord-6.0.3.3/lib/active_record/connection_adapters/postgresql_adapter.rb:46:in `postgresql_connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:887:in `new_connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `checkout_new_connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:910:in `try_to_checkout_new_connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:871:in `acquire_connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:593:in `checkout’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:437:in `connection’

activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:1119:in `retrieve_connection’

activerecord-6.0.3.3/lib/active_record/connection_handling.rb:221:in `retrieve_connection’

activerecord-6.0.3.3/lib/active_record/connection_handling.rb:189:in `connection’

/var/www/discourse/lib/freedom_patches/fast_pluck.rb:61:in `pluck’

/var/www/discourse/lib/freedom_patches/pluck_first.rb:5:in `pluck_first’

/var/www/discourse/app/models/application_request.rb:75:in `req_id’

/var/www/discourse/app/models/application_request.rb:80:in `rescue in req_id’

/var/www/discourse/app/models/application_request.rb:70:in `req_id’

/var/www/discourse/app/models/application_request.rb:47:in `block in write_cache!’

/var/www/discourse/app/models/application_request.rb:42:in `each’

/var/www/discourse/app/models/application_request.rb:42:in `write_cache!’

/var/www/discourse/app/models/application_request.rb:33:in `write_cache!’

/var/www/discourse/app/models/concerns/cached_counting.rb:37:in `perform_increment!’

/var/www/discourse/app/models/application_request.rb:28:in `increment!’

/var/www/discourse/lib/middleware/request_tracker.rb:71:in `log_request’

/var/www/discourse/lib/middleware/request_tracker.rb:299:in `block in log_later’

/var/www/discourse/lib/scheduler/defer.rb:94:in `block in do_work’

rails_multisite-2.5.0/lib/rails_multisite/connection_management.rb:76:in `with_connection’

/var/www/discourse/lib/scheduler/defer.rb:89:in `do_work’

/var/www/discourse/lib/scheduler/defer.rb:79:in `block (2 levels) in start_thread’

I’m not sure if this prior error message is related:

Message

default: Failed to pull hotlinked image (https://i.ytimg.com/vi/yPdIXXjM9z8/maxresdefault.jpg) post: 270 undefined method recompress_original_jpg_quality' for #<Class:0x00007f9235c81710> /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.3/lib/active_record/dynamic_matchers.rb:22:in method_missing’ /var/www/discourse/lib/upload_creator.rb:291:in should_alter_quality?' /var/www/discourse/lib/upload_creator.rb:59:in block in create_for’ /var/www/discourse/lib/distributed_mutex.rb:33:in block in synchronize' /var/www/discourse/lib/distributed_mutex.rb:29:in synchronize’ /var/www/discourse/lib/distributed_mutex.rb:29:in synchronize' /var/www/discourse/lib/distributed_mutex.rb:14:in synchronize’ /var/www/discourse/lib/upload_creator.rb:45:in create_for' /var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:132:in attempt_download’ /var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:42:in block in execute' /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:238:in block in each’ /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:237:in upto' /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:237:in each’ /var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:32:in execute' /var/www/discourse/app/jobs/base.rb:232:in block (2 levels) in perform’ /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rails_multisite-2.5.0/lib/rails_multisite/connection_management.rb:76:in with_connection' /var/www/discourse/app/jobs/base.rb:221:in block in perform’ /var/www/discourse/app/jobs/base.rb:217:in each' /var/www/discourse/app/jobs/base.rb:217:in perform’ /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:196:in execute_job' /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:164:in block (2 levels) in process’ /var/www/discours…

Backtrace

/var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:232:in `public_send’

/var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:232:in `log’

/var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:56:in `rescue in block in execute’

/var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:33:in `block in execute’

nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:238:in `block in each’

nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:237:in `upto’

nokogiri-1.10.10/lib/nokogiri/xml/node_set.rb:237:in `each’

/var/www/discourse/app/jobs/regular/pull_hotlinked_images.rb:32:in `execute’

/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform’

rails_multisite-2.5.0/lib/rails_multisite/connection_management.rb:76:in `with_connection’

/var/www/discourse/app/jobs/base.rb:221:in `block in perform’

/var/www/discourse/app/jobs/base.rb:217:in `each’

/var/www/discourse/app/jobs/base.rb:217:in `perform’

sidekiq-6.1.2/lib/sidekiq/processor.rb:196:in `execute_job’

sidekiq-6.1.2/lib/sidekiq/processor.rb:164:in `block (2 levels) in process’

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:138:in `block in invoke’

/var/www/discourse/lib/sidekiq/pausable.rb:138:in `call’

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:140:in `block in invoke’

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:143:in `invoke’

sidekiq-6.1.2/lib/sidekiq/processor.rb:163:in `block in process’

sidekiq-6.1.2/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch’

sidekiq-6.1.2/lib/sidekiq/job_retry.rb:111:in `local’

sidekiq-6.1.2/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch’

sidekiq-6.1.2/lib/sidekiq.rb:38:in `block in module:Sidekiq

sidekiq-6.1.2/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch’

sidekiq-6.1.2/lib/sidekiq/processor.rb:257:in `stats’

sidekiq-6.1.2/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch’

sidekiq-6.1.2/lib/sidekiq/job_logger.rb:13:in `call’

sidekiq-6.1.2/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch’

sidekiq-6.1.2/lib/sidekiq/job_retry.rb:78:in `global’

sidekiq-6.1.2/lib/sidekiq/processor.rb:124:in `block in dispatch’

sidekiq-6.1.2/lib/sidekiq/logger.rb:10:in `with’

sidekiq-6.1.2/lib/sidekiq/job_logger.rb:33:in `prepare’

sidekiq-6.1.2/lib/sidekiq/processor.rb:123:in `dispatch’

sidekiq-6.1.2/lib/sidekiq/processor.rb:162:in `process’

sidekiq-6.1.2/lib/sidekiq/processor.rb:78:in `process_one’

sidekiq-6.1.2/lib/sidekiq/processor.rb:68:in `run’

sidekiq-6.1.2/lib/sidekiq/util.rb:15:in `watchdog’

sidekiq-6.1.2/lib/sidekiq/util.rb:24:in `block in safe_thread’

Try upgrading via the cmd line

2 Likes

Thanks that worked. Any idea why it wouldn’t work via the web interface?

the web interface does not stop the container and sometimes the container also needs to be updated.

2 Likes

Ok thanks. I’ll keep that in mind for the future.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.