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

Does not upload files via FTP #6

Open
cale-inspired opened this issue Nov 7, 2016 · 10 comments
Open

Does not upload files via FTP #6

cale-inspired opened this issue Nov 7, 2016 · 10 comments

Comments

@cale-inspired
Copy link

cale-inspired commented Nov 7, 2016

I am trying to use hugodeploy to deploy my files to my server via FTP. When I use hugodeploy push, it connects to the FTP successfully but does not proceed sending files.


$ ./hugodeploy push
Using config file: /home/calp/hugo/inspiritana/hugodeploy.yaml
Creating FTP connection... 
Successfully connected to FTP
Comparing Dst:  deployed  With Src:  public
Sending file:  /inspiritana/404.html ...

404.zip
That's where it's "stuck" for minutes, and after a while it ends with:

ERROR: 2016/11/08 00:28:39 ftp.go:131: FTP Error uploading file:  /inspiritana/404.html EOF
ERROR: 2016/11/08 00:28:39 scan.go:354: Error:  EOF

The installation instructions state to set the SFTP data but my server does not support SSH, only FTP. I assume hugodeploy supports deployment via FTP since it is settable in the config?

@neurodancer
Copy link

I am having the same issue. If I try to use sftp, I get a program crash.

@mindok
Copy link
Owner

mindok commented Nov 15, 2016

Hi @inspiritana & @neurodancer
Could you please provide a couple of things to help me troubleshoot.

  1. Attach the file it is failing on (looks like the 404.html) to this issue report.
  2. The type of ftp server at the other end. If not known, then if you have a hosting provider (e.g. namecheap, bluehost or whatever) let me know who it is.

@inspiritana - yes, hugodeploy supports FTP, but not yet SFTP. I have corrected the readme and will update next time I update.

@neurodancer - apologies for the confusion re: sftp - there's an obscure note at the bottom of the readme indicating it isn't yet fully implemented.

@mindok
Copy link
Owner

mindok commented Nov 15, 2016

PS - hugodeploy uses goftp from dutchcoders (https://github.com/dutchcoders/goftp) - it looks like the EOF error is coming from the Stor call into there.

@neurodancer
Copy link

On 15 Nov 2016, at 16:33, mindok wrote:

Hi @inspiritana & @neurodancer
Could you please provide a couple of things to help me troubleshoot.

  1. Attach the file it is failing on (looks like the 404.html) to this
    issue report.
  2. The type of ftp server at the other end. If not known, then if you
    have a hosting provider (e.g. namecheap, bluehost or whatever) let me
    know who it is.

@inspiritana - yes, hugodeploy supports FTP, but not yet SFTP. I have
corrected the readme and will update next time I update.

@neurodancer - apologies for the confusion re: sftp - there's an
obscure note at the bottom of the readme indicating it isn't yet fully
implemented.

I am only using ftp.

My hosting provider is http://hostmonster.com.

The 404.html file is actually empty.

I put a minimal html body in it with

something for it to copy

in
there, same issue.

@cale-inspired
Copy link
Author

Hi @inspiritana & @neurodancer
Could you please provide a couple of things to help me troubleshoot.

  1. Attach the file it is failing on (looks like the 404.html) to this issue report.
  2. The type of ftp server at the other end. If not known, then if you have a hosting provider (e.g. namecheap, bluehost or whatever) let me know who it is.
  1. done, see above (even though I guess, it's not related to the file?)
  2. My provider is all-inkl.com. Unfortunately I cannot provide any information on the FTP myself...

@simonsmith
Copy link

Getting the same issue. If you need further info for debugging I'll be happy to provide it.

Thanks

@mindok
Copy link
Owner

mindok commented Nov 29, 2016

Hi @simonsmith - could you just confirm what hosting provider you are using, and also which version of dutchcode/gotftp you are using (or about when you pulled it down).
I'm just about to drive across Australia (moving house - about 4000km drive) so I won't get to this for a week or so. Apologies to all for the delay - it happened quite quickly.

@simonsmith
Copy link

Hey @mindok, I'm using name.com and not sure how to check the package version but I installed it just an hour ago.

No problem with the delay, good luck with that drive!

@mindok
Copy link
Owner

mindok commented Jan 28, 2017

OK @simonsmith - we have completed our move and got reliable broadband internet. The long drive was a lot less challenging than trying to get our telco to turn up over the long summer holiday period. Anyway - well & truly back on line now.

I can't repro the problem - I'll try a couple more things, but in the meantime I have added some debug tracing to look at counts of bytes being sent to the ftp.Stor method in goftp, and also dumped the contents of any failed transfer attempt out to stdout. To get the detailed logging run hugodeploy with the debug flag set - e.g.
./hugodeploy push -d

@mindok
Copy link
Owner

mindok commented Apr 4, 2017

Hi @simonsmith, @cale-inspired , @neurodancer - I was able to have a real-time debugging session with someone having FTP problems and have pushed a few changes that may help...

The -d or -v command-line switch now enable goftp's debugging trace that should provide better feedback. There is also a new option to disable TLS on servers that don't support it. Let me know if this solves the issues.

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