Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
1106 Näkymät

Hi,

Not sure during what stage I could of made a mistake but I made a backup of a database running on my windows pc on localhost and restored it to an odoo ubunto server. The restore had worked no problem.

Between 48 and 24 hours ago, I was working on conf files for odoo and Nginx. I do not have any custom or 3rd party modules installed, but when I now try to make a backup or restore a database I now get the following error "Database backup error: expected str, bytes or os.PathLike object, not bool".

I don't have any experience with ubunto or odoo. 

Edit:

Deleting the the database and creating a new one still has this issue related to:

"Database backup error: expected str, bytes or os.PathLike object, not bool".

Avatar
Hylkää
Tekijä Paras vastaus

Had to reinstall to fix this.

Avatar
Hylkää
Paras vastaus

Here are a few steps you can take to troubleshoot this issue:


Check File Paths: Make sure that the file paths specified for the backup and restore operations are correct. Ensure that the destination path exists and is accessible by the Odoo process.

Permissions: Ensure that the Odoo process has the necessary permissions to read from and write to the backup directory. You might need to adjust file permissions or the user/group ownership of the directory.

File Format: Ensure that the backup file you're trying to restore is in the correct format and is not corrupted. If possible, try creating a new backup file and see if you encounter the same error.

Odoo Configuration: Double-check the Odoo configuration files (.conf) to ensure that there are no errors or misconfigurations that could be causing this issue. Pay particular attention to any settings related to file paths or database backups.

Logs: Check the Odoo logs for any additional error messages or clues that could help diagnose the problem. The logs might provide more context on what exactly is causing the "expected str, bytes, or os.PathLike object, not bool" error.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
jouluk. 15
10576
0
elok. 24
834
3
helmik. 24
1980
0
kesäk. 23
5523
1
marrask. 23
3643