addons: IPv6 Config URL causing duckdns script to exit with status 7

The problem

DuckDNS addon is failing and exiting the script when a URL value is added for ipv6 only. I have tested with just adding a static IPv6 address as the config value and this works fine Also only adding a URL for the ipv4 value works It seems to be only when I use a URL value for the ipv6 config that it fails?!

Environment

  • Add-on with the issue: DuckDNS
  • Add-on release with the issue: 1.12.4
  • Last working add-on release (if known): NA
  • Operating environment (OS/Supervised): Hassos 5.8

Problem-relevant configuration

  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
token: 6697a35c-7b8f-48de-8c4e-##########
domains:
  - arthurst.duckdns.org
aliases: []
seconds: 300
ipv6: 'https://api6.ipify.org/'

Traceback/Error logs

[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.
# INFO: Using main config file /data/workdir/config
+ Account already registered!
[cmd] /run.sh exited 7
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 43 (8 by maintainers)

Most upvoted comments

Since I already had everything up-to-date I didn’t mind trying to re-configure the addon, and it is actually working right now.

(I simply added the “default” IPv6 interface to the addon config)

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
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
# INFO: Using main config file /data/workdir/config
+ Account already registered!
[18:30:25] INFO: OK
2a##:####:####:0:####:####:####:88f
NOCHANGE
[18:30:25] INFO: OK
1##.###.###.##7
NOCHANGE
[18:30:26] INFO: Renew certificate for domains: #############.duckdns.org and aliases: 
# INFO: Using main config file /data/workdir/config
Processing #############.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jul 28 22:00:12 2022 GMT (Longer than 30 days). Skipping renew!

I found this custom component that does the job, but it would be better if this Addon worked as it should, without the need of another component.

@sbeagle25 ok since it seems like your issue is a bit different then the original authors (who as was able to leverage the default option) can you open a new issue? Sounds like your setup should be working so still an issue but want to track it separately