Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Webinterface after some time #193

Open
th3cube opened this issue Dec 7, 2024 · 10 comments
Open

No Webinterface after some time #193

th3cube opened this issue Dec 7, 2024 · 10 comments

Comments

@th3cube
Copy link

th3cube commented Dec 7, 2024

I have a Problem with the NanoKvm Full version

Image version 1.3.0
App 2.1.2

After some time the web interface is gone and I can only access it trough ssh

nothing is listening on port 80 anymore

# ss -tulpn
Netid           State            Recv-Q            Send-Q                                     Local Address:Port                        Peer Address:Port           Process
udp             UNCONN           0                 0                                                0.0.0.0:41641                            0.0.0.0:*               users:(("tailscaled",pid=471,fd=19))
udp             UNCONN           0                 0                                                0.0.0.0:51016                            0.0.0.0:*               users:(("avahi-daemon",pid=408,fd=14))
udp             UNCONN           0                 0                                                0.0.0.0:5353                             0.0.0.0:*               users:(("avahi-daemon",pid=408,fd=12))
udp             UNCONN           0                 0                                                0.0.0.0:1900                             0.0.0.0:*               users:(("ssdpd",pid=414,fd=6))
udp             UNCONN           0                 0                                           10.10.10.240:123                              0.0.0.0:*               users:(("ntpd",pid=402,fd=51))
udp             UNCONN           0                 0                                              127.0.0.1:123                              0.0.0.0:*               users:(("ntpd",pid=402,fd=50))
udp             UNCONN           0                 0                                                0.0.0.0:123                              0.0.0.0:*               users:(("ntpd",pid=402,fd=49))
udp             UNCONN           0                 0                                                      *:41641                                  *:*               users:(("tailscaled",pid=471,fd=18))
udp             UNCONN           0                 0                                                      *:5353                                   *:*               users:(("avahi-daemon",pid=408,fd=13))
udp             UNCONN           0                 0                                                      *:39289                                  *:*               users:(("avahi-daemon",pid=408,fd=15))
udp             UNCONN           0                 0                            [fe80::2ffd:3279:1b19:c627]:123                                    *:*               users:(("ntpd",pid=402,fd=57))
udp             UNCONN           0                 0                            [fe80::4ada:35ff:fe6f:59c9]:123                                    *:*               users:(("ntpd",pid=402,fd=53))
udp             UNCONN           0                 0                                                  [::1]:123                                    *:*               users:(("ntpd",pid=402,fd=52))
udp             UNCONN           0                 0                                                      *:123                                    *:*               users:(("ntpd",pid=402,fd=48))
tcp             LISTEN           0                 0                                                0.0.0.0:1901                             0.0.0.0:*               users:(("ssdpd",pid=414,fd=3))
tcp             LISTEN           0                 0                                                0.0.0.0:22                               0.0.0.0:*               users:(("sshd",pid=419,fd=3))
tcp             LISTEN           0                 0                                                      *:22                                     *:*               users:(("sshd",pid=419,fd=4))


when I do "/etc/init.d/S95nanokvm restart" it tries to restart but I get something like "out of memory"

from there only a reinstall over the python reinstall script work. Then the web interface comes back for some time only to disappear again. Not sure if this startet with 2.1.2

@duffysk
Copy link

duffysk commented Dec 11, 2024

@th3cube could you please share python reinstall script work?

@th3cube
Copy link
Author

th3cube commented Dec 15, 2024

@duffysk
ssh into your nanoKVM
cd /etc/kvm/

and run the update script
python update-nanokvm.py

@Z2Z-GuGu
Copy link
Collaborator

@th3cube Hello, could you please paste a log the next time the system fails to boot? This would help us continue to improve. Additionally, if you receive a memory shortage message, you might be able to resolve it by using reboot.

@th3cube
Copy link
Author

th3cube commented Dec 18, 2024

@th3cube Hello, could you please paste a log the next time the system fails to boot? This would help us continue to improve. Additionally, if you receive a memory shortage message, you might be able to resolve it by using reboot.

Will paste the Logs here the Next Time it Happens. I already did try the Reboot but that didn't work. I had to use the Python Script to bring it back

@daemontus
Copy link

daemontus commented Dec 27, 2024

Hi! I seem to be running into the same issue. Here is the output from python update-nanokvm.py, /etc/init.d/S95nanokvm restart and from /var/log/messages. As in the original post, the problem goes away temporarily if I do the update. Also, as should be clear from the logs, I'm running tailscale, so that might be contributing to higher resource usage.

restart-log.txt
nankvm-messages.txt
update-log.txt

@Z2Z-GuGu
Copy link
Collaborator

Hi! I seem to be running into the same issue. Here is the output from python update-nanokvm.py, /etc/init.d/S95nanokvm restart and from /var/log/messages. As in the original post, the problem goes away temporarily if I do the update. Also, as should be clear from the logs, I'm running tailscale, so that might be contributing to higher resource usage.

Hello, thank you for your log. I have analyzed that the error was caused by incorrect parameter passing in the image processing system. Could you please execute echo "$(cat /kvmapp/kvm/width) * $(cat /kvmapp/kvm/height)" when the error occurs and check if it matches the HDMI output resolution on the host?

Additionally, I need to know the version of your hardware, so please execute cat /etc/kvm/hw and cat /etc/kvm/hdmi_version separately. Thank you!

@daemontus
Copy link

Thank you for the reply! At the moment, the device is working. I'll test if/when the failure occurs again.

One more thing that I noticed that might be relevant: the computer I'm connected to seems to let the display "go to sleep" eventually. At that point, I have to press some key (through the remote interface) to wake up the screen. So far, this has been working ok, but maybe this is related to the failure somehow, because when the display is "sleeping", the width and height values are not correct.

Output when display is sleeping:

# cat /kvmapp/kvm/width 
286
# cat /kvmapp/kvm/height 
1

Output when display is working:

# cat /kvmapp/kvm/height 
1080
# cat /kvmapp/kvm/width 
1920

Other HW info:

# cat /etc/kvm/hw 
beta
# cat /etc/kvm/hdmi_version
c

@Z2Z-GuGu
Copy link
Collaborator

Z2Z-GuGu commented Jan 6, 2025

Output when display is sleeping:

This may be due to not capturing the normal resolution. The standard HDMI resolution is something like '19201080', but it seems your device has captured a screen size of '1286', which prevents the image input system from initializing correctly. If a similar situation occurs again, and if possible, try unplugging and re-plugging the HDMI while the webpage is open. If you're remote, you can manually modify the values of "/kvmapp/kvm/width" and "/kvmapp/kvm/height", and then reboot to restart.

@Krusenbaum
Copy link

I have the same issue with a brand new device. Received today, first session went fine, left it open for 20 min and now the web interface is refusing connections. Restarts do not help.

@daemontus
Copy link

daemontus commented Jan 8, 2025

@Krusenbaum make sure to run python update-nanokvm.py over SSH (in /etc/kvm/) and then restart (default SSH password is root). I did that and so far the device has been working ok for almost a month now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants