supervisor issueshttps://gitlab.nic.cz/turris/updater/supervisor/-/issues2019-05-06T17:50:00+02:00https://gitlab.nic.cz/turris/updater/supervisor/-/issues/41.0 has an invalid entry point2019-05-06T17:50:00+02:00Karel Koci1.0 has an invalid entry pointEntry point `updater-supervisor` is invalid. It fails with following error:
```
root@alfa: ~ # /usr/bin/updater-supervisor -d --rand-sleep
Traceback (most recent call last):
File "/__init__.py", line 2332, in resolve
AttributeError: mo...Entry point `updater-supervisor` is invalid. It fails with following error:
```
root@alfa: ~ # /usr/bin/updater-supervisor -d --rand-sleep
Traceback (most recent call last):
File "/__init__.py", line 2332, in resolve
AttributeError: module 'svupdater' has no attribute 'main'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 11, in <module>
load_entry_point('svupdater==1.0', 'console_scripts', 'updater-supervisor')()
File "/__init__.py", line 480, in load_entry_point
File "/__init__.py", line 2693, in load_entry_point
File "/__init__.py", line 2324, in load
File "/__init__.py", line 2334, in resolve
ImportError: module 'svupdater' has no attribute 'main'
```Turris OS 4.0https://gitlab.nic.cz/turris/updater/supervisor/-/issues/32Approvals does not require manual confirmation2022-07-27T14:39:59+02:00Josef SchlehoferApprovals does not require manual confirmationOn Turris 1.1 router, I'm using Approvals.
```
root@turris:~# uci export updater
package updater
config turris 'turris'
option mode 'branch'
option branch 'hbl'
config l10n 'l10n'
list langs 'cs'
config autorun 'autorun'
option e...On Turris 1.1 router, I'm using Approvals.
```
root@turris:~# uci export updater
package updater
config turris 'turris'
option mode 'branch'
option branch 'hbl'
config l10n 'l10n'
list langs 'cs'
config autorun 'autorun'
option enable '1'
option approvals '1'
```
And it seems that Approvals are not necessary since the update is installed anyway.
I got two notifications today:
- 5.28 am:
```
Update notifications
====================
Your approval is required to apply pending updates. You can grant it in the Foris administrative interface in the 'Updater' menu.
• Install libnetfilter-log 1.0.2-1
```
- 6.21 am:
```
Update notifications
====================
Changes performed by updater at 2022-03-18T05:21:23+00:00
• Updated package libnetfilter-log from version 1.0.1-3 to version 1.0.2-1
```
If you need some logs, please let me know, I will be gladly to help.Turris OS 6.0https://gitlab.nic.cz/turris/updater/supervisor/-/issues/7Updater is reported as disabled/not configured even if it was enabled2019-05-06T17:50:00+02:00Karel KociUpdater is reported as disabled/not configured even if it was enabledUpdater does does not run automatically and Foris sees it as not configured (visually does not allow updater to be disabled).
All releases from up to and including 4.0-alpha5 are affected.Updater does does not run automatically and Foris sees it as not configured (visually does not allow updater to be disabled).
All releases from up to and including 4.0-alpha5 are affected.Turris OS 4.0https://gitlab.nic.cz/turris/updater/supervisor/-/issues/14Can't update list of packages.2020-04-09T14:18:01+02:00Bogdan BodnarCan't update list of packages.```
Error:
Remote Exception: Internal error Invalid argument('<class 'uci.UciException'>')
Extra:
{"module": "updater", "action": "update_settings", "kind": "request", "data": {"languages": ["cs", "de"], "user_lists": [{"name": "3g"}], ...```
Error:
Remote Exception: Internal error Invalid argument('<class 'uci.UciException'>')
Extra:
{"module": "updater", "action": "update_settings", "kind": "request", "data": {"languages": ["cs", "de"], "user_lists": [{"name": "3g"}], "enabled": true, "approval_settings": {"status": "on"}}}
Trace:
Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/foris_controller/message_router.py", line 117, in process_message data = module_instance.perform_action(message["action"], message.get("data", {})) File "/usr/lib/python3.7/site-packages/foris_controller/module_base.py", line 61, in perform_action res = action_function(data) File "/usr/lib/python3.7/site-packages/foris_controller_modules/updater/__init__.py", line 54, in action_update_settings data["enabled"], File "/usr/lib/python3.7/site-packages/foris_controller/utils.py", line 113, in inner res = func(*args, **kwargs) File "/usr/lib/python3.7/site-packages/foris_controller_modules/updater/handlers/openwrt.py", line 62, in update_settings user_lists, languages, approvals_status, approvals_delay, enabled File "/usr/lib/python3.7/site-packages/foris_controller_backends/updater/__init__.py", line 76, in update_settings svupdater_lists.update_pkglists(self._jsonschema_to_svupdater(user_lists)) File "/usr/lib/python3.7/site-packages/svupdater/lists.py", line 108, in update_pkglists uci.set('pkglists', 'pkglists', 'pkglist', list(lists.keys())) File "/__init__.py", line 134, in set uci.UciException: Invalid argument
```https://gitlab.nic.cz/turris/updater/supervisor/-/issues/12No show notification about an update package.2019-12-18T12:51:23+01:00Jan HoracekNo show notification about an update package.Updater doesn't show/send information about install/uninstall packages. Show only release notes. Last relevant information from a log is:
```
Dec 16 19:46:22 turris updater[8849]: src/pkgupdate/main.c:39 (results_interpret): Failed op...Updater doesn't show/send information about install/uninstall packages. Show only release notes. Last relevant information from a log is:
```
Dec 16 19:46:22 turris updater[8849]: src/pkgupdate/main.c:39 (results_interpret): Failed operations:
turris-netboot-tools/postinst: udhcpc: started, v1.28.4
udhcpc: sending discover
udhcpc: no lease, failing
udhcpc: started, v1.28.4
udhcpc: sending discover
udhcpc: no lease, failing
Regenerating configuration...
Getting new rootfs...
Downloading 'https://repo.turris.cz/hbs/netboot/mox-netboot-latest.tar.gz'
Connecting to 2001:1488:ac15:ff80::69:443
Writing to '/srv/turris-netboot/rootfs/rootfs-new.tar.gz'
/srv/turris-netboot/ 0% | | 65230 0:11:10 ETA
/srv/turris-netboot/ 0% | | 143k 0:09:53 ETA
/srv/turris-netboot/ 0% | | 191k 0:11:06 ETA
/srv/turris-netboot/ 0% | | 303k 0:09:19 ETA
/srv/turris-netboot/ 0% | | 335k 0:10:32 ETA
/srv/turris-netboot/ 0% | | 367k 0:11:32 ETA
/srv/turris-netboot/ 0% |
Dec 16 19:47:01 turris /usr/sbin/cron[25721]: (root) CMD (/usr/bin/rainbow_button_sync.sh)
```Turris OS 4.0.3https://gitlab.nic.cz/turris/updater/supervisor/-/issues/21Exception thrown when approvals are being used2020-11-27T23:24:17+01:00Karel KociException thrown when approvals are being usedThis seems to happen when delayed updates are configured.
```
2020-11-13 13:59:48 info updater-supervisor[]: Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 11, in <module>
load_entry_point('svupdater=...This seems to happen when delayed updates are configured.
```
2020-11-13 13:59:48 info updater-supervisor[]: Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 11, in <module>
load_entry_point('svupdater==1.3.1', 'console_scripts', 'updater-supervisor')()
File "/usr/lib/python3.7/site-packages/svupdater/__main__.py", line 103, in main
File "/usr/lib/python3.7/site-packages/svupdater/_supervisor.py", line 160, in run
File "/usr/lib/python3.7/site-packages/svupdater/_supervisor.py", line 77, in run
File "/usr/lib/python3.7/site-packages/svupdater/approvals.py", line 157, in _approved
TypeError: '>' not supported between instances of 'NoneType' and 'int'
```Turris OS 5.1.5https://gitlab.nic.cz/turris/updater/supervisor/-/issues/23Exception thrown when running in CLI2020-12-01T09:35:16+01:00Josef SchlehoferException thrown when running in CLIIntroduced in version 1.4.0 by this commit https://gitlab.nic.cz/turris/updater/supervisor/-/commit/772939b06cd4d795bb0fc2ea17a5e5860a9cb23c
```
root@omnia:~# updater-supervisor --autorun
Traceback (most recent call last):
File "/usr/...Introduced in version 1.4.0 by this commit https://gitlab.nic.cz/turris/updater/supervisor/-/commit/772939b06cd4d795bb0fc2ea17a5e5860a9cb23c
```
root@omnia:~# updater-supervisor --autorun
Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 11, in <module>
load_entry_point('svupdater==1.4.1', 'console_scripts', 'updater-supervisor')()
File "/usr/lib/python3.7/site-packages/svupdater/__main__.py", line 76, in main
TypeError: '>' not supported between instances of 'NoneType' and 'int'
```
```
root@omnia:~# updater-supervisor
Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 11, in <module>
load_entry_point('svupdater==1.4.1', 'console_scripts', 'updater-supervisor')()
File "/usr/lib/python3.7/site-packages/svupdater/__main__.py", line 76, in main
TypeError: '>' not supported between instances of 'NoneType' and 'int'
```Turris OS 5.2.0https://gitlab.nic.cz/turris/updater/supervisor/-/issues/27Fix notification about changes after changelog replaced statelog2022-02-15T16:06:00+01:00Karel KociFix notification about changes after changelog replaced statelogIn turris/updater/updater!292 the statelog was removed and now there is changelog. The notification supervisor generates now should be generated from that log instead.
The second change that is tied to this is removal of error and crash...In turris/updater/updater!292 the statelog was removed and now there is changelog. The notification supervisor generates now should be generated from that log instead.
The second change that is tied to this is removal of error and crash log file. These are removed without any replacement and internal handling of logs from pkgupdate should be used instead.https://gitlab.nic.cz/turris/updater/supervisor/-/issues/31AttributeError: 'NoneType' object has no attribute 'next_window'2022-03-17T09:11:17+01:00Jan KlosAttributeError: 'NoneType' object has no attribute 'next_window'Clean install of HBL/6.0 from medkit, every two hours:
```
Mar 11 05:00:02 tudddis updater-supervisor: Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 33, in <module>
sys.exit(load_entry_point('svupdat...Clean install of HBL/6.0 from medkit, every two hours:
```
Mar 11 05:00:02 tudddis updater-supervisor: Traceback (most recent call last):
File "/usr/bin/updater-supervisor", line 33, in <module>
sys.exit(load_entry_point('svupdater==1.5.1', 'console_scripts', 'updater-supervisor')())
File "/usr/lib/python3.9/site-packages/svupdater/__main__.py", line 87, in main
AttributeError: 'NoneType' object has no attribute 'next_window'
```
100% related to the recent changes with update windows.
Automatic installation, the command that is actually run is '/usr/bin/updater-supervisor -d --autorun --rand-sleep --no-network-fail' + no auto_approve_start/end in UCI.
It's pretty clear that there should be a check for auto_approve_window() not returning None - auto_approve_window is optional...https://gitlab.nic.cz/turris/updater/supervisor/-/issues/34Updater throws instead logs updating errors2022-11-04T16:51:08+01:00Adam UhlířUpdater throws instead logs updating errorsUpdater started to fail with Stack Traceback instead of reporting the error ( "perlbase-ipc not available" ):
Running on HBL branch.
```
Updater execution failed:
Stack Traceback
===============
(1) Lua function '?' at line 57 of ch...Updater started to fail with Stack Traceback instead of reporting the error ( "perlbase-ipc not available" ):
Running on HBL branch.
```
Updater execution failed:
Stack Traceback
===============
(1) Lua function '?' at line 57 of chunk '"logging"]'
Local variables:
err = Requested package perlbase-ipc that is not available. {msg:Requested package perlbase-ipc that is not available., tp:error, reason:inconsistent (more...)}
err2string = Lua function '?' (defined at line 38 of chunk "logging"])
msg = string: "\
inconsistent: Requested package perlbase-ipc that is not available."
(*temporary) = table: 0x51cb080 {msg:
inconsistent: Requested package perlbase-ipc that is not available. (more...)}
(2) C function 'function: 0x238e360'
(3) upvalue C function 'error'
(4) Lua local 'pkg_plan' at line 358 of chunk '"planner"]'
Local variables:
plan_pkg = table: 0x273a430 {tp:package, name:perlbase-ipc, final:table: 0x3878550}
ignore_missing = boolean: false
ignore_missing_pkg = boolean: false
only_version = nil
parent_str = string: "Requested package"
name = string: "perlbase-ipc"
missing_pkg = number: 608
(5) Lua function '?' at line 470 of chunk '"planner"]'
Local variables:
pkgs = table: 0x235f560 {luci-i18n-cshark-he:table: 0x2dc1540, kmod-video-gspca-vc032x:table: 0x3b1ce60 (more...)}
requests = table: 0x2369890 {1:table: 0x3953240, 2:table: 0x3954950, 3:table: 0x3954d80, 4:table: 0x3955280 (more...)}
sat = userdata: 0x45ceb38
satmap = table: 0x45c86b0 {pkgs:table: 0x235f560, pkg2sat:table: 0x45c78d0, sat:userdata: 0x45ceb38 (more...)}
plan = table: 0x5095df0 {1:table: 0x517d360, 2:table: 0x517d330, 3:table: 0x517d510, 4:table: 0x517d8c0 (more...)}
planned = table: 0x5095e20 {kmod-usb-storage-uas:8, libevent2:57, libc:2, liblua:46, kmod-lib-zlib-deflate:90 (more...)}
wstack = table: 0x5095e50 {}
inwstack = table: 0x5095e80 {}
inconsistent = table: 0x5095eb0 {}
missing_dep = table: 0x5095ee0 {}
pkg_plan = Lua function '?' (defined at line 345 of chunk "planner"])
(for generator) = C function: 0xb6f226a0
(for state) = table: 0x2369890 {1:table: 0x3953240, 2:table: 0x3954950, 3:table: 0x3954d80, 4:table: 0x3955280 (more...)}
(for control) = number: 37
_ = number: 37
req = table: 0x2430f10 {package:table: 0x273a430, priority:50, tp:install}
(6) tail call
Local variables:
(*temporary) = C function: 0x238e360
(7) tail call
Local variables:
(*temporary) = C function: 0x238e360
(8) Lua function '?' at line 71 of chunk '"updater"]'
Local variables:
entrypoint = string: "file:///etc/updater/conf.lua"
```Turris OS 6.0Michal HruseckyMichal Hrusecky2022-08-18