NEWS
Error 25 while updating adapter FIXED
-
@thomas-braun I am getting Permission denied in response
ap@AP-Tiny:~$ for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpangocairo-1.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpangoft2-1.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libgif.so.7': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/canvas.node.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas.node.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/color.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/init.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/ImageData.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/backend/SvgBackend.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/backend/PdfBackend.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/backend/ImageBackend.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/backend/Backend.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/CanvasPattern.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/Backends.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/init.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/Image.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/closure.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/color.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/Canvas.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/bmp/BMPParser.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/CanvasGradient.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas/src/register_font.o': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/obj.target/canvas.node': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpng16.so.16': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpcre.so.1': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libharfbuzz.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libglib-2.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libgobject-2.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libcairo.so.2': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libfreetype.so.6': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libfribidi.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libfontconfig.so.1': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libstdc++.so.6': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libgmodule-2.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/librsvg-2.so.2': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libcairo-gobject.so.2': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libz.so.1': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/canvas.node': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpixman-1.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libgdk_pixbuf-2.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libexpat.so.1': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libpango-1.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libgio-2.0.so.0': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libffi.so.7': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libxml2.so.2': Permission denied rm: cannot remove '/opt/iobroker/node_modules/.canvas-0HrdFhcM/build/Release/libjpeg.so.62': Permission denied
-
Then you did act as root in the past. Never never never log on as 'root'.
iob stop iob fix
And then the command again.
-
@thomas-braun Thank you, it works!
-
Please do yourself a favor and avoid being logged in as 'root'.
-
@ap2017 In addition, never use ‘sudo‘ in conjuction with iobroker. Use it only if you do any system updates, but NEVER EVER if you use commands which start with ‘iob‘ or ‘iobroker‘.
-
@wildbill Well, what about multiple instructions for different occasions with SUDO, for example
Update IoBroker Controller
cd /opt/iobroker
sudo iobroker stop
sudo iobroker update
sudo iobroker upgrade self
sudo iobroker startIOBroker FIXER
sudo iobroker stop
curl -sL https://iobroker.net/fix.sh | bash -
sudo iobroker startUpdate node.js
sudo apt-get --purge remove node
sudo apt-get --purge remove nodejs
sudo apt-get autoremove
sudo reboot
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
sudo reboot
cd /opt/iobroker
npm rebuild
iobroker start -
@ap2017 sagte in Error 25 while updating adapter FIXED:
sudo iobroker
Any iobroker command that starts with sudo is WRONG.
-
@thomas-braun I got it, thanks. All my examples are takes from forums... It is an important issue, may be worth dedicated announcement on forum
-
@ap2017 sagte in Error 25 while updating adapter FIXED:
All my examples are takes from forums...
They must be old.
No announcement required since you never use sudo as first try anyway. You always issue commands without and only when the system tells you that you don't have sufficient rights to execute as user you can think about pulling the 'sudo' card.That is the proper way of using linux.
-
@ap2017 sagte in Error 25 while updating adapter FIXED:
All my examples are takes from forums
depends on which forum you look at.
if it is this forum of the iobroker community itself,
@thomas-braun sagte in Error 25 while updating adapter FIXED:
They must be old.
or better: very, very old.
once upon a time iobroker had been installed with root privileges.
But that has been in the stone age of iobroker