genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
388 stars 154 forks source link

MySensors installation error #329

Closed flatsiedatsie closed 5 years ago

flatsiedatsie commented 5 years ago

The log shows this error when trying to install MySensors:

2018-09-04 17:48:40.3923 Info HomeAutomation.EnergyMonitor  1   -   Program.UiRefresh   Energy Monitor data updated
2018-09-04 17:48:40.3948 Info HomeAutomation.HomeGenie  Scheduler   Scheduler Routed Event  Scheduler.OnModuleUpdateStart   Behavior.SensorTimeout
2018-09-04 17:48:40.3961 Info HomeAutomation.HomeGenie  Scheduler   Scheduler Routed Event  Scheduler.OnModuleUpdateEnd Behavior.SensorTimeout
2018-09-04 17:48:40.4845 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Modules.Get/HomeAutomation.EnergyMonitor/1/ [OPEN]
2018-09-04 17:48:40.4878 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Modules.Get/HomeAutomation.EnergyMonitor/1/ [CLOSED AFTER 0.003 seconds]
2018-09-04 17:48:40.5328 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Package.Get/https%3A%2F%2Fraw.githubusercontent.com%2Fgenielabs%2Fhomegenie-packages%2Fmaster%2Fpackages%2FDevices%2520and%2520Things%2FMySensors [OPEN]
2018-09-04 17:48:40.5961 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Package.Get/https%3A%2F%2Fraw.githubusercontent.com%2Fgenielabs%2Fhomegenie-packages%2Fmaster%2Fpackages%2FDevices%2520and%2520Things%2FMySensors [CLOSED AFTER 0.063 seconds]
2018-09-04 17:48:44.0972 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Package.Install/https%3A%2F%2Fraw.githubusercontent.com%2Fgenielabs%2Fhomegenie-packages%2Fmaster%2Fpackages%2FDevices%2520and%2520Things%2FMySensors [OPEN]
2018-09-04 17:48:44.1909 Info HomeGenie.PackageInstaller    0   HomeGenie Package Installer InstallProgress.Message = Downloading: package.json
2018-09-04 17:48:45.7075 Info HomeGenie.PackageInstaller    0   HomeGenie Package Installer InstallProgress.Message = Downloading: MySensors.hgx
2018-09-04 17:48:46.0998 Info HomeGenie.PackageInstaller    0   HomeGenie Package Installer InstallProgress.Message = Installing: MySensors Gateway
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform member binding on `null' value
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00127] in <63992662b765477a898ef49cdcc99ee2>:0 
  at HomeGenie.Service.PackageManager.InstallPackage (System.String pkgFolderUrl, System.String tempFolderPath) [0x00a4d] in <62ecaa82b7594d3a94e8adb5e9b5d378>:0 
  at HomeGenie.Service.Handlers.Config.ProcessRequest (MIG.MigClientRequest request) [0x03720] in <62ecaa82b7594d3a94e8adb5e9b5d378>:0 
  at HomeGenie.Service.HomeGenieService.migService_ServiceRequestPreProcess (System.Object sender, MIG.ProcessRequestEventArgs args) [0x0022d] in <62ecaa82b7594d3a94e8adb5e9b5d378>:0 
  at MIG.MigService.OnPreProcessRequest (System.Object sender, MIG.MigClientRequest request) [0x00019] in <23027418f9174dd68010f21fc4a3aea3>:0 
  at MIG.MigService.Gateway_PreProcessRequest (System.Object sender, MIG.ProcessRequestEventArgs args) [0x0000e] in <23027418f9174dd68010f21fc4a3aea3>:0 
  at MIG.Gateways.WebServiceGateway.OnPreProcessRequest (MIG.MigClientRequest request) [0x0001f] in <23027418f9174dd68010f21fc4a3aea3>:0 
  at MIG.Gateways.WebServiceGateway.Worker (System.Object state) [0x0079c] in <23027418f9174dd68010f21fc4a3aea3>:0 
2018-09-04 17:48:46.1190 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Package.Install/https%3A%2F%2Fraw.githubusercontent.com%2Fgenielabs%2Fhomegenie-packages%2Fmaster%2Fpackages%2FDevices%2520and%2520Things%2FMySensors [CLOSED AFTER 2.022 seconds]
2018-09-04 17:48:49.0203 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2018-09-04 17:48:49.0225 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.002 seconds]
2018-09-04 17:48:59.0902 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2018-09-04 17:48:59.0924 Info WebServiceGateway 192.168.2.107   HTTP    GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.002 seconds]
2018-09-04 17:49:00.4021 Info HomeAutomation.HomeGenie  Scheduler   Scheduler Event Triggered   Scheduler.TriggeredEvent    Behavior.SensorTimeout
2018-09-04 17:49:00.4062 Info HomeAutomation.HomeGenie  Scheduler   Behavior.SensorTimeout  Scheduler.ScriptStatus  Behavior.SensorTimeout:Start
2018-09-04 17:49:00.4290 Info HomeAutomation.HomeGenie  Scheduler   Behavior.SensorTimeout  Scheduler.ScriptStatus  End
2018-09-04 17:49:08.5186 Info HomeAutomation.Demo   3   -   Meter.Watts 0.0
genemars commented 5 years ago

In order to help investigate the issue, please fill in the following form:


Expected behavior

Actual behavior

Steps to reproduce the problem starting from a fresh install

1. 2. 3.

Specifications

Additional configuration notes


flatsiedatsie commented 5 years ago

Expected behavior

Install some kind of MySensors functionality by pressing the 'install package' button in the package manager interface.

Actual behavior

Steps to reproduce the problem starting from a fresh install

This is in a fresh install. It was the first plugin I tried to install. Others installations did succeed.

Specifications Version: 1.1 beta r526 Operating System: Raspbian Stretch latest version.

Hardware configuration: Raspberry Pi 3B (not the new faster one) NRF24L01 connected to header pins in normal configuration, as suggested on MySensors website.

Additional configuration notes

genemars commented 5 years ago

.Net/Mono runtime version ? See this: https://bugzilla.xamarin.com/show_bug.cgi?id=37824

flatsiedatsie commented 5 years ago

Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: normal Notifications: epoll Architecture: armel,vfp+hard Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

flatsiedatsie commented 5 years ago

I tried updating Mono on the latest version using the instruction on the Mono site: https://www.mono-project.com/download/stable/#download-lin-raspbian

However now homegenie doesn't start..

/usr/bin/mono HomeGenie.exe
exception inside UnhandledException handler: The type initializer for 'MIG.MigService' threw an exception.
flatsiedatsie commented 5 years ago

Which version should it be?

genemars commented 5 years ago

4.6 should be fine

genemars commented 5 years ago

Try this:

Let me know if this work so I'll flag this as a bug possibly related to the MySensor package.json file or to the Package Browser itself.

flatsiedatsie commented 5 years ago