Modify

Opened 7 years ago

Closed 3 years ago

#8875 closed defect (moved_to_github)

ddns-scrips are not being triggered

Reported by: jjross@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Please see the thread here:

https://forum.openwrt.org/viewtopic.php?id=28414

Basically, recent builds of the ddns scripts (from trunk) don't seem to be working.

I currently have the following version installed:

ddns-scripts - 1.0.0-12
luci-app-ddns - 0.10+svn6841-1

I can see that the script is running when I do a "ps" but they don't seem to actually execute. When I manually execute them, nothing is output to the console, nor is anything in the logs.

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by ben@…

Under Backfire rc4 r25206, I was able to get ddns-scripts working for DynDNS by changing the following line in /etc/config/ddns:

option 'service_name' 'dyndns.org'

to this:

option 'service_name' 'dyndns'

I'm guessing it is luci-app-ddns which is generating the wrong config value for DynDNS.org?

My relevant pkg versions:

ddns-scripts - 1.0.0-12
luci-app-ddns - 0.10+svn7109-1

comment:2 Changed 6 years ago by F1aw <admin@…>

The proposed workaround by @Ben did not work for me with Backfire r27837.
I have got it to work by commenting out 3 lines in /usr/lib/ddns/dynamic_dns_functions.sh

start_daemon_for_all_ddns_sections()
{

local event_interface="$1"

SECTIONS=""
config_cb()
{

SECTIONS="$SECTIONS $2"

}
config_load "ddns"

for section in $SECTIONS
do

# local iface
# config_get iface "$section" interface "wan"

# [ "$iface" = "$event_interface" ]
continue

/usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 &

done

}

Instead of "wan" I have also tried putting the actual name of my Wireless interface "Wifi". That did not work either.

comment:3 Changed 6 years ago by F1aw <admin@…>

The reason start_daemon_for_all_ddns_sections did not work before, is because it requires an interface name as a parameter. Now when I use the following to start the ddns updater:

sh
. /usr/lib/ddns/dynamic_dns_functions.sh
start_daemon_for_all_ddns_sections "wan"
exit

Everything work fine without modifying the /usr/lib/ddns/dynamic_dns_functions.sh file.

comment:4 Changed 5 years ago by rbeede

I'm having this problem with OpenWrt Attitude Adjustment 12.09 / LuCI 0.11.1 Release (0.11.1)

Calling /usr/lib/ddns/dynamic_dns_updater.sh myddns from the command-line works, but it isn't running if I reboot.

The work around is to add it to rc.local.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

comment:6 Changed 3 years ago by jogo

  • Resolution set to moved_to_github
  • Status changed from new to closed

ddns-scripts has been moved to https://www.github.com/openwrt/packages. If the issue still persists, please open a ticket there.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.