LxdMosaic icon indicating copy to clipboard operation
LxdMosaic copied to clipboard

Error 500 - Failed to retrieve network informat (truncated...)

Open KRobert74 opened this issue 3 years ago • 4 comments

No detail view to container or vm.

I go to dashboard, expand the server and click on a container. Then I get the following error:

Server error: GET https://192.168.41.32:8443/1.0/resources resulted in a 500 Internal Server Error response: {"type":"error","status":"","status_code":0,"operation":"","error_code":500,"error":"Failed to retrieve network informat (truncated...) /var/www/LxdMosaic/vendor/php-http/guzzle6-adapter/src/Promise.php 127

Screenshot

System configuration:

I run LXD Version 5.2 on raspberry pi 4B (arm64). lxdMosaic v0.14.1

I have the following network configuration:

root@piserver2:~# lxc network list +---------+----------+---------+------+------+-------------+---------+-------+ | NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE | +---------+----------+---------+------+------+-------------+---------+-------+ | eth0 | physical | NO | | | | 6 | | +---------+----------+---------+------+------+-------------+---------+-------+ | eth0.1 | vlan | NO | | | | 2 | | +---------+----------+---------+------+------+-------------+---------+-------+ | eth0.42 | vlan | NO | | | | 4 | | +---------+----------+---------+------+------+-------------+---------+-------+ | wlan0 | physical | NO | | | | 0 | | +---------+----------+---------+------+------+-------------+---------+-------+

KRobert74 avatar Jun 13 '22 15:06 KRobert74

Hey

Hmm, going to need to see the whole untruncated error but calls to /1.0/resources shouldn't fail with 500.

How comfortable are you editing files? As I cant duplicate on fresh install and I dont have a PI laying around im afraid :disappointed:

Also, how are you connecting to the host HTTP or Socket?

turtle0x1 avatar Jun 13 '22 20:06 turtle0x1

I tried to find a log file but without success. Where are error messages stored?

If I could find the script which send the request, I can try to debug.

I can edit files without problems. I have basic programming skills.

I'm connecting with http to the host running lxd. I'm concern that the problem appears since lxd 5.x. Because with lxd 4.x all runs without problems.

KRobert74 avatar Jun 14 '22 19:06 KRobert74

I've got the full error message:

"... Failed to add device information for "/sys/class/net/wlan0/device": Failed to add port info: Failed to ETHTOOL_GLINK: operation not supported","metadata":null} /var/www/LxdMosaic/vendor/php-http/guzzle6-adapter/src/Promise.php 127"r

Hope that helps.

Best regards Robert

KRobert74 avatar Jul 18 '22 20:07 KRobert74

Sorry in my delay in getting back been buried at work recently.

Its odd because the error is coming from LXD not from LXDMosaic.

If your still around could you run lxc query /1.0/resources on your PI? See if it produces the same error? I'm not sure it will but interesting none the less (of course I may have been fixed upstream since this was opened)

turtle0x1 avatar Aug 06 '22 13:08 turtle0x1

No response in 21 days == close, sorry.

Re-open if still a problem :smile:

turtle0x1 avatar Aug 27 '22 13:08 turtle0x1