more G-Labs products

Author Topic: Not working on linaro  (Read 1849 times)

February 23, 2014, 07:06:19 PM
Read 1849 times

jghermsen

  • *
  • Information
  • Newbie
  • Posts: 6
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.

February 23, 2014, 07:31:07 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 24, 2014, 05:18:15 PM
Reply #2

jghermsen

  • *
  • Information
  • Newbie
  • Posts: 6
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?

February 24, 2014, 06:04:41 PM
Reply #3

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 24, 2014, 06:11:29 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 25, 2014, 08:53:26 PM
Reply #5

jghermsen

  • *
  • Information
  • Newbie
  • Posts: 6
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.

February 25, 2014, 09:59:37 PM
Reply #6

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Did you try rebooting after changing the locale? Sometimes mono is a bit "stubborn" =)