Samba-backup 5.0.0, hassOS 2021.9.7
First time setup (configs and logs below). Triggered a manual run and I see this:
Error occurred! Backup could not be created! Please try again
Which I have, several times. Same message. How do I determine what the error is?
I’m able to use smbclient
from a different host to connect to the share with the credentials in the config and create new files/folders, and the log below appears to show show that a samba-tmp123
file was successfully created, so I think I’ve ruled out share permission issues.
host: 192.168.x.y
share: hass-snapshots
target_dir: /
username: ********
password: ********
keep_local: 5
keep_remote: all
trigger_time: '04:00'
trigger_days:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
exclude_addons: []
exclude_folders: []
backup_name: '{type} Backup {version} {date}'
log_level: debug
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21-09-23 00:39:49] INFO: ---------------------------------------------------
[21-09-23 00:39:49] INFO: Host/Share: 192.168.x.y/hass-snapshots
[21-09-23 00:39:49] INFO: Target directory: /
[21-09-23 00:39:49] INFO: Keep local/remote: 5/all
[21-09-23 00:39:49] INFO: Trigger time: 04:00
[21-09-23 00:39:49] INFO: Trigger days: Mon Tue Wed Thu Fri Sat Sun
[21-09-23 00:39:49] INFO: ---------------------------------------------------
[21-09-23 00:39:49] DEBUG: Backups local: 11
[21-09-23 00:39:49] DEBUG: Backups remote: 38
[21-09-23 00:39:49] DEBUG: Total backups succeeded: 0
[21-09-23 00:39:49] DEBUG: Total backups failed: 1
[21-09-23 00:39:49] DEBUG: Last backup: never
[21-09-23 00:39:49] DEBUG: API Status: 200
[21-09-23 00:39:49] DEBUG: API Response: {"entity_id": "sensor.samba_backup", "state": "IDLE", "attributes": {"friendly_name": "Samba Backup", "backups_local": "11", "backups_remote": "38", "total_backups_succeeded": "0", "total_backups_failed": "1", "last_backup": "never"}, "last_changed": "2021-09-23T05:39:49.938142+00:00", "last_updated": "2021-09-23T05:39:49.938142+00:00", "context": {"id": "dd3259b90ea139d8b8e4c1f473fdcf3a", "parent_id": null, "user_id": "0f0ce351f9944ff2b00a80031876139b"}}
[21-09-23 00:39:50] DEBUG:
[21-09-23 00:39:50] DEBUG: putting file samba-tmp123 as \samba-tmp123 (0.0 kb/s) (average 0.0 kb/s)
[21-09-23 00:39:50] INFO: Samba Backup started successfully
[21-09-23 00:39:50] DEBUG: Starting stdin listener ...
[21-09-23 00:39:50] DEBUG: Starting main loop ...
[21-09-23 00:40:18] DEBUG: Input received: "trigger"
[21-09-23 00:40:18] INFO: Backup running ...
[21-09-23 00:40:18] DEBUG: Backups local: 11
[21-09-23 00:40:18] DEBUG: Backups remote: 38
[21-09-23 00:40:18] DEBUG: Total backups succeeded: 0
[21-09-23 00:40:18] DEBUG: Total backups failed: 1
[21-09-23 00:40:18] DEBUG: Last backup: never
[21-09-23 00:40:18] DEBUG: API Status: 200
[21-09-23 00:40:18] DEBUG: API Response: {"entity_id": "sensor.samba_backup", "state": "RUNNING", "attributes": {"friendly_name": "Samba Backup", "backups_local": "11", "backups_remote": "38", "total_backups_succeeded": "0", "total_backups_failed": "1", "last_backup": "never"}, "last_changed": "2021-09-23T05:40:18.888817+00:00", "last_updated": "2021-09-23T05:40:18.888817+00:00", "context": {"id": "494704c6b2dc6ec26b3e53a11532faab", "parent_id": null, "user_id": "0f0ce351f9944ff2b00a80031876139b"}}
[21-09-23 00:40:18] INFO: Creating backup "Full Backup 2021.9.7 2021-09-23 00:40"
[21-09-23 00:40:19] ERROR: Error occurred! Backup could not be created! Please try again
[21-09-23 00:40:19] DEBUG: API Status: 200
[21-09-23 00:40:19] DEBUG: API Response: {"entity_id": "sensor.samba_backup", "state": "FAILED", "attributes": {"friendly_name": "Samba Backup", "backups_local": "12", "backups_remote": "38", "total_backups_succeeded": "0", "total_backups_failed": "2", "last_backup": "never"}, "last_changed": "2021-09-23T05:40:19.441193+00:00", "last_updated": "2021-09-23T05:40:19.441193+00:00", "context": {"id": "c95cd724c520a2c4b6e0528335e2dd79", "parent_id": null, "user_id": "0f0ce351f9944ff2b00a80031876139b"}}
Thanks,
-Jason