Dear All,
For some backup with filestore, when upgrading with OpenUpgrade, the file are missing.
When I check the file in filestore in the zip file, it doesn't exist?
Any Idea how to fix that ?
Is it during OpenUpgrade the filestore is copies in a wrong folder ?
Thanks to highlight my path.
Best Regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyectos
- MRP
Se marcó esta pregunta
2
Respuestas
469
Vistas
Hello Boujraf Youssef
I Hope You are doing well,
Here is your Solution:
I Hope You are doing well,
Here is your Solution:
After restoring your backup, the filestore folder name must exactly match your database name.
Check your filestore location:
ls ~/.local/share/Odoo/filestore/
if the folder name doesn't match your database name, rename it:
mv ~/.local/share/Odoo/filestore/old_db_name ~/.local/share/Odoo/filestore/your_actual_db_name
Set correct permissions:
chown -R odoo:odoo ~/.local/share/Odoo/filestore/your_actual_db_name/
chmod -R 755 ~/.local/share/Odoo/filestore/your_actual_db_name/
Restart Odoo:
sudo systemctl restart odoo
If that doesn't work:
Use the Odoo Database Manager to restore instead of manual restore:
1. Go to http://your-server:8069/web/database/manager
2. Click Restore Database
3. Upload your .zip backup
4. Odoo will automatically place the filestore correctly
The issue is almost always that the filestore folder name doesn't match the database name after restore.
OpenUpgrade doesn't move/copy filestore - it only migrates database structure
Hope this information helps you.
Thanks & Regards,
Kunjan Patel
Hi,
Please refer to the link:
1. https://www.cybrosys.com/blog/how-to-upgrade-the-odoo-15-database-using-openupgrade
General migration tutorial with configuration and steps.
Hope it helps.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
Upload Large File Store to Odoo.sh
Resuelto
|
|
1
jul 25
|
7820 | |
|
|
1
feb 25
|
5656 | ||
|
|
5
oct 24
|
14144 | ||
|
|
0
nov 23
|
6675 | ||
|
|
0
mar 22
|
5505 |
Dear,
Followed but maybe my question was unclear.
I have the backup (dump.sql, manifest.json, filestore folder) in a zip, when restored why filestore is not copied ?
Only DB is restored not the filestore.
Best Regards
For same-version restore: Odoo UI automatically restores filestore from the backup ZIP - no manual steps needed.
For version upgrades (Odoo 15→16): UI restore won't work because it doesn't run OpenUpgrade migration scripts. Your manual process is correct: restore DB via psql, rsync filestore to new version path, then run OpenUpgrade.
Why manual for upgrades? OpenUpgrade must migrate the database schema before Odoo 16 can start. UI restore skips this step and would crash.
Dear
Thanks for the procedure.
The only way to restore my filestore in odoo 15.0 is :
# 1. Extract filestore from zip
unzip /tmp/database_with_filestore.zip -d /tmp/odoo_restore/
# 2. Sync filestore to Odoo path
rsync -av --progress /tmp/odoo_restore/filestore/* /opt/odoo/.local/share/odoo16.0/filestore/database_name/
# 3. Fix permissions
sudo chown -R odoo:odoo /opt/odoo/.local/share/odoo16.0/filestore/database_name/
I don't believe when we restore db through Odoo interface, the filestore is not restored as well ?
or the process is to do manually:
Best Regards,