Giter Site home page Giter Site logo

dyndns's People

Contributors

bulletmark avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

shelleycat485

dyndns's Issues

service failed: No such file or directory

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?

username and password appear in journals

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.

Path is not absolute error

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.