3.8 Fails to update "Updater failed:"

I get the following message on the home page.

Error from 2017/09/15 04:58:09
Updater failed: 
[string "planner"]:175: attempt to index field '?' (a nil value)

Here’s my updater_crash.log:

Stack Traceback
===============
(2) Lua function '?' at line 64 of chunk '"logging"]'
	Local variables:
	 err = string: "[string \"planner\"]:175: attempt to index field '?' (a nil value)"
	 err2string = Lua function '?' (defined at line 45 of chunk "logging"])
	 msg = string: "\
[string \"planner\"]:175: attempt to index field '?' (a nil value)"
	 (*temporary) = table: 0x238cbd0  {msg:
[string "planner"]:175: attempt to index field '?' (a nil value)}
(3)  C function 'function: 0x7d65a0'
(4) Lua global 'sat_dep' at line 175 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 pkg = table: 0x1eb0cb0  {version:>= 2.4.2, tp:dep-package, name:knot-libknot}
	 version = string: ">= 2.4.2"
	 repository = nil
	 name = string: "knot-libknot"
	 group_var = number: 355
	 var = number: 356
	 (*temporary) = Lua function '?' (defined at line 44 of chunk "planner"])
	 (*temporary) = nil
	 (*temporary) = string: "modifier"
	 (*temporary) = string: "virtual"
	 (*temporary) = nil
	 (*temporary) = nil
	 (*temporary) = C function: 0x761b60
	 (*temporary) = string: "attempt to index field '?' (a nil value)"
(5) Lua global 'sat_dep_traverse' at line 201 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 deps = table: 0x1eb0cb0  {version:>= 2.4.2, tp:dep-package, name:knot-libknot}
	 reqpenalty = nil
(6) Lua global 'sat_dep_traverse' at line 220 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 deps = table: 0x1eb13e0  {tp:dep-and, sub:table: 0x1eb0b70}
	 reqpenalty = nil
	 wvar = number: 354
	 pvar = nil
	 pens = table: 0x238c6e0  {}
	 (for generator) = C function: 0x761b60
	 (for state) = table: 0x1eb0b70  {1:table: 0x1eb0cb0, 2:table: 0x1eb0e40, 3:libc, 4:knot-libknot, 5:libuv (more...)}
	 (for control) = number: 1
	 _ = number: 1
	 sub = table: 0x1eb0cb0  {version:>= 2.4.2, tp:dep-package, name:knot-libknot}
(7) Lua global 'sat_pkg_group' at line 139 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 name = string: "knot-resolver"
	 pkg_var = number: 312
	 pkg = table: 0xfcff20  {modifier:table: 0x1eaf110, candidates:table: 0xfcffa0}
	 sat_candidates = table: 0x2386880  {1:301, 2:313}
	 lastpen = number: 314
	 candidates = table: 0xfcffa0  {1:table: 0xbc0b10, 2:table: 0xbd2f90}
	 (for index) = number: 2
	 (for limit) = number: 2
	 (for step) = number: 1
	 i = number: 2
(8) Lua global 'sat_pkg_group' at line 136 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 name = string: "dns-resolver"
	 pkg_var = number: 300
	 pkg = table: 0x15d5150  {modifier:table: 0x16478b0, candidates:table: 0x15d51d0}
	 sat_candidates = table: 0x2385cb0  {1:301, 2:302, 3:304, 4:306, 5:308, 6:310}
	 lastpen = number: 311
	 candidates = table: 0x15d51d0  {1:table: 0xbc0b10, 2:table: 0xd11fa0, 3:table: 0x1301890, 4:table: 0x12ffa60 (more...)}
	 (for index) = number: 1
	 (for limit) = number: 6
	 (for step) = number: 1
	 i = number: 1
(9) Lua global 'sat_dep' at line 164 of chunk '"planner"]'
	Local variables:
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 pkg = table: 0xb603e0  {name:dns-resolver, tp:package, final:table: 0x16478b0}
	 version = nil
	 repository = nil
	 name = string: "dns-resolver"
(10) Lua upvalue 'sat_build' at line 277 of chunk '"planner"]'
	Local variables:
	 sat = userdata: 0x23584c8
	 pkgs = table: 0x7a1860  {kmod-video-gspca-vc032x:table: 0xc75c40, gnunet-social:table: 0x13fd720 (more...)}
	 requests = table: 0x7bd4a0  {1:table: 0xc6f5f0, 2:table: 0xc6f880, 3:table: 0xd2f550, 4:table: 0xd2f720 (more...)}
	 state = table: 0x23588f0  {pkgs:table: 0x7a1860, pkg2sat:table: 0x2358a30, sat:userdata: 0x23584c8 (more...)}
	 (for generator) = C function: 0x761b60
	 (for state) = table: 0x7bd4a0  {1:table: 0xc6f5f0, 2:table: 0xc6f880, 3:table: 0xd2f550, 4:table: 0xd2f720 (more...)}
	 (for control) = number: 28
	 _ = number: 28
	 req = table: 0xb60440  {package:table: 0xb603e0, priority:50, tp:install, critical:true}
	 req_var = number: 299
(11) Lua function '?' at line 470 of chunk '"planner"]'
	Local variables:
	 pkgs = table: 0x7a1860  {kmod-video-gspca-vc032x:table: 0xc75c40, gnunet-social:table: 0x13fd720 (more...)}
	 requests = table: 0x7bd4a0  {1:table: 0xc6f5f0, 2:table: 0xc6f880, 3:table: 0xd2f550, 4:table: 0xd2f720 (more...)}
	 sat = userdata: 0x23584c8
(12) tail call
	Local variables:
	 (*temporary) = C function: 0x7d65a0
(13) Lua function '?' at line 62 of chunk '"updater"]'
	Local variables:
	 entrypoint = string: "internal:entry_lua"

Can you please tell me your updater version?

1 Like

Is this the information needed?

opkg list-installed | grep upda update_mac - 1 updater-ng - 58.4.7-1

Yes that is what I need. Thank you.

Can you please run updater with trace output and send me that? It seems like you have discovered new bug.

pkgupdate -e TRACE 2>&1 | tee updater.log
gzip updater.log

I’ve captured the output as requested.

How should I send it to you?

Same issue here based on the updater_crash.log I run into the same problem.

Using private message or to email karel.koci@nic.cz

Sorry that it took me so long to look at your logs.

This seems to be following bug: https://gitlab.labs.nic.cz/turris/updater/updater/commit/f4b15f5df5aa2df4a7aacc8b3280fde51d1f50b4
It’s already solved but in newer version of updater. Quickest solution would be direct updater update. For Turris Omnia:

wget https://repo.turris.cz/omnia/packages/turrispackages/updater-ng_59.3-1_mvebu.ipk
opkg-trans -a updater-ng_59.3-1_mvebu.ipk -r opkg-trans
updater.sh
1 Like

https://repo.turris.cz/omnia/packages/turrispackages/updater-ng_59.3-1_mvebu.ipk
Resolving repo.turris.cz… 217.31.192.105, 2001:1488:ac15:ff80::105
Connecting to repo.turris.cz|217.31.192.105|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-10-28 14:25:17 ERROR 404: Not Found.

Package gone? I was waiting for the next update but hasn’t arrived yet and the error mails are driving me crazy now :slight_smile:

Hi
you need to use the latest package of updater:

https://repo.turris.cz/omnia/packages/turrispackages/updater-ng_59.3.3-1_mvebu.ipk

1 Like

K thanks, that worked. on 3.8.4 now