Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v1.14.0 Fails with missing /tmp/ path on Windows #458

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

Closed
Arcanemagus opened this issue Nov 30, 2016 · 10 comments
Closed

v1.14.0 Fails with missing /tmp/ path on Windows #458

Arcanemagus opened this issue Nov 30, 2016 · 10 comments

Comments

@Arcanemagus
Copy link
Contributor

It seems that v1.14.0 introduced a bug where it attempts to create /tmp/github_changelog-logger.log... which isn't a valid path on Windows and thus fails.

The stack trace:

C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `initialize': No such file or directory @ rb_sysopen - /tmp/github-changelog-logger.log (Errno::ENOENT)
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `create_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:705:in `rescue in open_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:702:in `open_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:695:in `set_dev'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:635:in `initialize'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:353:in `new'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:353:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator/octo_fetcher.rb:51:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator/octo_fetcher.rb:51:in `init_cache'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator/octo_fetcher.rb:34:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator/generator/generator.rb:24:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator/generator/generator.rb:24:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator.rb:28:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/lib/github_changelog_generator.rb:28:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/bin/github_changelog_generator:5:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.0/bin/github_changelog_generator:5:in `<top (required)>'
        from C:/Ruby23-x64/bin/github_changelog_generator:22:in `load'
        from C:/Ruby23-x64/bin/github_changelog_generator:22:in `<main>'

It's possible this is related to 41271b1, but I'm just guessing here.

Side note: An AppVeyor config was added back in #350, but it doesn't seem to currently be being built?

If there is any further information needed, or any debug steps you want me to take don't hesitate to ask!

@olleolleolle olleolleolle changed the title v1.14.0 Fails on Windows v1.14.0 Fails on missing path on Windows Dec 2, 2016
@olleolleolle olleolleolle changed the title v1.14.0 Fails on missing path on Windows v1.14.0 Fails with missing /tmp/ path on Windows Dec 2, 2016
@vatbub
Copy link

vatbub commented Feb 3, 2017

Guys, me too, the stacktrace is

C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `initialize': No such file or directory @ rb_sysopen - /tmp/github-changelog-logger.log (Errno::ENOENT)
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:711:in `create_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:705:in `rescue in open_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:702:in `open_logfile'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:695:in `set_dev'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:635:in `initialize'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:353:in `new'
        from C:/Ruby23-x64/lib/ruby/2.3.0/logger.rb:353:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator/octo_fetcher.rb:50:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator/octo_fetcher.rb:50:in `init_cache'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator/octo_fetcher.rb:34:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator/generator/generator.rb:24:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator/generator/generator.rb:24:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator.rb:28:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/lib/github_changelog_generator.rb:28:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/bin/github_changelog_generator:5:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/github_changelog_generator-1.14.3/bin/github_changelog_generator:5:in `<top (required)>'
        from C:/Ruby23-x64/bin/github_changelog_generator:22:in `load'
        from C:/Ruby23-x64/bin/github_changelog_generator:22:in `<main>'

@Arcanemagus
Copy link
Contributor Author

Ah, looks like the discussion in #459 never got migrated over here.

The short story is this is fixed by the changes in #459, however the certificate store bundled with Ruby on Windows is too out of date to authenticate the SSL from GitHub, so it fails anyway. @olleolleolle was looking into a solution to this per #459 (comment).

@55
Copy link

55 commented Mar 10, 2017

Getting same thing as @vatbub. Are there any existing solutions for this now?

@olleolleolle
Copy link
Collaborator

olleolleolle commented Mar 10, 2017

A workaround to try could be:

The options cache_file and cache_log can be set, to avoid running the above code:

https://github.com/skywinder/github-changelog-generator/blob/master/lib/github_changelog_generator/octo_fetcher.rb#L34-L35

@Arcanemagus
Copy link
Contributor Author

Marking this as closed since #459 fixes the issue described here. Please follow #475 for the next issue preventing this from running on Windows.

If you don't need the latest version you can force the v1.13.2 version as it is the last working version on Windows.

@ceddlyburge
Copy link

I just gem installed this on a windows machine and hit the same error.

I couldn't find out how to set --cache_log and --cache-file to nil via command line parameters.

I was able to make it work by simply creating a c:\tmp folder though.

@radarsh
Copy link

radarsh commented Nov 5, 2017

Git bash user on Windows. I solved it by adding --cache_log /dev/null command line argument.

@RareScrap
Copy link

@ceddlyburge Thank you!

@LexiconCode
Copy link

I was able to make it work by simply creating a c:\tmp folder though.

This should be included on the readme for windows

@olleolleolle
Copy link
Collaborator

olleolleolle commented Apr 8, 2019

@LexiconCode Just now, I added a link to this Issue, and the shortest-possible Workaround note in the FAQ. Would you've found it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants