dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Dashy not reading valid config or saving config properly

Open stancubed opened this issue 2 years ago • 10 comments

Environment

Self-Hosted (Docker)

System

Ubuntu 20.04.4 LTS

Version

2.1.1

Describe the problem

Dashy is not reading my valid config.yml file when loading, so it shows "No Data Configured" and using the UI to view the config, it shows only: [ "object Object" ]

When manually pasting in the valid config object to the "Edit Config" tool, it validates in UI but saving it only saves as: [ "object Object" ]

There is no inode issue as both inside/outside the container the inode is the same. There are no errors on build or validation, none in the console, and none during manual build. Pasting the build log below!

build_log.txt

Happy to test anything or check somewhere else for more logs!

Additional info

No response

Please tick the boxes

stancubed avatar Aug 03 '22 21:08 stancubed

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

liss-bot avatar Aug 03 '22 21:08 liss-bot

I should mention that the build log is from a recent test of 2.1.0 but this is happening on both 2.1.1 and 2.1.0.

stancubed avatar Aug 03 '22 21:08 stancubed

#799

Lissy93 avatar Aug 03 '22 21:08 Lissy93

The strange thing is that I had this working for a few days until today! What could have caused this if it wasn't a code change?

stancubed avatar Aug 04 '22 04:08 stancubed

Yeah, this is really weird. I've not come across this issue before. The [ "object Object" ] means that the JSON hasn't been parsed/ not converted to string.

Everything in that log file looks alright, I guess it's a client-side bug. Could you share the contents of your browser console? (here's how).

There are a lot of problems with the current config system, the main one being that it's really slow to apply changed especially on low spec devices. I'm about 50% through re-writing it all at the moment, and that should fix everything. But I understand it's frustrating in the meantime.

Lissy93 avatar Aug 04 '22 12:08 Lissy93

Okay that's sort of what I was thinking too, but it's weird that there aren't any logged issues during the save process either. Attaching the logs here!

It could totally be a client issue -- is there where to config is translated before saving?

dashy-1659632635826.log

stancubed avatar Aug 04 '22 17:08 stancubed

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Sep 04 '22 01:09 liss-bot

This issue was automatically closed because it has been stalled for over 6 weeks with no activity.

liss-bot avatar Sep 10 '22 01:09 liss-bot

It's been a couple of months since the issue exist. I think it has something to do with the docker image, maybe try to make the config file in a separate folder so we can bind the folder instead a file, like other docker images that I have used?

v1p0r avatar Dec 23 '22 21:12 v1p0r

Chiming in as well, just installed Dashy here using the default instructions and it does not allow me to edit/save/load or change the configuration as well. Changes to ~/dashy-config.yml on the host side are seen inside the editor, but never reflected in the UI, and it always reports "No Data Configured".

I came here because I initially tried using "Homepage", but that's an even worse dumpster-fire of an attempt at service aggregation.

desrod avatar Sep 02 '23 17:09 desrod

Hi, Please check out Dashy V3, it compledtely changes how config is fetched and saved, there are no more rebuilds required.

Keep in mind V3 has breaking changes: https://github.com/Lissy93/dashy/releases/tag/3.0.0

If this is still an issue with V3.0.1 comment here and I'll reopen this.

CrazyWolf13 avatar May 10 '24 22:05 CrazyWolf13

This is an issue I'm running up against in v3.1.1. I'm using pure JSON in the conf.yml, which is supported by the YAML spec (you can even use embedded JSON inside a typical YAML document), but there seem to be some issues with the client parsing - it passes the config validator perfectly, but fails with the same symptoms as above (no data configured, config edit screen shows object Object) when built.

I should mention that I'm also running this statically via NGINX, rather than yarn directly. I'm not expecting anything to change (though if I can use pure JSON that would be nice), I just thought I'd mention it in case it points to an issue somewhere. I can provide plenty of details upon request if needed.

TheRealGramdalf avatar Aug 08 '24 01:08 TheRealGramdalf