HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: gryse on October 25, 2015, 06:37:22 AM

Title: Network: no access
Post by: gryse on October 25, 2015, 06:37:22 AM
Hi,
I've installed HG on a Rpi on which there is another soft, so I've made a manual installation.
I can access with localhost (via VNC) but not through my network...
But, I have access to my other soft.
Any idea?
Thanks
gryse
Title: Re: Network: no access
Post by: nolio on October 25, 2015, 10:57:45 AM
Hi,

Command line :
Code: [Select]
netstat -lpermit to see which port and address and listen, like :
Code: [Select]
root@raspberrypi:/home/pi# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:8080                  *:*                     LISTEN
the IP address and port, you try to reach on network appear in your netstat ?
Title: Re: Network: no access
Post by: gryse on October 25, 2015, 11:05:43 AM
Hi Nolio,

Thank you for your interest!
I can find the good IP address but not the good port...

Can you help me??

Gryse
Title: Re: Network: no access
Post by: nolio on October 25, 2015, 11:10:16 AM
Can you send the result of your :
Code: [Select]
netstat -lplease ?

And port you use in local access ?
Title: Re: Network: no access
Post by: gryse on October 25, 2015, 11:17:26 AM
Attached
The port I use is 8080.

Thank you
Title: Re: Network: no access
Post by: nolio on October 25, 2015, 11:34:39 AM
Ok that's seems good.
So very weird  :-\

What did you try to do ?
Title: Re: Network: no access
Post by: gryse on October 25, 2015, 11:44:30 AM
Bad news...
I'm trying to access to HG from network.
In fact, the first time I installed HG (manual), I've followed a tutorial found on internet, all was working.
After this, my SD card was flashing and I have to reinstall my own program and HG. I didn't find the tutorial and follow the explanations of HG internet site.
And then, no access with port 8080.

In the result of netstat -l I didn't see the port 8080. Is it normal?
What can you advise me?

Thank you
Title: Re: Network: no access
Post by: nolio on October 25, 2015, 12:03:10 PM
Did you install via "deb" file ?
like explain here :
http://www.homegenie.it/download.php (http://www.homegenie.it/download.php)
in part "Ubuntu, Raspbian and others Debian Linux".

With this method the install is very simple ...
Title: Re: Network: no access
Post by: gryse on October 25, 2015, 12:06:32 PM
Yes, that's what I do...
Very simple, as you wrote, but it doesn't work...
Title: Re: Network: no access
Post by: nolio on October 25, 2015, 01:13:51 PM
Try tu run homegenie in command line and take a look at the log...
Code: [Select]
mono /usr/local/bin/homegenie/Homegenie.exe--->>>
Code: [Select]
mono /usr/local/bin/homegenie/HomeGenie.exe
Perhaps port 80 instead 8080...
Title: Re: Network: no access
Post by: gryse on October 25, 2015, 02:02:05 PM
Code: [Select]
Cannot open assembly '/usr/local/bin/homegenie/Homegenie.exe': Aucun fichier ou dossier de ce type
while this file exists...
The log seems to be OK: IP address and port are OK.
Title: Re: Network: no access
Post by: gryse on October 26, 2015, 12:03:57 PM
UP  ???
Title: Re: Network: no access
Post by: bkenobi on October 26, 2015, 03:58:38 PM
If you can access HG on the local machine but not on the local network, my guess would be a firewall or the router.  I had an issue with access from outside my local network due to my network's configuration (windows firewall, router, DSL modem).  I fixed the firewall and router so I could access locally, but could not get in from outside.  Turns out there was a setting on the DSL modem that needed adjusting too.
Title: Re: Network: no access
Post by: gryse on October 26, 2015, 07:32:57 PM
@bkenobi
Thank you for your proposal but...
As I wrote, before this last installation, all was working, without no changes in my configuration.
Another suggestion?
Title: Re: Network: no access
Post by: gryse on October 26, 2015, 07:37:02 PM
another information: when I log by VNC to Rpi, the connection is very slow and the processor usage is near 100% when I click on the menu...
Is it normal?
Title: Re: Network: no access
Post by: bkenobi on October 26, 2015, 08:21:03 PM
I don't use Xwindows on the RPi so I have no idea.  I use Putty and just interact with the console.  I have not seen an issue with cpu usage.
Title: Re: Network: no access
Post by: nolio on October 27, 2015, 04:46:00 AM
did you try that ?
Code: [Select]
mono /usr/local/bin/homegenie/HomeGenie.exe

Do you really need vnc (and probably x) on your raspberry ?
Usually, homegenie user only use ssh access and homegenie webinterface. no need x or vnc, which use a lot of hardware ressources...

Did you have activated firewall ?

You can try access with vnc but with the same Url you try on your network..
Did you have a firewall somewhere ? Iptable on raspberry ?
Title: Re: Network: no access
Post by: gryse on October 27, 2015, 08:25:42 PM
I try your proposal (mono /usr/local/bin/homegenie/HomeGenie.exe) and obtain that:
Quote
Cannot open assembly '/usr/local/bin/homegenie/Homegenie.exe': Aucun fichier ou dossier de ce type
Firewall isn't activated
I try the same URL in VNC and on my network. VNC: OK, network: not OK...
When I do a
Code: [Select]
nmap -sT 192.168.0.166, I can see the 8080 port on the Rpi...
Title: Re: Network: no access
Post by: nolio on October 27, 2015, 08:43:03 PM
Did you try another browser ? (chrome, ie, firefox, ...)
Code: [Select]
telnet 192.168.0.166 8080work ?
Title: Re: Network: no access
Post by: gryse on October 27, 2015, 10:58:13 PM
Yes, i've tried Firefox and Chrome...
telnet 192.168.0.166 8080

Trying 192.168.0.166...
Connected to 192.168.0.166.
Escape character is '^]'.
Connection closed by foreign host.

I don't know the signification
Title: Re: Network: no access
Post by: nolio on October 27, 2015, 11:24:01 PM
telnet 192.168.0.166 8080
Trying 192.168.0.166...
Connected to 192.168.0.166.
Escape character is '^]'.
Connection closed by foreign host.
I don't know the signification
HomeGenie answer on your network ...
So possibles problems :
Code: [Select]
/etc/init.d/homegenie stop
mono /usr/local/bin/homegenie/HomeGenie.exe

Don't hesitate to investigate on your own, because it's hard to do on a forum ;)
(another computer, the android app, installation again and try with no modification configuration, ....)
Title: Re: Network: no access
Post by: louis on October 28, 2015, 07:33:38 PM
Hi,

I too am seeing some issues with homegenie, since updating to 1.1 I sometimes get an non responsive website, sometimes even on  the local pc ... but homegenie plus for android seems to work.

HomeGenie is running on a intel nuc running windows 10.

The client is another windows 10 machine using Chrome, IE11 or Edge

If i check the logging i see some 304 messages, if i google on it, it seems to be something related to a conditional get ... but my knowledge on this is lacking .... somebody else who knows what is happening ?

2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/lib/codemirror.css
2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/theme/ambiance.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/lint/lint.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/fold/foldgutter.css

Louis
Title: Re: Network: no access
Post by: nobody on October 29, 2015, 09:38:20 AM
Hi!

I have a similar issue just like gryse.
First: I use Windows 7 Prof. and Chrome. After the install of HG, I can see the service is is running, but i could not reach it, because seems like HG doesn't open the port so i always get the connection refused error.
Firewall and anti-virus is turned off.
I can ping localhost.
I've tried with other program to make a webserver to check something wrong with my settings or something security settings but all that was fine.

Do You have any idea?

Thanks!
Title: Re: Network: no access
Post by: nobody on October 29, 2015, 01:52:25 PM
OK, problem solved. I think .NET Framework was responsible for that issue. I had .NET 4.0 already but I upgraded it to 4.6 and now it is working.
Title: Re: Network: no access
Post by: gryse on October 29, 2015, 06:57:35 PM
I use Win 10 and .net 4.6 is installed.
S I have always my problem...
Title: Re: Network: no access
Post by: Gene on October 29, 2015, 09:11:10 PM
What browser are you using? did you try opening with Internet Explorer?



Title: Re: Network: no access
Post by: Gene on October 29, 2015, 09:32:49 PM
Ok... found the solution: do not use localhost for opening the web page. Use 127.0.0.1 instead.
This solved on my side (Win7).

Quote
Hi,

I too am seeing some issues with homegenie, since updating to 1.1 I sometimes get an non responsive website, sometimes even on  the local pc ... but homegenie plus for android seems to work.

HomeGenie is running on a intel nuc running windows 10.

The client is another windows 10 machine using Chrome, IE11 or Edge

If i check the logging i see some 304 messages, if i google on it, it seems to be something related to a conditional get ... but my knowledge on this is lacking .... somebody else who knows what is happening ?

2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/lib/codemirror.css
2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/theme/ambiance.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/lint/lint.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/fold/foldgutter.css

Louis
Title: Re: Network: no access
Post by: gryse on October 29, 2015, 10:40:55 PM
In my case, I've tried IE, EDGE, Firefox, Chrome.
192.168.0.166 (localhost) and 127.0.0.1
Nothing works...
Title: Re: Network: no access
Post by: gryse on October 29, 2015, 10:44:07 PM
When I try this: $ mono /usr/local/bin/homegenie/HomeGenie.exe
I obtain that:
/bin/cp: impossible de supprimer « /usr/local/bin/homegenie/libCameraCaptureV4L.so »: Permission non accordée
Title: Re: Network: no access
Post by: bkenobi on October 29, 2015, 10:46:50 PM
You probably need to add a sudo command to launch HG.
Title: Re: Network: no access
Post by: louis on October 30, 2015, 11:23:26 AM
Hi Gene,

Thanks for you're reply  :)

The logging i attached wasn't from local host, hg is running on 192.168.2.110, and the logging is from when i try to connect from another win 10 client.

I also frequently see the message event stream disconnected when starting a web session, using chrome, or ie11 or edge.
This happens during page load, when it's not fully loaded.

Sometimes when i press the refresh button the event stream is started ....

If you need more info please let me know.

Louis


Ok... found the solution: do not use localhost for opening the web page. Use 127.0.0.1 instead.
This solved on my side (Win7).

Quote
Hi,

I too am seeing some issues with homegenie, since updating to 1.1 I sometimes get an non responsive website, sometimes even on  the local pc ... but homegenie plus for android seems to work.

HomeGenie is running on a intel nuc running windows 10.

The client is another windows 10 machine using Chrome, IE11 or Edge

If i check the logging i see some 304 messages, if i google on it, it seems to be something related to a conditional get ... but my knowledge on this is lacking .... somebody else who knows what is happening ?

2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/lib/codemirror.css
2015-10-28 19:24:35.5524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/theme/ambiance.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/lint/lint.css
2015-10-28 19:24:36.0524 Info WebServiceGateway   192.168.2.113   HTTP   GET   304 /hg/html/js/codemirror-4.03/addon/fold/foldgutter.css

Louis
Title: Re: Network: no access
Post by: louis on October 30, 2015, 11:29:07 AM
Hi Gene,

Another thing, if i open the page from a virtual machine (win 8 ) and start ie and open the page ... all is well.
If i then press the refresh button, it won't refresh ....

Perhaps win 10 does a refresh iso an initial load ???

Louis
Title: Re: Network: no access
Post by: louis on October 30, 2015, 02:54:03 PM
Sorry Gene,

It seems that somehow the new version is more safe or somehow less forgiving for some network errors.

I have kind of complicated network at home with own dhcp and dns server on linux.

It seems like i had an error in it which caused the new hg version to lose track of ip adresses.
At least that's what it looks like right now ....

I changed some settings in my dns server and now it seems to be working again.

I hope that caused the "pain" :(

Louis

PS Refresh button still not working ... not sure if it ever did ...