ikifar2012 / remote-backup-addon

Automatically create and backup HA snapshots using SCP
30 stars 4 forks source link

Scheduled start failing with remote_host missing error #119

Closed bmorgenthaler closed 9 months ago

bmorgenthaler commented 10 months ago

HA Core: 2023.11.2 Supervisor: 2023.11.0 Frontend: 20231030.2 Remote Backup: 2023.3.0

Log

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
curl: (7) Failed to connect to supervisor port 80 after 0 ms: Couldn't connect to server
[12:53:36] ERROR: Something went wrong contacting the API
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
curl: (7) Failed to connect to supervisor port 80 after 0 ms: Couldn't connect to server
[12:53:36] ERROR: Something went wrong contacting the API
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[12:53:36] FATAL: 
[12:53:36] FATAL: A required add-on configuration option is missing!
[12:53:36] FATAL: 
[12:53:36] FATAL: Please set a value for the 'remote_host' option.
[12:53:36] FATAL: 
[12:53:36] FATAL: This option is required because:
[12:53:36] FATAL: A target host for copying backups is necessary.
[12:53:36] FATAL: 
[12:53:36] FATAL: If unsure, check the add-on manual for more information.
[12:53:36] FATAL: 
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Configuration, with a value for remote_host configured

backup_custom_prefix: Automated backup
backup_friendly_name: true
backup_keep_local: "10"
remote_host: 10.0.100.50
remote_key: id_nas
remote_port: 22
remote_user: admin
rsync_enabled: false
rsync_exclude:
  - /config/*.db-shm
  - /config/*.db-wal
  - /config/*.db
rsync_rootfolder: hassio-sync
ssh_enabled: true
ssh_remote_directory: /share/MD0_DATA/Backups/hass/
friendly_name: true
custom_prefix: Automated backup
ssh_host: 10.0.100.50
ssh_port: 22
ssh_user: admin
ssh_key: id_nas
remote_directory: /share/MD0_DATA/Backups/hass
zip_password: ""
keep_local_backup: "3"
rsync_host: ""
rsync_user: ""
rsync_password: ""
rclone_enabled: false
rclone_copy: false
rclone_sync: false
rclone_restore: false
rclone_remote: ""
rclone_remote_directory: ""
debug: true
ikifar2012 commented 10 months ago

I need to address this and these changes https://developers.home-assistant.io/blog/2023/11/06/public-addon-config