İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1216 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

Had to reinstall to fix this.

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 15
10702
0
Ağu 24
909
3
Şub 24
2050
0
Haz 23
5622
1
Kas 23
3730