Skip to content

Frontend failure - err 500 - weird datetime errors #3623

Open
@praiskup

Description

[Sun Feb 09 10:57:39.626598 2025] [wsgi:error] [pid 3778094:tid 3778101] [remote 82.60.144.220:54516] ImportError: datetime initialization failed
[Sun Feb 09 10:57:40.395820 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158] mod_wsgi (pid=3775144): Failed to exec Python script file '/usr/share/copr/coprs_frontend/application'.
[Sun Feb 09 10:57:40.395910 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158] mod_wsgi (pid=3775144): Exception occurred processing WSGI script '/usr/share/copr/coprs_frontend/application'.
[Sun Feb 09 10:57:40.396682 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158] Traceback (most recent call last):
[Sun Feb 09 10:57:40.398225 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/share/copr/coprs_frontend/application", line 11, in <module>
[Sun Feb 09 10:57:40.398247 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     from coprs import app
[Sun Feb 09 10:57:40.398263 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/share/copr/coprs_frontend/coprs/__init__.py", line 45, in <module>
[Sun Feb 09 10:57:40.398273 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     db = SQLAlchemy(app, engine_options={"future": True})
[Sun Feb 09 10:57:40.398287 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib/python3.13/site-packages/flask_sqlalchemy/extension.py", line 221, in __init__
[Sun Feb 09 10:57:40.398297 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     self.init_app(app)
[Sun Feb 09 10:57:40.398305 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     ~~~~~~~~~~~~~^^^^^
[Sun Feb 09 10:57:40.398318 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib/python3.13/site-packages/flask_sqlalchemy/extension.py", line 329, in init_app
[Sun Feb 09 10:57:40.398328 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     engines[key] = self._make_engine(key, options, app)
[Sun Feb 09 10:57:40.398336 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]                    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
[Sun Feb 09 10:57:40.398350 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib/python3.13/site-packages/flask_sqlalchemy/extension.py", line 617, in _make_engine
[Sun Feb 09 10:57:40.398359 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     return sa.engine_from_config(options, prefix="")
[Sun Feb 09 10:57:40.398367 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]            ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
[Sun Feb 09 10:57:40.398415 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py", line 820, in engine_from_config
[Sun Feb 09 10:57:40.398427 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     return create_engine(url, **options)
[Sun Feb 09 10:57:40.398441 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "<string>", line 2, in create_engine
[Sun Feb 09 10:57:40.398454 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib64/python3.13/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
[Sun Feb 09 10:57:40.398463 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     return fn(*args, **kwargs)  # type: ignore[no-any-return]
[Sun Feb 09 10:57:40.398475 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py", line 599, in create_engine
[Sun Feb 09 10:57:40.398484 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     dbapi = dbapi_meth(**dbapi_args)
[Sun Feb 09 10:57:40.398497 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib64/python3.13/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 690, in import_dbapi
[Sun Feb 09 10:57:40.398523 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     import psycopg2
[Sun Feb 09 10:57:40.398538 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]   File "/usr/lib64/python3.13/site-packages/psycopg2/__init__.py", line 51, in <module>
[Sun Feb 09 10:57:40.398547 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     from psycopg2._psycopg import (                     # noqa
[Sun Feb 09 10:57:40.398556 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     ...<10 lines>...
[Sun Feb 09 10:57:40.398564 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158]     )
[Sun Feb 09 10:57:40.398586 2025] [wsgi:error] [pid 3775144:tid 3775160] [remote 178.20.201.228:56158] ImportError: datetime initialization failed

We've been offline for several hours.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status

    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions