bitrise-steplib / steps-ftp-upload

Bitrise step to upload a single file or a folder to an FTP server
MIT License
4 stars 12 forks source link

Ftp upload step works fine, however log shows fail. #5

Closed mcyz closed 7 years ago

mcyz commented 9 years ago

Here my successful ftp upload logs;

+------------------------------------------------------------------------------+
| (8) ftp-upload@2.0.0                                                         |
+------------------------------------------------------------------------------+
| id: ftp-upload                                                               |
| version: 2.0.0                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| time: 2015-10-16T02:40:55-07:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
==> Downloading https://homebrew.bintray.com/bottles/lftp-4.6.4.yosemite.bottle.tar.gz
==> Pouring lftp-4.6.4.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/lftp/4.6.4: 20 files, 2.6M
# Uploading:
* from: `/Users/vagrant/git/Milliyet/fastlane/screenshots/`
* to: `test/`
 (i) Uploading: /Users/vagrant/git/Milliyet/fastlane/screenshots/ -> test/
# FTP upload failed!
Check the Logs for details.
 [!] Failed!
ERRO[02:41:08] [ENVMAN] - Failed to execute command:exit status 1 
ERRO[02:41:08] Step (ftp-upload@2.0.0) failed, error: (exit status 1) 
|                                                                              |
+----+--------------------------------------------------------------+----------+
| 🚫  | ftp-upload@2.0.0 (exit code: 1)                              | 18 sec   |
+----+--------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-ftp-upload/issues         |
| Source: https://github.com/bitrise-io/steps-ftp-upload                       |
+----+--------------------------------------------------------------+----------+
godrei commented 8 years ago

Hi @mcyz , we released a new version 2.0.1, could you please update your step and open a new issue if, it exists in the new version too?

kensykora commented 7 years ago

@godrei I'm seeing the same thing in my logs -- files upload successfully but exits with error code 1. Using the latest version.

+------------------------------------------------------------------------------+
| (2) Azure Deploy                                                             |
+------------------------------------------------------------------------------+
| id: ftp-upload                                                               |
| version: 2.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2017-01-23T15:50:29-08:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |

Configs:
  * hostname: waws-prod-ch1-023.ftp.azurewebsites.windows.net
  * username: projecttest\myproject
  * password: <redacted>
  * upload_source_path: /Users/vagrant/git/src/project.Myproject.JSClient/
  * upload_target_path: site/wwwroot/

Installing lftp on Darwin
  $ brew install homebrew/boneyard/lftp
==> Tapping homebrew/boneyard
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard'...
Tapped 276 formulae (310 files, 616.9K)
==> Installing lftp from homebrew/boneyard
==> Installing dependencies for homebrew/boneyard/lftp: pkg-config
==> Installing homebrew/boneyard/lftp dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.sierra.bottle.tar.gz
==> Pouring pkg-config-0.29.1_2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.5K
==> Installing homebrew/boneyard/lftp 
==> Downloading https://lftp.yar.ru/ftp/lftp-4.6.6.tar.xz
==> Downloading from https://lftp.tech/ftp/lftp-4.6.6.tar.xz
==> ./configure --prefix=/usr/local/Cellar/lftp/4.6.6 --with-openssl=/usr/local/opt/openssl
==> make install
🍺  /usr/local/Cellar/lftp/4.6.6: 21 files, 2.5M, built in 3 minutes 18 seconds

Uploading /Users/vagrant/git/src/project.Myproject.JSClient/ -> site/wwwroot/
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | Azure Deploy (exit code: 1)                                   | 222 sec  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-ftp-upload/issues         |
| Source: https://github.com/bitrise-io/steps-ftp-upload                       |
motorro commented 7 years ago

@godrei same for me:

+------------------------------------------------------------------------------+

| (5) ftp-upload@2.0.4                                                         |
+------------------------------------------------------------------------------+
| id: ftp-upload                                                               |
| version: 2.0.4                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2017-08-07T05:45:01Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Configs:
  * hostname: ftp://waws-prod-sn1-107.ftp.azurewebsites.windows.net
  * username: ***
  * password: ***
  * upload_source_path: ./build
  * upload_target_path: /site/wwwroot
Installing lftp on Linux
  $ sudo apt-get install lftp
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  lftp
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 499 kB of archives.
After this operation, 1,446 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 lftp amd64 4.6.3a-1build2 [499 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 499 kB in 0s (776 kB/s)
Selecting previously unselected package lftp.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 49244 files and directories currently installed.)
Preparing to unpack .../lftp_4.6.3a-1build2_amd64.deb ...
Unpacking lftp (4.6.3a-1build2) ...
Setting up lftp (4.6.3a-1build2) ...
Uploading ./build -> /site/wwwroot
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | ftp-upload@2.0.4 (exit code: 1)                               | 23 sec   |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-ftp-upload/issues         |
| Source: https://github.com/bitrise-io/steps-ftp-upload                       |
+---+---------------------------------------------------------------+----------+

Files get uploaded and no readable error returned

trapacska commented 7 years ago

Hey!

Thank you for reporting the issue, it is fixed now in the new version: https://github.com/bitrise-io/steps-ftp-upload/releases/tag/2.1.2