Back

[solved] DotNet function deployment

  • 0
  • Functions
krennih
14 Sep, 2023, 08:16

hello there! I try to create a very simple dotnet function as an endpoint. dotnet-6.0is enabled in .envand the server restarted. My code is in a git repository and on github. I connected the repo to a function in Appwrite but the build always fails with Docker Error: tar: short read. I assume it does not even get to the build. I also tried recreating a function from here: https://github.com/appwrite/templates/tree/main/dotnet/starter with the same Docker Error: tar: short readas deploy failes.

Anyone an idea what I might do wrong?

TL;DR
User is experiencing a Docker error while trying to deploy a DotNet function in Appwrite. They initially had trouble with the root path in the deployment, but later discovered it should be left empty. User tried manual and CLI deployments, but encountered errors. Other functions are working well. Another user suggests checking the `.env` file for GitHub-related details. User is seeking help to resolve the Docker error.
Aditya Oberai
14 Sep, 2023, 16:41

@krennih did you configure the GitHub related details in your .env file as well?

Aditya Oberai
14 Sep, 2023, 16:41

cc: @Steven

krennih
14 Sep, 2023, 16:49

Yes, other functions are working, can e.g. set up the sample ChatGPT and create e repo for it from appwrite. Works well.

Aditya Oberai
14 Sep, 2023, 17:10

Oh okay

Are you facing this issue just with the repository or with manual/CLI deployments as well

Normally this error refers to a corrupted or truncated tar file, so I'd love to see if this is an issue exclusive to the GitHub integration

krennih
14 Sep, 2023, 17:42

@Aditya Oberai sorry, got cought on another topic for a moment... – I prefer to not use the manual/cli at all. If I always need to manually deploy a tarball, than why having the github integration at all? After I did not get anything going just using GIT I moved on to try the CLI. The deploy there fails later. upload seems to work there. The sample from your dev.to article dies as shown in the screenshot.

krennih
14 Sep, 2023, 18:16

Creating the function manually and upload the code.tar.gz works.

krennih
14 Sep, 2023, 18:27

so ... uh... where is the :embarressed: emoji when you need it. – sorry for wasting your time here! I somehow got the root path wrong all day long and rereading the docs after dinner again I figured I had to leave that just plain empty to make it all work.

krennih
14 Sep, 2023, 18:28

[solved] DotNet function deployment

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