github-changelog-generator icon indicating copy to clipboard operation
github-changelog-generator copied to clipboard

Fails on Ubuntu 16.04 Faraday::ConnectionFailed using SSL

Open bgirardot opened this issue 8 years ago • 13 comments

Just for reference, I hit this error running on ubuntu 16.04:

/usr/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect': Failed to open TCP connection to api.github.com:443 (getaddrinfo: Temporary failure in name resolution) (Faraday::ConnectionFailed)

sudo apt-get install ca-cacert fixed the issue.

bgirardot avatar Nov 02 '17 13:11 bgirardot

Oh my mistake, installing the certs did not fix the issue.

Anyone have any ideas?

bgirardot avatar Nov 02 '17 13:11 bgirardot

@bgirardot Would you share the details about your version etc?

olleolleolle avatar Nov 02 '17 13:11 olleolleolle

@olleolleolle My apologies, I am not much of a developer, especially ruby.

github_changelog_generator --version Version: 1.14.3

ruby --version ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

I am sure there is something I could do that would give a lot more details about all the ruby items that are installed.

bgirardot avatar Nov 02 '17 13:11 bgirardot

@bgirardot Could you try the --pre version of this gem? gem install with the --pre suffix.

olleolleolle avatar Nov 02 '17 14:11 olleolleolle

It did not change anything for me, still errored at the same place, but here is the output from the --pre install:

sudo gem install --pre github_changelog_generator [sudo] password for bg: Fetching: retriable-3.1.1.gem (100%) Successfully installed retriable-3.1.1 Fetching: github_changelog_generator-1.15.0.pre.rc.gem (100%) Successfully installed github_changelog_generator-1.15.0.pre.rc Parsing documentation for retriable-3.1.1 Installing ri documentation for retriable-3.1.1 Parsing documentation for github_changelog_generator-1.15.0.pre.rc Installing ri documentation for github_changelog_generator-1.15.0.pre.rc Done installing documentation for retriable, github_changelog_generator after 3 seconds 2 gems installed

bgirardot avatar Nov 02 '17 14:11 bgirardot

So, while reading options, I noted an untruth in the docs: SSL_CA_PATH is not the environment variable we check, but SSL_CA_FILE.

Idea: Is your SSL_CA_FILE path is set and pointing at a certificate bundle which works with GitHub?

olleolleolle avatar Nov 02 '17 14:11 olleolleolle

I do not seem to have an env variable set related to ssl.

I would set that in my local environment where I run the gem?

bgirardot avatar Nov 02 '17 15:11 bgirardot

Does this help at all? I see this certs file:

/var/lib/gems/2.3.0/gems/github_changelog_generator-1.15.0.pre.rc/lib/github_changelog_generator/ssl_certs/cacert.pem

bgirardot avatar Nov 02 '17 15:11 bgirardot

@bgirardot The goal for this gem is to provide a certi bundle file which would work, when not SSL_CA_FILE env variable was set in the user's environment.

Perhaps it's time for a refresh of the bundle.

You could download one and try it, overriding the one which comes with the gem.

$ curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem

Then try calling the tool with this newly-downloaded thing:

$ SSL_CA_FILE=./cacert.pem github_changelog_generator

PS: You're helping me also, by testing this out on your machine. Thanks for that.

olleolleolle avatar Nov 02 '17 15:11 olleolleolle

Exactly the same results unfortunately. I also tried with exporting the variable so i knew it was in my env variable.

something else must be going on with os.

I am running ubuntu in a VirtualBox VM, but that has never caused me any issues in years.

It is just a very standard install straight from the ISO, fresh install.

thank you for all the help, but I am going to keep working on it, unless something else pops into your thoughts.

bgirardot avatar Nov 02 '17 15:11 bgirardot

Hi! First of all, great tool! I was very satisfied with its output.

Any updates in the matter of this issue? I have encountered it too, including official Docker image. I have done own build from source in a container on both 16.04 and 17.10 with the same effect. Used commit: https://github.com/skywinder/github-changelog-generator/commit/0b013f44f8db76ce50a1315e1c1d51f94aae45fe (current master). Tested SSL_CA_FILE as well.

Looking at the usage history, it was working for me lately (edit: using Version: 1.14.3): on Jan 17 2018 and Dec 20, 2017.

If there are any other working environments please let me know, so I could switch for the time of changelog generation.

Error message:

/usr/local/bin/github_changelog_generator: end of file reached (Faraday::ConnectionFailed)

Call:

github_changelog_generator --user Nitrokey --project nitrokey-app -t <token>

Edit: Looking at the message closer, this might be actually another error.

szszszsz avatar Apr 12 '18 06:04 szszszsz

hello,

Thanks for this tool.

I am not a ruby user and do not wanted to install all the ruby stufff so I am using the docker image provided by ferrarimarco. Running it it found the repository, fetch the tags and then it facing the same issue. reproducing is quite simple with the image, unfortunately.

talend-jphautin avatar Jun 14 '18 08:06 talend-jphautin

Have the same issue:

Failed to open TCP connection to api.github.com:443 (getaddrinfo: nodename nor servname provided, or not known) (Faraday::ConnectionFailed)
bundler: failed to load command: github_changelog_generator

on MacOS, github_changelog_generator (1.13.2)

Hatko avatar Sep 12 '19 12:09 Hatko