Giter Site home page Giter Site logo

Comments (11)

MichaIng avatar MichaIng commented on July 18, 2024

Can you check the service logs?

journalctl -u dietpi-dashboard

from dietpi.

sagecandida avatar sagecandida commented on July 18, 2024

Can you check the service logs?

journalctl -u dietpi-dashboard

Dec 30 21:42:12 DietPi systemd[1]: Started dietpi-dashboard.service - Web Dashboard (DietPi).
Dec 30 21:42:19 DietPi dietpi-dashboard[397]:    6.568805831s  INFO request{remote_addr=[::ffff:192.168.1.223]:50076}: dietpi_dashboard: Request to /ws
Dec 30 21:42:21 DietPi dietpi-dashboard[397]:    8.704511091s  WARN request{remote_addr=[::ffff:192.168.1.223]:50076}:socket_handler:service_handler: dietpi_dashboard::page_handlers: Couldn't get failed service name
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    8.971355674s  INFO request{remote_addr=[::ffff:192.168.1.223]:59570}: dietpi_dashboard: Request to /service
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.012932132s  INFO request{remote_addr=[::ffff:192.168.1.223]:59570}: dietpi_dashboard: Request to /assets/index.49a5df62.js
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.025539841s  INFO request{remote_addr=[::ffff:192.168.1.223]:59580}: dietpi_dashboard: Request to /assets/index.b578e7cd.css
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.026247080s  INFO request{remote_addr=[::ffff:192.168.1.223]:59590}: dietpi_dashboard: Request to /assets/xterm.bd908267.js
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.089983695s  INFO request{remote_addr=[::ffff:192.168.1.223]:59604}: dietpi_dashboard: Request to /ws
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.096219320s  INFO request{remote_addr=[::ffff:192.168.1.223]:59590}: dietpi_dashboard: Request to /assets/dietpi.4cc58251.png
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.096732810s  INFO request{remote_addr=[::ffff:192.168.1.223]:59570}: dietpi_dashboard: Request to /assets/github-mark.31287333.svg
Dec 30 21:42:22 DietPi dietpi-dashboard[397]:    9.113915778s  INFO request{remote_addr=[::ffff:192.168.1.223]:59570}: dietpi_dashboard: Request to /favicon.png
Dec 30 21:42:23 DietPi dietpi-dashboard[397]:   10.668739059s  WARN request{remote_addr=[::ffff:192.168.1.223]:59604}:socket_handler:service_handler: dietpi_dashboard::page_handlers: Couldn't get failed service name

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024
socket_handler:service_handler: dietpi_dashboard::page_handlers: Couldn't get failed service name

Hmm it fails here: https://github.com/ravenclaw900/DietPi-Dashboard/blob/v0.6.2/src/page_handlers.rs#L245-L250
In this part of the code, not much changed since last release, but could you still test it with the nightly (if not done already):

dietpi-software reinstall 200
systemctl restart dietpi-dashboard

and when asked, select nightly build.

from dietpi.

sagecandida avatar sagecandida commented on July 18, 2024
socket_handler:service_handler: dietpi_dashboard::page_handlers: Couldn't get failed service name

Hmm it fails here: https://github.com/ravenclaw900/DietPi-Dashboard/blob/v0.6.2/src/page_handlers.rs#L245-L250 In this part of the code, not much changed since last release, but could you still test it with the nightly (if not done already):

dietpi-software reinstall 200
systemctl restart dietpi-dashboard

and when asked, select nightly build.

I just did it but still not working

Screenshot from 2023-12-30 21-53-10

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

I am not vised enough to understand why the code could fail. Pinging @ravenclaw900, probably you have an idea.

It seems to fail on a failed service (lol). Let's check which one this could be. Anyway good to check which other service is failing why:

systemctl | grep failed

from dietpi.

sagecandida avatar sagecandida commented on July 18, 2024

I am not vised enough to understand why the code could fail. Pinging @ravenclaw900, probably you have an idea.

It seems to fail on a failed service (lol). Let's check which one this could be. Anyway good to check which other service is failing why:

systemctl | grep failed

● isc-dhcp-server.service loaded failed failed LSB: DHCP server

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

Do you run a WiFi hotspot or something similar so that you need a DHCP server?

Try to stop and disable it, and check whether this fixes the dashboard service list:

systemctl disable --now isc-dhcp-serer

To check why it actually failed:

journalctl -u isc-dhcp-server

from dietpi.

sagecandida avatar sagecandida commented on July 18, 2024

Do you run a WiFi hotspot or something similar so that you need a DHCP server?

Try to stop and disable it, and check whether this fixes the dashboard service list:

systemctl disable --now isc-dhcp-serer

To check why it actually failed:

journalctl -u isc-dhcp-server

I installed the WiFi Hotspot initially but later removed it. However, an unexpected conflict arose, leading to the services not appearing on the DietPi dashboard. Fortunately, after disabling it, everything is functioning properly again. Thank you for your assistance!

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

Okay, you could then also remove the DHCP server:

apt autopurge isc-dhcp-server

We still need to find out why the dashboard fails to list services if one of them failed, or whether this particular one is/was a special case. But can do that on the dashboard repo next year, when I find time to test/replicate.

from dietpi.

ravenclaw900 avatar ravenclaw900 commented on July 18, 2024

If you haven't already removed the DHCP server, the output of

dietpi-services list

would be extremely helpful.

from dietpi.

sagecandida avatar sagecandida commented on July 18, 2024

If you haven't already removed the DHCP server, the output of

dietpi-services list

would be extremely helpful.

unfortunately i already removed the DHCP server

from dietpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.