Back

upgrade from 1.3.8 to 1.4.0

  • 0
  • Functions
4lexTristan
6 Sep, 2023, 15:44

Hello, I would like the new logging system to better understand what happens in my appwrite functions. I have upgrade from iteratively from 1.3.4 to 1.3.8. Now, I am upgrading my appwrite server from 1.3.8 to 1.4.0 and it works quite well but when I go to the function page, I see the side menu and an error 500 instead of my function list. I don't know what to do. I did find any information about this kind of issue. According the console, I don't have the right: {fake@mail.com} (role: owner) missing scope (none). The response of the API call is "general_unauthorized_scope".

I tried to skip this issue by upgrading from 1.40 to 1.4.1, but during the upgrade a lot of yellow message highlighting missing or already existing attributes is prompted.

TL;DR
The user is upgrading their appwrite server from version 1.3.8 to 1.4.0. After the upgrade, they are experiencing an error 500 on the function page and seeing a console message about unauthorized scope. They tried upgrading to version 1.4.1 to skip the issue but received yellow messages about missing or existing attributes during the upgrade. A solution is not provided in the support thread.
Drake
6 Sep, 2023, 16:02

btw, you don't need to upgrade to every patch. it's always best to go from latest patch to latest patch. so for your example:

1.3.4 > 1.3.8 > 1.4.1

you typically only need to run migrations between minor versions so in your case:

1.3.8 > 1.4.1 would require migration. however, you should read the release notes on github to see if a migration is required between patch versions

also, the warning about attribute already exists should be okay if they were already created because of a previous migration.

Drake
6 Sep, 2023, 16:03

im pretty sure these were fixed in 1.4.1 🧐

4lexTristan
6 Sep, 2023, 16:26

OK I give it a try.

4lexTristan
6 Sep, 2023, 17:33

So I finally updated appwrite to 1.4.1. It seems to work however, I am not able to create a new function through CLI with 'appwrite init function'. If I check logs in appwrite container, I see 'invalid document structure: unknown attribute: schedule'

4lexTristan
6 Sep, 2023, 17:34

BTW the 500 error is fixed in 1.4.1

Drake
6 Sep, 2023, 17:48

That will be fixed in 1.4.2 😕 sorry

4lexTristan
6 Sep, 2023, 18:11

thank you , I will wait until then. Meanwhile, I will put aside features based on functions.

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