Skip to content

Caught an unhandled exception: unable to create directory '/data/cache' #2709

@wolfenstein87

Description

@wolfenstein87

Describe the bug
Unable to start multipass after following the instructions in #1789

Expected behavior
Multipass to start with the new storage directory location configured

Logs

Aug 17 19:58:03 woof-lab systemd[1]: Started Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab multipassd[17309]: Caught an unhandled exception: unable to create directory '/data/cache'
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 1.
Aug 17 19:58:03 woof-lab systemd[1]: Stopped Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab systemd[1]: Started Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab multipassd[17349]: Caught an unhandled exception: unable to create directory '/data/cache'
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 2.
Aug 17 19:58:03 woof-lab systemd[1]: Stopped Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab systemd[1]: Started Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab multipassd[17385]: Caught an unhandled exception: unable to create directory '/data/cache'
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:03 woof-lab systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 3.
Aug 17 19:58:03 woof-lab systemd[1]: Stopped Service for snap application multipass.multipassd.
Aug 17 19:58:03 woof-lab systemd[1]: Started Service for snap application multipass.multipassd.
Aug 17 19:58:04 woof-lab multipassd[17422]: Caught an unhandled exception: unable to create directory '/data/cache'
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 4.
Aug 17 19:58:04 woof-lab systemd[1]: Stopped Service for snap application multipass.multipassd.
Aug 17 19:58:04 woof-lab systemd[1]: Started Service for snap application multipass.multipassd.
Aug 17 19:58:04 woof-lab multipassd[17459]: Caught an unhandled exception: unable to create directory '/data/cache'
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 5.
Aug 17 19:58:04 woof-lab systemd[1]: Stopped Service for snap application multipass.multipassd.
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Start request repeated too quickly.
Aug 17 19:58:04 woof-lab systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Aug 17 19:58:04 woof-lab systemd[1]: Failed to start Service for snap application multipass.multipassd.

Additional info

  • OS: Ubuntu 22.04.1 LTS
  • multipass 1.11.0-dev.74+g42aeb3e9

Additional context

root@server:/data# ls -alh
total 36K
drwxrwxrwx  6 root multipass 4.0K Aug 17 19:45 .
drwxr-xr-x 20 root root      4.0K Aug  9 14:35 ..
drwxr-xr-x  2 root root      4.0K Aug 17 19:45 cache
drwxr-xr-x  2 root root      4.0K Aug 17 16:32 conf-sharedhome
drwxr-xr-x  2 root root      4.0K Aug 17 16:32 jira-sharedhome
drwx------  2 root multipass  16K Aug  8 16:00 lost+found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions