Hello, I'm a bit new to appwrite functions and recently hosted a fresh 1.7.4 on my portainer setup. Tried to create a new function and when trying to push it I get the following error in the cli
PS D:\Development\vueTest\h-systems-prot\functions\auditFunction> appwrite push functions
? Which functions would you like to push? auditFunction (6864d9ef0023d4d9008a)
ℹ Info: Validating functions ...
ℹ Info: Checking for changes ...
ℹ Info: Pushing functions ...
✗ Error • auditFunction (6864d9ef0023d4d9008a) • Failed to deploy
✗ Error: Deployment of auditFunction has failed. Check at http://run.home:7004/console/project-67e076940022bcd200a3/functions/function-6864d9ef0023d4d9008a/deployment-686554307cff05f9ba68 for more details
ℹ Warning: Successfully pushed 0 of 1 functions
Now the link 404's on me so I don't see anything there.
The deployment in the console doesn't show anything other than this: Cannot access offset of type string on string And the only other information that I've managed to find is in the worker-builds container
[Worker] Worker 0 is ready!
Worker builds started
[Job] Received Job (6865543080d8b3.18461492).
Creating build for deployment: 686554307cff05f9ba68
Build failed:
Cannot access offset of type string on string
/usr/src/code/src/Executor/Executor.php
106
#0 /usr/src/code/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php(698): Executor\Executor->createRuntime('686554307cff05f...', '67e076940022bcd...', '/storage/functi...', 'openruntimes/bu...', 'v5', 0.5, 1024, 900, true, 'src/main.ts', '/storage/builds...', Array, 'tar -zxf /tmp/c...', '')
#1 [internal function]: Appwrite\Platform\Modules\Functions\Workers\Builds->Appwrite\Platform\Modules\Functions\Workers\{closure}()
#2 {main}
[Job] (6865543080d8b3.18461492) successfully run.
I've looked through the support and found other cases of this from a long time ago but nothing that I tried worked
Having the _APP_EXECUTOR_HOST set to http://exc1./v1 or http://appwrite-executor/v1 or even to the name of the executor container which for me is
http://openruntimes-executor/v1 ( I used a completely clean docker compose and .env file from the docs)
The _APP_FUNCTIONS_RUNTIMES_NETWORK is set to runtimes
I was hoping someone could have any information on how to proceed, the function I'm trying to make was using Bun which wasn't in the .env file by default so I added it manually, but even if I tried a started function in node or python it would fail.
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...