From: Konstantin Khomoutov <flatworm-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
To: git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: git-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
August Karlstrom
<fusionfile-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Fw: How do I git-push to an FTP server?
Date: Fri, 5 Oct 2012 17:38:33 +0400 [thread overview]
Message-ID: <20121005173833.e96c4fcfed0cce5b78911b0b@domain007.com> (raw)
On the git-users mailing list we're trying someone to help with
running `git push` over FTP. That person is runnig Git 1.7.9.5
on Ubuntu 12.04.
Below is the trace captured while trying to perform such a faulty push.
The oddity (in my eyes) is that after uploading the files, Git executes
`git http-push` which manual page does not mention FTP at all.
So I'd like to ask experts on Git transports for any advice in this
situation.
Begin forwarded message:
Date: Fri, 5 Oct 2012 05:07:24 -0700 (PDT)
From: August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: git...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Cc: August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [git-users] How do I git-push to an FTP server?
Den fredagen den 5:e oktober 2012 kl. 11:38:43 UTC+2 skrev Konstantin
Khomoutov:
>
> On Fri, 5 Oct 2012 01:24:21 -0700 (PDT)
> August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote:
>
> > I get the following error when I run `git push' in a repository
> > called test:
> >
> > error: Cannot access URL ftp://my-ftp-server/git/test.git/, return
> > code 3 fatal: git-http-push failed
> >
> > This is after having successfully cloned the repository from the
> > address above.
> Try to run your command while having set GIT_TRACE=1 and
> GIT_CURL_VERBOSE=1, like
>
> $ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push
>
> and post the results here (if you will fail to infer the cause from
> its output by yourself).
>
Thanks for the input, Konstantin. Below is the output (with identifying
info removed). I can't see what caused "Uploading to a URL without a
file name" at the end.
$ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push
trace: built-in: git 'push'
trace: run_command: 'git-remote-ftp' 'origin'
'ftp://my-ftp-server/git/test.git'
* About to connect() to my-ftp-server port 21 (#0)
* Trying my-ftp-ip... * Connected to my-ftp-server (my-ftp-ip) port
21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 220-You are user number 6 of 400 allowed.
< 220-Local time is now 11:23. Server port: 21.
< 220-This is a private system - No anonymous login
< 220 You will be disconnected after 15 minutes of inactivity.
> USER my-username
< 331 User my-username OK. Password required
> PASS my-password
< 230-User my-username has group access to: my-group
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
* Entry path is '/'
> CWD git
< 250 OK. Current directory is /git
> CWD test.git
< 250 OK. Current directory is /git/test.git
> CWD info
< 250 OK. Current directory is /git/test.git/info
> EPSV
* Connect data stream passively
< 500 Unknown command
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode ([not shown])
* Trying my-ftp-ip... * Connecting to my-ftp-ip (my-ftp-ip) port 63983
> TYPE I
< 200 TYPE is now 8-bit binary
> SIZE refs
< 213 59
> RETR refs
< 150 Accepted data connection
* Maxdownload = -1
* Getting file with size: 59
* Remembering we are in dir "git/test.git/info/"
< 226-File successfully transferred
< 226 0.000 seconds (measured here), 1.34 Mbytes per second
* Connection #0 to host my-ftp-server left intact
* Re-using existing connection! (#0) with host my-ftp-server
* Connected to my-ftp-server (my-ftp-ip) port 21 (#0)
> CWD /
< 250 OK. Current directory is /
> CWD git
< 250 OK. Current directory is /git
> CWD test.git
< 250 OK. Current directory is /git/test.git
> PASV
* Connect data stream passively
< 227 Entering Passive Mode ([not shown])
* Trying my-ftp-ip... * Connecting to my-ftp-ip (my-ftp-ip) port 63462
> SIZE HEAD
< 213 23
> RETR HEAD
< 150 Accepted data connection
* Maxdownload = -1
* Getting file with size: 23
* Remembering we are in dir "git/test.git/"
< 226-File successfully transferred
< 226 0.000 seconds (measured here), 0.63 Mbytes per second
* Connection #0 to host my-ftp-server left intact
trace: run_command: 'http-push' '--helper-status'
'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: exec: 'git' 'http-push'
'--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: exec: 'git-http-push'
'--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: run_command:
'git-http-push' '--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master'
* About to connect() to my-ftp-server port 21 (#0)
* Trying my-ftp-ip... * Connected to my-ftp-server (my-ftp-ip) port
21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 220-You are user number 7 of 400 allowed.
< 220-Local time is now 11:23. Server port: 21.
< 220-This is a private system - No anonymous login
< 220 You will be disconnected after 15 minutes of inactivity.
> USER my-username
< 331 User my-username OK. Password required
> PASS my-password
< 230-User my-username has group access to: my-group
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
* Entry path is '/'
* Uploading to a URL without a file name!
* Closing connection #0
error: Cannot access URL ftp://my-ftp-server/git/test.git/, return code
3 fatal: git-http-push failed
--
You received this message because you are subscribed to the Google
Groups "Git for human beings" group. To view this discussion on the web
visit https://groups.google.com/d/msg/git-users/-/n_i8DslaCr8J. To post
to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
next reply other threads:[~2012-10-05 13:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-05 13:38 Konstantin Khomoutov [this message]
2012-10-05 13:46 ` Fw: [git-users] How do I git-push to an FTP server? Philippe Vaucher
[not found] ` <CAGK7Mr4L0Us3ykLUoWBdyR2zJUNa_HNguwb-=dEq_h_yXThPPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-05 15:21 ` Fw: " Thomas Ferris Nicolaisen
[not found] ` <CAEcj5uW4aw19MgNi8vJk5TWoL6SEad=s2jthS-h1jLTtuPq7AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-05 21:48 ` Junio C Hamano
2012-10-07 15:28 ` Fw: [git-users] " Ramkumar Ramachandra
2012-10-07 17:27 ` Jonathan Nieder
[not found] ` <20121007172754.GA29560-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-07 20:46 ` Fw: " Junio C Hamano
2012-10-08 7:23 ` Fw: [git-users] " Ramkumar Ramachandra
2012-10-08 8:02 ` Jonathan Nieder
[not found] ` <20121008080208.GC19733-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-08 15:39 ` Fw: " Junio C Hamano
[not found] ` <7v7gr1nfby.fsf-s2KvWo2KEQL18tm6hw+yZpy9Z0UEorGK@public.gmane.org>
2012-10-08 17:26 ` Junio C Hamano
2012-10-08 20:18 ` Fw: [git-users] " Jonathan Nieder
[not found] ` <20121008201816.GB7698-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-08 21:38 ` Fw: " Junio C Hamano
2012-10-05 17:38 ` Konstantin Khomoutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121005173833.e96c4fcfed0cce5b78911b0b@domain007.com \
--to=flatworm-rn4veauk+akrv+lv9mx5uipxlwaovq5f@public.gmane.org \
--cc=fusionfile-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=git-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).