HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: jghermsen on February 23, 2014, 07:06:19 PM

Title: Not working on linaro
Post by: jghermsen on February 23, 2014, 07:06:19 PM
I installed homegenie on linaro/Ubuntu and all went without errors.
Also starting homegenie manualy or as service is going without errors.
But going to localhost or ip on port 80 doesn't work it can't find host also tried port 81 which also doesn't work.
Is there some option to enable debug logging?

Any other suggestions are welcome.
Title: Re: Not working on linaro
Post by: Gene on February 23, 2014, 07:31:07 PM
try

Code: [Select]
ps ax | grep mono

see if HomeGenie process is running and kill it.
Change the systemconfig.xml

Code: [Select]
cd /usr/local/bin/homegenie
sudo nano systemconfig.xml

change the line

Code: [Select]
    <EnableLogFile>false</EnableLogFile>

to

Code: [Select]
    <EnableLogFile>true</EnableLogFile>

start HG manually from terminal

Code: [Select]
sudo mono HomeGenie.exe

and see what happen.

Cheers,
g.
Title: Re: Not working on linaro
Post by: jghermsen on February 24, 2014, 05:18:15 PM
Thanks,
tried it and it doesn't give any output on port 80 or 81.
Then I tried 8080 and got:
Code: [Select]
WEBGATEWAY ERROR: Argument is out of range.
  at System.Globalization.DateTimeFormatInfo.GetAbbreviatedDayName (DayOfWeek dayofweek) [0x00000] in <filename unknown>:0
  at System.DateTimeUtils.ToString (DateTime dt, Nullable`1 utc_offset, System.String format, System.Globalization.DateTimeFormatInfo dfi) [0x00000] in <filename unknown>:0
  at System.DateTimeUtils.ToString (DateTime dt, System.String format, System.Globalization.DateTimeFormatInfo dfi) [0x00000] in <filename unknown>:0
  at System.DateTime.ToString (System.String format, IFormatProvider provider) [0x00000] in <filename unknown>:0
  at System.Net.HttpListenerResponse.SendHeaders (Boolean closing, System.IO.MemoryStream ms) [0x00000] in <filename unknown>:0
  at System.Net.ResponseStream.GetHeaders (Boolean closing) [0x00000] in <filename unknown>:0
  at System.Net.ResponseStream.Close () [0x00000] in <filename unknown>:0
  at System.Net.HttpConnection.Close (Boolean force_close) [0x00000] in <filename unknown>:0
  at System.Net.HttpListenerResponse.Close (Boolean force) [0x00000] in <filename unknown>:0
  at System.Net.HttpListenerResponse.Close () [0x00000] in <filename unknown>:0
  at MIG.Gateways.WebServiceGateway.Worker (System.Object o) [0x00000] in <filename unknown>:0
Any idea what the issue might be?
Title: Re: Not working on linaro
Post by: Gene on February 24, 2014, 06:04:41 PM
It could be a locale setting issue.
What do you get if you enter the "locale" command from terminal?
Try setting locale to en_US if not already so and start hg to see if this work-around the problem.
Then we'll think of a better solution.

Cheers,
g.
Title: Re: Not working on linaro
Post by: Gene on February 24, 2014, 06:11:29 PM
What mono version is installed on the system?

Code: [Select]
pi@raspberrypi ~ $ mono --version
Mono JIT compiler version 3.2.3 (Debian 3.2.3+dfsg-7+rpi1)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

this is the recommended mono runtime to use.
Title: Re: Not working on linaro
Post by: jghermsen on February 25, 2014, 08:53:26 PM
I tried it changing locale as it was some strange value.
But that didn't work.
I checked the mono version and it is an older one so I'm gonna try to upgrade it and post the findings when done.
Title: Re: Not working on linaro
Post by: Gene on February 25, 2014, 09:59:37 PM
Did you try rebooting after changing the locale? Sometimes mono is a bit "stubborn" =)