-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
'invoke restore' relation does not exist #8918
Comments
Ah ok, that is an interesting failure mode. So, you have plugin(s) installed which make changes to the database - in this case the inventree-kicad plugin (thanks @afkiwers ;) ) When you create the new database schema (via What if you try the following sequence (where
Here, you are explicitly skipping the |
@SchrodingersGat we probably are missing the required settings to activate the plugins so that the schema is missing. To address this we probably would need a small file that contains info regarding versions and plugins source to ensure the environments match. That would also help with general backup / restore tasks as it would enable better error messages. |
@SchrodingersGat Thanks for the fast response. I tried your steps and unfortunately run into similar issues, see 1st log. Another thing I tried now:
This creates a similar outcome as the initial attempt, see 2nd log. 1st log
2nd log
|
Are there any risks with simply creating backups of the entire |
@SchrodingersGat any other ideas?:) |
@ursincantieni you can try that for sure. Another approach would be to use the data migration guide - but nothing stopping you from trying both |
@SchrodingersGat Hola, I've tried these two things:
|
If you copy the |
Understood. The issue I'm facing with all these approaches is
|
As pointed out in #8918 (comment) no information regarding plugins is in the backups |
Please verify that this bug has NOT been raised before.
Describe the bug*
Similar issue #8605, but it's solution doesn't fully solve my problem.
I need to properly backup all data and be able to restore it on a new system. This should not just include parts etc, but also plugins, api keys, etc.
With
invoke import-records
I can successfully restore part data etc, but I lose users and so on.Invoke restore
doesn't crashes withSteps to Reproduce
Create backup from 'old' system
Before backup, run
Create backup with
and export records with
Setup new system
Copy
.env
,Caddyfile
anddocker-compose.yml
from old system to new one.Initialize database with
and copy data backup default-Z.psql.bin.gz to
inventree-data/backup
.Running
fails with the logs attached.
If instead of running
invoke update
, I runit successfully completes and restores all the parts, but is missing plugins, API keys, etc.
Any ideas what's going wrong? Any more generally, is this the recommended approach to backing up data? Would simply archiving the
inventree-data
directory make sense?Expected behaviour
Successfully restore all data, including parts, api keys, plugins, aso
Deployment Method
Version Information
0.17.0
Please verify if you can reproduce this bug on the demo site.
Relevant log output
The text was updated successfully, but these errors were encountered: