Comments (5)
That' was the same error as before that this pr was trying to fix. When I look at that PR, line 219 should be different now. Can you confirm the version of the sdk you're using and how you're getting it? Seems like maybe it's not been published yet.
from ziti-sdk-py.
I am on 0.8.1, there seems to be 12 pre-release versions, on testpypi the latest prerelease is 0.8.1.post0.dev12
issue 51 i thought was a similar bug but a comment that was left said that it wasn't.
Ill try and repo this with the latest pre-release version and see if the issue persists
from ziti-sdk-py.
Ah, it's entirely possible I just "assumed" it was the fix since I saw that PR just yesterday and noticed the issue closed. :) Thanks. I'll poke @ekoby and see what he thinks.
from ziti-sdk-py.
So I retested it using both the default "sync" worker type and the evenlet worker type and they both still fail with this pre-release version. Its getting a different but very similar error
[2023-11-03 12:26:09 +0000] [110910] [INFO] Worker exiting (pid: 110910)
[2023-11-03 12:26:09 +0000] [110719] [ERROR] Worker (pid:110910) exited with code 255
[2023-11-03 12:26:09 +0000] [110719] [ERROR] Worker (pid:110910) exited with code 255.
[2023-11-03 12:26:09 +0000] [110913] [INFO] Booting worker with pid: 110913
[2023-11-03 12:26:09 +0000] [110913] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/opt/loenserver/lib64/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/opt/loenserver/lib64/python3.11/site-packages/gunicorn/workers/base.py", line 142, in init_process
self.run()
File "/opt/loenserver/lib64/python3.11/site-packages/gunicorn/workers/sync.py", line 126, in run
self.run_for_one(timeout)
File "/opt/loenserver/lib64/python3.11/site-packages/gunicorn/workers/sync.py", line 70, in run_for_one
self.accept(listener)
File "/opt/loenserver/lib64/python3.11/site-packages/gunicorn/workers/sync.py", line 29, in accept
client, addr = listener.accept()
^^^^^^^^^^^^^^^^^
File "/opt/loenserver/lib64/python3.11/site-packages/openziti/zitisock.py", line 119, in accept
fd, peer = zitilib.accept(self.fileno())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/loenserver/lib64/python3.11/site-packages/openziti/zitilib.py", line 280, in accept
check_error(clt)
File "/opt/loenserver/lib64/python3.11/site-packages/openziti/zitilib.py", line 223, in check_error
raise OSError(err, msg)
OSError: [Errno 22] Invalid argument
This seem lines up with the latest change that adds the raise OSError(err, msg) line
from ziti-sdk-py.
as I mentioned in the other issue, gunicorn
spawns child/worker processes. that pattern is no supported (yet) by underlying Ziti SDK (issue openziti/ziti-sdk-c#568)
from ziti-sdk-py.
Related Issues (13)
- enroll command gets segfault HOT 2
- publish packages for Linux/arm64, Linux/arm32 HOT 2
- add access to identity.app_data
- add access to identity.services
- Monkeypatch affecting MQTT connections
- Support dialing addressable terminators via monkeypatch context manager
- Monkeypatch bind port string is not supported
- Strange Exception behavior running `ziti-urllib3` with `ziti-http-server` examples HOT 1
- Incorrect Number of Arguments Using PG8000 with OpenZiti.
- How can I use zitify with fastAPI and uvicorn? HOT 4
- Cannot reload the same identity file in case of error
- Support socket timeout option in ZitiSocket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ziti-sdk-py.