Skip to content

RuntimeError: PROXY_SECRET must be set in production. #110

Description

@gr3enk

Hi,

I have tried to self host tracefinity with the provided docker command docker run -p 3000:3000 -v ./data:/app/storage ghcr.io/tracefinity/tracefinity.
Unfortunately my Instance encounters an Error, where it seems like the Backend is not working correctly.
If I try to upload a photo i get the request failed error.
I tried to set DEVELOPMENT_MODE=1 and some PROXY_SECRET as Environment Variables but the Error occurs anyways.

full log

2026-06-25 06:50:32,971 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2026-06-25 06:50:32,971 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2026-06-25 06:50:32,971 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2026-06-25 06:50:32,971 WARN exited: backend (exit status 1; not expected)
2026-06-25 06:50:33,979 INFO spawned: 'backend' with pid 64
Traceback (most recent call last):
  File "/usr/local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/click/core.py", line 1524, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/click/core.py", line 1445, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/click/core.py", line 1308, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/click/core.py", line 877, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uvicorn/main.py", line 441, in main
    run(
  File "/usr/local/lib/python3.12/site-packages/uvicorn/main.py", line 609, in run
    config.load_app()
  File "/usr/local/lib/python3.12/site-packages/uvicorn/config.py", line 415, in load_app
    return import_from_string(self.app)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/app/backend/app/main.py", line 17, in <module>
    raise RuntimeError(
RuntimeError: PROXY_SECRET must be set in production. Set DEVELOPMENT_MODE=1 to disable auth for local development.
Image

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions