-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cannot get backup and restore to work #1322
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
Comments
If it means that the directory is mounted to
|
Hey thanks for writing in. I'm going to transfer this issue to the |
Thanks, @AbhiPrasad. @chadwhitacre I may be doing something wrong, but I'd expect that (as a test) I should be able to do a backup followed immediately by a restore of that backup, based on the steps as described on the Self-Hosted Backup & Restore page (using Backup:
Restore:
But I just get the error messages as shown previously when I run the restore command. |
Quick skim (and recollection based on experience) suggests this is unexpected, afaict we mount self-hosted/docker-compose.yml Line 69 in 25381da
|
The export/import functionality is somewhat undermaintained, so it wouldn't surprise me if it's broken. I'm not sure what testing we have for it over in |
The sentry installation is otherwise working fine.
Would be great to get this working properly because in IMHO backup and restore is a key feature. |
Since it's only metadata and not actual event data, it's less critical than it would be if it were a full backup solution. For that we bump to Docker. |
For me, metadata is more important (to back up) than actual event data, because event data will just repopulate over time but metadata won't. |
@chadwhitacre did you confirm this as a bug, or is it just something I'm misunderstanding about the backup and restore process? |
Have not had time to confirm, no. You made it past the original |
No, still nothing is mounted there:
But everything else is working fine without that. |
@chadwhitacre still not figured how to get this working :-( Referring to your comment, which containers actually use the |
D'oh! :-/ I need to wrap my head around this subsystem ... won't be able to fit that in this week but maybe next week? 🤞
Grep for self-hosted/docker-compose.yml Line 17 in 8c5c1ad
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Still interested in this @drmrbrewer? |
@chadwhitacre yes, still very interested! |
Okay, in that case I'll try to convince the bot to leave this ticket alone. :) |
From @miraslav @onmomo in #1428:
|
The messages at the beginning of the file are not part of the actual export command, but something that is printed when the docker container is started. To be honest, I haven't figured out that part yet. However, that allows us to work around the problem by mounting a folder into the docker container and exporting the backup file directly into it. For example, the following mounts the current folder into the docker container at path
In this case the Hope that helps mitigate the problem :). The import should work as documented. In my view this is a less error-prone way to achieve the same thing. |
Closing in favor of getsentry/sentry#36868 since this functionality lives in that repo. |
The restore section of the page relating to backups has the following statement:
But in my installation, this directory is not mounted to
/etc/sentry
... there is nothing at all mounted to/etc/sentry
. So either there's a bug in the docs, or a bug in the installation.The text was updated successfully, but these errors were encountered: