Moderator
Getting Database not found error
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
@D5 I just double checked this and as I mentioned above, the permissions for "create, read, update, and delete) have been activated for role "any". My collection is called "Users" and I have also create a role for all users in "Users" and set it to the same CRUD permissions. Should this address the issue, and will I need to restart the appwrite docker container hosted in my digital ocean droplet for these changes to take place?
Rank 2: Process
This is the current setting, yet I still get a database not found error @D5
Moderator
Are you 100% sure the ID is correct?
Moderator
In the code I don't see you have set endpoint, etc
Rank 2: Process
I had not included it in the text, but my endpoint is set at the top of the file
Rank 2: Process
The id is also correct, just double checked
Rank 2: Process
are you referring to setting the endpoint when creating the client?
Moderator
And others ID are correct? (Project ID, collection ID...)
Moderator
Yes
Rank 2: Process
yes the project id, collectionid, and database id are all correct
Rank 2: Process
I am not sure if this matters, but this is my setEndpoint:
Client client = Client()
.setEndpoint('https://appwrite.demo.edventures.ai/v1')
Rank 2: Process
I am using v1
Moderator
You have there . set project, true?
Rank 2: Process
.setProject('64cc49f9606136aab887')
.setSelfSigned(status: true)
Moderator
What do you get in logs, after running this?
docker compose logs appwrite
Rank 2: Process
Moderator
Remove self-signed
Moderator
It's not needed in your case because you have a valid certificate
Moderator
Sorry for the late response, this was not loading on my phone 🤦♂️
Moderator
Are you using relationships?
Rank 2: Process
no worries at all! I really appreciate your help!
If by relationships you mean associating the user role with something like a userId then yes. For every user, they have a role associated with them stored in the database collection as "entrepreneur" or "coach" and it is also tied to their UserId.
Moderator
Nope, I mean associating an attribute to another attribute element in a different collection
Rank 2: Process
We ended up fixing the issue, thanks @D5!
Moderator
What was the solution?