cannot bind mount nvidia driver /usr/lib/nvidia-367

Bug #1665592 reported by Björn Tillenius
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snap-confine
High
Zygmunt Krynicki
snapd (Ubuntu)
Undecided
Unassigned

Bug Description

I'm using snaps inside an up to date xenial lxd container (on an up to date xenial host). It worked fine with core snap 16.04.1 rev 888, but when I try to upgrade to rev 1079, I get the following error:

  sudo snap refresh core
  error: cannot perform the following tasks:
  - Run configure hook of "core" snap if present (cannot bind mount nvidia driver /usr/lib/nvidia-367 -> /tmp/snap.rootfs_6HIgd6/var/lib/snapd/lib/gl: No such file or directory)

I can work around it by bind mounting /var/lib/nvidia-367 from the host to the containers.

tags: added: landscape
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hey

Can you tell me if your container has /usr/lib/nvidia-367 and /var/lib/snapd/lib/gl.

Can also tell me the version of snapd inside the container?

Changed in snappy:
status: New → Incomplete
Revision history for this message
Björn Tillenius (bjornt) wrote :

I tried in a fresh container now:

root@ruling-wallaby:~# dpkg -l snapd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii snapd 2.22.2 amd64 Tool to interact with Ubuntu Core

root@ruling-wallaby:~# ls /var/lib/snapd/gl
ls: cannot access '/var/lib/snapd/gl': No such file or directory

root@ruling-wallaby:~# /usr/lib/nvidia-367
bash: /usr/lib/nvidia-367: No such file or directory

root@ruling-wallaby:~# snap install core
error: cannot perform the following tasks:
- Run configure hook of "core" snap if present (cannot bind mount nvidia driver /usr/lib/nvidia-367 -> /tmp/snap.rootfs_I0x0gh/var/lib/snapd/lib/gl: No such file or directory)

Changed in snappy:
status: Incomplete → New
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thank you. I understand the issue now.

Changed in snappy:
status: New → Triaged
assignee: nobody → Zygmunt Krynicki (zyga)
importance: Undecided → High
Zygmunt Krynicki (zyga)
affects: snappy → snap-confine
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is fixed with the following pull request: https://github.com/snapcore/snapd/pull/2881

Changed in snap-confine:
status: Triaged → In Progress
Zygmunt Krynicki (zyga)
Changed in snap-confine:
status: In Progress → Fix Committed
Zygmunt Krynicki (zyga)
Changed in snap-confine:
status: Fix Committed → Fix Released
Oliver Grawert (ogra)
Changed in snapd (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers