Back

[SOLVED] Failed to save Docker Compose file

  • 0
  • Tools
  • Android
  • Self Hosted
asapsonter
24 Mar, 2023, 02:51

I installed docker and had it running. I ran the appwrite install commands from the official appwrite website. I got this error towards the end of the process.

TypeScript
Failed to save Docker Compose file
TL;DR
User installed Docker and ran the Appwrite install commands from the official website. Towards the end of the process, they received the error "Failed to save Docker Compose file." They also mentioned that there were vulnerabilities in the Docker image. A suggestion was made to try running the command again in a different folder. It is unclear if the user ran the command as a super user or with su. The solution was not provided in the thread.
Binyamin
24 Mar, 2023, 02:52

Did you run the command as super user or with su?

asapsonter
24 Mar, 2023, 02:54

I ran the command in powershell as admin

Binyamin
24 Mar, 2023, 02:56

Interesting. Can you try to run the command again in different folder?

asapsonter
24 Mar, 2023, 02:58

I can also see the image in docker but they are so many vulnerabilities.

asapsonter
24 Mar, 2023, 02:58

ok

asapsonter
24 Mar, 2023, 03:04

same error on a different PowerShell folder.

TypeScript
Warning: file_put_contents(/usr/src/code/appwrite/docker-compose.yml.1679626762.backup): Failed to open stream: Permission denied in /usr/src/code/app/tasks/install.php on line 72
Env file found, creating backup: .env.1679626762.backup

Warning: file_put_contents(/usr/src/code/appwrite/.env.1679626762.backup): Failed to open stream: Permission denied in /usr/src/code/app/tasks/install.php on line 110
Choose your server HTTP port: (default: c)

Choose your server HTTPS port: (default: 443)

Choose a secret API key, make sure to make a backup of your key in a secure location (default: 'your-secret-key')

Enter your Appwrite hostname (default: 'localhost')

Enter a DNS A record hostname to serve as a CNAME for your custom domains.
You can use the same value as used for the Appwrite hostname. (default: 'localhost')


Warning: file_put_contents(/usr/src/code/appwrite/docker-compose.yml): Failed to open stream: Permission denied in /usr/src/code/app/tasks/install.php on line 203
Failed to save Docker Compose file
PS C:\WINDOWS\system32>
Binyamin
24 Mar, 2023, 03:05

I think it because you running it on your system32 folder

Try to cd to a neutral location. For example to your user account folder In c:\users\ user

asapsonter
24 Mar, 2023, 03:06

ok

Binyamin
24 Mar, 2023, 03:06

Lmk

asapsonter
24 Mar, 2023, 06:24

I successfully installed using docker as user. I had issues with port. ended up using gitpod. Thanks

asapsonter
28 Mar, 2023, 06:45

[SOLVED] Failed to save Docker Compose file

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