opto / sync-for-TB

1 stars 0 forks source link

Difficulties to connect to CouchDB? #1

Open opto opened 2 months ago

opto commented 2 months ago

Please add your questions here.

Include: version of Thunderbird, operating system

tlpwka commented 2 months ago

from add-on review: I finally resolved connections issues, =what was: every user should have admin rights for database. If user was just a member of DB or marked as admin AND member, connection would not work. noname

opto commented 2 months ago

where did you find that user administration panel? My CouchDB Fauxton does not show that?

opto commented 2 months ago

found it.I should add that to the wiki, thanks.

opto commented 2 months ago

this is what the documentation says. Maybe your member did not have the right role?

members: they can read all types of documents from the DB, and they can write (and edit) documents to the DB except for design documents.

admins: they have all the privileges of members plus the privileges: write (and edit) design documents, add/remove database admins and members and set the database revisions limit. They can not create a database nor delete a database.

http://localhost:5984/_utils/docs/api/database/security.html#db-security

tlpwka commented 2 months ago

this is what the documentation says. Maybe your member did not have the right role?

members: they can read all types of documents from the DB, and they can write (and edit) documents to the DB except for design documents.

admins: they have all the privileges of members plus the privileges: write (and edit) design documents, add/remove database admins and members and set the database revisions limit. They can not create a database nor delete a database.

http://localhost:5984/_utils/docs/api/database/security.html#db-security

I read that, but, maybe did not managed to set-up properly...

f.ex, user in db _users (i copied without psw section): { "_id": "org.couchdb.user:tbsync", "_rev": "4-bd63cc59f9225dae528c0aa33d51b2cc", "db": "tbsync", "name": "tbsync", "roles": [ "users" ], "type": "user",

When i placed that "users" group into member section of permission page (previous image), the authentication failed. I just gave up to find solution to make it work as "Member" and kust put that group as "Admin"