hugodeploy
hugodeploy copied to clipboard
Does not upload files via FTP
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?
I am having the same issue. If I try to use sftp, I get a program crash.
Hi @inspiritana & @neurodancer Could you please provide a couple of things to help me troubleshoot.
- Attach the file it is failing on (looks like the 404.html) to this issue report.
- 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.
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.
On 15 Nov 2016, at 16:33, mindok wrote:
Hi @inspiritana & @neurodancer Could you please provide a couple of things to help me troubleshoot.
- Attach the file it is failing on (looks like the 404.html) to this issue report.
- 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.
Hi @inspiritana & @neurodancer Could you please provide a couple of things to help me troubleshoot.
- Attach the file it is failing on (looks like the 404.html) to this issue report.
- 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.
- done, see above (even though I guess, it's not related to the file?)
- My provider is all-inkl.com. Unfortunately I cannot provide any information on the FTP myself...
Getting the same issue. If you need further info for debugging I'll be happy to provide it.
Thanks
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.
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!
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
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.