Koozali.org: home of the SME Server

Configuration of the login,passwd for the smeserver-ddclient

Online TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #15 on: August 05, 2021, 01:03:40 AM »
systemd file

/usr/lib/systemd/system/ddclient.service

[Unit]
Description=A Perl Client Used To Update Dynamic DNS
After=syslog.target network-online.target nss-lookup.target

[Service]
User=ddclient
Group=ddclient
Type=forking
EnvironmentFile=-/etc/sysconfig/ddclient
ExecStartPre=/bin/touch /var/cache/ddclient/ddclient.cache
ExecStart=/usr/sbin/ddclient -file /etc/ddclient/ddclient.conf -debug -verbose -noquiet -syslog

[Install]
WantedBy=multi-user.target

some work needed, enviro file ?
ExecStart looks right as far as location, need to check etc
--
qui scribit bis legit

Offline RDMidtun

  • *
  • 27
  • +0/-0

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #17 on: August 05, 2021, 10:39:08 AM »
Terry, whats in the env file?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Online TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #18 on: August 05, 2021, 01:06:56 PM »
OK, ddclient working as it should, issue, permissions and ownership of /etc/ddclient/ddclient.conf is root on install needs to be ddclient, well thats what I have changed it to and its doing its thing, the conf is now being used 🙂 dns is updateing and checking as expected..

Heres log entry
message.log
Aug  5 20:26:33 fagehome ddclient[3637]: CONNECT:  bot.whatismyipaddress.com
Aug  5 20:26:34 fagehome ddclient[3637]: CONNECTED:  using HTTP
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:  GET / HTTP/1.0
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:   Host: bot.whatismyipaddress.com
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:   User-Agent: ddclient/3.9.1
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:   Connection: close
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:   
Aug  5 20:26:34 fagehome ddclient[3637]: SENDING:   
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  HTTP/1.1 200 OK#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Cache-Control: private#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Content-Type: text/html#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Server: #015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Date: Thu, 05 Aug 2021 10:26:35 GMT#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Connection: close#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  Content-Length: 13#015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  #015
Aug  5 20:26:34 fagehome ddclient[3637]: RECEIVE:  115.166.54.29
Aug  5 20:26:34 fagehome ddclient[3637]: SUCCESS:  tfage.dyndns.org: skipped: IP address was already set to 115.166.54.29.
Aug  5 20:26:34 fagehome ddclient[3637]: SUCCESS:  tfage.homeip.net: skipped: IP address was already set to 115.166.54.29.

Environment file
#                                                                     -*- sh -*-
# ddclient service options, see ddclient --help for what's available.
#
DDCLIENT_OPTIONS="-daemon 300"

added log etc to Bug
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #19 on: August 05, 2021, 02:12:18 PM »
I'll patch that up and fix the post-upgrade issue too.

Leave it with me.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #20 on: August 05, 2021, 10:40:16 PM »
I'll patch that up and fix the post-upgrade issue too.

Leave it with me.

Just a heads up. I manually fixed the service to start with the correct config file (because I am dependent on this working). And I now see that it is doing it's job. But, I see these warnings in the log file:

Code: [Select]
Aug  5 16:39:08 e-smith ddclient[25408]: WARNING:  Cannot create file '/var/run/ddclient.pid'. (Permission denied)
, pointing in the direction that there is also a owner/permission problem with the /var/run/ddclient.pid file as well. So, if you are looking into fixing the bug, have a look at this issue as well.
« Last Edit: August 05, 2021, 10:42:41 PM by RDMidtun »

Online TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #21 on: August 06, 2021, 01:04:21 AM »
Just a heads up. I manually fixed the service to start with the correct config file (because I am dependent on this working). And I now see that it is doing it's job. But, I see these warnings in the log file:

So using /etc/ddclient/ddclient.conf  user ddclient 0644

Code: [Select]
Aug  5 16:39:08 e-smith ddclient[25408]: WARNING:  Cannot create file '/var/run/ddclient.pid'. (Permission denied)

on my reinstalled and then owner/perms reset for the conf not seeing that error

/var/run/ddclient/ddclient.pid  ddclient  0655

All clear
--
qui scribit bis legit

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #22 on: August 06, 2021, 07:53:42 AM »
So using /etc/ddclient/ddclient.conf  user ddclient 0644

on my reinstalled and then owner/perms reset for the conf not seeing that error

/var/run/ddclient/ddclient.pid  ddclient  0655

All clear

Ok, all good! Could be caused by me running it manually as root at one stage as a part of the troubleshooting.

Online TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #23 on: August 06, 2021, 10:06:00 AM »
 :pint:
--
qui scribit bis legit

Online TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #24 on: January 15, 2022, 12:23:35 AM »
For those using the ddclient contrib a updated package is in /smetest soon to be updates-testing and then released, a number of issues now resolved..well worth updating to the devel version as it is doing a far better job than current version...
--
qui scribit bis legit