Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Error while updating to 1.2.5

Bryan Nazar   ( User )

Commented 5 years ago

Hi, this is the error I get when upadting to the latest version.


 

















(1/1) ConnectException


cURL error 28: Operation timed out after 30003 milliseconds with 20394216 out of 28288105 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)


in CurlFactory.php line 185
at CurlFactory::createRejection(object(EasyHandle), array('errno' => 28, 'error' => 'Operation timed out after 30003 milliseconds with 20394216 out of 28288105 bytes received', 'url' => 'https://akaunting.com/api/core/download/1.2.5/7.1.14/5.6.38', 'content_type' => 'application/zip', 'http_code' => 200, 'header_size' => 373, 'request_size' => 215, 'filetime' => -1, 'ssl_verify_result' => 0, 'redirect_count' => 0, 'total_time' => 30.003035, 'namelookup_time' => 0.006692, 'connect_time' => 0.17053200000000002, 'pretransfer_time' => 0.56003, 'size_upload' => 0.0, 'size_download' => 20394216.0, 'speed_download' => 679738.0, 'speed_upload' => 0.0, 'download_content_length' => 28288105.0, 'upload_content_length' => -1.0, 'starttransfer_time' => 0.841303, 'redirect_time' => 0.0, 'redirect_url' => '', 'primary_ip' => '139.162.160.225', 'certinfo' => array(), 'primary_port' => 443, 'local_ip' => '192.168.17.19', 'local_port' => 58127))in CurlFactory.php line 149

Ahmet Kurucan   ( User )

Commented 5 years ago

Hello. You should ask your hosting company to increase the memory_limit value.

Bryan Nazar   ( User )

Commented 5 years ago

Hi Ahmet,


I increased the memory_limit to 256M, but the really issue was the 'timeout' in the CURL request. I just modified line 108 in the file app/Utilities/Updater.php and it works fine.


 


$response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]);

Bryan Nazar   ( User )

Commented 5 years ago

Sorry, I updated this:


$response = static::getRemote($url, ['timeout' => 300, 'track_redirects' => true]);

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions