Help: about config file #259

Closed
opened 2025-11-20 04:22:07 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @fdorazio on GitHub (Feb 24, 2023).

TLDR: *Hi,
I have a problem with my json config file.

When I deploy ddns-updater container, I obtain this error message:

2023-02-24T07:54:54Z ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value

I try too with a config to noip, I have the same issue.

Can you help me please ?

Thanks

Have a nice day.
*

  1. Is this urgent: Yes and no, it's possible to help me a little quick ?

  2. DNS provider(s) you use: test done with noip and duckdns

  3. Program version:

    Running version latest built on 2023-02-02T00:41:38Z (commit 228fc50)

  4. What are you using to run the container: I use Kubernetes in v1.26

  5. Extra information (optional)

Logs:

========================================
========================================
============= ddns-updater =============
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2023-02-02T00:41:38Z (commit 228fc50)

🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new
🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new
✨ New feature? https://github.com/qdm12/ddns-updater/issues/new
☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2023-02-24T07:54:54Z INFO reading JSON config from environment variable CONFIG
2023-02-24T07:54:54Z DEBUG config read: /updater/data/config.json
2023-02-24T07:54:54Z ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value
2023-02-24T07:54:54Z INFO Shutdown successful

Configuration file (remove your credentials!):

{
        "settings": [
                {
                        "provider": "duckdns",
                        "domain": "mysubdomain",
                        "token": "*****MyDuckDNS Token*****"
                }
        ]
}

Host OS:
Centos 9 with kubernetes 1.26

In advance thanks a lot.

Originally created by @fdorazio on GitHub (Feb 24, 2023). <!-- HAVE A CHAT FIRST! https://github.com/qdm12/ddns-updater/discussions --> **TLDR**: *Hi, I have a problem with my json config file. When I deploy ddns-updater container, I obtain this error message: 2023-02-24T07:54:54Z ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value I try too with a config to noip, I have the same issue. Can you help me please ? Thanks Have a nice day. * 1. Is this urgent: Yes and no, it's possible to help me a little quick ? 2. DNS provider(s) you use: test done with noip and duckdns 3. Program version: <!-- See the line at the top of your logs --> `Running version latest built on 2023-02-02T00:41:38Z (commit 228fc50)` 4. What are you using to run the container: I use Kubernetes in v1.26 5. Extra information (optional) Logs: ``` ======================================== ======================================== ============= ddns-updater ============= ======================================== =========== Made with ❤️ by ============ ======= https://github.com/qdm12 ======= ======================================== ======================================== Running version latest built on 2023-02-02T00:41:38Z (commit 228fc50) 🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new 🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new ✨ New feature? https://github.com/qdm12/ddns-updater/issues/new ☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new 💻 Email? quentin.mcgaw@gmail.com 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 2023-02-24T07:54:54Z INFO reading JSON config from environment variable CONFIG 2023-02-24T07:54:54Z DEBUG config read: /updater/data/config.json 2023-02-24T07:54:54Z ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value 2023-02-24T07:54:54Z INFO Shutdown successful ``` Configuration file (**remove your credentials!**): ```json { "settings": [ { "provider": "duckdns", "domain": "mysubdomain", "token": "*****MyDuckDNS Token*****" } ] } ``` Host OS: Centos 9 with kubernetes 1.26 In advance thanks a lot.
Author
Owner

@sebastian-muthwill commented on GitHub (Dec 7, 2023):

Hi @fdorazio, I have exactly the same issue with AllInkl provider.
How did you solve the issue?
The config seems to be ok.

@sebastian-muthwill commented on GitHub (Dec 7, 2023): Hi @fdorazio, I have exactly the same issue with AllInkl provider. How did you solve the issue? The config seems to be ok.
Author
Owner

@fdorazio commented on GitHub (Dec 8, 2023):

Hi @sebastian-muthwill,

I changed my configuration from config map to file in pvc.
And I added more informations below token variable:

  "ip_version": "ipv4",
  "provider_ip": true

I hope that it will help you.

Have a nice day.

@fdorazio commented on GitHub (Dec 8, 2023): Hi @sebastian-muthwill, I changed my configuration from config map to file in pvc. And I added more informations below token variable: "ip_version": "ipv4", "provider_ip": true I hope that it will help you. Have a nice day.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#259