dmathieu / glynn

Unmaintained. See the README - Generate your jekyll blog files and sends them through FTP
MIT License
359 stars 56 forks source link

Load _glynn.yml before setting ftp config vars #53

Closed dmathieu closed 8 years ago

dmathieu commented 8 years ago

Closes #52 cc @vjandrei

vjandrei commented 8 years ago

Great, I will check it.

dmathieu commented 8 years ago

You can use it directly. I've just released v1.2.3.

vjandrei commented 8 years ago

Mathieu why to console says still Successfully generated site Sending site over FTP (host: maukasta.fi, port: 22, ftps: true) Connected to server. Sending site /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/gems/double-bag-ftps-0.1.2/lib/double_bag_ftps.rb:83:in `initialize': Connection refused - connect(2) for "maukasta.fi" port 21 (Errno::ECONNREFUSED)

I have but port 22 but it will show port 21 ECONNREFUSED ? I have test the connection other ftp clients and it works fine? What I miss here.

dmathieu commented 8 years ago

That's definitely strange, as it would appear we're properly using port 22.

Sending site over FTP (host: maukasta.fi, port: 22, ftps: true)

That could be a bug in the DoubleBagFTPS library. Could you try disabling ftp_secure?

vjandrei commented 8 years ago

Now I had ftp_secure: false and port 22 but still /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:228:in `initialize': Connection refused - connect(2) for "maukasta.fi" port 21 (Errno::ECONNREFUSED)

dmathieu commented 8 years ago

Could you try explicitely passing an active connection?

ftp_passive: false

It looks like this happens when DoubleBagFTPS calls open_socket, for which the host/port are set with makepasv which itself is in Net::FTP. An invalid port here seems to indicate your FTP server itself returned 21 as the required port.

Using an active connection might solve your issue.