podgrab icon indicating copy to clipboard operation
podgrab copied to clipboard

Settings lost on container restart (because of a new ID?)

Open nanawel opened this issue 1 year ago • 7 comments

  • Installation Type: Docker
  • Have you tried using the latest docker image / code base: yes

Describe the bug It seems that settings once saved from the dedicated page and correctly saved into the database, but are not "unique" and assigned a specific ID as seen in the following capture:

image

Everything works as expected... until you restart the container (for an update for example). Then the settings are reset to the default ones, apparently because the application creates and uses a new row from the settings table, instead of reusing the existing/previous one.

Which leads to this question: why this structure for the settings table exactly? I would have expected a row per config key, not a column :thinking:

C.f. issue #163 that seems to point the same bug.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Settings page
  2. Customize the settings
  3. Click on Save
  4. Go back to Home, then Settings
  5. Settings have been save correctly
  6. Restart the container
  7. Go to the Settings page
  8. Settings are back to default

Expected behavior Keep settings, especially the base domain between each container instances.

nanawel avatar Oct 27 '22 19:10 nanawel