Back

Errors when installing appwrite (Ubuntu Server 22.04 64 Bit)

  • 1
  • Self Hosted
Binyamin
24 Apr, 2023, 20:18

What this lsmod | grep kvm returns?

TL;DR
User is experiencing errors when installing appwrite on Ubuntu Server 22.04 64 Bit. They suspect it may be an OS error. They mention using a cheap hosting provider with a problematic web panel. Other users suggest trying Linode, DigitalOcean, or Vultr. There is a discussion about clean installations and the possible cause of the errors. One user asks if they have installed `go`. They provide a link with steps to try for installation via a `.sh` file. The user confirms that they have tried all the steps, but they still encounter the same error. The error message mentions failed to create shim task and suggests increasing
AleXoTroN
24 Apr, 2023, 20:19
Binyamin
24 Apr, 2023, 20:22

You something that limit your server Do running ulimit -s unlimited and then docker compose up -d makes any different?

AleXoTroN
24 Apr, 2023, 20:28

i saw that some process and storage limit is enabled by default in the server console and i disabled that after i resetted the server before

AleXoTroN
24 Apr, 2023, 20:28

now after ulimit -s unlimited and docker compose up -d still the same error:

Binyamin
24 Apr, 2023, 20:37

Okay, I think a good approach to tackle it would be to try to run the docker-compose.yml services one by one to find the problematic one.

TypeScript
docker compose run -d mariadb
docker compose run -d redis
docker compose run -d influxdb
docker compose run -d telegraf
docker compose run -d appwrite
docker compose run -d traefik
docker compose run -d appwrite-executor
docker compose run -d appwrite-realtime
docker compose run -d appwrite-worker-audits
docker compose run -d appwrite-worker-webhooks
docker compose run -d appwrite-worker-deletes
docker compose run -d appwrite-worker-databases
docker compose run -d appwrite-worker-builds
docker compose run -d appwrite-worker-certificates
docker compose run -d appwrite-worker-functions
docker compose run -d appwrite-worker-mails
docker compose run -d appwrite-worker-messaging
docker compose run -d appwrite-maintenance
docker compose run -d appwrite-usage
docker compose run -d appwrite-schedule
Binyamin
24 Apr, 2023, 20:37

In this order

AleXoTroN
24 Apr, 2023, 20:44

@Binyamin those are the containers that fail when trying to run them: audits, certificates, mails, messaging, maintenance, usage, schedule

Binyamin
24 Apr, 2023, 20:52

Any one of them product the same error above?

AleXoTroN
24 Apr, 2023, 20:53

yes, all with the same error. Its Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 2, stdout: , stderr: runtime/cgo: pthread_create failed: Resource temporarily unavailable and the audits one has produced Error response from daemon: failed to start shim: start failed: runtime: failed to create new OS thread (have 2 already; errno=11) runtime: may need to increase max user processes (ulimit -u)

Binyamin
24 Apr, 2023, 20:58

It's interesting did you installed go?

Let's try one last thing Reset the server and try all the steps in this link https://discord.com/channels/564160730845151244/1097119647867863090/1097199871624228934 Including the docker installation via the .sh file

Drake
24 Apr, 2023, 21:02

it really could be an OS level system limit like this error says. maybe you have some non-standard ubuntu installation

Binyamin
24 Apr, 2023, 21:02

I agree

AleXoTroN
24 Apr, 2023, 21:02

i will do that! I am probably not able to do thay today but ill complete these steps tomorrow and then give a feedback here. Thanks so far for your help guys, you are awesome!

Binyamin
24 Apr, 2023, 21:02

But it's seems a bit wired that clean Ubuntu 22 will produce this kind of errors

AleXoTroN
24 Apr, 2023, 21:03

yeah i also think that. It feels like that the provider i choose is pretty bad πŸ˜…

AleXoTroN
24 Apr, 2023, 21:04

i cannot really tell if its clean because i cannot upload an iso myself. there is a predefined list of operating systems

Binyamin
24 Apr, 2023, 21:04

What company it is?

AleXoTroN
24 Apr, 2023, 21:04

strato.de

Binyamin
24 Apr, 2023, 21:04

Most of the time they will give you near-clean installation

AleXoTroN
24 Apr, 2023, 21:06

their web panel is also quite cursed. In their docs there are infos about how to setup firewall rules but there is no option to do that when logging in. I cannot even restart or stop the server. To do that i have to switch to "Recovery Mode" and back to "Production mode". That seems like a pretty bad admin console to meπŸ˜•

Binyamin
24 Apr, 2023, 21:07

I would recommend you either Linode or Digital ocean or Vultr All of them have servers in Germany.

AleXoTroN
24 Apr, 2023, 21:14

i will check them out, thanks! Strato is quite cheap. That should have been a warning to me before. Currently i pay 6€/6$ per month for 4 CPU cores, 8GB, 300GB

Binyamin
24 Apr, 2023, 21:15

It's pretty cheap, But maybe it means that you're part of bigger system and 100% isolated VPS.

AleXoTroN
24 Apr, 2023, 21:15

Ok guys thank you so much for your work, i really appreciate it! I will try to reset the server and install appwrite manually tomorrow and post the results here. If its not working it has to be a OS error

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