[17.0] auto_backup: Cron: Database backup failed, UnicodeDecodeError: utf-8 codec can't decode byte 0x8b in position 690: invalid start byte
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
Research direction
Start with auto_backup/models/db_backup.py, especially the action_backup copy operation and the backup_log context shown in the traceback. Reproduce by manually running the scheduler with both pg_dump and zip backup records; inspect how the second backup is handled. Done when both formats complete without the UnicodeDecodeError; the issue names no test file.
Written by the indexing model from the issue text.
Description
Module
Database Auto-Backup (auto_backup)
Describe the bug
Cron doesn't create backup if added 2 or more records Automated Backups
To Reproduce
Affected versions: 17.0.1.1.1
Steps to reproduce the behavior:
- Go to the Technical > Automated Backups menu item
- Add 2 records: 1) Backup Format - pg_dump and 2) Backup Format - zip
- Go to the Technical > Scheduled Actions menu item.
- Open Backup Scheduler cron and click on the Run Manually button
Error in the second Backup Format - zip record:
Database backup failed.
Database backup failed.
Traceback (most recent call last): File "/mnt/server-tools/auto_backup/models/db_backup.py", line 212, in backup_log yield File "/mnt/server-tools/auto_backup/models/db_backup.py", line 163, in action_backup shutil.copyfileobj(cached, destiny) File "/usr/lib/python3.10/shutil.py", line 195, in copyfileobj buf = fsrc_read(length) File "/usr/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 690: invalid start byte
Expected behavior
Create two backup
- Dominant language
- Python
- Stars
- 960
- Forks
- 1.7k
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 15
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OCA/server-tools
-
dataclasses and python > 3.7Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OCA/server-tools#3859 ·
Maintainers usually reply within 1 day
-
When tracking Json fields an error pops in v19Possibly taken @xecanto claimed this 22 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OCA/server-tools#3796 ·
Maintainers usually reply within 1 day
-
[18.0] base_exception: swallow_base_exception_error never runs the decorated testPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OCA/server-tools#3784 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
OCA/server-tools#3368 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
OCA/server-tools#3139 · 1 comment ·
Maintainers usually reply within 1 day
All issues in OCA/server-tools
Similar issues
-
plot_graph crashes when a mesh node has no m2m edgePossibly taken @tygvi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mllam/neural-lam#883 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement possible-duplicate
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1715 · 2 comments ·
Maintainers usually reply within 6 days
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/auto-ontology#511 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ethereum/execution-specs#3996 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cpp-best-practices/project_validator#267 ·
Maintainers usually reply within 1 day