Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1244 Tampilan

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
Buang
Penulis Jawaban Terbai

Had to reinstall to fix this.

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 15
10713
0
Agu 24
913
3
Feb 24
2066
0
Jun 23
5660
1
Nov 23
3742