Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies
- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162) - pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE - health check: show the service log when an HTTP check fails - update.sh: the "before" version comes from deploy.state - migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing - docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT - tests: new test for the section parameter, fixed test_server_process.py Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1bbf9b7cc1
commit
79c950f8f7
14 files changed
+156
-38
No files matched your search
@@ -37,6 +37,9 @@ def main(argv=None):
|
||||
if st.too_new:
|
||||
raise migrations._too_new_error(st)
|
||||
print(f"Database: {db_path}" + ("" if st.exists else " (does not exist yet)"))
|
||||
if not st.exists and not args.db:
|
||||
print("Hint: the default database was used; for an installed system set OVPMON_OPENVPN_MONITOR_DB_PATH "
|
||||
"(see /etc/ovpmon/env) or pass --db PATH")
|
||||
if args.check:
|
||||
print(f"Schema version: {st.current} (latest known: {migrations.latest_version()})")
|
||||
if not st.pending:
|
||||
|
||||
Reference in new issue
Block a user