Updater still hanging


#1

My updater is hanging since weeks now and I have no idea how to fix the issue. The problem seems to be exactly the one in this thread, but unfortunatly I cannot apply the solution.

I never had dyndns enabled.

How do I find out what is blocking th updater?


#2

After manually deleting opkg.lock I see the following (after that the process seems to be idleing):

root@turris:~# pkgupdate
INFO:Detected existing journal. Trying to recover it.
INFO:Running post-install and post-rm scripts
Output from base-files.postinst:
uci: Entry not found
Output from resolver-conf.postinst:
/usr/lib/opkg/info//resolver-conf.postinst: /usr/lib/opkg/info/resolver-conf.postinst-pkg: line 4: /etc/uci-defaults/resolver-defaults: not found
chown: unknown user/group kresd:kresd
Output from knot-resolver.postinst:
+ '[' -z  ]
+ /etc/init.d/dnsmasq restart
udhcpc: started, v1.29.3
udhcpc: sending discover
udhcpc: no lease, failing
+ sleep 2
+ /etc/kresd/kresd.postinst.sh
/usr/lib/opkg/info//knot-resolver.postinst: /usr/lib/opkg/info/knot-resolver.postinst-pkg: line 6: /etc/kresd/kresd.postinst.sh: not found
+ /etc/kresd/convert_config.sh
/usr/lib/opkg/info//knot-resolver.postinst: /usr/lib/opkg/info/knot-resolver.postinst-pkg: line 7: /etc/kresd/convert_config.sh: not found
+ uci -q get resolver.common.prefered_resolver
+ '[' kresd '=' kresd ]
+ egrep -q '(1|yes|true|enabled|on)'
+ uci -q get resolver.common.forward_upstream

any hints?


#3

Nest update: I rolled back to the last automatic pre-update schnapps snapshot that has a corresponding post-update snapshot, ie the last snapshot that had a successful update afterwards.

Still, the same problem occurs after running pkgupdate.

What I found interesting: now I have a more detailed log and it contains:

INFO:Queue removal of python-uci

While the update hangs with:

Output from base-files.postinst:
uci: Entry not found
Output from dnssec-rootkey.postinst:
+ '[' -n  ]
+ /usr/sbin/cert-backup /etc/root.keys
Output from knot-resolver.postinst:
+ '[' -z  ]
+ /etc/init.d/dnsmasq restart
udhcpc: started, v1.29.3
udhcpc: sending discover
udhcpc: no lease, failing
+ sleep 2
+ /etc/kresd/kresd.postinst.sh
+ uci -q get resolver.kresd.static_domains
+ stat_dom=
+ '[' '!' -z  ]
+ /etc/init.d/resolver restart
+ rm /etc/kresd/kresd.postinst.sh
+ /etc/kresd/convert_config.sh
uci: Entry not found
+ rm /etc/kresd/convert_config.sh
+ uci -q get resolver.common.prefered_resolver
+ '[' kresd '=' kresd ]
+ uci -q get resolver.common.forward_upstream
+ egrep -q '(1|yes|true|enabled|on)'

So, might this uci thing be the problem?

One other interesting thing: I removed mwan3 before the update since I don’t use it anymore anyway, but the update still installed it again.