-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service is not starting and config file is not being found on my installation #9
Comments
Have you installed only Error message |
I have installed only:
Should I install I checked the API key and it's the correct one I got from Hetzner yesterday. Thanks |
Docs package is not required, but if you are using this as an OpenRC service, you have to install And regarding the |
Yes, I installed the Docs afterwards, in the first time I installed only the required package and I was getting the same problem. This is what I have inside my
A new line is added when I launch: I'm fairly new with this, and as I see maybe I should use open-rc with Alpine.. An other things that catches my attention is the error message in reply when I try to start the service:
Here the `hetzner_ddns' name is printed with two different apostrophes at the beginning and at the end of the service name: ` and ' Thanks |
Installing Now I can update the open-rc:
But if I try to start the service I get this error:
the
|
This is an OpenRC typo, as you can see it when trying to start arbitrarily-named services: # service foobar start
* service: service `foobar' does not exist Your log file should look something like this:
Did you add your domain and records to Hetzner DNS console? |
I have only this info in my Hetzner DNS console. (The domain is pointing to the Hetzner Name Servers.)
Should I manually add some other record for my |
Yes, you should add A/AAAA entries for every record you plan for hetzner_ddns to modify. If reading config file still doesn't work, it might be a permissions issue, so replace these lines of #!/bin/sh
self='hetzner_ddns'
- if ! [ -z "$1" ]; then
- self="${self}.$1"
- fi
# Read variabels from configuration file
- if test -G "/etc/$self.conf"; then
+ if test -f "/etc/$self.conf"; then
. "/etc/$self.conf" |
With the But the log looks the same. In Hetzner DNS I have added only an Maybe something more is needed? Thank you again for your help. |
If you properly set the configuration file and did all the things you said, I am not sure why it is still not working. I tried replicating your problem on AlpineLinux 3.18 but to no avail - it works as intended. What I may suggest is for you to manually try running curl commands [1] and [2] to see if the API is properly accessible from your machine. |
Thank you for trying to replicate it. I'm using AlpineLinux 3.17 now, but the problem I get is the same I was getting with 3.18.
I tried to run the two curl commands from the VM and I correctly got the Maybe the is something I'm missing about the whole picture... |
Something that might help. (sensitive data has been replaced with dummy data) When I launch this code:
I get:
But when I launch the same command including the last
I get nothing. |
I am still unable to reproduce your issue, but it might be a bug so I labeled it as such.
When you are running this awk command, you have to substitute curl "https://dns.hetzner.com/api/v1/records?zone_id=$zone" \
-H "Auth-API-Token: $key" 2>/dev/null | \
jq -r '.records[] | .name + " " + .type + " " + .id' | \
awk "\$1==\"SUBDOMAIN\" && \$2==\"A\" {print \$3}" I ran this command with BusyBox 1.35.0 on AlpineLinux. |
You are totally right @filiparag 😅 I substituted the I'm running this as root, I don´t know if this could be a problem. Thank you for your help, if I have any positive update I will post them here. |
I will close the issue for now. If you have any updates, please post them here. |
Hi!
I'm trying to get your application working inside a libvirt's VM, the OS I'm using is Alpine 3.18.2.
I have installed the package via apk but I can´t figure out what I'm doing wrong...
I'm getting this errors:
Any clue?
Thank you very much for sharing this @filiparag !!
The text was updated successfully, but these errors were encountered: