You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is the proper place to submit a build issue, but on my Fedora 28 system, if I run "bundle install", I get:
$ bundle install
Fetching https://github.com/asciidoctor/asciidoctor-epub3
error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-ba930925a1df has failed.
If this error persists you could try removing the cache directory '/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-ba930925a1df has failed.
If this error persists you could try removing the cache directory '/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: cannot open .git/FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-ba930925a1df has failed.
If this error persists you could try removing the cache directory '/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: cannot open .git/FETCH_HEAD: Permission denied
Git error: command `git fetch --force --quiet --tags
"/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory
/usr/share/gems/bundler/gems/asciidoctor-epub3-ba930925a1df has failed.
If this error persists you could try removing the cache directory
'/home/rpjday/.bundle/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'
Since I'm interested only in PDF, I commented out the line from Gemfile to generate epub3, and all works fine. Is there something I need to change about my system setup to resolve this?
$ bundle installIgnoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0Ignoring json-2.0.4 because its extensions are not built. Try: gem pristine json --version 2.0.4Ignoring json-2.0.3 because its extensions are not built. Try: gem pristine json --version 2.0.3Ignoring json-2.0.2 because its extensions are not built. Try: gem pristine json --version 2.0.2Ignoring kindlegen-3.0.3 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.3Ignoring kindlegen-3.0.2 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.2Ignoring kindlegen-3.0.1 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.1Ignoring kindlegen-2.9.7 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.7Ignoring kindlegen-2.9.6 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.6Ignoring nokogiri-1.6.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8.1Ignoring nokogiri-1.6.8 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8Ignoring nokogiri-1.6.7.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.2Ignoring nokogiri-1.6.7.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.1Ignoring posix-spawn-0.3.12 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.12Ignoring posix-spawn-0.3.11 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.11Ignoring posix-spawn-0.3.9 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.9Fetching https://github.com/asciidoctor/asciidoctor-epub3error: impossible d'ouvrir .git/FETCH_HEAD: Permission non accordéeRetrying git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18" due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-c8ca2e297cd1 has failed.If this error persists you could try removing the cache directory '/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: impossible d'ouvrir .git/FETCH_HEAD: Permission non accordéeRetrying git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18" due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-c8ca2e297cd1 has failed.If this error persists you could try removing the cache directory '/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: impossible d'ouvrir .git/FETCH_HEAD: Permission non accordéeRetrying git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18" due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory /usr/share/gems/bundler/gems/asciidoctor-epub3-c8ca2e297cd1 has failed.If this error persists you could try removing the cache directory '/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'error: impossible d'ouvrir .git/FETCH_HEAD: Permission non accordéeGit error: command `git fetch --force --quiet --tags "/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18"` in directory/usr/share/gems/bundler/gems/asciidoctor-epub3-c8ca2e297cd1 has failed.If this error persists you could try removing the cache directory '/home/aollier/.bundler/cache/git/asciidoctor-epub3-3986efa04ab5fd28abe5678d7e330e173e425f18'
$ sudo bundle install[sudo] Mot de passe de aollier : Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.Fetching https://github.com/asciidoctor/asciidoctor-epub3Fetching gem metadata from https://rubygems.org/...........Fetching version metadata from https://rubygems.org/..Resolving dependencies...Using rake 13.0.1Using Ascii85 1.0.3Using public_suffix 4.0.1Using afm 0.2.2Using asciidoctor 1.5.6.1Using concurrent-ruby 1.1.5Using mini_portile2 2.4.0Using rubyzip 2.0.0Using thread_safe 0.3.6Using pdf-core 0.7.0Using ttfunk 1.5.1Using hashery 2.1.2Using ruby-rc4 0.1.5Using safe_yaml 1.0.5Using polyglot 0.3.5Using awesome_print 1.8.0Using coderay 1.1.2Using epubcheck 3.0.1Using json 2.3.0Using multi_json 1.14.1Using bundler 1.11.2Using addressable 2.7.0Using nokogiri 1.10.7Using kindlegen 3.0.4Using prawn 2.2.2Using pdf-reader 2.4.0Using treetop 1.5.3Using pygments.rb 1.2.1Using css_parser 1.7.1Using gepub 1.0.6Using prawn-icon 1.3.0Using prawn-table 0.2.2Using prawn-templates 0.1.1Using prawn-svg 0.27.1Using asciidoctor-epub3 1.5.0.alpha.10.dev from https://github.com/asciidoctor/asciidoctor-epub3 (at master@c8ca2e2)NoMethodError: undefined method `[]' for nil:NilClassUsing asciidoctor-pdf 1.5.0.alpha.16An error occurred while installing asciidoctor-epub3 (1.5.0.alpha.10.dev), and Bundler cannot continue.
$ sudo bundle installDon't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.Fetching gem metadata from https://rubygems.org/...........Fetching version metadata from https://rubygems.org/..Resolving dependencies...Using rake 13.0.1Using Ascii85 1.0.3Using public_suffix 4.0.1Using afm 0.2.2Installing asciidoctor 2.0.10Using concurrent-ruby 1.1.5Using mini_portile2 2.4.0Using rubyzip 2.0.0Using thread_safe 0.3.6Using pdf-core 0.7.0Using ttfunk 1.5.1Using hashery 2.1.2Using ruby-rc4 0.1.5Using safe_yaml 1.0.5Using polyglot 0.3.5Using awesome_print 1.8.0Using coderay 1.1.2Using epubcheck 3.0.1Using json 2.3.0Using multi_json 1.14.1Using bundler 1.11.2Using addressable 2.7.0Using nokogiri 1.10.7Using kindlegen 3.0.4Using prawn 2.2.2Using pdf-reader 2.4.0Using treetop 1.5.3Using pygments.rb 1.2.1Using css_parser 1.7.1Using gepub 1.0.6Using prawn-icon 2.5.0Using prawn-table 0.2.2Using prawn-templates 0.1.2Using prawn-svg 0.30.0Installing asciidoctor-epub3 1.5.0.alpha.9Installing asciidoctor-pdf 1.5.0.beta.8Bundle complete! 11 Gemfile dependencies, 36 gems now installed.Use `bundle show [gemname]` to see where a bundled gem is installed.
But now bundle exec rake book:build fails:
$ bundle exec rake book:buildIgnoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0Ignoring json-2.0.4 because its extensions are not built. Try: gem pristine json --version 2.0.4Ignoring json-2.0.3 because its extensions are not built. Try: gem pristine json --version 2.0.3Ignoring json-2.0.2 because its extensions are not built. Try: gem pristine json --version 2.0.2Ignoring kindlegen-3.0.3 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.3Ignoring kindlegen-3.0.2 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.2Ignoring kindlegen-3.0.1 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.1Ignoring kindlegen-2.9.7 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.7Ignoring kindlegen-2.9.6 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.6Ignoring nokogiri-1.6.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8.1Ignoring nokogiri-1.6.8 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8Ignoring nokogiri-1.6.7.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.2Ignoring nokogiri-1.6.7.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.1Ignoring posix-spawn-0.3.12 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.12Ignoring posix-spawn-0.3.11 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.11Ignoring posix-spawn-0.3.9 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.9Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0Ignoring json-2.0.4 because its extensions are not built. Try: gem pristine json --version 2.0.4Ignoring json-2.0.3 because its extensions are not built. Try: gem pristine json --version 2.0.3Ignoring json-2.0.2 because its extensions are not built. Try: gem pristine json --version 2.0.2Ignoring kindlegen-3.0.3 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.3Ignoring kindlegen-3.0.2 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.2Ignoring kindlegen-3.0.1 because its extensions are not built. Try: gem pristine kindlegen --version 3.0.1Ignoring kindlegen-2.9.7 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.7Ignoring kindlegen-2.9.6 because its extensions are not built. Try: gem pristine kindlegen --version 2.9.6Ignoring nokogiri-1.6.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8.1Ignoring nokogiri-1.6.8 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8Ignoring nokogiri-1.6.7.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.2Ignoring nokogiri-1.6.7.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.1Ignoring posix-spawn-0.3.12 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.12Ignoring posix-spawn-0.3.11 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.11Ignoring posix-spawn-0.3.9 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.9Traceback (most recent call last): 20: from /usr/bin/rake:23:in `<main>' 19: from /usr/share/rubygems/rubygems.rb:303:in `activate_bin_path' 18: from /usr/share/rubygems/rubygems.rb:303:in `synchronize' 17: from /usr/share/rubygems/rubygems.rb:305:in `block in activate_bin_path' 16: from /usr/share/rubygems/rubygems.rb:242:in `finish_resolve' 15: from /usr/share/rubygems/rubygems/request_set.rb:435:in `resolve_current' 14: from /usr/share/rubygems/rubygems/request_set.rb:423:in `resolve' 13: from /usr/share/rubygems/rubygems/resolver.rb:188:in `resolve' 12: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/resolver.rb:42:in `resolve' 11: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:64:in `resolve' 10: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:106:in `start_resolution' 9: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:165:in `initial_state' 8: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:51:in `sort_dependencies' 7: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:69:in `with_no_such_dependency_error_handling' 6: from /usr/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:52:in `block in sort_dependencies' 5: from /usr/share/rubygems/rubygems/resolver.rb:277:in `sort_dependencies' 4: from /usr/share/rubygems/rubygems/resolver.rb:277:in `with_index' 3: from /usr/share/rubygems/rubygems/resolver.rb:277:in `sort_by' 2: from /usr/share/rubygems/rubygems/resolver.rb:277:in `each' 1: from /usr/share/rubygems/rubygems/resolver.rb:283:in `block in sort_dependencies'/usr/share/rubygems/rubygems/resolver.rb:231:in `search_for': Unable to resolve dependency: user requested 'did_you_mean (= 1.3.0)' (Gem::UnsatisfiableDependencyError)
Advices for gems with extensions not built do not work:
forjson_versionin 2.1.0 2.0.{4..2}
do
sudo gem pristine json --version $json_versiondone
ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["json"] = 2.1.0ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["json"] = 2.0.4ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["json"] = 2.0.3ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["json"] = 2.0.2
forkindlegen_versionin 3.0.{3..1} 2.9.{7,6}
do
sudo gem pristine kindlegen --version $kindlegen_versiondone
Restoring gems to pristine condition...Building native extensions. This could take a while...Restored kindlegen-3.0.3ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["kindlegen"] = 3.0.2ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["kindlegen"] = 3.0.1ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["kindlegen"] = 2.9.7ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["kindlegen"] = 2.9.6
fornokogiri_versionin 1.6.8{.1,} 1.6.7.{2,1}
do
sudo gem pristine nokogiri --version $nokogiri_versiondone
ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["nokogiri"] = 1.6.8.1ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["nokogiri"] = 1.6.8ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["nokogiri"] = 1.6.7.2ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["nokogiri"] = 1.6.7.1
forposixspawn_versionin 0.3.{12,11,9}
do
sudo gem pristine posix-spawn --version $posixspawn_versiondone
ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["posix-spawn"] = 0.3.12ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["posix-spawn"] = 0.3.11ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["posix-spawn"] = 0.3.9
Activity
krisfremen commentedon Jun 5, 2018
This looks like a local permission error.
Did you clone as root and maybe doing the bundle install as a regular user?
Check the permissions of the files/directories and maybe modify them via chown and chmod to repair the permissions.
aollier commentedon Dec 23, 2019
Same problem now with Fedora 31:
Ruby version:
aollier commentedon Dec 23, 2019
I changed my Gemfile like this:
Now
bundle installworks fine:But now
bundle exec rake book:buildfails:May someone help?
aollier commentedon Dec 23, 2019
Advices for gems with extensions not built do not work:
aollier commentedon Dec 23, 2019
Here is my Gemfile.lock:
aollier commentedon Dec 26, 2019
I finally resolved my problem: it was necessary to upgrade Bundler.
$ rm Gemfile.lock $ sudo gem install rubygems-update $ sudo update_rubygems $ sudo gem update --system $ bundle install $ sudo gem pristine kindlegen --version 3.0.5 $ bundle install $ bundle exec rake book:buildHere is my new Gemfile.lock: