I juts find out this error during execution of in-line post-backup script. It juts throws the error in logs, no problem is visible in UI or in backup email report:
[borg-ui] 2026-03-06T09:21:03.435526404Z INFO:app.services.script_executor:2026-03-06T09:21:03.435390Z [info ] Executing repo:1:inline:post-backup [app.services.script_executor] script_preview='docker start paperless-ngx-db\ndocker start paperless-ngx-redis\ndocker start paperless-ngx'
[borg-ui] 2026-03-06T09:21:03.436774078Z ERROR:app.services.script_executor:2026-03-06T09:21:03.436446Z [error ] repo:1:inline:post-backup execution failed [app.services.script_executor] error='all environment values must be bytes or str' execution_time=0.0010447502136230469
[borg-ui] 2026-03-06T09:21:03.437086254Z ERROR:app.api.schedule:2026-03-06T09:21:03.436902Z [error ] Repository inline post-script failed [app.api.schedule] error=['================================================================================', 'INLINE POST-BACKUP SCRIPT', '================================================================================', 'Exit Code: -1', 'Status: FAILED', 'Execution Time: 0.00s', '', 'STDOUT:', '(empty)', '', 'STDERR:', 'Script execution error: all environment values must be bytes or str', '================================================================================', ''] repo_name=NAS
Inline pre-backup Script execution is OK:
[borg-ui] 2026-03-06T09:16:59.763591704Z INFO:app.services.script_library_executor:2026-03-06T09:16:59.763363Z [info ] Executing inline script (legacy) [app.services.script_library_executor] backup_status=None repository_id=1 script_type=pre-backup
[borg-ui] 2026-03-06T09:16:59.764040375Z INFO:app.services.script_executor:2026-03-06T09:16:59.763603Z [info ] Executing repo:1:inline:pre-backup [app.services.script_executor] script_preview='docker stop paperless-ngx\ndocker stop paperless-ngx-db\ndocker stop paperless-ngx-redis'
[borg-ui] 2026-03-06T09:17:06.173349822Z INFO:app.services.script_executor:2026-03-06T09:17:06.172746Z [info ] repo:1:inline:pre-backup completed successfully [app.services.script_executor] execution_time=6.409089088439941 exit_code=0
I juts find out this error during execution of in-line post-backup script. It juts throws the error in logs, no problem is visible in UI or in backup email report:
Inline pre-backup Script execution is OK: