HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: xaruqui on May 03, 2016, 11:41:09 PM

Title: Error while downloading update files
Post by: xaruqui on May 03, 2016, 11:41:09 PM
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.
Title: Re: Error while downloading update files
Post by: Michel on May 04, 2016, 12:53:44 PM
Same problem here. Trying to update r517 to r519.
Title: Re: Error while downloading update files
Post by: wouter on May 04, 2016, 01:28:56 PM
dito :-[
Title: Re: Error while downloading update files
Post by: bkenobi on May 04, 2016, 04:27:09 PM
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.
Title: Re: Error while downloading update files
Post by: xaruqui on May 04, 2016, 10:59:13 PM
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?!?!
Title: Re: Error while downloading update files
Post by: Bounz on May 05, 2016, 07:36:55 AM
Perhaps you need to update certificates on your RPi.
See this message: http://www.homegenie.it/forum/index.php?topic=129.825 (http://www.homegenie.it/forum/index.php?topic=129.825)
Title: Re: Error while downloading update files
Post by: xaruqui on May 05, 2016, 07:24:11 PM
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...
Title: Re: Error while downloading update files
Post by: bkenobi on May 05, 2016, 08:38:10 PM
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.
Title: Re: Error while downloading update files
Post by: Bounz on May 05, 2016, 08:44:05 PM
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.
Title: Re: Error while downloading update files
Post by: xaruqui on May 05, 2016, 11:37:05 PM
Oh Jeez, you were totally right.  That worked for me.

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

Thanks, man.
Title: Re: Error while downloading update files
Post by: Michel on May 06, 2016, 01:41:37 PM
Worked for me too. Thanks