activitypods icon indicating copy to clipboard operation
activitypods copied to clipboard

Starting server fails: The podUri is not defined for account <account name>

Open Laurin-W opened this issue 1 year ago • 0 comments

Sometimes when I'm running the test server, and something breaks while signing up a new user, I get some database inconsistency.

This has caused my errors multiple times which prevented me from starting the server and that were hard to resolve:

[09:47:32.071Z] ERROR BROKER: Unable to start all services. Error: The podUri is not defined for account t18
    at Service.handler (/home/laurin/projects/virtual-assembly/semapps/src/middleware/packages/ldp/services/registry/actions/register.js:35:36)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Service.started (/home/laurin/projects/virtual-assembly/semapps/src/middleware/packages/ldp/services/registry/index.js:36:7)
    at async Promise.all (index 78)

I think it would make sense to start the server anyways (and optimally resolve the inconsistency in some way), to improve stability.

For now, I just wipe the db but if this happens in production, that's a rather bad option :D

Laurin-W avatar Jan 11 '24 09:01 Laurin-W