ikifar2012 / remote-backup-addon

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

parse error: Invalid numeric literal #63

Closed valir closed 1 year ago

valir commented 1 year ago

Hi! Thanks for creating this add-on. I'm trying it now, and it looks it won't work for me.

My set-up: trying to back-up via SSH to my back-up server, which is a regular SSH server. But error seems to happen before even attempting to connect to that server. Here is the log:

[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] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Remote Backup
 Exploit snapshots and SCP/rsync to create remote backups to specified server
-----------------------------------------------------------
 Add-on version: 4.2.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 8.5  (aarch64 / odroid-n2)
 Home Assistant Core: 2022.8.6
 Home Assistant Supervisor: 2022.08.5
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Adding SSH key
Creating local backup: "Automated backup 2022-08-30 21:54"
time="2022-08-30T21:54:37+03:00" level=error msg="Unexpected server response"
parse error: Invalid numeric literal at line 1, column 11
[cmd] /run.sh exited 4
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.

 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
SirGoodenough commented 1 year ago

This either is not the latest version or it's the wrong program... This says version: Add-on version: 4.2.8 Current version of this addon is Current version: 2022.7.2

more details...: https://addons.mathesonsteplock.ca/docs/addons/remote-backup/basic-config

-----------------------------------------------------------
 Add-on: Remote Backup
 Automatically create and backup HA backups using SCP
-----------------------------------------------------------
 Add-on version: 2022.7.2
 You are running the latest version of this add-on.
ikifar2012 commented 1 year ago

4.2.8 is over 2 years old and not available on docker hub anymore, it will not work with the latest version of Home Assistant, you will need to update your addon, if you have any trouble updating please let me know

valir commented 1 year ago

Hmmm, it looks like I've got the old version from a different repository I had on my add-ons repo. Deleted that and installed yours, paying more attention. Now I have the right version, so I'll proceed to closing this issue. However, I'll open another one, as it looks like the remote directory option is no longer there. Thanks for the quick reply :-)

LATER EDIT: well, I've found the "remote folder" option so - thanks for this great plugin, it worked as expected!

SirGoodenough commented 1 year ago

There is a new version with an entirely updated base structure and code about to release, so keep your eye peeled...