Back

Server Error when using Appwrite CLI to init a function

  • 6
  • Functions
Drake
31 Aug, 2023, 02:15

What's the output of appwrite -v?

TL;DR
Users are experiencing a server error when using the Appwrite CLI to initialize a function. The issue is related to an attribute being deleted when it shouldn't have been. A fix is being worked on and a pull request has been created. In the meantime, there is no temporary fix available. The version of the Appwrite CLI being used is 2.0.2.
Zeke(Jafesu)
31 Aug, 2023, 02:15

2.0.2

Zeke(Jafesu)
31 Aug, 2023, 02:17

i JUST installed it with npm install -g appwrite-cli

Drake
31 Aug, 2023, 02:19

Thanks. We'll need to push a fix for this

Zeke(Jafesu)
31 Aug, 2023, 02:20

Vincent told me to break 1.4 xD apparently I am following instructions lol

Zeke(Jafesu)
31 Aug, 2023, 02:20

is there a template for appwrite.json? or does it populate when i init my function?

Drake
31 Aug, 2023, 02:21

Yes thank you!

Drake
31 Aug, 2023, 02:22

It populates when you init. The schema is also in the docs

Zeke(Jafesu)
31 Aug, 2023, 02:30

also, if it makes an difference, i am using node 18.0

Roberto_From_Brescia
31 Aug, 2023, 09:11

Hi, any fix for this?

Drake
31 Aug, 2023, 18:43

so the problem is this attribute was deleted when it shouldn't have been. We'll need to push out a fix to restore this attribute. Here's the PR: https://github.com/appwrite/appwrite/pull/6095

Dave
2 Sep, 2023, 06:02

Is there a way to temporary fix this? I'm running 1.4.1 on a clean install (after using the one-click install from Digital Ocean, then migrating to 1.4.1) but run into the same error after connecting my GitHub account and try to create a node-18 function

Drake
2 Sep, 2023, 17:38

Technically, it's possible to manually fix by manually modifying some things in the database directly, but it's kind of complicated. I'm trying to rush another patch release to fix it.

corax
2 Sep, 2023, 17:55

I think its not only schedule attirbute gone missing, there are other attributes too in 'executions' table and also 'variables' table because all of my functions variables were deleted after migration

EDIT: Because on createExecution from console, I got the same 'Server Error'

Drake
2 Sep, 2023, 20:02

What's the docker logs from the appwrite container for the create execution API call?

Zeke(Jafesu)
3 Sep, 2023, 15:53

I see the PR for this was closed and merged, do we know when it will be released?

Drake
3 Sep, 2023, 16:19

Next couple of days

darShan
5 Sep, 2023, 07:19

Any ETAs?

iStornZ
5 Sep, 2023, 08:10

I'm also impacted, I can't deploy functions from Github VCS & CLI ...

Drake
5 Sep, 2023, 18:39

Next couple of days. you can keep an eye on the progress here: https://github.com/appwrite/appwrite/milestone/27

hamed
9 Sep, 2023, 14:02

I'm still experiencing this issue with CLI 4.0.0

Drake
9 Sep, 2023, 15:18

Did you upgrade Appwrite and run the migrate command?

hamed
9 Sep, 2023, 15:42

Hi Steven, No, it's a fresh installation (1.4.2). I ran the restore script after the installation was successful

Drake
9 Sep, 2023, 15:43

Please create a new <#1072905050399191082> post and include the related docker logs from the appwrite container

hamed
9 Sep, 2023, 15:43

Alright

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