Read-only file system when running snapcraft from snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* I'm trying to build a snap.
* I have snapcraft installed from "snap install snapcraft --classic"
When running
$ sudo snapcraft
The build fails with:
...
...
...
File "/root/
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/snap/
Traceback (most recent call last):
File "/snap/
load_
...
...
...
* I then remove the snap and replace it with the version from the os:
snapcraft, version 2.35
* Then, the build completed successfully:
Snapping 'django-gunicorn' |
Snapped django-
$ snap search snapcraft
Name Version Developer Notes Summary
snapcraft 2.35 canonical classic easily create snaps
More information:
* In my snapcraft.yaml, I have this:
...
...
...
parts:
django-gunicorn:
plugin: python
source: .
python-version: python3
requirements: requirements.txt
stage-packages: [libpq-
prime:
- -.venv
install: |
mkdir -p $SNAPCRAFT_
python3 ./manage.py collectstatic --no-input
cp -r ./* $SNAPCRAFT_
...
...
...
Would this cause problems?
This should no longer be a problem with Snapcraft 4.x (or 3.x)