Skip to content
Contents
GuidesOpenWrt

OpenWrt upgrade: diagnose a stalled ddns-scripts installation without losing your settings

After restoring settings from 24.10.1 on 25.12.2, installation of ddns-scripts 2.8.2-r90 can stall in the post-install script. Note the last line. A ddns.apk-new message identifies a candidate configuration. Check the running transaction and the installed service files separately.

After restoring settings from 24.10.1 on 25.12.2, installation of ddns-scripts 2.8.2-r90 can stall in the post-install script. Note the last line. A ddns.apk-new message identifies a candidate configuration. Check the running transaction and the installed service files separately.

Identify the running transaction

In the existing wired SSH session run ps w and look for apk, the post-install script and dynamic_dns_updater.sh. Note the package version and the last change in progress. Do not run a second installation or delete the lock file while the transaction is writing. Keep logs locally and redact hostnames, update URLs and credentials before sharing.

apk list --installed ddns-scripts
apk info -L ddns-scripts | grep -E 'init.d/ddns|config/ddns'
ls -l /etc/init.d/ddns /etc/config/ddns /etc/config/ddns.apk-new
grep -nE 'USE_PROCD|start_service' /etc/init.d/ddns

Files and service entry point in ddns-scripts 2.8.6-r2 on a 25.12.6 guest

Compare the service entry point with the installed release

A package file list identifies paths. It cannot establish that the local script still matches the shipped file. The newer package pictured uses procd and passes -S to the updater. If the log repeatedly reports an unrecognized argument, compare the local script with the same package version from the same release feed in a separate directory. Only files built into the firmware have a copy in /rom.

Back up the active settings and any locally modified script to the management computer. Merge the settings you need during maintenance after the transaction exits and a matching package is available. Keep the credential-bearing configuration intact when inspecting .apk-new. Do not substitute a startup script from another release.

Use a DNS record you control. Watch the service log and check its value at the authoritative DNS server after the next normal update. A running process alone does not verify a successful update. If the change breaks the record, disable the test instance, restore the saved configuration and matching script, and check the previous record. The guest screenshot shows a healthy installation.

Move from opkg to apk on OpenWrt 25.12

Explore hardware

Comments