Admin server using stale assets.db - Asset not found #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause: The admin server was using its own local
assets.db(7,560 assets) instead of sharing the main app's DB (10,148 assets). Machine IDs added or imported into the main app after May 31 were invisible to the admin server, causingAsset not founderrors in Clear GPS and other admin features.Fix:
assets.dbto sync the admin server's copyrun.shto setCANTEEN_DB_PATHdefaulting to../canteen-asset-tracker/assets.dbCANTEEN_DB_PATHenv var pointing to shared DBCommit:
4ab08caNote: The stale copy was there because the admin server's code defaults to
Path(__file__).parent / "assets.db"(its own directory) if the env var is not set. Therun.shnow explicitly sets it.