Skip to content
Back

Can't push functions when self-hosting on version 1.7.4

  • 0
  • Self Hosted
  • Functions
Dioksy
2 Jul, 2025, 15:56

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

TypeScript
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 ...
ErrorauditFunction (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.

TL;DR
Developers are having trouble pushing functions when self-hosting on version 1.7.4. The error "Cannot access offset of type string on string" is occurring. They've tried adjusting the _APP_EXECUTOR_HOST and _APP_FUNCTIONS_RUNTIMES_NETWORK settings but haven't found a solution. Support hasn't been able to help, and the deployment link provided 404s. Solution: One possible solution could be to debug into the Executor.php file at line 106 as the error points to an issue there. Another avenue to explore could be checking the network configurations to ensure proper connectivity between the function and executor containers.
Dioksy
2 Jul, 2025, 15:56

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

TypeScript
[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.

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