-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] (Net::ReadTimeout) "Net::ReadTimeout with #<Socket:fd 7>" #7562
Comments
Was able to download the file which seemed stuck - although the unique ID changed from the original exception. Setting a larger read timeout didn't seem to work. But loading the headers first did. poller = AlaveteliMailPoller.new
poller.pop3.start(poller.settings[:user_name], poller.settings[:password])
poller.pop3.read_timeout = 300
m = poller.pop3.mails.first
id = m.unique_id # => 000134e263356370
m.pop # /opt/rbenv/versions/3.2.0/lib/ruby/3.2.0/net/protocol.rb:229:in `rbuf_fill': Net::ReadTimeout with #<Socket:fd 7> (Net::ReadTimeout)
poller.pop3.finish
# reconnect
poller.pop3.start(poller.settings[:user_name], poller.settings[:password])
m.header # => "Return-path: <010201 ..."
rawemail = m.pop # => "Return-path: <010201 ..."
File.open("#{id}.eml", 'w') { |f| f.write(rawemail) }
m.delete
poller.pop3.finish Looking at the message it appears it had already been received so was a duplicate (with the same message ID) so maybe it wasn't deleted correctly after first being imported. In
Most of these retry once and then succeed but this |
@sagepe we're still seeing this error. Am wondering if this could be similar to #4526 and the linked sysadmin issue https://github.com/mysociety/sysadmin/issues/1036 |
Still seeing this errors at regular frequency. I have confirmed this isn't an app issue using a separate Ruby script with Ruby 3.2. Rolling back to Ruby 2.7 the script works fine. Also tested and its fine on 3.0 and 3.1. Between 3.0 and 3.1 the Doing a bisect of upstream commits this one seems to be the first which is causing my script to fail. So lets bisect We should pin Alaveteli to |
Recurring error with the poller started 20th Jan
The text was updated successfully, but these errors were encountered: