NicFragale / HA-NetFoundry

The unofficial OpenZiti by NetFoundry Addon for Home Assistant
Apache License 2.0
5 stars 1 forks source link

v1.5.4 Addon does not start #8

Closed mrratherford closed 7 months ago

mrratherford commented 7 months ago

After updating to the new version the addon does not start anymore. I uninstalled and reinstalled the addon, but this didn't help.

Here are the logs from the addon:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/profile.sh
cont-init: info: /etc/cont-init.d/profile.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun ziti-edge-tunnel (no readiness notification)
s6-rc: info: service legacy-services successfully started
[16:16:57] NOTICE: Starting Ziti-Edge-Tunnel...
[16:16:58] INFO: with SUPERVISOR_TOKEN  :"dcb63a5e25...".
[16:16:58] INFO: with IdentityDirectory :"/share/openziti/identities".
[16:16:58] INFO: with ResolutionRange   :"100.64.64.0/18".
[16:16:58] INFO: with UpstreamResolver  :"192.168.128.1".
[16:16:58] INFO: with LogLevel          :"2".
[16:16:58] NOTICE: ZITI-EDGE-TUNNEL: PREINIT BEGIN
[16:16:58] INFO: Runtime version is "0.22.22".
[16:16:58] INFO: Architecture is "aarch64".
[16:16:58] INFO: ZITI-EDGE-TUNNEL: ENROLLMENT NOT REQUESTED
[16:16:58] INFO: IDENTITY: [/share/openziti/identities/ZTID-20240215_114559.json]
[16:16:58] INFO: ZITI_DNS_IP: 100.64.64.1
[16:16:58] INFO: Setup of system resolver via REST to [100.64.64.1] succeeded.
[16:16:58] INFO: Assisting application "nginx" has been started with syntax options "NONE".
[16:16:58] INFO: Assisting application "php-fpm82" has been started with syntax options "NONE".
[16:16:58] INFO: INIT STRING: [/opt/openziti/ziti-edge-tunnel run -I /share/openziti/identities -u 192.168.128.1 -v 2]
[16:16:58] NOTICE: ZITI-EDGE-TUNNEL: PREINIT END
[16:16:58] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM BEGIN
(186)[        0.000]   ERROR ziti-edge-tunnel:instance-config.c:61 load_config_from_file() The config file No such file or directory cannot be opened due to /var/lib/ziti/config.json. This is normal if this is a new install or if the config file was removed manually
(186)[        0.000]   ERROR ziti-edge-tunnel:instance-config.c:61 load_config_from_file() The config file No such file or directory cannot be opened due to /var/lib/ziti/config.json.backup. This is normal if this is a new install or if the config file was removed manually
(186)[        0.000]    WARN ziti-edge-tunnel:instance-config.c:98 load_tunnel_status_from_file() Config files /var/lib/ziti/config.json and the backup file cannot be read or they do not exist, will create a new config file or the old one will be overwritten
(186)[        0.000]    WARN ziti-edge-tunnel:instance.c:40 find_tunnel_identity() Identity ztx[/share/openziti/identities/ZTID-20240215_114559.json] is not loaded yet or already removed.
(186)[        0.093]    WARN ziti-edge-tunnel:tun.c:277 find_dns_updater() Adding ziti resolver to /etc/resolv.conf. Ziti DNS functionality may be impaired
(186)[        0.094]   ERROR ziti-edge-tunnel:instance-config.c:136 save_tunnel_status_to_file() Could not copy config file [/var/lib/ziti/config.json] to backup config file, the config might not exists at the moment
[16:17:03] INFO: UPDATED RESOLV CONFIGURATION
[16:17:03] NOTICE: ZITI-EDGE-TUNNEL: [0/Fri Feb 23 16:17:03 CET 2024] [PID:186] [END:MAIN LOOP]
/opt/openziti/scripts/startup.sh: line 217:   186 Trace/breakpoint trap   (core dumped) /bin/bash -c "${RUNTIME} ${RUNTIMEOPTS}"
[16:17:03] INFO: Setup of system resolver via REST to [192.168.128.1] succeeded.
[16:17:03] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM END
[16:17:03] NOTICE: Stopped Ziti-Edge-Tunnel...
[16:17:04] NOTICE: Starting Ziti-Edge-Tunnel...
[16:17:04] INFO: with SUPERVISOR_TOKEN  :"dcb63a5e25...".
[16:17:04] INFO: with IdentityDirectory :"/share/openziti/identities".
[16:17:04] INFO: with ResolutionRange   :"100.64.64.0/18".
[16:17:04] INFO: with UpstreamResolver  :"192.168.128.1".
[16:17:04] INFO: with LogLevel          :"2".
[16:17:05] NOTICE: ZITI-EDGE-TUNNEL: PREINIT BEGIN
[16:17:05] INFO: Runtime version is "0.22.22".
[16:17:05] INFO: Architecture is "aarch64".
[16:17:05] INFO: ZITI-EDGE-TUNNEL: ENROLLMENT NOT REQUESTED
[16:17:05] INFO: IDENTITY: [/share/openziti/identities/ZTID-20240215_114559.json]
[16:17:05] INFO: ZITI_DNS_IP: 100.64.64.1
[16:17:05] INFO: Setup of system resolver via REST to [100.64.64.1] succeeded.
174 173 172 171 170
[16:17:05] WARNING: Assisting application "nginx" is already running.
181 180 179
[16:17:05] WARNING: Assisting application "php-fpm82" is already running.
[16:17:05] INFO: INIT STRING: [/opt/openziti/ziti-edge-tunnel run -I /share/openziti/identities -u 192.168.128.1 -v 2]
[16:17:05] NOTICE: ZITI-EDGE-TUNNEL: PREINIT END
[16:17:05] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM BEGIN
(291)[        0.067]    WARN ziti-edge-tunnel:tun.c:277 find_dns_updater() Adding ziti resolver to /etc/resolv.conf. Ziti DNS functionality may be impaired
[16:17:10] NOTICE: ZITI-EDGE-TUNNEL: [0/Fri Feb 23 16:17:10 CET 2024] [PID:291] [END:MAIN LOOP]
/opt/openziti/scripts/startup.sh: line 217:   291 Trace/breakpoint trap   (core dumped) /bin/bash -c "${RUNTIME} ${RUNTIMEOPTS}"
[16:17:10] INFO: Setup of system resolver via REST to [192.168.128.1] succeeded.
[16:17:10] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM END
[16:17:10] NOTICE: Stopped Ziti-Edge-Tunnel...
[16:17:11] NOTICE: Starting Ziti-Edge-Tunnel...
[16:17:11] INFO: with SUPERVISOR_TOKEN  :"dcb63a5e25...".
[16:17:11] INFO: with IdentityDirectory :"/share/openziti/identities".
[16:17:11] INFO: with ResolutionRange   :"100.64.64.0/18".
[16:17:11] INFO: with UpstreamResolver  :"192.168.128.1".
[16:17:11] INFO: with LogLevel          :"2".
[16:17:11] NOTICE: ZITI-EDGE-TUNNEL: PREINIT BEGIN
[16:17:11] INFO: Runtime version is "0.22.22".
[16:17:11] INFO: Architecture is "aarch64".
[16:17:11] INFO: ZITI-EDGE-TUNNEL: ENROLLMENT NOT REQUESTED
[16:17:11] INFO: IDENTITY: [/share/openziti/identities/ZTID-20240215_114559.json]
[16:17:11] INFO: ZITI_DNS_IP: 100.64.64.1
[16:17:11] INFO: Setup of system resolver via REST to [100.64.64.1] succeeded.
174 173 172 171 170
[16:17:11] WARNING: Assisting application "nginx" is already running.
181 180 179
[16:17:11] WARNING: Assisting application "php-fpm82" is already running.
[16:17:11] INFO: INIT STRING: [/opt/openziti/ziti-edge-tunnel run -I /share/openziti/identities -u 192.168.128.1 -v 2]
[16:17:12] NOTICE: ZITI-EDGE-TUNNEL: PREINIT END
[16:17:12] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM BEGIN
(393)[        0.068]    WARN ziti-edge-tunnel:tun.c:277 find_dns_updater() Adding ziti resolver to /etc/resolv.conf. Ziti DNS functionality may be impaired
[16:17:17] NOTICE: ZITI-EDGE-TUNNEL: [0/Fri Feb 23 16:17:17 CET 2024] [PID:393] [END:MAIN LOOP]
/opt/openziti/scripts/startup.sh: line 217:   393 Trace/breakpoint trap   (core dumped) /bin/bash -c "${RUNTIME} ${RUNTIMEOPTS}"
[16:17:17] INFO: Setup of system resolver via REST to [192.168.128.1] succeeded.
[16:17:17] NOTICE: ZITI-EDGE-TUNNEL: PROGRAM END
[16:17:17] NOTICE: Stopped Ziti-Edge-Tunnel...
NicFragale commented 7 months ago

@mrratherford In the process of working out a method by which to build the package more automatically for use as a production repo, well, seems it got broken. Could be because of the switch to OpenSSL from MBEDTLS. I'm reviewing as we speak and will have an update shortly. Thanks for the patience!

NicFragale commented 7 months ago

@mrratherford I'm still chasing down why this crash occurs only on the aarch64 RPi units. In my local build that emulates aarch64, there is no issue oddly. So to remedy, I have pushed 1.5.4 back up. All you need to do is uninstall and reinstall and you'll have the last working build. Thank you for the patience while I get to the bottom of it!

mrratherford commented 7 months ago

Hi @NicFragale Thanks for the workaround. At the moment there are no Releases in this repository and on the home assistant side with the repo configured I cannot download the addon

Screenshot_20240224_103042_Chrome

NicFragale commented 7 months ago

@mrratherford its entirely possible that the repo is given a unique id by HA. Try to remove the repo then add it back again. At some point this will go main stream and be released under the OpenZiti project repo. Then it will have automation to build (yay).

https://github.com/NicFragale/HA-NetFoundry

Just did a test on the repo and it does report 1.5.4 available. Tell me if that's still not working for you?

mrratherford commented 7 months ago

This worked exactly as you said. Thanks again @NicFragale

NicFragale commented 7 months ago

Pushed a change to the repo that I'm having a few people try. @mrratherford Let me know if all is well after the update and I'll close out the issue.

mrratherford commented 7 months ago

Hi @NicFragale, Update was successfull. Everything works as it should. I will close the ticket