dashy
dashy copied to clipboard
[BUG] Dashy not reading valid config or saving config properly
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!
Happy to test anything or check somewhere else for more logs!
Additional info
No response
Please tick the boxes
- [X] You have explained the issue clearly, and included all relevant info
- [X] You are using a supported version of Dashy
- [X] You've checked that this issue hasn't already been raised
- [X] You've checked the docs and troubleshooting guide
- [X] You agree to the code of conduct
If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated
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.
#799
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?
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.
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?
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.
This issue was automatically closed because it has been stalled for over 6 weeks with no activity.
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?
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.
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.
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.