Building ...
Determining projects to restore...
/usr/local/build/StarterTemplate.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
Failed to restore /usr/local/build/StarterTemplate.csproj (in 15.03 sec).```
The error obviously occurs due to network issues but but how do i debug it? Which containers need to have internet in order to build the functions?
The proxy setup is a little sluggish unfortunately so it works from time to time but most of the time it doesn't which i want to bypass by manually adding the proxy config..
Uhh new containers are spun up for each function for build
makes sense but how do i make sure that they get internet access?
i cant even get the default functions to work right now.. creating a new basic template with appwrite init function
and appwrite deploy function
for dotnet results in also in error NU1301: Unable to load the service index for source
and I dont understand why
*tested on 1.4.9 and 1.4.11
btw. Is there a way to include the Appwrite nuget package in the function tarball so that im at least able to deploy it this way since i cant resolve the other issue right nowπ¬
How are you configuring your proxy? It sounds like you need the proxy in order to access the internet, is that right?
sorry, I don't know enough about nuget to advise on this
that is correct.. right now the ubuntu host machine is running a proxy setup with following envs no_proxy=*** ftp_proxy=*** https_proxy=*** http_proxy=***
. If i log into an appwrite container (e.g. executor, worker-functions..) I can curl google successfully with this setup. So if the containers have internet access the brought up containers which build the functions should have internet as well for fetching packages ??
I did experiment with putting the proxy also in ./docker/config.json
or directly into the docker-compose.yml but since the containers have internet access with just the system wide proxy playing with that seems unnecessary especially because i couldnt get it to work properly too
That docker JSON config. That's in dockers system folder, right?
Yes exactly
interesting...i would expect that to apply to all containers then π§
yes, I also tried deploying the templates of NodeJs and Dart which to my understanding all pull the appwrite sdk from network sources. Weirdly the NodeJS function deploys without issue every time but dotnet and dart cant connect to remote sources.
Resolving dependencies...
It looks like pub.dartlang.org is having some trouble.
Pub will wait for a while before trying to connect again.
Got TLS error trying to find package pubspec at https://pub.dartlang.org.```
To Bypass the Problem I setup a local nuget repository on the host machine but now I have the problem that in order to use it I have to mount the volume. I did that to a couple containers and I can access the repo from the containers but I dont know how to configure it so that it will get mounted in the container building the function? Which container is responsible for bringing up the runtimes and how can i get my volume in there?
Building ...
Determining projects to restore...
/usr/local/build/StarterTemplate.csproj : error NU1301: The local source '/packages' doesn't exist.
Failed to restore /usr/local/build/StarterTemplate.csproj (in 263 ms). ```
mount the volume into the build container? that sounds odd...your local repo doesn't act as a mirror in which you can connect to (presumably via HTTP)?
@Aditya Oberai any suggestions about this one?
This seems to be a Docker issue that comes up when on devices with multiple network adapters
The following thread seems to cover solutions to this issue
You could clone the SDK repo, add a reference to the directory and use it as a class library if you want
Recommended threads
- Having issues with login via CLI
``` ~/appwrite ξ° appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...