After installing the latest CLI, I'm unable to initialize a function; it throws a server error. Here's my process:
1- Freshly installed Appwrite 1.4.2 on a new server (completed).
2- Unable to start openruntimes, so I updated the Docker Compose file by adding _APP_OPENSSL_KEY_V1 (completed).
3- Updated the environment by adding only Dart 3 runtime (completed).
4- Ran the restore script (completed).
5- Installed CLI 4.0.0 (completed).
6- Logged in to Appwrite within the CLI (completed).
7- Attempted to initialize a new function (failed with a server error)
2023-09-09 14:09:43 [Error] Line: 2619
2023-09-09 16:08:11 [Error] Timestamp: 2023-09-09T16:08:11+00:00
2023-09-09 16:08:11 [Error] Method: POST
2023-09-09 16:08:11 [Error] URL: /v1/functions
2023-09-09 16:08:11 [Error] Type: Utopia\Database\Exception\Structure
2023-09-09 16:08:11 [Error] Message: Invalid document structure: Unknown attribute: "schedule"
2023-09-09 16:08:11 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2023-09-09 16:08:11 [Error] Line: 2619
adding _APP_OPENSSL_KEY_V1? it was not set?
4- Ran the restore script (completed).
that basically sets it back to whatever version from that restore...
what version was your backup on?
... was not set.
From version 1.4.1
Should I install 1.4.1 and run restore first!
do you have your previous docker compose and env file?
Yes
you can do docker-compose up -d with those files. then restore. then uprade to 1.4.2 and run migrate command
Alright.
That works, finally I’m able to try the new cloud function 🥲
[SOLVED] Function Initialization Server Error
Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- Error trying to deploy functions from CL...
✗ Error • on-auth-create (6a00b2ab000c9ce2949b) • Server Error ✗ Error: No functions were pushed. Prject ID: 69ffe0270033a4ac420a
- Intermittent Deploy and Execution Errors...
Project: project-fra-658e2f5f4ba30df91177 Function ID: 69bde006001c56757f49 **Several execution errors with:** Timed out waiting for runtime.\nError Code: 400...