I’m trying to make a composer deploy and it fails to download the october/backend package.
The message I get is:
11:42:00 128/129 [===========================>] 99% - Downloading october/backend (v3.1.29)
11:50:59 - Downloading october/backend (v3.1.29)
11:56:00 - Downloading october/backend (v3.1.29)
12:01:00
12:01:00 129/129 [============================] 100%
12:01:00 In CurlDownloader.php line 365:
12:01:00
12:01:00 curl error 28 while downloading https://gateway.octobercms.com/composer/dis
12:01:00 t/october/backend/october-backend-v3.1.29-a435f9.zip: Operation timed out a
12:01:00 fter 300000 milliseconds with 5357568 out of 10718048 bytes received
I followed the steps mentioned here but I still have the same problem.
Any ideas what can cause this?
1 Like
I have a similar upload problem today. So I am joining the question and waiting for help from tech support.
On composer install (or when I do ‘sail artisan october:install’) I got this:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 8 installs, 0 updates, 0 removals
- Downloading composer/installers (v1.12.0)
- Downloading october/tailor (v3.1.29)
- Downloading october/system (v3.1.29)
- Downloading october/media (v3.1.29)
- Downloading october/editor (v3.1.29)
- Downloading october/cms (v3.1.29)
- Downloading october/backend (v3.1.29)
- Downloading october/all (v3.1.0)
7/8 [========================>—] 87% - Downloading october/backend (v3.1.29)
- Downloading october/backend (v3.1.29)
- Downloading october/backend (v3.1.29)
8/8 [============================] 100%
In CurlDownloader.php line 365:
curl error 28 while downloading https://gateway.octobercms.com/composer/dis
t/october/backend/october-backend-v3.1.29-a435f9.zip: Operation timed out a
fter 300000 milliseconds with 5190835 out of 10718048 bytes received
Hello,
The default timeout for composer is 5 minutes (300 seconds) and this appears to have downloaded 5MB of 10MB (50%) in this time. 1MB per minute is a very slow connection speed.
The gateway server is located in the US and uses high availability servers. The slow speed can be a result of any server in between your connection and the gateway server.
@VasilyYa, @cosminbosutar, May I ask which geographic location are you connecting from? Also, please provide a timestamp for the next time you have issues to help us investigate it from our side.
As a workaround, you can increase the timeout duration by increasing the default_socket_timeout
value in your php.ini to something higher. This is suggested by the composer troubleshooting article.
The download seems to be working right now.
The server where I faced this error is located in Helsinki, Finland. Also, when I reported the error, I tried to reproduce it locally in Bucharest, Romania with no success.
I also don’t think the internet speed was the issue as all the other packages were downloaded almost instantly except october/backend
I don’t have a timestamp available, but I can tell that the error ocured between 11:00 AM and 12:30 AM UTC
Yes, the problem was solved ! Composer downloaded files successfully. Maybe that was low connection speed.
1 Like
thank you, the problem was solved!