Skip to content
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

Updated to rails 7.1.3.2 #708

Open
casiodk opened this issue Apr 23, 2024 · 5 comments
Open

Updated to rails 7.1.3.2 #708

casiodk opened this issue Apr 23, 2024 · 5 comments

Comments

@casiodk
Copy link

casiodk commented Apr 23, 2024

And i get this error when trying to connect

Excon::Error::Socket: getnameinfo: Unknown error (Socket::ResolutionError)
from /app/vendor/bundle/ruby/3.3.0/gems/excon-0.92.3/lib/excon/socket.rb:289:in `unpack_sockaddr_in'

@geemus
Copy link
Member

geemus commented Apr 23, 2024

@casiodk Hey, sorry to hear you are having issues.

As a first step, could you try updating the version of excon you are using? There have been quite a few releases since then, so if nothing else it will be easier to debug if the line numbers match up with the current version.

Also, do you know what URL is triggering this? Thanks.

@casiodk
Copy link
Author

casiodk commented Apr 24, 2024

I am still having the issue with the newest version of excon. But only when i proxy through Quota Guard on heroku. This is the line that fails

bucket.files.create(key: key.gsub(%r{^/}, ''), body: file)

@casiodk
Copy link
Author

casiodk commented Apr 24, 2024

And actually it uploads the file to s3, but then raises an error after the file has been uploaded?

@casiodk
Copy link
Author

casiodk commented Apr 25, 2024

Any idea on this @geemus ?

@geemus
Copy link
Member

geemus commented Apr 25, 2024

Thanks for trying the bump. Given that I haven't seen this before, I do suspect Quota Guard may be involved somehow.

A few more questions:

  • Are you using fog directly, or through some other library?
  • What version of fog-aws are you using?
  • Could you share more of the stack trace to give a bit more context?

Having it fail on socket stuff seems weird to me, as that should precede calls (which would mean that the file wouldn't get uploaded). Also, I don't think that a file create should result in subsequent calls over excon. The only exception I can think of off hand would be if excon/fog believed that the original upload failed. In that case, since file creation is idempotent it should auto-magically retry. It's possible that it mistakenly thinks there was a failure (even though it succeeded), and then retries and the failure we are seeing here is on a retry. Though I still don't know how/why we are seeing there error in that case. I'm hoping having more of the stacktrace may help narrow it down, but barring that we could try adding instrumentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants