Project

General

Profile

Actions

Bug #3826

closed

curl command for download a file fails

Added by Fabrice FLORE-THÉBAULT over 11 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
2
Assignee:
Matthieu CERDA
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The curl command actually generated to download the file fails.

Downloading the file with wget is correct.

  • rudder-agent-2.6.3.release-1.EL.5, Rudder v.2.6.3

Directive "Download a file"

  • URL to download file from:
    http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/
    
  • Absolute path to download file to on a node:
/root/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar

Execution of the directive

  • /opt/rudder/bin/cf-agent -KI | grep bundle.tar
 -> Executing '/usr/bin/curl -f --proxy '' -o "/root/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar" http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/' ... (no timeout)
I: Last 3 quoted lines were generated by promiser "/usr/bin/curl -f --proxy '' -o "/root/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar" http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/" 
 -> Completed execution of /usr/bin/curl -f --proxy '' -o "/root/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar" http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/
R: @@downloadFile@@result_repaired@@d631b6be-d007-4db5-a04d-22527903bc92@@23a33c6c-afc4-4bd0-b37c-f97823c5986a@@2@@Download a file@@http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/@@2013-08-08 14:25:02+02:00##59b4508b-95ae-4ced-9bb3-2ebab3f39362@#The file http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/ has been successfully downloaded
  • ls -alh MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar
8,0K -rwxr----- 1 root root 200 aoû  8 14:25 MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar

the curl command doesn't work as expected

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   200  100   200    0     0    544      0 --:--:-- --:--:-- --:--:--     0

with wget it is working as expected

--2013-08-08 14:27:59--  http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar/from/http://cdn.mysql.com/
Résolution de dev.mysql.com... 137.254.60.11
Connexion vers dev.mysql.com|137.254.60.11|:80...connecté.
requête HTTP transmise, en attente de la réponse...302 Found
Emplacement: http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar [suivant]
--2013-08-08 14:27:59--  http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar
Résolution de cdn.mysql.com... 2.21.243.50, 23.62.99.17
Connexion vers cdn.mysql.com|2.21.243.50|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 311285760 (297M) [application/x-tar]
Saving to: `MySQL-5.6.13-1.rhel5.x86_64.rpm-bundle.tar.1'
Actions

Also available in: Atom PDF