Time out: can't retreive http://123solar.org/latest_version.php

Talks about solar stuff
Wolf_Solar
Posts: 22
Joined: Mon Dec 28, 2015 1:03 pm

Time out: can't retreive http://123solar.org/latest_version.php

Post by Wolf_Solar » Sun Sep 23, 2018 7:44 am

Hi, I have a update problem, 123solar don't show updates because there is a strange message of error "Time out: can't retreive http://123solar.org/latest_version.php".
How can I solve it.
HW: Pogo
OS: Linux 4.4.97-1-ARCH GNU/Linux
System: SolarLog armv5tel
SW: 123Solar 1.7.1

Cheers W_S

jeanmarc
Posts: 1764
Joined: Thu Aug 29, 2013 7:16 am

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by jeanmarc » Sun Sep 23, 2018 9:12 am

Hi,
Sorry for the inconvenience but i have passed the site under https. You need to edit admin/update.php :

Code: Select all

$url = 'https://123solar.org/latest_version.php';
Then go over /admin/update.php.

Wolf_Solar
Posts: 22
Joined: Mon Dec 28, 2015 1:03 pm

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by Wolf_Solar » Sun Sep 23, 2018 11:12 am

Thanks a lot jeanmarc

Wolf_Solar
Posts: 22
Joined: Mon Dec 28, 2015 1:03 pm

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by Wolf_Solar » Sun Sep 23, 2018 3:01 pm

Hi, I have edit admin/update.php adding "s" but updater don't work

Code: Select all

The update didn't complete as expected ! 

OK: Checked free space of at least 32 MB
ERROR: Downloading
OK: Removed temp.tar.gz

CURDIR: /srv/http/123solar 
SRVDIR: /srv/http 
SELFDIR: /123solar/admin
I have also tried to add "s" at line 27 of updater.php without luck

Code: Select all

$json   = file_get_contents('https://123solar.org/latest_version.php');
Cheers W_S

jeanmarc
Posts: 1764
Joined: Thu Aug 29, 2013 7:16 am

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by jeanmarc » Sun Sep 23, 2018 3:35 pm

Yes you also need to do that change in updater.php.
Maybe you changed the permissions ? Try to chown -R http:http /srv/http/

Wolf_Solar
Posts: 22
Joined: Mon Dec 28, 2015 1:03 pm

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by Wolf_Solar » Sun Sep 23, 2018 5:39 pm

Hi

Code: Select all

 chown -R http:http /srv/http/
don't solve

Code: Select all


The update didn't complete as expected ! 

OK: Checked free space of at least 32 MB
ERROR: Downloading
OK: Removed temp.tar.gz

CURDIR: /srv/http/123solar 
SRVDIR: /srv/http 
SELFDIR: /123solar/admin

jeanmarc
Posts: 1764
Joined: Thu Aug 29, 2013 7:16 am

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by jeanmarc » Sun Sep 23, 2018 7:13 pm

ok you found a bug :)
could you retry ? i've updated the url.
I have yet to update the release for that.

Wolf_Solar
Posts: 22
Joined: Mon Dec 28, 2015 1:03 pm

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by Wolf_Solar » Mon Sep 24, 2018 7:29 am

Hi jeanmarc, now the updater works. The process create a tar.gz archive that on my little pogo it take a long time so the update page goes in "time out".

Cheers W_S

jeanmarc
Posts: 1764
Joined: Thu Aug 29, 2013 7:16 am

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by jeanmarc » Mon Sep 24, 2018 4:01 pm

The updater have an infinite time limit (set_time_limit(0);) But you may have set a too short max_execution_time in php.ini ?

sovking
Posts: 80
Joined: Fri Feb 27, 2015 12:02 am

Re: Time out: can't retreive http://123solar.org/latest_version.php

Post by sovking » Tue Oct 16, 2018 3:43 pm

Hi Jeanmarc,
you need also to update line 7 of admin.php to get the status icon working:

Code: Select all

$url = 'https://123solar.org/latest_version.php';
This modification is needed in meterN too.

Moreover after the update to 1.7.3.1: files update.php and updater.php still have the http urls (this problem is not present into meterN code after last update).
Last edited by sovking on Tue Oct 16, 2018 3:58 pm, edited 2 times in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests