Back

[SOLVED] Docker, service not found

  • 0
  • Web
Berserker
22 Apr, 2023, 17:12

@joeyouss okie

TL;DR
User was initially experiencing an issue with Docker, where a "service not found" error was being displayed when running `docker compose up` command. They deleted the appwrite folder and then ran `docker compose up` inside the appwrite directory, which resolved the issue and got Appwrite up and running. Later, they encountered a new issue where a "control characters are not allowed" error was displayed when running the same command. This error was caused by something wrong with the Docker Compose file, so they removed it. The user also made some changes, such as setting the "data-root" parameter in the `/etc/docker/daemon
Berserker
22 Apr, 2023, 17:13

@joeyouss i ran the command lemme give it a second

joeyouss
22 Apr, 2023, 17:13

sure

Berserker
22 Apr, 2023, 17:21

@joeyouss i killed the last instance as i added

TypeScript
{
  "data-root": "/mnt/docker"
}
``` in my  /etc/docker/daemon.json
According to the arch wiki https://wiki.archlinux.org/title/docker 

and again ran the command but now it's again pulling everything from the docker so it's taking up some time here
Berserker
22 Apr, 2023, 17:24

@joeyouss i didn't forget to add

TypeScript
docker login``` this time so  i think it has to work this time
Drake
22 Apr, 2023, 17:27

What's in your appwrite folder now?

Berserker
22 Apr, 2023, 17:36

@Steven appwrite inside appwrite idk what happened

Drake
22 Apr, 2023, 17:39

Ya that's not good. Maybe you ran the install command inside the appwrite folder

Berserker
22 Apr, 2023, 17:39

@Steven yeah if i do it from outside Warning: yaml_parse(): reading error encountered during parsing: control characters are not allowed (line 1, column 1) in /usr/src/code/src/Appwrite/Docker/Compose.php on line 20 Service not found

Berserker
22 Apr, 2023, 17:39

@Steven lemme remove it then

Drake
22 Apr, 2023, 17:40

This is probably because something is wrong with the docker compose file

Berserker
22 Apr, 2023, 17:41

@Steven should there be anything to be specifically done for arch based distros ??

Drake
22 Apr, 2023, 17:41

Nope

Berserker
22 Apr, 2023, 17:43

@Steven lemme try to follow the archwiki then and will comeback

Berserker
22 Apr, 2023, 17:46

@Steven but when i tried to run ubuntu bash docker image as a trial everything worked perfectly

Drake
22 Apr, 2023, 17:47

What do you mean?

Berserker
22 Apr, 2023, 17:48

@Steven perhaps docker is working fine idk

Drake
22 Apr, 2023, 17:54

Yes, docker seems fine

Berserker
23 Apr, 2023, 04:58

@Steven if I tried to do

TypeScript

$ docker compose up 

inside appwrite directory

TypeScript
yaml: control characters are not allowed
```this comes up
Berserker
23 Apr, 2023, 09:59

@Steven and @joeyouss i deleted the appwrite folder then ran appwrite run ....

what happened is that a docker-compose.yml file got created then i ran

TypeScript
docker compose up``` 
inside appwrite directory , Now appwrite is up and running
Drake
23 Apr, 2023, 14:29

Yes there was something wrong with the docker compose file

Berserker
23 Apr, 2023, 14:29

@Steven how it could have happened???

Drake
23 Apr, 2023, 14:31

Maybe you edited it and left some character out of place? Or maybe a previous upgrade didn't write the file properly. You had to look at the file to see what was wrong with it

Berserker
23 Apr, 2023, 14:31

@Steven okiee thank you sir

Drake
23 Apr, 2023, 14:40

[SOLVED] Docker, service not found

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