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

[7.10] OSError: [Errno 22] Invalid argument #6429

Open
sentry-for-tribler bot opened this issue Oct 7, 2021 · 8 comments
Open

[7.10] OSError: [Errno 22] Invalid argument #6429

sentry-for-tribler bot opened this issue Oct 7, 2021 · 8 comments

Comments

@sentry-for-tribler
Copy link

Sentry Issue: TRIBLER-8X

OSError: [Errno 22] Invalid argument
  File "asyncio/events.py", line 81, in _run
  File "aiohttp/web_protocol.py", line 221, in connection_made
  File "aiohttp/tcp_helpers.py", line 23, in tcp_keepalive
  File "asyncio/trsock.py", line 82, in setsockopt
@ichorid
Copy link
Contributor

ichorid commented Oct 7, 2021

@qstokkink , could you please look into this?

@ichorid ichorid added this to Needs triage in Bug crunch via automation Oct 7, 2021
@qstokkink

This comment was marked as outdated.

@ichorid
Copy link
Contributor

ichorid commented Oct 7, 2021

@qstokkink thanks! We'll handle it from here 👍

@sentry-for-tribler
Copy link
Author

Sentry issue: TRIBLER-15C

@qstokkink
Copy link
Contributor

Actually, after reevaluating the source code of aiohttp/tcp_helpers.py, it may be more likely that the REST API port was blocked (by a firewall).

The error in the stack trace corresponds to a socket that has its access blocked. I can cause a similar (but not the same!) error on the same line by closing the REST API port immediately after opening an initial connection.

For reproduction, I'd recommend using the Mac firewall to block the REST API port that Tribler is using (after starting Tribler initially). Sadly, I (still) don't have a Mac to test this on myself.

@qstokkink qstokkink changed the title [7.10] OSError: [Errno 22] Invalid argument (IPv6-related) [7.10] OSError: [Errno 22] Invalid argument (Mac firewall related?) Nov 7, 2023
Copy link

This issue has not seen activity for 60 days. It is now marked as stale. Please provide additional information or this issue may be closed in the future. We value your contribution and would love to hear more!

Copy link

github-actions bot commented May 9, 2024

This issue has not seen activity for 60 days. It is now marked as stale. Please provide additional information or this issue may be closed in the future. We value your contribution and would love to hear more!

@drew2a
Copy link
Collaborator

drew2a commented Jun 3, 2024

Still occuring in 7.14

@drew2a drew2a changed the title [7.10] OSError: [Errno 22] Invalid argument (Mac firewall related?) [7.10] OSError: [Errno 22] Invalid argument Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Bug crunch
  
Needs triage
Development

No branches or pull requests

4 participants