bulletmark / dyndns Goto Github PK
View Code? Open in Web Editor NEWSmall, simple, and generic dynamic DNS client
Small, simple, and generic dynamic DNS client
Hi,
I just installed dyndns on my Ubuntu 20.04 box and tried to run it as a service after configuration, but I get dyndns.service: Failed at step EXEC spawning /apps/dyndns/dyndns: No such file or directory
.
This is perplexing, because that file exists, of course:
root@mydroid:/apps/dyndns# ls -l /apps/dyndns/
total 40
-rw-r--r-- 1 root root 1070 May 14 18:45 convtime.py
-rwxr-xr-x 1 root root 9999 May 14 18:45 dyndns
-rw-r--r-- 1 root root 371 May 14 18:45 dyndns.service
-rw-r--r-- 1 root root 3808 May 14 18:45 dyndns.toml
-rw-r--r-- 1 root root 776 May 14 18:45 Makefile
-rw-r--r-- 1 root root 6197 May 14 18:45 README.md
-rw-r--r-- 1 root root 48 May 14 18:45 requirements.txt
drwxr-xr-x 1 root root 46 May 14 19:03 venv
dyndns.service - Update External IP v4/v6 addresses to a Dynamic DNS server
Loaded: loaded (/etc/systemd/system/dyndns.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-05-14 19:32:53 CEST; 8s ago
Process: 8568 ExecStart=/apps/dyndns/dyndns (code=exited, status=203/EXEC)
Main PID: 8568 (code=exited, status=203/EXEC)
May 14 19:32:53 mydroid systemd[1]: Started Update External IP v4/v6 addresses to a Dynamic DNS server.
May 14 19:32:53 mydroid systemd[8568]: dyndns.service: Failed to execute command: No such file or directory
May 14 19:32:53 mydroid systemd[8568]: dyndns.service: Failed at step EXEC spawning /apps/dyndns/dyndns: No such file or directory
May 14 19:32:53 mydroid systemd[1]: dyndns.service: Main process exited, code=exited, status=203/EXEC
What could be the problem?
Rpi3b, bookworm. Client works fine.
This is only minor, but the username and password are in plain text in the config file. They also appear in the journalctl files and the systemctl status dyndns output. Perhaps these could be blanked, or the default logging not show all of this. These can both be seen by user pi, who is allowed sudo so it is not a big deal. For noip.com these are the username/password of the account; you can have 2FA on top of that but it seems a weakness.
I'm trying to connect to FreeDNS.afraid.org but the service is erroring out and I don't know what to do. Running journalctl gets me this:
noah@beelink-server:~$ journalctl -u dyndns
Jun 22 22:28:55 beelink-server systemd[1]: /etc/systemd/system/dyndns.service:11: WorkingDirectory= path is not absolute: #WORKDIR#
Jun 22 22:28:55 beelink-server systemd[1]: dyndns.service: Unit configuration has fatal error, unit will not be started.
Jun 22 22:34:59 beelink-server systemd[1]: /etc/systemd/system/dyndns.service:12: Neither a valid executable name nor an absolute path: home/noah/dyndns/dyndns
Jun 22 22:34:59 beelink-server systemd[1]: dyndns.service: Unit configuration has fatal error, unit will not be started.
Jun 22 22:36:03 beelink-server systemd[1]: Started dyndns.service - Update External IP v4/v6 addresses to a Dynamic DNS server.
Jun 22 22:36:03 beelink-server (dyndns)[4652]: dyndns.service: Failed to determine user credentials: No such process
Jun 22 22:36:03 beelink-server systemd[1]: dyndns.service: Main process exited, code=exited, status=217/USER
Jun 22 22:36:03 beelink-server systemd[1]: dyndns.service: Failed with result 'exit-code'.
Jun 22 22:38:03 beelink-server systemd[1]: /etc/systemd/system/dyndns.service:11: WorkingDirectory= path is not absolute: #/home/noah/dyndns#
Jun 22 22:38:03 beelink-server systemd[1]: dyndns.service: Unit configuration has fatal error, unit will not be started.
Jun 22 22:43:45 beelink-server systemd[1]: /etc/systemd/system/dyndns.service:11: WorkingDirectory= path is not absolute: ~/dyndns
Jun 22 22:43:45 beelink-server systemd[1]: dyndns.service: Unit configuration has fatal error, unit will not be started.
noah@beelink-server:~$
This is the dyndns.service:
[Unit]
Description=Update External IP v4/v6 addresses to a Dynamic DNS server
Wants=network-online.target
After=network-online.target
[Service]
# Set the following USER to your user name.
User=noah
# Set the following WORKDIR to the source program directory (where you
# git cloned)
WorkingDirectory=~/dyndns
ExecStart=~/dyndns/%p
[Install]
WantedBy=default.target
I'm kinda new to this stuff so please help me, I'm trying to run a home web server and I got everything figured out except for the DDNS part, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.