Jag försöker mig på lite hemautomation och köpte därför en Tellstick Duo, några brytare och testar nu Switchking för att se om det är något att satsa på. Jag får dock inte min installation till att bli stabil. Av och till crashar Switchking. Ibland efter 3 tim och ibland fungerar den i 20 tim men inte över flera dagar.
Har installerat följande:
Ubuntu 12.04 (3.2.0-58-generic-pae)
Telldus Core 2.1.1-1
Tellduscenter 2.1.1-1
Mono version: 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)
Switch King version: 3.2.1.0 (Build date 1/23/2013 9:01:16 PM)
Jag får följande output återkommande när jag startar Switchking i terminal och vid crash:
Code: Select all
xxxxx:~$ /usr/bin/mono /home/xx/switchking/Bin/SwitchKing.exe terminal 8080 8800
Framework address is: http://127.0.0.1:8080/SwitchKingFrameworkServiceHost
REST address is: http://127.0.0.1:8800
Mono version: 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)
Switch King version: 3.2.1.0 (Build date 1/23/2013 9:01:16 PM)
Framework Service Starting
Framework Service Running
Invocation Service Starting
Invocation Service Running
Collector Service Starting
Collector Service Running
REST Service Starting
REST Service Running
Press [Enter] to stop running services
Native stacktrace:
/usr/bin/mono() [0x80e16fc]
/usr/bin/mono() [0x80609b4]
[0xb779540c]
/lib/i386-linux-gnu/libpthread.so.0(pthread_cond_signal+0xd) [0xb7739f9d]
/usr/lib/libtelldus-core.so.2(+0xd923) [0xb4a23923]
/usr/lib/libtelldus-core.so.2(+0x10132) [0xb4a26132]
/usr/lib/libtelldus-core.so.2(+0xfada) [0xb4a25ada]
/usr/lib/libtelldus-core.so.2(+0xf5cf) [0xb4a255cf]
/usr/lib/libtelldus-core.so.2(+0xd2ad) [0xb4a232ad]
/lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0xb7735d4c]
/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb7673f4e]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted (core dumped)
Code: Select all
{BusinessAccess - Invocation} --<Status> -- 2014-01-10 11:53:38 -- Device with id 5, name Hall-Vägglampa, native id 9 and code A:8 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Devices} --<Warning> -- 1/10/2014 11:53:38 AM -- Failed collecting device data from platform store.
Exception:
System.NotSupportedException
Level 1) Invalid or unsupported protocol and model. Protocol and model x10 and codeswitch is not supported.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.PlatformStore.TelldusCoreAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.Linux.LinuxPlatformAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.AbstractPlatformAccess.GetDevicesFromPlatformStore () [0x00000] in <filename unknown>:0
{BusinessAccess - Devices} --<Warning> -- 1/10/2014 11:53:38 AM -- Failed collecting device data from platform store.
Exception:
System.NotSupportedException
Level 1) Invalid or unsupported protocol and model. Protocol and model x10 and codeswitch is not supported.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.PlatformStore.TelldusCoreAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.Linux.LinuxPlatformAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.AbstractPlatformAccess.GetDevicesFromPlatformStore () [0x00000] in <filename unknown>:0
{BusinessAccess - Devices} --<Warning> -- 1/10/2014 11:53:38 AM -- Failed collecting device data from platform store.
Exception:
System.NotSupportedException
Level 1) Invalid or unsupported protocol and model. Protocol and model x10 and codeswitch is not supported.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.PlatformStore.TelldusCoreAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.Linux.LinuxPlatformAccess.CreateDeviceFromPlatformStore (Int32 nativeId) [0x00000] in <filename unknown>:0
at SwitchKing.Server.BusinessAccess.PlatformStore.AbstractPlatformAccess.GetDevicesFromPlatformStore () [0x00000] in <filename unknown>:0
{BusinessAccess - Invocation} --<Status> -- 2014-01-10 11:53:38 -- Telldus API TurnOff responded with: 0
Vill gärna få det stabilt innan jag bygger ut lösningen. Något förslag till orsak och lösning?