[Problem]: unable to update adapter
Description / Beschreibung
I'm not able to update any adapter. The update works fine (exit 0), but nothing has changed.
e.g:
root@iobroker:/opt/iobroker# iob update
Used repository: beta
Adapter "admin" : 7.0.24 , installed 7.0.22 [Updatable]
Adapter.....
updating via cli
root@iobroker:/opt/iobroker# iob upgrade admin
This upgrade of "admin" will introduce the following changes:
==========================================================================
-> 7.0.24:
Showed min/max limits by controlling the values
Corrected style for tabs
-> 7.0.23:
only automatically open the host notification dialog if warnings are available
improved style of host notification dialog
clarified auto upgrade options selection
Corrected the link in instances, e.g., for vis-2
Corrected the connection information in the instance tab
==========================================================================
Would you like to upgrade admin from @7.0.22 to @7.0.24 now? [(y)es, (n)o]: y
Update admin from @7.0.22 to @7.0.24
NPM version: 10.8.1
Installing [email protected]... (System call)
....
upload [1] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
upload [0] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/jsonConfig.json5 jsonConfig.json5 application/json5
root@iobroker:/opt/iobroker# more /opt/iobroker/node_modules/iobroker.admin/package.json
{
"name": "iobroker.admin",
"description": "The adapter opens a webserver for the ioBroker admin UI.",
"version": "**7.0.22**",
"contributors": [
and still:
root@iobroker:/opt/iobroker# iob update
Used repository: beta
Adapter "admin" : 7.0.24 , installed 7.0.22 [Updatable]
...
updating via admin also doesn't work
Image version
v10.0.0
Docker logs / Docker Protokoll
--------------------------------------------------------------------------------
------------------------- 2024-08-19 10:21:54 -------------------------
--------------------------------------------------------------------------------
----- -----
----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ -----
----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ -----
----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ -----
----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ -----
----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ -----
----- -----
----- Welcome to your ioBroker Docker container! -----
----- Startupscript is now running! -----
----- Please be patient! -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- System Information -----
----- arch: x86_64 -----
----- hostname: iobroker.wyse -----
----- -----
----- Version Information -----
----- image: v10.0.0 -----
----- build: 2024-08-14T06:18:29+00:00 -----
----- node: v20.16.0 -----
----- npm: 10.8.1 -----
----- -----
----- Environment Variables -----
----- IOB_ADMINPORT: 8081 -----
----- AVAHI: false -----
----- IOB_MULTIHOST: slave -----
----- IOB_OBJECTSDB_TYPE: redis -----
----- IOB_OBJECTSDB_HOST: 192.168.120.136 -----
----- IOB_OBJECTSDB_PORT: 6379 -----
----- IOB_STATESDB_TYPE: redis -----
----- IOB_STATESDB_HOST: 192.168.120.136 -----
----- IOB_STATESDB_PORT: 6379 -----
----- PACKAGES: nano -----
----- SETGID: 119 -----
----- SETUID: 1000 -----
----- USBDEVICES: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0;/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_d85af9ff5729ec11806a6c7840c9ce8d-if00-port0 -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- Step 1 of 5: Preparing Container -----
--------------------------------------------------------------------------------
This is not the first run of this container. Skipping first run preparation.
SETUID and/ or SETGID are set to custom values.
Changing UID to "1000" and GID to "119"... usermod: no changes
Done.
--------------------------------------------------------------------------------
----- Step 2 of 5: Detecting ioBroker Installation -----
--------------------------------------------------------------------------------
Existing installation of ioBroker detected in "/opt/iobroker".
--------------------------------------------------------------------------------
----- Step 3 of 5: Checking ioBroker Installation -----
--------------------------------------------------------------------------------
(Re)setting permissions (This might take a while! Please be patient!)... Done.
IOB_MULTIHOST is available and set to "slave".
Done.
Configuring objects db connection...
IOB_OBJECTSDB_TYPE is available and value meets detected ioBroker installation.
IOB_OBJECTSDB_HOST is available and value meets detected ioBroker installation.
IOB_OBJECTSDB_PORT is available and value meets detected ioBroker installation.
Done.
Configuring states db connection...
IOB_STATESDB_TYPE is available and value meets detected ioBroker installation.
IOB_STATESDB_HOST is available and value meets detected ioBroker installation.
IOB_STATESDB_PORT is available and value meets detected ioBroker installation.
Done.
Checking database connection... Done.
IOB_MULTIHOST is set to "slave". Hostname check will be skipped.
--------------------------------------------------------------------------------
----- Step 4 of 5: Applying Special Settings -----
--------------------------------------------------------------------------------
Some adapters have special requirements/ settings which can be activated by the use of environment variables.
For more information see ioBroker Docker image docs (https://docs.buanet.de/iobroker-docker-image/docs/).
USBDEVICES is set.
Setting permissions for "/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0"... Done.
Setting permissions for "/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_d85af9ff5729ec11806a6c7840c9ce8d-if00-port0"... Done.
--------------------------------------------------------------------------------
----- Step 5 of 5: ioBroker Startup -----
--------------------------------------------------------------------------------
Starting ioBroker...
##### #### ### ## # iobroker.js-controller log output # ## ### #### #####
================================== > LOG REDIRECT system.adapter.admin.0 => true [starting]
host.iobroker.wyse check instance "system.adapter.admin.2" for host "iobroker.wyse"
host.iobroker.wyse check instance "system.adapter.admin.0" for host "iobroker"
....
iob m upgrade also doesn't work, btw
As you have a multihost system, the admin should, as far as I know, only be installed on the master. Updates are then triggered by the Admin of the master, also on the slave.
As Marc said. There is no need to update/ upgrade or run any other command on a slave as the slave is fully managed by the master. There is also no need to run an admin instance on a slave.
Regards, André
the admin adaptor was just an example. every adaptor can't be updated. After downgrading to 9.1.2 it works fine
Did you try updating via admin on master? Cannot reproduce that.
Another thing might cause problems is when you are root. Please do not apply any iob command as root!