Trouble Saving Dashboards

  • What Grafana version and what operating system are you using?
    Grafana v10.4.2 (22809dea50)
    Ubuntu 22.04.4 LTS

  • What are you trying to achieve?
    I’m trying to save changes to a dashboard

  • How are you trying to achieve it?
    By making a change, any change, then clicking on the save dashboard button.
    Notes: I am the only user, only admin, this is a brand new install with no customizations, it is a very simple test dashboard with only a few elements.

  • What happened?
    I get an error that just says “Failed to fetch”

Yet in the syslog there is a “level=info msg=“Request Completed” method=POST path=/api/dashboards/db” for the event.

I cannot navigate away from the dashboard without discarding the changes because it won’t save, this of course rolls everything back.

Yet if I close the browser, dismiss the warning about leaving unsaved changes, then reopen a new instance of the browser. I see that the changes actually are saving, it’s just not being recognized.

  • What did you expect to happen?
    I expect to be able to save a dashboard without hard closing the browser.

Any advice would be appreciated.

Use browser console and check which request is failing (maybe why) . It may be something what’s not important for dashboard saving.

Good idea.

In the browser console log I’m seeing a continuous stream of websocked failed while viewing the dashboard, and the POST gave a net::ERR_CONNECTION_RESET

The interesting part is that the post is successful, everything saves as long as I don’t discard the changes (by hard exiting the browser).

Which means, I think this is might be a problem with my routing than my grafana setup. I suspect can get to the server but it’s somehow unable send return messages back to me. Maybe I’ll spin something up with a local connection and see what happens.