Polling seems to have died after message

I get this exception, after which polling stops:

Job exception: can’t modify frozen String

/usr/local/lib/ruby/2.5.0/net/pop.rb:808:in `block in pop'
/usr/local/lib/ruby/2.5.0/net/protocol.rb:276:in `each_message_chunk'
/usr/local/lib/ruby/2.5.0/net/pop.rb:955:in `block in retr'
/usr/local/lib/ruby/2.5.0/net/pop.rb:1013:in `critical'
/usr/local/lib/ruby/2.5.0/net/pop.rb:953:in `retr'
/usr/local/lib/ruby/2.5.0/net/pop.rb:807:in `pop'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:25:in `process_popmail'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:43:in `block (2 levels) in poll_pop3'
/usr/local/lib/ruby/2.5.0/net/pop.rb:689:in `block in delete_all'
/usr/local/lib/ruby/2.5.0/net/pop.rb:688:in `each'
/usr/local/lib/ruby/2.5.0/net/pop.rb:688:in `delete_all'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:42:in `block in poll_pop3'
/usr/local/lib/ruby/2.5.0/net/pop.rb:532:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:41:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:16:in `execute'
/var/www/discourse/app/jobs/base.rb:134:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rails_multisite-2.0.4/lib/rails_multisite/connection_management.rb:63:in `with_connection'
/var/www/discourse/app/jobs/base.rb:129:in `block in perform'
/var/www/discourse/app/jobs/base.rb:125:in `each'
/var/www/discourse/app/jobs/base.rb:125:in `perform'
/var/www/discourse/app/jobs/base.rb:180:in `perform'
/var/www/discourse/lib/scheduler/manager.rb:91:in `process_queue'
/var/www/discourse/lib/scheduler/manager.rb:37:in `block in initialize'

I have the mail but can’t post it publically (private is fine).

2 „Gefällt mir“

Seems to be a bug in Ruby 2.5: https://bugs.ruby-lang.org/issues/14416

6 „Gefällt mir“

Hrmm. Must have broken when I rebuild the image this morning then.

Seems to happen with all mail now.

I’ve monkey patched in the fix for now. Will remove when we upgrade to Ruby 2.5.2.

10 „Gefällt mir“

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