Self hosted instance pub get socket error when deploying function
- 0
- Self Hosted
- Flutter
- Functions

I hv self hosted instance of appwrite i am trying to build a function manually but i am getting error socket error when it is trying to get pub dependencies i am using internet proxy and i hv configured docker to that proxy too, is there anything else to follow?

What do you mean by building the function manually?

From tar.gz file i am not setting any repository


How does the tar file looks like? I mean the scheme

are you on 1.5.x have you tried doing it using the CLI ?

Manual deployment should work anyways. I recommend CLI, but 🤷♂️

yes its not woking now after the upgrade to 1.5.x appwrite and 5.0.0 cli

Do you have 1.5.3?

yes

@Jake Do you have any ideas?

@D5 it create the function with the appwrite.json and aslo creates the code.tar.gz
but does not push to the server

I took the .gz file and manually uploaded getiitng this error

Could not resolve host: appwrite-executor with status code 0
/usr/src/code/src/Executor/Executor.php:331
#0 /usr/src/code/src/Executor/Executor.php(91): Executor\Executor->call('POST', '/runtimes', Array, Array, true, 900)
#1 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(408): Executor\Executor->createRuntime('65f19ae2a51c1fe...', '655a57fe5fc72cc...', '/storage/functi...', 'openruntimes/da...', 'v3', true, 'lib/main.dart', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#2 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#3 {main}

Not sure here 🤔 @Matej Bačo any ideas?

In tar there is a folder caled create_function in which there is lib folder and inside it there is main.dart file and inside the create_function there is pubspec.yaml file in which dart_appwrite sdk is mentioned and it gets downloaded by using dart pub get command and that command is giving me this error 🥲

Nd i am using 1.4

And what's your CLI version?

some how I fxed this after deleting the pref.json file

in .appwrite folder

4.2.2

Used CLI but still getting same socket error "Got socket error trying to find package pubspec at https://pub.dev.

I tried python starter function too but got an error


Still not solved
Recommended threads
- How to get event payload/source from fai...
Hi everyone, I'm currently working with Appwrite's database triggers, specifically for document creation events. I've encountered a potential issue and was h...
- How to self host 1.8.x
Hello, I have a running self hosted instance of appwrite 1.7.4 installed some month ago, but I read the latest announcements and a lot of cool stuff seem to hav...
- Issue with users.list on Appwrite self-h...
Hi all, I am self-hosting an Appwrite instance with the version 1.6.1 on a remote server and am running a web-app written in React in a container on the same h...
