Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings are not persisted between restarts #71

Closed
donfrigo opened this issue Sep 3, 2020 · 2 comments · Fixed by #74
Closed

Settings are not persisted between restarts #71

donfrigo opened this issue Sep 3, 2020 · 2 comments · Fixed by #74

Comments

@donfrigo
Copy link

donfrigo commented Sep 3, 2020

Hello,

I am using the octoprint-docker image with the default docker-compose file, which specifies a volume.

When starting octoprint with the command:
docker-compose up -d
it starts up normally and I am greeted with the setup.

If I stop it using:
docker-compose down,
it stops gracefully.

Upon restarting it again, I am greeted with the same setup that I have completed earlier and all my settings are lost. What am I doing wrong? Thanks!

@atom-b
Copy link

atom-b commented Sep 6, 2020

I submitted pull request #72 to fix this. It's a very simple change to docker-compose.yml that you can make yourself if you don't want to wait for it to be merged (assuming it is =) ).

If you have a config you want to keep then be sure to run a full octoprint backup before running docker-compose down.

After stopping your container you'll need to delete the existing octoprint volume. Run docker volume rm octoprint-docker_octoprint to do that. In case your volume isn't named that, run docker volume ls to find it; it should have octoprint in the name.

@LongLiveCHIEF
Copy link
Member

this is actually due to a bug in the current build that I'll be fixing. For now, the indicated workaround will work. I'm not going to accept the PR, because the final build image when the bug is fixed actually symlinks /home/octoprint to /octoprint.

LongLiveCHIEF added a commit to LongLiveCHIEF/octoprint-docker that referenced this issue Sep 7, 2020
LongLiveCHIEF added a commit that referenced this issue Sep 8, 2020
fixes #73
fixes #71
@LongLiveCHIEF LongLiveCHIEF reopened this Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants