#gunicorn worker failing

70 messages · Page 1 of 1 (latest)

old sand
#

[2023-04-08 23:39:34 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-04-08 23:39:34 +0000] [1] [INFO] Listening at: http://0.0.0.0:5462 (1)
[2023-04-08 23:39:34 +0000] [1] [INFO] Using worker: sync
[2023-04-08 23:39:34 +0000] [10] [INFO] Booting worker with pid: 10
[2023-04-08 23:39:34 +0000] [10] [ERROR] Exception in worker process
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.nix-profile/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'locallibrary'
[2023-04-08 23:39:34 +0000] [10] [INFO] Worker exiting (pid: 10)
[2023-04-08 23:39:34 +0000] [1] [INFO] Shutting down: Master
[2023-04-08 23:39:34 +0000] [1] [INFO] Reason: Worker failed to boot.

maiden krakenBOT
#

Project ID: 157fa33f-833e-4b35-a11a-0b1774361ba9

#

No search results found.

old sand
#

157fa33f-833e-4b35-a11a-0b1774361ba9

#

Looked for the module "locallibrary" without success

#

No clue what that module is

#

File "/opt/venv/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/opt/venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/opt/venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#

text missing after the traceback

strange frigate
#

is locallibrary in your req.txt?

old sand
#

let me check

#

nope

#

still trying to deploy btw

#

hahaha

strange frigate
#

might wanna put it in there then

old sand
#

I tried to pip install it

#

but with no success

#

I dont find that module anywhere, do you know it?

strange frigate
#

did you put it in req.txt

old sand
#

nope

strange frigate
#

then put it in

old sand
#

ill try putting it in

#

no version

old sand
#

ERROR: Could not find a version that satisfies the requirement locallibrary (from versions: none)

#

No matching distribution found for locallibrary

strange frigate
old sand
#

Hour of the day

strange frigate
#

whys that relevant?

old sand
#

Dont know, got curious

strange frigate
#

what python version are you using locally

old sand
#

3.11.1

strange frigate
#

have you changed the version railway will use?

old sand
#

dont think so

#

now sure thought

strange frigate
#

add

3.11

to a .python-version file in your project and deploy again

old sand
#

do i delete it?

strange frigate
#

sure

#

locallibrary doesn’t appear to be a package on pypi

old sand
#

yeah i didnt find it anywhere

#

deploy logs not appearing again

#

redeploy...

strange frigate
#

thats a known issue

old sand
#

Do restarting fix it sometimes?

#

or just redeploy

strange frigate
#

not sure, i know redeploying does have a chance to make it work again

old sand
#

Yeah ive made it appear again after 2 tries or so before

strange frigate
#

weekend so team is off, will likely be fixed monday

old sand
#

nice, let's hope ive deployed already by then

#

same error

strange frigate
#

same exact error in the text of this thread post?

old sand
#

yes

#

The operations to perform: and so on is normal?

#

tried to migrate but it does nothing

strange frigate
#

link to your repo please?

old sand
#

It's on private

strange frigate
#

public it?

old sand
#

eeh would prefer to not do that haha

strange frigate
#

why, if i can ask?

old sand
#

i added the .python-version in the folder with the version

#

maybe is it not triggering?

strange frigate
#

it is /opt/venv/lib/python3.11

#

you are running 3.11 now

old sand
#

No clue then

#

On the problem

strange frigate
#

me neither

#

it may seem like a lazy answer but google is always an option?

old sand
#

yee i guess ill keep trying

covert thicket
#

Hello, i'm getting the same error. Has this been resolved?