more G-Labs products

Author Topic: Error while downloading update files  (Read 1403 times)

May 03, 2016, 11:41:09 PM
Read 1403 times

xaruqui

  • *
  • Information
  • Newbie
  • Posts: 5
Hi there, I've been trying to update HG from Safari, Chrome and Firefox, and rebooting my RPi but I always get this message: 'Error while downloading update files'.  Is there any known bug? I haven't found anything in the forum.

Thanks.

May 04, 2016, 12:53:44 PM
Reply #1

Michel

  • **
  • Information
  • Jr. Member
  • Posts: 42
Same problem here. Trying to update r517 to r519.

May 04, 2016, 01:28:56 PM
Reply #2

wouter

  • *
  • Information
  • Newbie
  • Posts: 10

May 04, 2016, 04:27:09 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I updated from r515 last weekend via FireFox on my RPi without issue.  I'm not sure what the error is related to, but if it happens immediately, it could be that the files are temporarily unavailable (I've had that happen when trying to update the Linux system).  If the files are available and it's having issues, perhaps you could delete the contents of the update folder on the RPi.

May 04, 2016, 10:59:13 PM
Reply #4

xaruqui

  • *
  • Information
  • Newbie
  • Posts: 5
I just found out something in the log, seems that HG is trying to connect to my main computer's local IP to download the update:

2016-05-04 22:52:07.9373 Info WebServiceGateway   172.16.1.106   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/System.Configure/UpdateManager.Check/ [CLOSED AFTER 5,893 seconds]

Is that what the log is saying?? How'd that happened?!?!
« Last Edit: May 05, 2016, 07:21:13 PM by xaruqui »

May 05, 2016, 07:36:55 AM
Reply #5

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
Perhaps you need to update certificates on your RPi.
See this message: http://www.homegenie.it/forum/index.php?topic=129.825

May 05, 2016, 07:24:11 PM
Reply #6

xaruqui

  • *
  • Information
  • Newbie
  • Posts: 5
Do you really think this is a certificate issue?  :o

If my Pi is trying to locate a package in my computer rather than in Internet, shouldn't I check first why is that happening?  Can someone corroborate this by checking what his/her log is saying? I'm guessing your HG is looking for the package through your router IP...
« Last Edit: May 05, 2016, 07:33:34 PM by xaruqui »

May 05, 2016, 08:38:10 PM
Reply #7

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Not sure (not at my HG RPi so I can't check), but it seems to me that HG should be looking for the sourceforge IP and not your local system (either internal or external) IP.

May 05, 2016, 08:44:05 PM
Reply #8

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
xaruqui,
The IP you see in the log (in this case 172.16.1.106) - is the origin of request, so it means that you are working with HG web interface from computer with IP 172.16.1.106.
Solution with updating certificates helped me, so I advice you to give it a try.

May 05, 2016, 11:37:05 PM
Reply #9

xaruqui

  • *
  • Information
  • Newbie
  • Posts: 5
Oh Jeez, you were totally right.  That worked for me.

sudo apt-get install mono-complete
sudo mozroots --import --ask-remove --machine

Thanks, man.

May 06, 2016, 01:41:37 PM
Reply #10

Michel

  • **
  • Information
  • Jr. Member
  • Posts: 42
Worked for me too. Thanks