Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got 425 Cannot open data connection when uploading files through ftp #9347

Closed
jdneo opened this issue Mar 16, 2018 · 6 comments
Closed

Got 425 Cannot open data connection when uploading files through ftp #9347

jdneo opened this issue Mar 16, 2018 · 6 comments

Comments

@jdneo
Copy link

jdneo commented Mar 16, 2018

Hi team.

I'm using travis CI to run some integration test for my project. The integration test is trying to upload some files onto the target ftp server. The ftp client is using local passive mode.

The integration test works well previously, but start from some time ago, it always get '425 Cannot open data connection' when doing the uploading. (Actually not every time but almost.)

I've run the integration test locally and it can upload the files correctly. Is that related with the CI firewall setting? Any suggestions about this?

Thanks!

@BanzaiMan
Copy link
Contributor

I think this is a variation of #9112 (comment).

@jdneo
Copy link
Author

jdneo commented Mar 16, 2018

@BanzaiMan Thanks for pointing out.

To give some more information: The target ftp server I'm uploading with is an Azure Web App ftp server.

And is there any suggestion on how to mitigate this?

@BanzaiMan
Copy link
Contributor

If you can run your builds on containers, do. (https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments) We have not figured out how the failures are happening with FTP servers.

@jdneo
Copy link
Author

jdneo commented Mar 20, 2018

The problem seems resolved after I switch to the containers. Thanks.

@angelgbi
Copy link

For those like me that are searching why are getting errors with ftp connections, here is the answer https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci.

If you want to use FTP you need to set travis to run on a container-based environment.

A note from travis doc:

Note that the following keywords in your .travis.yml file will silently route your builds to our sudo-enabled infrastructure (even if you specify sudo: false): docker, ping, sudo.

@cderv
Copy link

cderv commented Dec 19, 2018

Hi,
since the end of container based environment, we do not have a choice anymore and we encounter an issue we thing related to this (RETR response: 425).

Have you a new solution or hints ? We only have FTP as option and not HTTPS or SFTP as advice in the FTP blog post linked above. There is something mentioned about a VPN tunnelling option. Did you try ?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants