dashy icon indicating copy to clipboard operation
dashy copied to clipboard

Config not saving

Open HighSunMurder opened this issue 1 year ago ā€¢ 19 comments

Environment

Self-Hosted (Docker)

System

Ubuntu

Version

Current

Describe the problem

Any changes i make in dashboard i save to disk via UI, If i reboot the server these changes are gone and dashy is vanilla / default

Additional info

No response

Please tick the boxes

HighSunMurder avatar Mar 20 '23 01:03 HighSunMurder

If you're enjoying Dashy, consider dropping us a ā­
šŸ¤– I'm a bot, and this message was automated

liss-bot avatar Mar 20 '23 01:03 liss-bot

Same problem here ! Unable to save conf.yml from the UI The backup file is created, but the conf.yml isn't saved !

ulysserevient avatar Mar 31 '23 10:03 ulysserevient

Any suggestions on fix other than blowing it away and starting over?

Thx

On Fri, Mar 31, 2023 at 6:12ā€ÆAM ulysserevient @.***> wrote:

Same problem here ! Unable to save conf.yml from the UI The backup file is created, but the conf.yml isn't saved !

ā€” Reply to this email directly, view it on GitHub https://github.com/Lissy93/dashy/issues/1147#issuecomment-1491679712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY54QDJWP4ORNX4ZISXTZR3W62UZFANCNFSM6AAAAAAWAO6KTE . You are receiving this because you authored the thread.Message ID: @.***>

HighSunMurder avatar Mar 31 '23 12:03 HighSunMurder

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 May 02 '23 01:05 liss-bot

I still can't save the conf file from the gui is there a solution ?

ulysserevient avatar May 02 '23 06:05 ulysserevient

I have had the same issue. I get an error "AxiosError: Network Error". This wasn't always happening and I wasn't sure why.

Anyway, I was a little lazy in my implementation and had just used default (root) login to run the Dashy container. I've since switched it to using a non-root user (changed ownership of the folder structure) and everything is working fine now. Shouldn't have made a difference but I'll keep this updated in case I have any further issues.

rongalbraith avatar May 15 '23 11:05 rongalbraith

Same issue, regarding the file not saving but the backup is created. Rebuild also fails randomly, 503. I've found it easier to simply edit the conf file manually the restart the docker container.

minisculemarch avatar May 22 '23 06:05 minisculemarch

So, for me the answer was to implement a non-root installation for the container. Not sure why it worked but there's obviously some conflict somewhere that doesn't occur when you're container is running under a non-root user.

Just added UID and GID environment variables: # Set any environmental variables environment: # Specify your user ID and group ID. You can find this by running id -u and id -g - UID=1001 - GID=1001

Bear in mind that "1001" was my default user and your user may be different. Quick chown -R in the terminal for the folders where I was storing the persistent volume for Dashy, bounced the container and everything has been fine since.

rongalbraith avatar May 22 '23 07:05 rongalbraith

I have been having a similar issue. Iā€™m going to give this a shot as well and see if I make and progress. Thanks for the recommendation!

Glitch3dPenguin avatar May 26 '23 14:05 Glitch3dPenguin

I have the same issue. Any kind of change is not update. Backups are made, but any change is effective.

matteo-martinelli avatar May 26 '23 20:05 matteo-martinelli

Hi, I've tried to change UID and GID with non-root user, but problem persists !

ulysserevient avatar May 27 '23 08:05 ulysserevient

Hi, I am having the same problem, set all my links up then boom, everything gone. Tried the non-root user change, and still broken.

offline09 avatar Jul 12 '23 18:07 offline09

Not sure if this is the intended design of dashy or if there is a bug, but what I finally found worked had nothing to do root owner. After editing hit ā€œSave to Diskā€, then open ā€œUpdate Configurationā€ (the wrench icon) and then select ā€œRebuild Applicationā€. After it completes, I have had no issues with refreshing the dashboard, closing it and repointing it.

While saving a config doesnā€™t trigger the rebuild, Iā€™m not sure but this has solved the issue for me.

strangedesign13 avatar Jul 12 '23 18:07 strangedesign13

i had this same issue that caused me to loose all my edits multiple times. edited fonts and colors did not stick after saving to disk multiple times, but menus, menu items and icons did. @strangedesign13's workaround above finally did the trick. i feel the expected behavior is for the "save to disk" function to trigger the "rebuild application" function. fwiw i'm using ff/librewolf and everything is up to date. plz look into this. thx again for your work. dashy is awesome :purple_heart:

avaaum avatar Sep 26 '23 14:09 avaaum

Hi,

I have an Ubuntu 22.04 VM running with Docker setup, I set up Dashy and had it configured to how I wanted, looked great etc.

Tested it with a reboot and docker didn't auto-start so I sorted that (see command history file)

Next, however, when I checked my Dashy, the config is reset... Dashy_commands.txt

I changed > Save to disk > tried the rebuild that @strangedesign13 suggests but it doesn't work.

I have attached my commands history, maybe someone can shed some light as to what's going on, please? @Lissy93

TechieTalker24 avatar Oct 09 '23 19:10 TechieTalker24

Hi,

I have an Ubuntu 22.04 VM running with Docker setup, I set up Dashy and had it configured to how I wanted, looked great etc.

Tested it with a reboot and docker didn't auto-start so I sorted that (see command history file)

Next, however, when I checked my Dashy, the config is reset... Dashy_commands.txt

I changed > Save to disk > tried the rebuild that @strangedesign13 suggests but it doesn't work.

I have attached my commands history, maybe someone can shed some light as to what's going on, please? @Lissy93

Did you check that your Docker setup has persistent storage?

strangedesign13 avatar Oct 10 '23 13:10 strangedesign13

Same issue. Config gets reset.

amitn322 avatar Nov 26 '23 23:11 amitn322

I had the same issue and resolved with the fix mentioned above. I made my edits, saved to disk, then went to Configuration Options and selected Rebuild Application and Reload Page. My changes then survived a reboot. A few more buttons to push, but works for me.

CrossPatch9000 avatar Dec 12 '23 23:12 CrossPatch9000

Another instance of the exact same issue. I'm running Dashy as a Debian 12 LXC Container on Proxmox 8. I installed it using the Helper Scripts. Using @strangedesign13's https://github.com/Lissy93/dashy/issues/1147#issuecomment-1633020158 worked for me as well.

AkshayRao27 avatar Dec 26 '23 18:12 AkshayRao27

deployed on vercel

I get this error while trying to save config. is there any thing else that i need to configure in vercel to get the config saved

AxiosError: Request failed with status code 405

vishalkadam47 avatar Feb 08 '24 09:02 vishalkadam47

I got that error when the docker container stopped unexpectedly

seraasch avatar Feb 14 '24 15:02 seraasch

Same issue! Actually new user, just started the configuration and with some refresh the configuration is all gone (including sample/ initial shortcuts, which I did not deleted). Running Dashy in LXC

vdiogo avatar Feb 21 '24 14:02 vdiogo

I think there may be a several different issues here,

Possible Issue 1: Unable to call save endpoint from CDN/static server

If you're running Dashy on a static host, like Vercel, then there's no server-side code to actually save the config, re: #1465 (this is outlined bit more in the docs)

Possible Issue 2: Unable to save

In Docker, double check that the file isn't read-only, and that the container actually has permissions to modify it. You shouldn't really be running it as a root user, and I'm not sure if it will work if you do

Possible Issue 3: Saved but not updating

After saving, the frontend will recompile, which may take a couple seconds (or a bit longer on a Pi or low-powered device). If it doesn't recompile, you can manually trigger a re-build.

None of the above?

If you're still having issues, if you could share the following with me, it'll help me look into it further:

  • If you open the conf.yml file, can you see your changes?
  • When you save, are there any errors in the browser console (see: how to open browser console)
  • Are there any errors in your Docker logs?

Lissy93 avatar Feb 24 '24 14:02 Lissy93

Hi This problems seems to be related to dashy not automatically rebuilding on changes (https://github.com/Lissy93/dashy/issues/1147#issuecomment-1633020158) , see #1479 and https://github.com/Lissy93/dashy/issues/1290#issuecomment-1884249018 A new release has just been published, which should fix this issue, so please upgrade to the latest version. If this is not the case just respond back to this ticket and I'll reopen this issue. Thanks and have a nice day.

CrazyWolf13 avatar Mar 03 '24 17:03 CrazyWolf13

Hello,

I am still having issues with this - saving the configuration via the gui does not work properly.

I am using docker-compose, setting UID and GID to my user (1000:1000). I am passing through a whole folder to the container, permissions of the folder and all the files within are correct.

When I make a modification from the GUI, a backup file is created - therefore dashy can write to the folder - but the new conf.yaml is... not new, it's just the same. I see no error in the docker log, when I hit save a rebuild is correctly triggered, no error in the browser console as well.

I tried all permutations that I could think of, running the container without UID/GID, changing ownership of the folder to root:root, making the folder & contents chmod 777...

I am unsure how to proceed, I love this project and I am willing to perform any troubleshooting that might be necessary.

I have performed a bit of debugging, and noticed that even if I run the container with UID:GID set, the backup files are still saved as root. Inside the container itself, I see that the 1000:1000 files are (presumably) correctly mapped to user node, including conf.yaml

wilcomir avatar Mar 31 '24 13:03 wilcomir

I have the same exact issue. Dashy works. Installation/Configuration is done properly. I've been configuring Dashy for a couple of days now with little to no issues. However I am not able to edit config file via GUI. I mean I could do it the first time but never again after that. Changes are never really saved, even though saving confirmation is shown as successful. I've tried waiting, reloading and rebuilding with no success. Ver. 2.1.2 Edit: temp solution: edited conf.yml manually (docker). Edit2: did some light observing. Upon saving, two files are affected: seems that the old config version is saved into conf.xxx.backup.yml and conf.yml. In any case, it doesn't look like a permission problem, as files are written/updated.

rawGH avatar Apr 14 '24 08:04 rawGH

I had the same issue. Now, I just do preview changes -> save to disk from the JSON editor. This workaround works very well and is easy :tada:

shalithasuranga avatar Apr 16 '24 11:04 shalithasuranga

I had the same issue. Now, I just do preview changes -> save to disk from the JSON editor. This workaround works very well and is easy šŸŽ‰

I've tested, but it does not work for me. I can edit "tree" (eg changing the order of sections) and save then, it works. Changes might require rebuild or reload page, but it works. The bug appears only when "code" is used and changed anything (even a string or something), it's never saved, using "Preview Changes" does nothing in this case. When checking the actual files upon saving, two are affected. Backup and normal conf.yml, but contents are the same, as is the timestamp of both files, unfortunately the saved version is the previous one, so no actual changes were stored.

rawGH avatar Apr 16 '24 14:04 rawGH

I just found out that when you click "tree" which give you a dropdown menu, and the other options is "code" and "preview", click on code, then make some changes, then hit "preview changes", then "save to disk". but I have not tried without changing the menu next to the undo & redo button before doing the preview changes, that could work. and the way I did actually updated it, even if I refreshed my dashy page.

jonathantalkshw avatar Apr 18 '24 13:04 jonathantalkshw

Try V3, there should be no more issues with this anymore

Lissy93 avatar Apr 20 '24 17:04 Lissy93