rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
607 stars 189 forks source link

FTP server outage blocks the gem installation (1.3.0) #430

Open januszm opened 5 years ago

januszm commented 5 years ago

Currently the ftp://ftp.freetds.org/pub/freetds/ is down and it causes all gem install tiny_tds -v "1.3.0" commands to fail. Unfortunately in environments like AWS Elastic Beanstalk (Amazon Linux, for some weird reason the freetds is still at 0.91) where servers can be recycled regularly it is causing major problems. In worst cases all servers go down.

Currently the installation process, at least for 1.3.x version depends on a single, external server. It seems like http://www.freetds.org/files/stable/ works. Would it be possible to update the 1.3.x branch to use at least 2 servers withing freetds.org ?

wpolicarpo commented 5 years ago

Why not upgrade to 2.x? Is there any special reason to stick with an older version?

januszm commented 5 years ago

2.x does not install FreeTDS. If I understand correctly, this "feature" was removed in 2.0. In some environments, like Amazon Linux, FreeTDS 0.95+ is not available.

januszm commented 5 years ago

https://github.com/rails-sqlserver/tiny_tds/pull/431

This resolves the issue by changing FreeTDS source url from FTP to WWW mirror (similar change was made on 2.x branch already)