vrtmrz / obsidian-livesync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing system database _users

drorengel opened this issue · comments

Abstract

I am trying to deploy docker version and I am getting db errors after deploying the container.

Reproducing procedure

  1. Configure LiveSync as in the blog here https://www.blackvoid.club/obsidian-running-sync-engine-via-docker/
  2. Click the deploy button in portainer
  3. docker container is deployed
  4. About two or three seconds later, we got the error Missing system database _users ... .
  5. Replication has been stopped. No files synchronised.
<!-- paste here -->

Obsidian debug info

Debug info [error] 2024-03-24T04:21:48.391997Z nonode@nohost emulator -------- Error in process <0.355.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,[<<"_users">>],[{file,"src/mem3_shards.erl"},{line,430}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,405}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,434}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,214}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,160}]}]} [notice] 2024-03-24T04:21:48.977878Z nonode@nohost <0.402.0> -------- Missing system database _users [notice] 2024-03-24T04:21:53.393004Z nonode@nohost <0.354.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice. [error] 2024-03-24T04:21:53.394067Z nonode@nohost emulator -------- Error in process <0.503.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,[<<"_users">>],[{file,"src/mem3_shards.erl"},{line,430}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,405}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,434}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,214}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,160}]}]} ```

Can you login to the web interface of your couchdb instance? If not, then there's your problem. It's not really livesync's fault if your couchdb hasn't got any users...

You can also run /_utils/#verifyinstall to do a cursory test of essential operations.

Btw I'm not seeing which docker is being used in the guide you mention. I'm using the official one and it works fine.

Thank you for opening the issue! And thank you for the support @thany!
Referring to the official doc is surely the right way.

As a convenient note: if single_node is true, _users should be created automatically.
Therefore, that message might not be an actual reason.
Please check the remote database status by using database-checking. It is documented in the Quick Setup.