Koozali.org: home of the SME Server

Configuration of the login,passwd for the smeserver-ddclient

Offline RDMidtun

  • *
  • 23
  • +0/-0
Configuration of the login,passwd for the smeserver-ddclient
« on: August 01, 2021, 07:19:15 PM »
I succesfully managed to install the smeserver-ddclient contrib and see that I have a new server-manager panel. I am using the dyndns service. I fail to see how I configure the ddclient with a login, password, wildcard etc. This info is not reflected in the panel.

Offline TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #1 on: August 01, 2021, 11:12:34 PM »
Click on modify in the lower sectional table, "Current list of virtual domains" a form is displayed to set details..
« Last Edit: August 01, 2021, 11:14:29 PM by TerryF »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #2 on: August 02, 2021, 09:00:29 AM »
and just checking the contrib, some testing to do as its not playing the game ...might be a bug..go ahead and have a go if you have an issue raise a bug
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,291
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #3 on: August 02, 2021, 10:54:37 AM »
Oracle have EOL'd the service.

Find a new provider.

https://m.slashdot.org/story/357492
...
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

  • *
  • 23
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #4 on: August 02, 2021, 07:12:43 PM »
Click on modify in the lower sectional table, "Current list of virtual domains" a form is displayed to set details..

Thanks a lot, I managed to find it. It is now configure with server, protocol, login etc. After signal-event smeserver-ddclient-update I see the /etc/ddclient/ddclient.conf is correctly updated. The next question is, how do I know it is working, is there a log file somewhere? The ip has not changed lately so it is hard to figure out without checking a log file or maybe executing the it manually.

Offline TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #5 on: August 02, 2021, 09:51:40 PM »
Logs yes, but definitively? cycle the modem/router and get a new ip then wait and see if dyn is updated..my dynamic dns section in my modem is doing my main domain fine, I have another couple that I had ddclient doing and they look to be problamatic..more testing needed...
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,291
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #6 on: August 02, 2021, 11:20:57 PM »
Oracle have EOL'd the service.

Hmmm. Still there. As far as I was aware they were going to close it!!
...
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

  • *
  • 23
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #7 on: August 03, 2021, 08:33:46 PM »
I hoped to fix the problem by manually changing owner ship and permissions of the ddclient.conf, but it did not help. It looks like this:

Code: [Select]
[root@e-smith ddclient]# ls -al /etc/ddclient/ddclient.conf
-rw------- 1 ddclient ddclient 927 Aug  2 14:55 /etc/ddclient/ddclient.conf
[root@e-smith ddclient]# more /etc/ddclient/ddclient.conf
#------------------------------------------------------------
#        !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
   
daemon=300                                    # check every 300 seconds
syslog=yes                                      # log update msgs to syslog
mail=admin                                      # mail update msgs to admin
mail-failure=admin
pid=/var/run/ddclient.pid                      # record PID in file.
ssl=yes
#
use=web, web=checkip.dyndns.org/, web-skip='IP Address:'


##
## CUSTOMDNS PROVIDER dynamic addresses
##
server=members.dyndns.org, \
protocol=dyndns2, \
login=rmidtun, \
password=xxxxxxxx \
midtun.dyndns.org
##
##

Any idea on how to further troubleshoot this?
I see no traces of activity in the messages log file or in the /var/cache/ddclient folder. I tried a manual start with debug enabled and it looks like it is not picking up any config info, see below:

Code: [Select]
[root@e-smith ddclient]# sudo -u ddclient /usr/sbin/ddclient -daemon=0 -noquiet -debug -verbose
=== opt ====
opt{cache}                           : <undefined>
opt{cmd}                             : <undefined>
opt{cmd-skip}                        : <undefined>
opt{daemon}                          : 0
opt{debug}                           : 1
opt{exec}                            : <undefined>
opt{facility}                        : <undefined>
opt{file}                            : <undefined>
opt{force}                           : <undefined>
opt{foreground}                      : <undefined>
opt{fw}                              : <undefined>
opt{fw-banlocal}                     : <undefined>
opt{fw-login}                        : <undefined>
opt{fw-password}                     : <undefined>
opt{fw-skip}                         : <undefined>
opt{geturl}                          : <undefined>
opt{help}                            : <undefined>
opt{host}                            : <undefined>
opt{if}                              : <undefined>
opt{if-skip}                         : <undefined>
opt{ip}                              : <undefined>
opt{ipv6}                            : <undefined>
opt{login}                           : <undefined>
opt{mail}                            : <undefined>
opt{mail-failure}                    : <undefined>
opt{max-interval}                    : 2160000
opt{min-error-interval}              : 300
opt{min-interval}                    : 30
opt{options}                         : <undefined>
opt{password}                        : <undefined>
opt{pid}                             : <undefined>
opt{postscript}                      : <undefined>
opt{priority}                        : <undefined>
opt{protocol}                        : <undefined>
opt{proxy}                           : <undefined>
opt{query}                           : <undefined>
opt{quiet}                           : 0
opt{retry}                           : <undefined>
opt{server}                          : <undefined>
opt{ssl}                             : <undefined>
opt{syslog}                          : <undefined>
opt{test}                            : <undefined>
opt{timeout}                         : <undefined>
opt{use}                             : <undefined>
opt{verbose}                         : 1
opt{web}                             : <undefined>
opt{web-skip}                        : <undefined>
=== globals ====
globals{daemon}                      : 60
globals{debug}                       : 1
globals{mail-failure}                : root
globals{pid}                         : /var/run/ddclient/ddclient.pid
globals{quiet}                       : 0
globals{ssl}                         : 1
globals{syslog}                      : 1
globals{verbose}                     : 1
=== config ====
=== cache ====

Offline ReetP

  • *
  • 3,291
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #8 on: August 03, 2021, 11:45:24 PM »
I hoped to fix the problem by manually changing owner ship and permissions of the ddclient.conf, but it did not help.

Don't do that - the template will perms will be set correctly, and will likely get reset on change.

Try and check /var/log/messages

Code: [Select]
grep ddclient /var/log/messages*
(there is probably some journalctl query to do it)
...
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 TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #9 on: August 04, 2021, 03:56:15 AM »
I hoped to fix the problem by manually changing owner ship and permissions of the ddclient.conf, but it did not help. It looks like this:

No, not the sme way, see ReetP above,

heres a line from my message log, one of many

[root@fagehome ~]# grep ddclient /var/log/messages*
-----snip-----
/var/log/messages.20210801011203:Aug  2 22:39:53 fagehome /sbin/e-smith/db[18914]: /home/e-smith/db/configuration: NEW ddclient=service|DeamonUpdate|3600|Extinterface||ForceIP||SSL|yes|cmd||method|web|status|enabled|urlcheckip|http://checkip.dyndns.com/
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,291
  • +5/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #10 on: August 04, 2021, 04:09:05 PM »
Quote
heres a line from my message log, one of many

Nothing else Terry?

Could have sworn it logged more on connect?

https://ddclient.net/usage.html

-{no}syslog    log messages to syslog (default: nosyslog).

-priority {pri}    log messages to syslog with priority {pri} (default: notice).

Wonder if it's logging incorrectly?
...
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 TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #11 on: August 04, 2021, 04:25:01 PM »
Nothing else Terry?

Lots more in message.log

Wonder if it's logging incorrectly?

It needs investigating its not doing its job, been sidtracked with the ftp stuff, thats now done so back to ddclient, especially as I rely on it :-)
--
qui scribit bis legit

Offline RDMidtun

  • *
  • 23
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #12 on: August 04, 2021, 06:52:35 PM »
Don't do that - the template will perms will be set correctly, and will likely get reset on change.

Yes, I know this is not the sme way. It was done as a temporar fix to see if this permission problem already reported in a bug also was causing the problems I saw. But, fixing this, did not fix my problem. I have done an investigation of the ddclient messages in /var/log/messages and all these are related to the events caused by configuring the ddclient using the sme-server panel. There is no messages from the running daemon and the /var/cache/ddclient/ddclient.cache file is empty. And when calling the ddclient manually using the -debug flag, it is reported that the config parameters is not set as shown in my previous post.

So my conclusion is, this is not the same bug as already reported. I guess I need to file a bug report to get somebody to look into it?

Offline RDMidtun

  • *
  • 23
  • +0/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #13 on: August 04, 2021, 07:15:26 PM »
I think I found the problem. The default location for the config file is /etc/ddclient.conf. The ddclient server panel updates the /etc/ddclient/ddclient.conf file. The service is probably not configured to pick up the config file at a diffrent location than the default. The file in the default location /etc/ddclient.conf is an example file with no server, login, passwd etc. Since the server is not defined the daemon can not do anything.

The conclusion is either to make the ddclient server panel updating the file in the default location or to edit the service to pick up the file being a result of the configuration process.

When starting the ddclient manually pointing to the correct config file it works.

Offline TerryF

  • grumpy old man
  • *
  • 1,717
  • +2/-0
Re: Configuration of the login,passwd for the smeserver-ddclient
« Reply #14 on: August 05, 2021, 12:20:08 AM »
I think I found the problem. The default location for the config file is /etc/ddclient.conf. The ddclient server panel updates the /etc/ddclient/ddclient.conf file. The service is probably not configured to pick up the config file at a diffrent location than the default. The file in the default location /etc/ddclient.conf is an example file with no server, login, passwd etc. Since the server is not defined the daemon can not do anything.

The conclusion is either to make the ddclient server panel updating the file in the default location or to edit the service to pick up the file being a result of the configuration process.

When starting the ddclient manually pointing to the correct config file it works.

Good job :-) yes please raise a Bug so this can be fixed...and a new package built
--
qui scribit bis legit