Closed muchachagrande closed 1 year ago
[2023-04-22 00:43:52,606] CRITICAL in config: Following environment variables are required but are not declared or have an invalid value:
[2023-04-22 00:43:52,606] CRITICAL in config: BUILD_DATE with type datetime: value_error.datetime
[2023-04-22 00:43:52,606] CRITICAL in config: Environment error for BUILD_DATE
[2023-04-22 00:43:52,606] ERROR in server: Encountered error when trying to run initialization checks. Running in tainted mode (only the error page is available). Correct all errors and restart the server.
Failed to find attribute 'app' in 'server'.
Give me a bit to troubleshoot. Oddly enough it builds and runs fine if you locally build it (docker build . -t headscale-webui:localbuild)
I think I figured it out. A new build should be up in ~ an hour. Fixes: Set your AUTH_TYPE to "oidc" or "basic" lower case BUILD_DATE will be fixed by setting the type to str instead of datetime (as my Jenkins script just outputs a string). Should be up soon.
The error says:
[2023-04-21 13:06:44 -0300] [1] [INFO] Starting gunicorn 20.1.0 [2023-04-21 13:06:44 -0300] [1] [INFO] Listening at: http://0.0.0.0:5000 (1) [2023-04-21 13:06:44 -0300] [1] [INFO] Using worker: sync [2023-04-21 13:06:44 -0300] [8] [INFO] Booting worker with pid: 8 [2023-04-21 13:06:44,941] CRITICAL in config: Following environment variables are required but are not declared or have an invalid value: [2023-04-21 13:06:44,941] CRITICAL in config: AUTH_TYPE with type AuthType: type_error.enum [2023-04-21 13:06:44,941] CRITICAL in config: BUILD_DATE with type datetime: value_error.datetime [2023-04-21 13:06:44,941] CRITICAL in config: Environment error for AUTH_TYPE [2023-04-21 13:06:44,941] CRITICAL in config: Environment error for BUILD_DATE [2023-04-21 13:06:44,941] ERROR in server: Encountered error when trying to run initialization checks. Running in tainted mode (only the error page is available). Correct all errors and restart the server. Failed to find attribute 'app' in 'server'. [2023-04-21 13:06:44 -0300] [8] [INFO] Worker exiting (pid: 8) [2023-04-21 13:06:45 -0300] [1] [INFO] Shutting down: Master [2023-04-21 13:06:45 -0300] [1] [INFO] Reason: App failed to load.