Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not upload files error in GitFTP

Tags:

git-ftp

I'm following tutorial on http://anantgarg.com/2013/09/25/git-ftp-for-windows/ and get error:

$ git ftp init
There are 720 files to sync:
[1 of 720] Buffered for upload '.gitignore'.
[2 of 720] Buffered for upload 'wp-config-sample.php'.
....
[24 of 720] Buffered for upload 'wp-content/plugins/woocommerce/admin/post-types/writepanels/order-item-html.php'.
Uploading ...
fatal: Could not upload files., exiting...

what could be the problem? I've set the password using quotes ( 'mypassword' ) but same error still occur

like image 733
Permana Avatar asked Dec 12 '13 01:12

Permana


1 Answers

You can see output of the exact error by using the '-v' flag for super-verbose output.

The problem could be one of the following

  1. Incorrect FTP credentials - check that the server, username, and password are all correct.
    • URL/server: make sure to include the protocol with the URL if not standard FTP (sftp://ftp.domain.com:22).
    • Password: Try also removing the quotes around the password
  2. The server path is not set or incorrect. Often, an FTP login takes you to the server root. You may not have write-privileges there. You'll need to set the site root path.
    • try setting path with in the URL argument ftp://ftp.domain.com/public_html

Try doing an 'init' via command-line arguments instead (NOT via Git config settings) and set verbose output using '-v':

git ftp init -u username -p 'password' -v ftpserverurl.com
like image 172
dpidan Avatar answered Sep 28 '22 00:09

dpidan