Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while creating mount source path: mkdir permission denied #437

Open
labster opened this issue Sep 9, 2024 · 1 comment
Open

Error while creating mount source path: mkdir permission denied #437

labster opened this issue Sep 9, 2024 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@labster
Copy link

labster commented Sep 9, 2024

Describe the bug

Summary: When trying to create a new instance with Canasta CLI

sudo canasta -v create -i 'bubble' -w "Bubble" -a admin -o compose

I get this error:

Error response from daemon: error while creating mount source path '/host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images':
 mkdir /host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images: permission denied

Note that this is a almost a normal path on my filesystem, if you were to remove the /host_mnt at the beginning it would be valid.

Log:

brent@MacBook-Pro ~/c/d/Canasta-CLI (main)> sudo canasta -v create -i 'bubble' -w "Bubble" -a admin -o compose
Password:
2024/09/09 14:04:34 Using /etc/canasta for configuration...
Setting verbose
Enter the admin password (Press Enter to get saved password or, if one does not exist, autogenerate a password):
Retrieved admin password from /Users/brent/code/docks/Canasta-CLI/.admin-password
⠋ Creating Canasta installation 'bubble'...  [0s] Successfully written to wikis.yaml
Cloning the compose stack repo to /Users/brent/code/docks/Canasta-CLI/bubble
git clone https://github.com/CanastaWiki/Canasta-DockerCompose.git /Users/brent/code/docks/Canasta-CLI/bubble
Cloning into '/Users/brent/code/docks/Canasta-CLI/bubble'...
⠦ Creating Canasta installation 'bubble'...  [0s] Copying /Users/brent/code/docks/Canasta-CLI/wikis.yaml to /Users/brent/code/docks/Canasta-CLI/bubble/config/wikis.yaml
cp /Users/brent/code/docks/Canasta-CLI/wikis.yaml /Users/brent/code/docks/Canasta-CLI/bubble/config/wikis.yaml
Copying /Users/brent/code/docks/Canasta-CLI/bubble/.env.example to /Users/brent/code/docks/Canasta-CLI/bubble/.env
cp /Users/brent/code/docks/Canasta-CLI/bubble/.env.example /Users/brent/code/docks/Canasta-CLI/bubble/.env
Copying /Users/brent/code/docks/Canasta-CLI/bubble/config/wikis.yaml to /Users/brent/code/docks/Canasta-CLI/bubble/.env
cp /Users/brent/code/docks/Canasta-CLI/bubble/config/SettingsTemplate.php /Users/brent/code/docks/Canasta-CLI/bubble/config/Bubble/Settings.php
Starting Canasta
docker compose up -d
⠧ Creating Canasta installation 'bubble'...  [6s]  Network bubble_default  Creating
⠇ Creating Canasta installation 'bubble'...  [6s]  Network bubble_default  Created
 Volume "bubble_mysql-data-volume"  Creating
 Volume "bubble_mysql-data-volume"  Created
 Volume "bubble_sitemap"  Creating
 Volume "bubble_sitemap"  Created
 Volume "bubble_elasticsearch"  Creating
⠏ Creating Canasta installation 'bubble'...  [6s]  Volume "bubble_elasticsearch"  Created
 Volume "bubble_caddy-data"  Creating
 Volume "bubble_caddy-data"  Created
 Container bubble-db-1  Creating
 Container bubble-caddy-1  Creating
 Container bubble-varnish-1  Creating
 Container bubble-elasticsearch-1  Creating
⠙ Creating Canasta installation 'bubble'...  [7s]  Container bubble-varnish-1  Created
⠹ Creating Canasta installation 'bubble'...  [7s]  Container bubble-db-1  Created
 Container bubble-caddy-1  Created
 Container bubble-elasticsearch-1  Created
 Container bubble-web-1  Creating
⠼ Creating Canasta installation 'bubble'...  [7s]  Container bubble-web-1  Created
⠴ Creating Canasta installation 'bubble'...  [7s]  Container bubble-varnish-1  Starting
 Container bubble-elasticsearch-1  Starting
 Container bubble-db-1  Starting
 Container bubble-caddy-1  Starting
⠸ Creating Canasta installation 'bubble'...  [8s]  Container bubble-elasticsearch-1  Started
⠴ Creating Canasta installation 'bubble'...  [8s]  Container bubble-db-1  Started
 Container bubble-web-1  Starting
⠧ Creating Canasta installation 'bubble'...  [8s]  Container bubble-varnish-1  Started
⠇ Creating Canasta installation 'bubble'...  [8s]  Container bubble-caddy-1  Started
⠋ Creating Canasta installation 'bubble'...  [9s] Error response from daemon: error while creating mount source path '/host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images': mkdir /host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images: permission denied
 Network bubble_default  Creating
 Network bubble_default  Created
 Volume "bubble_mysql-data-volume"  Creating
 Volume "bubble_mysql-data-volume"  Created
 Volume "bubble_sitemap"  Creating
 Volume "bubble_sitemap"  Created
 Volume "bubble_elasticsearch"  Creating
 Volume "bubble_elasticsearch"  Created
 Volume "bubble_caddy-data"  Creating
 Volume "bubble_caddy-data"  Created
 Container bubble-db-1  Creating
 Container bubble-caddy-1  Creating
 Container bubble-varnish-1  Creating
 Container bubble-elasticsearch-1  Creating
 Container bubble-varnish-1  Created
 Container bubble-db-1  Created
 Container bubble-caddy-1  Created
 Container bubble-elasticsearch-1  Created
 Container bubble-web-1  Creating
 Container bubble-web-1  Created
 Container bubble-varnish-1  Starting
 Container bubble-elasticsearch-1  Starting
 Container bubble-db-1  Starting
 Container bubble-caddy-1  Starting
 Container bubble-elasticsearch-1  Started
 Container bubble-db-1  Started
 Container bubble-web-1  Starting
 Container bubble-varnish-1  Started
 Container bubble-caddy-1  Started
Error response from daemon: error while creating mount source path '/host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images': mkdir /host_mnt/Users/brent/code/docks/Canasta-CLI/bubble/images: permission denied

A fatal error occured during the installation.
Do you want to keep the files related to it? (y/n)
n
Removing containers

System info

  • Canasta-CLI: built from current master
  • MacOS 12.7.6 Monterey
@labster labster added bug Something isn't working question Further information is requested labels Sep 9, 2024
@jeffw16
Copy link
Member

jeffw16 commented Sep 12, 2024

This seems like an issue with the CLI, not Canasta itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants