Back

Update to 1.5.5 made functions settings say error 500

  • 0
  • Self Hosted
  • Functions
Ibaraki Douji
15 May, 2024, 13:04

Hi, after an update from appwrite v1.5.4 to v1.5.5 i got my Settings page for a function that now thows an error 500 (Internal error).

While watching the devtools i found out i had this error : (img) Error body response : example@example.com (role: admin) missing scope (projects.read)

And yes i ran the migrate command on the main appwrite container

TL;DR
Developers are experiencing a 500 error on the Functions Settings page after updating to Appwrite v1.5.5. The error message shows that the user is missing the "projects.read" scope. To troubleshoot, they checked the console memberships and looked at the appwrite DB using a gist for MariaDB connection. They verified the initial user's access and shared logs, Docker container status, and error details from the container. The issue seems related to permissions after the update.
Ibaraki Douji
15 May, 2024, 13:07

in the container i have thie error :

TypeScript
[Error] Timestamp: 2024-05-15T13:04:48+00:00
[Error] Method: GET
[Error] URL: /v1/project/variables
[Error] Type: Appwrite\Extend\Exception
[Error] Message: example@example.com (role: admin) missing scope (projects.read)
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 273```
Binyamin
15 May, 2024, 13:39

Can you share the output of

TypeScript
docker ps -a
Ibaraki Douji
15 May, 2024, 13:44

can i send the portainer UI ?

Binyamin
15 May, 2024, 13:45

Yes

Ibaraki Douji
15 May, 2024, 13:45

all the appwrite containers are there

Ibaraki Douji
15 May, 2024, 13:50

if you need i can show logs and other data if you need them (i will only need the way to get to them)

Binyamin
15 May, 2024, 13:50

example@example.com is the suer was created during the Appwrite initialing?

Ibaraki Douji
15 May, 2024, 13:50

no i replaced for privacy but it display my email

Binyamin
15 May, 2024, 13:51

Gotcha

Ibaraki Douji
15 May, 2024, 13:51

and i'm the initial user btw

Binyamin
15 May, 2024, 13:51

But this is that user, yes?

Ibaraki Douji
15 May, 2024, 13:51

yes my user is the initial user and can't have access to the projects variables

Binyamin
15 May, 2024, 13:51

Can you try to login in incognito? And let us know

Ibaraki Douji
15 May, 2024, 13:53

still the same error in incognito

Ibaraki Douji
15 May, 2024, 13:53

also /v1/project/usage do the same error

Ibaraki Douji
15 May, 2024, 13:54

maybe the update broke the account and removed the "projects.read" perm

Binyamin
15 May, 2024, 13:54

Let's check it

Binyamin
15 May, 2024, 13:55

Use this gist to connect to your MariaDB

Ibaraki Douji
15 May, 2024, 13:55

ok i'm in the maria (using appwrite DB)

Ibaraki Douji
15 May, 2024, 13:57

i can see all the tables with the show tables but idk where i should look for the scopes

Binyamin
15 May, 2024, 14:00

Check the console memberships

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more