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

Backing up gets a 502 Bad Gateway #763

Open
nborof opened this issue Sep 10, 2023 · 2 comments
Open

Backing up gets a 502 Bad Gateway #763

nborof opened this issue Sep 10, 2023 · 2 comments

Comments

@nborof
Copy link

nborof commented Sep 10, 2023

Hey there -
I've upgraded to the latest version of fermentrack (although this happened on the previous version). When I click the "Add Backup" button, it takes its time running (I have probably 20 or so past beer logs), and then gives me a bad gateway page saying:

502 Bad Gateway
nginx/1.18.0

Is this something on my end? Some timeout variable I need to change? I have been able to back up in the past, but not for a few months.

@thorrak
Copy link
Owner

thorrak commented Sep 15, 2023

Thanks for reporting this. Another user was having the same issue, but I thought it was something specific to his setup. The fact that you're experiencing it as well means that it's something deeper that will require some additional work to resolve.

The issue appears to be something with he fact that I'm generating the backup synchronously with processing the web request. As a workaround, you can SSH into your Pi/server, go to the fermentrack-tools directory, make sure you are on the latest version of both Fermentrack and fermentrack-tools, and then run the following command to generate a backup manually:

docker compose run --rm django python manage.py generate_backup

Once this completes, you should be able to see & download the backup inside Fermentrack's web interface.

@nborof
Copy link
Author

nborof commented Oct 3, 2023

The workaround seems to work, thanks!

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

No branches or pull requests

2 participants