Autor Thema: SYNOLOGY DS415+ DSM 6.0.2-8451- Cannot load module MQTT  (Gelesen 757 mal)

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
SYNOLOGY DS415+ DSM 6.0.2-8451- Cannot load module MQTT
« am: 15 Januar 2017, 17:47:54 »
Moin,

mir hat es heute, ohne Fremdeinwirkung meinerseits, mein MQTT in meiner FHEM-Hauptinstanz zerschossen.
Die FHEM-Instanz ist MQTT-mäßig offensichtlich tot.

Als Fehlermeldung erhalte ich:
ERROR:
Cannot load module MQTT Cannot load module MQTT_DEVICE ......
und davon reichlich.....

Was ich bisher gemacht habe:
  • FHEM-Update, kann ja erstmal nicht schaden
  • Dann habe ich mal im FHEM Verzeichnis geschaut, die Files sind vorhanden
  • Rechte sehen auch normal aus

-rw-r--r-- 1 root root  16048 Jan 15 17:25 00_MQTT.pm
-rw-r--r-- 1 root root   7475 Aug 12  2015 10_MQTT_BRIDGE.pm
-rw-r--r-- 1 root root   8156 Aug 12  2015 10_MQTT_DEVICE.pm

Versionen:
Latest Revision: 13078

File                Rev   Last Change

fhem.pl             13054 2017-01-13 16:08:17Z rudolfkoenig
90_at.pm            12717 2016-12-05 21:53:35Z rudolfkoenig
98_autocreate.pm    11984 2016-08-19 12:47:50Z rudolfkoenig
No Id found for 99_backup.pm
No Id found for 99_CULflash.pm
93_DbLog.pm         13063 2017-01-14 15:09:25Z DS_Starter
98_dummy.pm         12700 2016-12-02 16:49:42Z rudolfkoenig
01_FHEMWEB.pm       13066 2017-01-14 20:18:05Z rudolfkoenig
92_FileLog.pm       13069 2017-01-14 20:25:15Z rudolfkoenig
95_FLOORPLAN.pm     11443 2016-05-15 14:17:21Z ulimaass
No Id found for 99_JsonList.pm
00_MQTT.pm          12937 2017-01-02 20:01:32Z eisler
10_MQTT_DEVICE.pm    6935 2014-11-09 20:35:34Z ntruchsess
91_notify.pm        11984 2016-08-19 12:47:50Z rudolfkoenig
33_readingsGroup.pm 12774 2016-12-14 17:16:09Z justme1968
99_SUNRISE_EL.pm    12485 2016-11-01 15:18:51Z rudolfkoenig
98_SVG.pm           12482 2016-11-01 09:25:59Z rudolfkoenig
98_telnet.pm        11984 2016-08-19 12:47:50Z rudolfkoenig
No Id found for 99_TimeUtils.pm
98_update.pm        12801 2016-12-17 16:52:31Z rudolfkoenig
99_Utils.pm         11984 2016-08-19 12:47:50Z rudolfkoenig
98_version.pm       11987 2016-08-19 17:13:41Z markusbloch
99_XmlList.pm        1840 2012-09-12 13:52:08Z rudolfkoenig

Blocking.pm         12648 2016-11-24 12:15:25Z rudolfkoenig
No Id found for Constants.pm
DevIo.pm            12716 2016-12-05 09:11:31Z rudolfkoenig
GPUtils.pm           6653 2014-10-02 11:59:37Z ntruchsess
HttpUtils.pm        12740 2016-12-11 12:57:36Z rudolfkoenig
myUtilsTemplate.pm   7570 2015-01-14 18:31:44Z rudolfkoenig
RTypes.pm           10476 2016-01-12 21:03:33Z borisneubert
TcpServerUtils.pm   11908 2016-08-06 15:09:55Z rudolfkoenig

Was schlaueres fällt mir momentan nicht ein.
Wäre sehr um Hilfe verlegen, da die Fernsehbeleuchtung meiner Frau darüber gesteuert wird.... ::)


Danke für eure Unterstützung.
Pf@nne
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #1 am: 15 Januar 2017, 18:41:39 »
Nachladen war auch erfolglos....

reload 00_MQTT.pm

Attempt to reload Net/MQTT/Message.pm aborted.
Compilation failed in require at /usr/local/FHEM/share/fhem/FHEM/00_MQTT.pm line 74.
BEGIN failed--compilation aborted at /usr/local/FHEM/share/fhem/FHEM/00_MQTT.pm line 74.

reload 10_MQTT_DEVICE.pm

Can't continue after import errors at /usr/local/FHEM/share/fhem/FHEM/10_MQTT_DEVICE.pm line 65.
BEGIN failed--compilation aborted at /usr/local/FHEM/share/fhem/FHEM/10_MQTT_DEVICE.pm line 73.

reload 10_MQTT_BRIDGE.pm

Can't continue after import errors at /usr/local/FHEM/share/fhem/FHEM/10_MQTT_BRIDGE.pm line 71.
BEGIN failed--compilation aborted at /usr/local/FHEM/share/fhem/FHEM/10_MQTT_BRIDGE.pm line 80.

Hat denn keiner einen Anhaltspunkt....
« Letzte Änderung: 15 Januar 2017, 18:47:43 von Pf@nne »
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline eisler

  • Developer
  • Full Member
  • ****
  • Beiträge: 141
    • Hausautomatisierung.co
Antw:Cannot load module MQTT
« Antwort #2 am: 15 Januar 2017, 19:06:42 »
Hallo,

das sieht nach Problemen mit dem Perl CPAN Modul Net::MQTT::Message aus.
ist das installiert?

Grüße
Stephan

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #3 am: 15 Januar 2017, 20:15:00 »
Moin Stephan,

na da fragst u mich was...... :o

Wie kann ich das überprüfen?

Gruß
Pf@nne
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #4 am: 15 Januar 2017, 20:20:53 »
Perl, könnte gut sein!
Meine DS hat vor 20h ein Systemupdate gefahren.....

Was muss ich jetzt kontrollieren, bzw. nachinstallieren.....

Gruß
Pf@nne
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline eisler

  • Developer
  • Full Member
  • ****
  • Beiträge: 141
    • Hausautomatisierung.co
Antw:Cannot load module MQTT
« Antwort #5 am: 15 Januar 2017, 21:46:26 »

cpan -i Net::MQTT::Message
könnte helfen.

Grüße
Stephan

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #6 am: 16 Januar 2017, 19:13:32 »
OK, da scheint ein Problem zu sein....

admin@PFANNE-NET-NAS:/volume1/@appstore/FHEM/share/fhem$ cpan -i Net::MQTT::Message
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/var/services/homes/admin/.cpan/Metadata'
  Database was generated on Mon, 16 Jan 2017 17:41:02 GMT
Running install for module 'Net::MQTT::Message'
Checksum for /var/services/homes/admin/.cpan/sources/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz ok
Configuring B/BE/BEANZ/Net-MQTT-1.163170.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Module::Pluggable 0 not found.
CONFIG key 'lddlflags' does not exist in Config.pm
CONFIG key 'ldflags' does not exist in Config.pm
Generating a Unix-style Makefile
Writing Makefile for Net::MQTT
Writing MYMETA.yml and MYMETA.json
  BEANZ/Net-MQTT-1.163170.tar.gz
  /usr/local/bin/perl Makefile.PL -- OK
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
---- Unsatisfied dependencies detected during ----
----      BEANZ/Net-MQTT-1.163170.tar.gz      ----
    Module::Pluggable [requires]
Running install for module 'Module::Pluggable'
Checksum for /var/services/homes/admin/.cpan/sources/authors/id/S/SI/SIMONW/Module-Pluggable-5.2.tar.gz ok
Configuring S/SI/SIMONW/Module-Pluggable-5.2.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
CONFIG key 'lddlflags' does not exist in Config.pm
CONFIG key 'ldflags' does not exist in Config.pm
Generating a Unix-style Makefile
Writing Makefile for Module::Pluggable
Writing MYMETA.yml and MYMETA.json
  SIMONW/Module-Pluggable-5.2.tar.gz
  /usr/local/bin/perl Makefile.PL -- OK
Running make for S/SI/SIMONW/Module-Pluggable-5.2.tar.gz
---- Unsatisfied dependencies detected during ----
----    SIMONW/Module-Pluggable-5.2.tar.gz    ----
    Module::Runtime [requires,optional]
  SIMONW/Module-Pluggable-5.2.tar.gz
  make -- NOT OK
Running install for module 'Module::Runtime'
Checksum for /var/services/homes/admin/.cpan/sources/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.014.tar.gz ok
Configuring Z/ZE/ZEFRAM/Module-Runtime-0.014.tar.gz with Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Runtime' version '0.014'
  ZEFRAM/Module-Runtime-0.014.tar.gz
  /usr/local/bin/perl Build.PL -- OK
Running Build for Z/ZE/ZEFRAM/Module-Runtime-0.014.tar.gz
Building Module-Runtime
Cannot find "Lexical::SealRequireHints" in podpath: cannot find suitable replacement path, cannot resolve link
Cannot find "Lexical::SealRequireHints" in podpath: cannot find suitable replacement path, cannot resolve link
Cannot find "Lexical::SealRequireHints" in podpath: cannot find suitable replacement path, cannot resolve link
  ZEFRAM/Module-Runtime-0.014.tar.gz
  ./Build -- OK
Running Build test
t/cmn.t ............. ok
t/dependency.t ...... ok
t/import_error.t .... ok
t/ivmn.t ............ ok
t/ivms.t ............ ok
t/mnf.t ............. ok
t/pod_cvg.t ......... skipped: Test::Pod::Coverage not available
t/pod_syn.t ......... skipped: Test::Pod not available
t/rm.t .............. ok
t/taint.t ........... ok
t/um.t .............. ok
t/upo.t ............. ok
t/upo_overridden.t .. ok
All tests successful.
Files=13, Tests=365,  1 wallclock secs ( 0.18 usr  0.02 sys +  0.95 cusr  0.11 csys =  1.26 CPU)
Result: PASS
  ZEFRAM/Module-Runtime-0.014.tar.gz
  ./Build test -- OK
Running Build install
Building Module-Runtime
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/doc/perl/html/site/lib/Module'
mkdir /usr/local/share/doc: Permission denied at /usr/local/share/perl5/core_perl/ExtUtils/Install.pm line 477.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at /usr/local/share/perl5/vendor_perl/Module/Build/Base.pm line 3559.
  ZEFRAM/Module-Runtime-0.014.tar.gz
  ./Build install  -- NOT OK
  BEANZ/Net-MQTT-1.163170.tar.gz
  Has already been unwrapped into directory /var/services/homes/admin/.cpan/build/Net-MQTT-1.163170-We5oaI
  BEANZ/Net-MQTT-1.163170.tar.gz
  Has already been prepared
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
Warning: Prerequisite 'Module::Pluggable => 0' for 'BEANZ/Net-MQTT-1.163170.tar.gz' failed when processing 'SIMONW/Module-Pluggable-5.2.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
  BEANZ/Net-MQTT-1.163170.tar.gz
  make -- NOT OK

Scheinbar kann er ein Verzeichnis nicht anlegen.....
Ich bin jetzt aber auch nicht so der Linuxspezi, was kann ich tu um das Schreiben des DIR zu ermöglichen?

Gruß
Pf@nne
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #7 am: 16 Januar 2017, 19:39:27 »
Ich habe cpan -i Net::MQTT::Message mal als sudo ausgeführt....
Das DIR konnte er jetzt anlegen.... aber er mecker immer noch:

admin@PFANNE-NET-NAS:/volume1$ sudo cpan -i Net::MQTT::Message
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 16 Jan 2017 18:17:03 GMT
Running install for module 'Net::MQTT::Message'
Checksum for /root/.cpan/sources/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz ok
Configuring B/BE/BEANZ/Net-MQTT-1.163170.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Module::Pluggable 0 not found.
CONFIG key 'lddlflags' does not exist in Config.pm
CONFIG key 'ldflags' does not exist in Config.pm
Generating a Unix-style Makefile
Writing Makefile for Net::MQTT
Writing MYMETA.yml and MYMETA.json
  BEANZ/Net-MQTT-1.163170.tar.gz
  /usr/local/bin/perl Makefile.PL -- OK
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
---- Unsatisfied dependencies detected during ----
----      BEANZ/Net-MQTT-1.163170.tar.gz      ----
    Module::Pluggable [requires]
Running install for module 'Module::Pluggable'
Checksum for /root/.cpan/sources/authors/id/S/SI/SIMONW/Module-Pluggable-5.2.tar.gz ok
Configuring S/SI/SIMONW/Module-Pluggable-5.2.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
CONFIG key 'lddlflags' does not exist in Config.pm
CONFIG key 'ldflags' does not exist in Config.pm
Generating a Unix-style Makefile
Writing Makefile for Module::Pluggable
Writing MYMETA.yml and MYMETA.json
  SIMONW/Module-Pluggable-5.2.tar.gz
  /usr/local/bin/perl Makefile.PL -- OK
Running make for S/SI/SIMONW/Module-Pluggable-5.2.tar.gz
  SIMONW/Module-Pluggable-5.2.tar.gz
  make -- NOT OK
  BEANZ/Net-MQTT-1.163170.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Net-MQTT-1.163170-fgnlSo
  BEANZ/Net-MQTT-1.163170.tar.gz
  Has already been prepared
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
Warning: Prerequisite 'Module::Pluggable => 0' for 'BEANZ/Net-MQTT-1.163170.tar.gz' failed when processing 'SIMONW/Module-Pluggable-5.2.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
  BEANZ/Net-MQTT-1.163170.tar.gz
  make -- NOT OK
FHEM auf: DS415+ (Master), Raspberry Pi 2

Offline eisler

  • Developer
  • Full Member
  • ****
  • Beiträge: 141
    • Hausautomatisierung.co
Antw:Cannot load module MQTT
« Antwort #8 am: 17 Januar 2017, 09:07:01 »
Das Problem sieht sehr Synology spezifisch aus.
Make installieren könnte helfen:

ipkg install make
Grüße
Stephan

Offline hexenmeister

  • Developer
  • Hero Member
  • ****
  • Beiträge: 3433
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #9 am: 17 Januar 2017, 12:31:57 »
Sehe ich auch so. CPAN will nicht, weil kein make da. Evtl. gibt es die Lib als Linux-Paket? Kenne mich leider mit Synology überhaupt nicht aus.
Cubietruck, RPI3, HM, EnOcean, 1wire, Firmata, MySensors, ESP8266, ESPEasy, MQTT, NodeRED, Alexa, Telegram

Offline Pf@nne

  • Sr. Member
  • ****
  • Beiträge: 799
    • tech_LogBuch
Antw:Cannot load module MQTT
« Antwort #10 am: 17 Januar 2017, 18:42:09 »
 ;D ;D ;D ;D

Klasse, vielen Dank!
Nach der Installation von make lief CPAN durch!

Die Frau kann wieder von Tablet steuern..... 8)
FHEM auf: DS415+ (Master), Raspberry Pi 2

 

decade-submarginal