genielabs / HomeGenie

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

Please help getting homegenie working on Ubuntu am still still learning #305

Closed Electrik-Rich closed 5 years ago

Electrik-Rich commented 7 years ago

i have installed homegenie on my Ubuntu and cannot seem to connect to it via web browser I receive connection refused and connection time-out and I have also lost the ability to view samba network since installing homegenie now I'm not sure if they are related but they both do network stuff and are now both failing. here is a section of the homegenie error logs 2017-01-09 15:50:48.0498 Debug Adding Gateway WebServiceGateway 2017-01-09 15:50:48.0542 Debug Setting Gateway options 2017-01-09 15:50:48.0558 Debug WebServiceGateway: BaseUrl=/hg/html 2017-01-09 15:50:48.0582 Debug WebServiceGateway: HomePath=html 2017-01-09 15:50:48.0582 Debug WebServiceGateway: Host=+ 2017-01-09 15:50:48.0582 Debug WebServiceGateway: Port=80 2017-01-09 15:50:48.0582 Debug WebServiceGateway: Username=admin 2017-01-09 15:50:48.0591 Debug WebServiceGateway: Password= 2017-01-09 15:50:48.0591 Debug WebServiceGateway: HttpCacheIgnore.1=^.\/pages\/control\/widgets\/..(js|html)$ 2017-01-09 15:50:48.0591 Debug WebServiceGateway: HttpCacheIgnore.2=^.*\/html\/index.html 2017-01-09 15:50:48.0601 Debug WebServiceGateway: UrlAlias.1=api/HomeAutomation.HomeGenie/Logging/RealTime.EventStream:events 2017-01-09 15:50:48.0601 Debug WebServiceGateway: UrlAlias.2=hg/html/pages/control/widgets/homegenie/generic/images/socket_on.png:hg/html/pages/control/widgets/homegenie/generic/images/switch_on.png 2017-01-09 15:50:48.0601 Debug WebServiceGateway: UrlAlias.3=hg/html/pages/control/widgets/homegenie/generic/images/socket_off.png:hg/html/pages/control/widgets/homegenie/generic/images/switch_off.png 2017-01-09 15:50:48.0601 Debug WebServiceGateway: UrlAlias.4=hg/html/pages/control/widgets/homegenie/generic/images/siren.png:hg/html/pages/control/widgets/homegenie/generic/images/siren_on.png 2017-01-09 15:50:48.0611 Debug WebServiceGateway: EnableFileCaching=false 2017-01-09 15:50:48.0717 Debug Adding Interface Protocols.UPnP 2017-01-09 15:50:48.0738 Debug Setting Interface options 2017-01-09 15:50:48.0937 Debug Adding Interface HomeAutomation.ZWave 2017-01-09 15:50:48.0948 Debug Setting Interface options 2017-01-09 15:50:48.0961 Trace HomeAutomation.ZWave: Port= 2017-01-09 15:50:48.1146 Debug Adding Interface HomeAutomation.X10 2017-01-09 15:50:48.1154 Debug Setting Interface options 2017-01-09 15:50:48.1204 Trace HomeAutomation.X10: Port= 2017-01-09 15:50:48.1204 Trace HomeAutomation.X10: HouseCodes=A 2017-01-09 15:50:48.3895 Info HomeAutomation.HomeGenie.Automation 6 Automation Program Program.Status Added ------------------------------------------------------------cut out middle info ------------------------------------------------------------------- 2017-01-09 15:50:48.6812 Debug Event propagation halted - parameter manipulated by automation program 'Query on Wake Up' (91) (Name=Program.Status, OldValue=Idle, NewValue=Setup) 2017-01-09 15:50:48.8253 Debug Starting Gateway WebServiceGateway 2017-01-09 15:50:49.1257 Debug Enabling Interface Protocols.UPnP 2017-01-09 15:50:49.1659 Info HomeAutomation.HomeGenie.Automation 400 Automation Program Program.Status Running 2017-01-09 15:50:49.2375 Info Protocols.UPnP 2017-01-09 15:50:49.2392 Debug Disabling Interface HomeAutomation.ZWave 2017-01-09 15:50:49.2403 Debug Disabling Interface HomeAutomation.X10 2017-01-09 15:50:49.2422 Info HomeAutomation.HomeGenie 0 HomeGenie service ready SystemInfo.HttpAddress +:80 2017-01-09 15:50:49.3693 Error HomeAutomation.HomeGenie Trapper Unhandled Exception Error.Exception System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'MEDIALAP' at System.Net.Dns.Error_11001 (System.String hostName) [0x00015] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at System.Net.Dns.GetHostByName (System.String hostName) [0x00024] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00061] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at HomeGenie.Service.HomeGenieService.SetupUpnp () [0x0000c] in :0 at HomeGenie.Service.HomeGenieService..ctor () [0x0010f] in :0 at HomeGenie.Program.Main (System.String[] args) [0x0004d] in :0

this is the output from terminal sudo /etc/init.d/homegenie start [ ok ] Starting homegenie (via systemctl): homegenie.service. sudo /usr/bin/mono /usr/local/bin/homegenie/HomeGenie.exe >/usr/local/bin/homegenie/fault.log :~$ ps ax | grep mono 32129 ? S 0:00 sudo /usr/bin/mono HomeGenie.exe 32130 ? Sl 0:02 /usr/bin/mono HomeGenie.exe 32270 pts/0 S+ 0:00 grep --color=auto mono

sudo /etc/init.d/samba status ● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd) Loaded: loaded (/etc/init.d/nmbd) Active: active (running) since Mon 2017-01-09 16:03:02 GMT; 14s ago Docs: man:systemd-sysv-generator(8) Process: 5071 ExecStop=/etc/init.d/nmbd stop (code=exited, status=0/SUCCESS) Process: 5205 ExecStart=/etc/init.d/nmbd start (code=exited, status=0/SUCCESS) CGroup: /system.slice/nmbd.service └─5224 /usr/sbin/nmbd -D

Jan 09 16:03:01 MEDIALAP systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)... Jan 09 16:03:02 MEDIALAP nmbd[5205]: * Starting NetBIOS name server nmbd Jan 09 16:03:02 MEDIALAP nmbd[5205]: ...done. Jan 09 16:03:02 MEDIALAP systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd). Jan 09 16:03:03 MEDIALAP nmbd[5224]: [2017/01/09 16:03:03.265553, 0] ../lib/util/become_daemon.c:124(daemon_ready) Jan 09 16:03:03 MEDIALAP nmbd[5224]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections ● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd) Loaded: loaded (/etc/init.d/smbd) Active: active (running) since Mon 2017-01-09 16:03:05 GMT; 12s ago Docs: man:systemd-sysv-generator(8) Process: 5260 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS) Process: 5402 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS) CGroup: /system.slice/smbd.service ├─5428 /usr/sbin/smbd -D ├─5430 /usr/sbin/smbd -D └─5444 /usr/sbin/smbd -D

Jan 09 16:03:04 MEDIALAP systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)... Jan 09 16:03:04 MEDIALAP smbd[5402]: * Starting SMB/CIFS daemon smbd Jan 09 16:03:05 MEDIALAP smbd[5402]: ...done. Jan 09 16:03:05 MEDIALAP systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd). Jan 09 16:03:05 MEDIALAP smbd[5428]: [2017/01/09 16:03:05.305913, 0] ../lib/util/become_daemon.c:124(daemon_ready) Jan 09 16:03:05 MEDIALAP smbd[5428]: STATUS=daemon 'smbd' finished starting up and ready to serve connections

:~$ sudo /etc/init.d/homegenie status ● homegenie.service - LSB: Run HomeGenie Loaded: loaded (/etc/init.d/homegenie) Active: active (running) since Mon 2017-01-09 16:01:24 GMT; 2min 6s ago Docs: man:systemd-sysv-generator(8) Process: 27934 ExecStop=/etc/init.d/homegenie stop (code=exited, status=0/SUCCESS) Process: 31507 ExecStart=/etc/init.d/homegenie start (code=exited, status=0/SUCCESS) CGroup: /system.slice/homegenie.service ├─ 6983 sudo /usr/bin/mono HomeGenie.exe ├─ 6984 /usr/bin/mono HomeGenie.exe └─31514 /bin/sh /usr/local/bin/homegenie/startup.sh /usr/local/bin/homegenie

Jan 09 16:03:22 MEDIALAP sudo[6550]: pam_unix(sudo:session): session opened for user root by (uid=0) Jan 09 16:03:24 MEDIALAP sudo[6550]: pam_unix(sudo:session): session closed for user root Jan 09 16:03:24 MEDIALAP sudo[6695]: root : TTY=unknown ; PWD=/usr/local/bin/homegenie ; USER=root ; COMMAND=/usr/bin/mono HomeGenie.exe Jan 09 16:03:24 MEDIALAP sudo[6695]: pam_unix(sudo:session): session opened for user root by (uid=0) Jan 09 16:03:26 MEDIALAP sudo[6695]: pam_unix(sudo:session): session closed for user root Jan 09 16:03:26 MEDIALAP sudo[6839]: root : TTY=unknown ; PWD=/usr/local/bin/homegenie ; USER=root ; COMMAND=/usr/bin/mono HomeGenie.exe Jan 09 16:03:26 MEDIALAP sudo[6839]: pam_unix(sudo:session): session opened for user root by (uid=0) Jan 09 16:03:29 MEDIALAP sudo[6839]: pam_unix(sudo:session): session closed for user root Jan 09 16:03:29 MEDIALAP sudo[6983]: root : TTY=unknown ; PWD=/usr/local/bin/homegenie ; USER=root ; COMMAND=/usr/bin/mono HomeGenie.exe Jan 09 16:03:29 MEDIALAP sudo[6983]: pam_unix(sudo:session): session opened for user root by (uid=0)

please help me at least get homegenie working???

Bounz commented 7 years ago

Hi. Looks like there is a problem in resolving your hostname from DNS server. As you can read at MSDN:

If the host name could not be found, the SocketException exception is returned with a value of 11001 (Windows Sockets error WSAHOST_NOT_FOUND). This exception can be returned if the DNS server does not respond. This exception can also be returned if the name is not an official host name or alias, or it cannot be found in the database(s) being queried.

So maybe it also relates to the problem with samba server. Try to check your machine's network settings. Right now you can't get HG working without modifying source code.