Hauptmenü

Updateprobleme

Begonnen von Superposchi, 29 April 2021, 11:24:10

Vorheriges Thema - Nächstes Thema

kadettilac89

Zitat
Error code E403   
Summary:
Forbidden - passwordless sudo permissions required
Detail:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

You may add the following lines to /etc/sudoers.d/fhem:
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *

kommt die Meldung noch? Die sollte weg sein da sudo nun das setuid Bit gesettz hat.

Superposchi

Ganz ehrlich, ich weiß nicht mal mehr woher genau diese Ausgabe stammt.
Ich kann sie jedenfalls nicht reproduzieren.

Habe aber inzwischen festgestellt, dass meine npm-Version deutlich veraltet ist. Aktuell installiert ist 7.5.4 und aktuell ist 7.14.0

Hier noch mal ein List des Node.js Package Update Status
Internals:
   .FhemMetaInternals 1
   DEF        localhost
   FUUID      5fb930b8-f33f-793a-eb28-2a416f3146aea249
   FVERSION   42_npmjs.pm:v1.1.6-s20933/2020-01-10
   HOST       localhost
   NAME       fhemServerNpm
   NOTIFYDEV  global,fhemServerNpm
   NR         16
   NTFY_ORDER 50-fhemServerNpm
   STATE      error 'install homebridge-fhem alexa-fhem tradfri-fhem'
   TYPE       npmjs
   .attraggr:
   .attreocr:
     .*
   .attrminint:
   .attrtocr:
     .*
   .fhem:
     npm:
       cmd        install homebridge-fhem alexa-fhem tradfri-fhem
       debug      1
       host       localhost
       npmglobal  1
       errors:
         code       E403
         detail     sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"sudo: /usr/lib/sudo/sudoers.so must be only be writable by ownersudo: fatal error, unable to load plugins<br /><br />You may add the following lines to /etc/sudoers.d/fhem:
<pre>  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *</pre>
         summary    Forbidden - passwordless sudo permissions required
       installedpackages:
         error:
           code       E403
           detail     sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"sudo: /usr/lib/sudo/sudoers.so must be only be writable by ownersudo: fatal error, unable to load plugins<br /><br />You may add the following lines to /etc/sudoers.d/fhem:
<pre>  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *</pre>
           summary    Forbidden - passwordless sudo permissions required
       listedpackages:
         name       lib
         dependencies:
           gassistant-fhem:
             resolved   https://registry.npmjs.org/gassistant-fhem/-/gassistant-fhem-3.0.3.tgz
             version    3.0.3
           npm:
             resolved   https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
             version    7.5.4
       nodejsversions:
         ares       1.15.0
         brotli     1.0.7
         cldr       35.1
         http_parser 2.9.4
         icu        64.2
         modules    64
         napi       7
         nghttp2    1.41.0
         node       10.23.3
         openssl    1.1.1i
         tz         2019c
         unicode    12.1
         uv         1.34.2
         v8         6.8.275.32-node.59
         zlib       1.2.11
       outdatedpackages:
         npm:
           current    7.5.4
           dependent  global
           latest     7.14.0
           location   /usr/lib/node_modules/npm
           wanted     7.14.0
       updatedpackages:
         error:
           code       E403
           detail     sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set<br /><br />You may add the following lines to /etc/sudoers.d/fhem:
<pre>  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *
  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *</pre>
           summary    Forbidden - passwordless sudo permissions required
   READINGS:
     2021-05-22 16:07:18   .installedList  {"error":{"summary":"Forbidden - passwordless sudo permissions required","detail":"sudo: error in /etc/sudo.conf, line 0 while loading plugin \"sudoers_policy\"sudo: /usr/lib/sudo/sudoers.so must be only be writable by ownersudo: fatal error, unable to load plugins<br /><br />You may add the following lines to /etc/sudoers.d/fhem:\n<pre>  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *\n  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *\n  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *</pre>","code":"E403"}}
     2021-05-22 11:48:28   .packageList    {"listed":{"dependencies":{"gassistant-fhem":{"version":"3.0.3","resolved":"https://registry.npmjs.org/gassistant-fhem/-/gassistant-fhem-3.0.3.tgz"},"npm":{"version":"7.5.4","resolved":"https://registry.npmjs.org/npm/-/npm-7.5.4.tgz"}},"name":"lib"},"outdated":{"npm":{"latest":"7.14.0","current":"7.5.4","location":"/usr/lib/node_modules/npm","wanted":"7.14.0","dependent":"global"}},"versions":{"http_parser":"2.9.4","modules":"64","node":"10.23.3","ares":"1.15.0","napi":"7","unicode":"12.1","uv":"1.34.2","brotli":"1.0.7","openssl":"1.1.1i","nghttp2":"1.41.0","zlib":"1.2.11","icu":"64.2","v8":"6.8.275.32-node.59","tz":"2019c","cldr":"35.1"}}
     2021-05-14 17:10:07   .updatedList    {"error":{"summary":"Forbidden - passwordless sudo permissions required","detail":"sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set<br /><br />You may add the following lines to /etc/sudoers.d/fhem:\n<pre>  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm update *\n  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm install *\n  fhem ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm uninstall *</pre>","code":"E403"}}
     2021-05-22 12:06:12   installed       error
     2021-02-16 10:38:24   nodejsVersion   10.23.3
     2021-05-22 11:48:28   outdated        check completed
     2021-05-22 16:07:18   state           error 'install homebridge-fhem alexa-fhem tradfri-fhem'
     2021-04-18 15:28:42   updated         error
     2021-05-22 11:48:28   updatesAvailable 1
Attributes:
   alias      Node.js Package Update Status
   devStateIcon npm.updates.available:security@red:outdated npm.is.up.to.date:security@green:outdated .*npm.outdated.*in.progress:system_fhem_reboot@orange .*in.progress:system_fhem_update@orange warning.*:message_attention@orange error.*:message_attention@red
   event-on-change-reading .*
   group      Update
   icon       npm-old
   room       System
   timestamp-on-change-reading .*
   verbose    4


Und hier ein List des FHEM Installer Status:
Internals:
   .FhemMetaInternals 1
   FUUID      5fb930b9-f33f-793a-304a-092c55a64a79d3bf
   FVERSION   98_Installer.pm:v0.5.7-s20949/2020-01-12
   NAME       fhemInstaller
   NOTIFYDEV  global,fhemInstaller
   NR         17
   NTFY_ORDER 50-fhemInstaller
   STATE      error 'getCpanVersion'
   TYPE       Installer
   .attraggr:
   .attreocr:
     .*
   .attrminint:
   .attrtocr:
     .*
   .fhem:
     installer:
       cmd        getCpanVersion
       debug      1
       installPerlEnforced
       installPerlNoTest
       installPerlReinstall
       errors:
         HASH(0x5b182fc0)
       installedPerlPackages:
         success    0
         error:
           HASH(0x5b6a3528)
       listedPerlPackages:
         App::cpanminus:
           missing    /usr/local/bin/cpanm
           version    1.704400
         CPAN::DistnameInfo:
           missing    /usr/local/man/man3/CPAN::DistnameInfo.3pm
           version    0.120
         CPAN::Plugin::Sysdeps:
           missing    /usr/local/bin/cpan-sysdeps
           version    0
         CryptX:
           version    0.069
         ExtUtils::Config:
           missing    /usr/local/man/man3/ExtUtils::Config.3pm
           version    0
         ExtUtils::Helpers:
           missing    /usr/local/man/man3/ExtUtils::Helpers.3pm
           version    0
         ExtUtils::InstallPaths:
           missing    /usr/local/man/man3/ExtUtils::InstallPaths.3pm
           version    0
         Module::Build:
           version    0.423100
         Module::Build::Tiny:
           missing    /usr/local/man/man3/Module::Build::Tiny.3pm
           version    0
         Perl:
           version    5.028001
         Perl::PrereqScanner::NotQuiteLite:
           missing    /usr/local/bin/scan-perl-prereqs-nqlite
           version    0
         Protocol::WebSocket:
           version    0.260
         Regexp::Trie:
           missing    /usr/local/man/man3/Regexp::Trie.3pm
           version    0
         URI::cpan:
           missing    /usr/local/man/man3/URI::cpan.3pm
           version    0
         cpan::outdated:
           missing    /usr/local/bin/cpan-outdated
           version    0
         local::lib:
           missing    /usr/local/man/man3/POD2::DE::local::lib.3pm
           version    2.000024
   READINGS:
     2021-05-22 12:01:48   .installedListPerl {"success":0,"error":[{"summary":"Not Found - cpanm is not installed","detail":"sh: command not found: cpanm","code":"E404"}]}
     2021-03-01 17:58:24   .packageListPerl {"listedPerl":{"ExtUtils::Config":{"missing":"/usr/local/man/man3/ExtUtils::Config.3pm","version":0},"URI::cpan":{"version":0,"missing":"/usr/local/man/man3/URI::cpan.3pm"},"CPAN::Plugin::Sysdeps":{"missing":"/usr/local/bin/cpan-sysdeps","version":0},"Regexp::Trie":{"missing":"/usr/local/man/man3/Regexp::Trie.3pm","version":0},"Protocol::WebSocket":{"version":"0.260"},"Perl::PrereqScanner::NotQuiteLite":{"version":0,"missing":"/usr/local/bin/scan-perl-prereqs-nqlite"},"Module::Build::Tiny":{"version":0,"missing":"/usr/local/man/man3/Module::Build::Tiny.3pm"},"Perl":{"version":"5.028001"},"CPAN::DistnameInfo":{"version":"0.120","missing":"/usr/local/man/man3/CPAN::DistnameInfo.3pm"},"App::cpanminus":{"missing":"/usr/local/bin/cpanm","version":"1.704400"},"cpan::outdated":{"missing":"/usr/local/bin/cpan-outdated","version":0},"ExtUtils::Helpers":{"version":0,"missing":"/usr/local/man/man3/ExtUtils::Helpers.3pm"},"CryptX":{"version":"0.069"},"local::lib":{"version":"2.000024","missing":"/usr/local/man/man3/POD2::DE::local::lib.3pm"},"Module::Build":{"version":"0.423100"},"ExtUtils::InstallPaths":{"version":0,"missing":"/usr/local/man/man3/ExtUtils::InstallPaths.3pm"}},"error":[{"detail":"sh: 1: sudo: not found","summary":"Not Found - sudo is not installed","code":"E404"}]}
     2020-11-21 16:22:37   cpanminusVersion 1.7044
     2021-04-29 11:13:16   installedPerl   error
     2020-12-01 02:41:27   outdatedPerl    check completed
     2020-11-21 16:22:37   perlVersion     5.028001
     2021-05-22 16:06:17   state           error 'getCpanVersion'
     2020-11-21 16:23:20   updatesAvailablePerl 0
Attributes:
   alias      FHEM Installer Status
   devStateIcon .*updates.available:security@red:outdated up.to.date:security@green:outdated .*outdated.*in.progress:system_fhem_reboot@orange .*in.progress:system_fhem_update@orange warning.*:message_attention@orange error.*:message_attention@red
   event-on-change-reading .*
   group      Update
   icon       system_fhem
   room       System
   timestamp-on-change-reading .*
   verbose    4

kadettilac89

Wenn du den Status der Module anzeigen kannst funktioniert wahrschreinlich Sudo. Ich mache keine Updates da damit gassistant nicht mehr geht.

Update funktioniert aber grundsätzlich, habs grad getestet und dann den Container neu erstellt damit wieder alles funktioniert.

Beschreib nun was nicht geht, oder was du vorhast.

Superposchi

Eigentlich möchte ich nur das Spotify wieder läuft.
Das die beiden Update-Routinen auf Rot stehe ist mir prinzipiell egal solange alles funktioniert.

Aber ich kann nicht einschätzen wie die Zusammenhänge sind.

kadettilac89

Zeig mal die Spotify RAW-Definition. Die Zugangsdaten / Keys kannst aus-"x"-en.

Welche Version des Spotify-Modul hast du, da gibt es ein paar Änderungen in diversen Threads weil es nicht funktioniert.

... https://forum.fhem.de/index.php/topic,72490.240.html



Superposchi

Ich nutze kein Spotify-Modul. Das wurde doch durch das Googlecast abgelöst.

Ich habe immer nur auf meinen Google-Nest-Devices direkt Play mit einer Webadresse aus dem Spotify webplayer abgespielt.

kadettilac89

und was gehnt nun nicht?

Superposchi

Eben die Wiedergabe über die Googlecast Geräte

kadettilac89

Liegt vermutlich am Wlan

Superposchi

Ehrlich jetzt?
Veräppeln kann ich mich selbst.

Fraglich also warum das Notebook, dass auch nur über WLan angeschlossen ist, keinerlei Probleme hat und warum die Google-Nest mit Speak Befehlen, die ja erstmal nach Google geschickt werden und dann als Sprachdatei zurückkommen auch funktionieren.