canonical / canonical/workshop
workshop launch fails -> error: systemctl show-environment: Cannot access user instance remotely.
- Dominant language
- Go
- Stars
- 108
- Forks
- 17
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 40
Description
I don't understand what to do next to troubleshoot this problem:
```
$ cat workshop.yaml
name: opencode
base: ubuntu@24.04
sdks:
- name: system
- name: opencode
channel: all/edge
actions:
opencode: opencode "$@"
$ workshop launch
error: systemctl show-environment: Cannot access user instance remotely.
-- Reboot --
May 13 14:13:14 millbarge systemd[1]: Starting Service for snap application workshop.workshopd...
May 13 14:13:14 millbarge workshop.workshopd[6642]: Acquiring state lock file
May 13 14:13:14 millbarge workshop.workshopd[6642]: Acquired state lock file
May 13 14:13:14 millbarge workshop.workshopd[6642]: Started daemon.
May 13 14:13:14 millbarge systemd[1]: snap.workshop.workshopd.service: Got notification message from PID 6713, but reception only permitted for main PID 6642
May 13 14:13:14 millbarge workshop.workshopd[6642]: cannot copy Xauthority file for user "sarnold", X11 applications may not work: systemctl show-environment: Cannot access user instance remotely.
May 13 14:13:14 millbarge systemd[1]: Started Service for snap application workshop.workshopd.
May 13 14:13:14 millbarge workshop.workshopd[6642]: POST /v1/projects 3.770979ms 400
May 13 14:14:04 millbarge workshop.workshopd[6642]: POST /v1/projects 3.722739ms 200
May 13 14:14:04 millbarge workshop.workshopd[6642]: GET /v1/projects/03bda086/workshops 15.935565ms 200
May 13 14:14:04 millbarge systemd[1]: snap.workshop.workshopd.service: Got notification message from PID 7929, but reception only permitted for main PID 6642
May 13 14:14:04 millbarge workshop.workshopd[6642]: POST /v1/projects/03bda086/workshops 10.389285ms 400
May 13 14:23:21 millbarge workshop.workshopd[6642]: POST /v1/projects 3.334916ms 400
May 13 14:23:40 millbarge workshop.workshopd[6642]: POST /v1/projects 3.632403ms 200
May 13 14:23:40 millbarge workshop.workshopd[6642]: GET /v1/projects/03bda086/workshops 8.130513ms 200
May 13 14:23:40 millbarge systemd[1]: snap.workshop.workshopd.service: Got notification message from PID 11519, but reception only permitted for main PID 6642
May 13 14:23:40 millbarge workshop.workshopd[6642]: POST /v1/projects/03bda086/workshops 21.279174ms 400
$ ls -l ~/.Xauthority
-rw------- 1 sarnold sarnold 4613 May 13 14:13 /home/sarnold/.Xauthority
```
My laptop is running Focal with:
```
$ snap list workshop lxd
Name Version Rev Tracking Publisher Notes
lxd 6.8-5a1a287 39313 latest/candidate canonical✓ -
workshop 0.1.30-a8fb6ac3 126 latest/stable dlyfar classic
```
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.