TritonDataCenter / sdc-headnode

Responsible for building and setting up the Triton (formerly SmartDataCenter) headnode.
Mozilla Public License 2.0
18 stars 21 forks source link

LINUXCN-14 Restart triton-lxd service when setting up LinuxCN #78

Closed travispaul closed 1 year ago

travispaul commented 1 year ago

Resolves the following error that occurs after running sdc-server setup:

[2023-04-17T18:46:06Z] ./joysetup.sh:916: setup_imgadm(): imgadm list -H
imgadm list: error (InternalError): could not run "lxc image list":
        command: /usr/local/lxd/bin/lxc image list --format json
        exit status: 1
        stdout:

        stderr:
Error: Get "<http://unix.socket/1.0":> dial unix /var/lib/lxd/unix.socket: connect: connection refused

Tested by manually changing joysetup.sh on a local Triton. Also confirmed it had no impact on setting up SmartOS CNs.