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

Linux snap: Error: Failed to create dir: mkdir /var/lib/snapd/void/quickstart: permission denied #5573

Closed
deragon opened this issue Dec 28, 2018 · 5 comments
Labels

Comments

@deragon
Copy link

deragon commented Dec 28, 2018

New user trying the quickstart demo on Linux, got the following:

$ sudo snap install hugo --classic
$ cd /tmp  # Just an example; any directory out of the home directory would do the trick.
$ hugo new site quickstart
Error: Failed to create dir: mkdir /var/lib/snapd/void/quickstart: permission denied

It does work when I run it from my home directory. But it should work outside of it too. According to the documentation:

Hugo-as-a-snap can write only inside the user’s $HOME directory—and
gvfs-mounted directories owned by the user—because of Snaps’ confinement
and security model. More information is also available in this related
GitHub issue. Use sudo snap install hugo --classic to disable the default
security model if you want hugo to be able to have write access in other
paths besides the user’s $HOME directory.

Either the documentation needs to be changed or better, that the snap be fixed to work as expected. All my development directories are outside my home directory, on a different partition. It should be allowed to run hugo from there.

@FelicianoTech
Copy link
Contributor

Based on this forum thread I don't think running --classic for strictly confined snaps is fully supported by Snapcraft.

My vote is then we stop suggesting this and remove it from the docs.

@FelicianoTech
Copy link
Contributor

Open a docs PR for this here -> gohugoio/hugoDocs#715

@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label May 8, 2019
@stale stale bot closed this as completed Jun 7, 2019
yihui added a commit to rstudio/blogdown that referenced this issue Oct 11, 2020
@sitthykun
Copy link

$ hugo new site quickstart
Error: Failed to create dir: mkdir /var/lib/snapd/void/quickstart: permission denied

it is hugo v0.91.2+extended linux/amd64 BuildDate=2021-12-23T20:50:11Z.
what should I do?

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants