summaryrefslogtreecommitdiff
path: root/doc/bugs/problem_to_addurl_--file_with_ftp.mdwn
blob: 99381b9610f19a54ddd99e4da8cddf994951c3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
### Please describe the problem.
I want to addurl using ftp protocol.
`git annex addurl ftp://...` works fine, but `git annex addurl --file` fails with an error "failed to verify url exists".

### What steps will reproduce the problem?

setting up a new repo

    % alias ga  
    ga=/home/applis/git-annex.linux/git-annex  
    % ga init  
    init  ok  
    (Recording state in git...)  

addurl --file works with http

    % wget http://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz  
    [...]  
    2014-03-27 15:25:06 (10,1 MB/s) - ‘git-annex-standalone-amd64.tar.gz’ saved [30689438/30689438]  
    % ga add git-annex-standalone-amd64.tar.gz  
    add git-annex-standalone-amd64.tar.gz ok  
    (Recording state in git...)  
    % ga addurl http://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz --file git-annex-standalone-amd64.tar.gz  
    addurl git-annex-standalone-amd64.tar.gz ok  
    (Recording state in git...)  

addurl works with ftp:

    % ga addurl ftp://ftp.belnet.be/debian-cd/7.4.0-live/i386/iso-hybrid/debian-live-7.4-i386-lxde-desktop.iso.log  
    addurl ftp.belnet.be_debian_cd_7.4.0_live_i386_iso_hybrid_debian_live_7.4_i386_lxde_desktop.iso.log (downloading ftp://ftp.belnet.be/debian-cd/7.4.0-live/i386/iso-hybrid/debian-live-7.4-i386-lxde-desktop.iso.log ...)  
    [...]  
    2014-03-27 15:27:47 (11,1 MB/s) - ‘/data/annex/.git/annex/tmp/URL--ftp&c%%ftp.belnet.be%debian-cd%7.4.0-live%i386%iso-hybrid%debian-live-7.4-i386-lxde-desktop.iso.log’ saved [1235181]  
    ok  
    (Recording state in git...)  

addurl --file doesn't work with ftp

    % wget ftp://ftp.belnet.be/debian-cd/7.4.0-live/i386/iso-hybrid/debian-live-7.4-i386-standard.iso.zsync  
    [...]  
    2014-03-27 15:29:32 (19,4 MB/s) - ‘debian-live-7.4-i386-standard.iso.zsync’ saved [1932014]  
    % ga add debian-live-7.4-i386-standard.iso.zsync  
    add debian-live-7.4-i386-standard.iso.zsync ok  
    (Recording state in git...)  
    % ga addurl ftp://ftp.belnet.be/debian-cd/7.4.0-live/i386/iso-hybrid/debian-live-7.4-i386-standard.iso.zsync --file debian-live-7.4-i386-standard.iso.zsync   
    addurl debian-live-7.4-i386-standard.iso.zsync   
      failed to verify url exists: ftp://ftp.belnet.be/debian-cd/7.4.0-live/i386/iso-hybrid/debian-live-7.4-i386-standard.iso.zsync  
    failed  
    git-annex: addurl: 1 failed  

### What version of git-annex are you using? On what operating system?

I am using current git-annex binary linux version on Fedora 19.

    % which git ; git --version  
    /usr/bin/git  
    git version 1.8.3.1  
    % which ga ; ga version  
    ga=/home/applis/git-annex.linux/git-annex  
    git-annex version: 5.20140320-g63535e3  
    build flags: Assistant Webapp Webapp-secure Pairing Testsuite S3 WebDAV Inotify DBus XMPP DNS Feeds Quvi TDFA CryptoHash  
    key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SKEIN256E SKEIN512E SHA256 SHA1 SHA512 SHA224 SHA384 SKEIN256 SKEIN512 WORM URL  
    remote types: git gcrypt S3 bup directory rsync web webdav tahoe glacier hook external  
    local repository version: 5  
    supported repository version: 5  
    upgrade supported from repository versions: 0 1 2 4  

> [[done]] --[[Joey]]