Closed vosdev closed 2 years ago
What version is the LXD server running on 192.168.178.5?
Can you go to it locally and run:
lxc query /1.0/certificates
What version is the LXD server running on 192.168.178.5?
Can you go to it locally and run:
lxc query /1.0/certificates
The server on 192.168.178.5 runs the latest snap, 5.1-4ae3604. It's an Ubuntu 20.04 server.
~
root @ epyc # lxc query /1.0/certificates
[]
~
root @ epyc # lxc version
Client version: 5.1
Server version: 5.1
~
root @ epyc # snap list
Name Version Rev Tracking Publisher Notes
core18 20220309 2344 latest/stable canonical✓ base
core20 20220329 1434 latest/stable canonical✓ base
lxd 5.1-4ae3604 23001 latest/stable canonical✓ -
snapd 2.55.3 15534 latest/stable canonical✓ snapd
Just to be sure I just rebooted the server but the "Error: Not Found" remains
Can you run remote add
with --debug
added?
Ha I found the issue!
The HTTPS listener was not configured. I only configured the metrics listener and used :8443 for it...
I changed the metrics to :8444 and added the config for core.https_listener for :8443 and everything works.
Apologies!
That would explain it :)
Required information
Issue description
A brief description of the problem. Should include what you were attempting to do, what you did, what happened and what you expected to see happen.
Adding my server as a remote on my local client (Powershell LXD 5.1 installed via choco) the server returns a 404
I executed
snap set lxd daemon.debug=true
but the logs in journalctl are pretty unreadable as every special character is escaped :(I replaced \", \t with their respective characters and stripped the \n for your convenience
Also the GET on /1.0 is done twice so I only included it once
To make sure my LXD install for Windows is not the issue here I created a Focal VM, installed the latest LXD snap and tried to add my server as a remote:
Server logs are the same as with my lxd client on windows
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)