Website keeps reloading and crashig

birtch-mb
HOBBY

5 months ago

Are there any cached files or multiple instances running?

here is my server log.

return self.load_wsgiapp()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgi[app.py](app.py)", line 47, in load_wsgiapp

return util.import_app([self.app](self.app)_uri)

File "/opt/venv/lib/python3.10/site-packages/gunicorn/util.py", line 370, in import_app

mod = importlib.import_module(module)

File "/nix/store/xmhjnvgg1v2c2sr5hqv0p52ikcbvw1m4-python3-3.10.15/lib/python3.10/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1050, in gcdimport

File "", line 1027, in findand_load

File "", line 1006, in findandloadunlocked

File "", line 688, in loadunlocked

File "", line 883, in exec_module

File "", line 241, in callwithframesremoved

File "/app/app.py", line 384, in

def index():

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/scaffold.py", line 362, in decorator

self.add_url_rule(rule, endpoint, f, **options)

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/scaffold.py", line 47, in wrapper_func

return f(self, *args, **kwargs)

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/app.py", line 657, in addurlrule

raise AssertionError(

AssertionError: View function mapping is overwriting an existing endpoint function: index

[2025-02-25 18:18:16 +0000] [4] [INFO] Worker exiting (pid: 4)

DEBUG:root:Firebase configuration set.

DEBUG:app:Initializing Firebase Admin…

DEBUG:app:Firebase Admin initialized successfully from JSON

DEBUG:app:Firestore client created successfully

[2025-02-25 18:18:17 +0000] [5] [ERROR] Exception in worker process

Traceback (most recent call last):

File "/opt/venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker

worker.init_process()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 135, in init_process

self.load_wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi

self.wsgi = [self.app](self.app).wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 66, in wsgi

self.callable = self.load()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgi[app.py](app.py)", line 57, in load

return self.load_wsgiapp()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgi[app.py](app.py)", line 47, in load_wsgiapp

return util.import_app([self.app](self.app)_uri)

File "/opt/venv/lib/python3.10/site-packages/gunicorn/util.py", line 370, in import_app

mod = importlib.import_module(module)

File "/nix/store/xmhjnvgg1v2c2sr5hqv0p52ikcbvw1m4-python3-3.10.15/lib/python3.10/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1050, in gcdimport

File "", line 1027, in findand_load

File "", line 1006, in findandloadunlocked

File "", line 688, in loadunlocked

File "", line 883, in exec_module

File "", line 241, in callwithframesremoved

File "/app/app.py", line 384, in

def index():

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/scaffold.py", line 362, in decorator

self.add_url_rule(rule, endpoint, f, **options)

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/scaffold.py", line 47, in wrapper_func

return f(self, *args, **kwargs)

File "/opt/venv/lib/python3.10/site-packages/flask/sansio/app.py", line 657, in addurlrule

raise AssertionError(

AssertionError: View function mapping is overwriting an existing endpoint function: index

[2025-02-25 18:18:17 +0000] [5] [INFO] Worker exiting (pid: 5)

[2025-02-25 18:18:17 +0000] [1] [ERROR] Worker (pid:4) exited with code 3

[2025-02-25 18:18:17 +0000] [1] [ERROR] Worker (pid:5) was sent SIGTERM!

[2025-02-25 18:18:17 +0000] [1] [ERROR] Shutting down: Master

[2025-02-25 18:18:17 +0000] [1] [ERROR] Reason: Worker failed to boot.

Do you see any issues with this error log?

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

1 Replies

5 months ago

Hey!

This is an issue with your project / application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.

Other communities such as Stackoverflow might be able to help you out further.

Best,
Brody


Status changed to Closed brody 5 months ago