Skip to content
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

'bundle update' occurs error Permission denied rb_file_s_symlink #104

Closed
Intelligent2013 opened this issue Jun 10, 2024 · 0 comments · Fixed by #105
Closed

'bundle update' occurs error Permission denied rb_file_s_symlink #104

Intelligent2013 opened this issue Jun 10, 2024 · 0 comments · Fixed by #105
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link

How to repeat:

  • create Gemfile with content:
source "https://rubygems.org"

gem "metanorma-cli"
  • run bundle update

The process ends with the error:

Using isodoc 2.10.3
Using linkeddata 3.2.2
Using metanorma 2.0.0
Using relaton-w3c 1.18.0
Using relaton 1.18.2
Using glossarist 2.0.10
Using relaton-cli 1.18.1
Using relaton-iev 1.2.0
Using metanorma-plugin-datastruct 0.3.0
Using metanorma-plugin-glossarist 0.2.1
Installing coradoc 1.1.0
--- ERROR REPORT TEMPLATE -------------------------------------------------------
Errno::EACCES: Permission denied @ rb_file_s_symlink - (.docker/Makefile, C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/coradoc-1.1.0/Makefile)
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:446:in `symlink'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:446:in `block (2 levels) in extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:65:in `each'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:412:in `block in extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:524:in `block in open_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:521:in `wrap'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:521:in `open_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:411:in `extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:391:in `block (2 levels) in extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:65:in `each'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:388:in `block in extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `open'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `with_read_io'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:385:in `extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/installer.rb:862:in `extract_files'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:26:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/source/rubygems.rb:200:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:62:in `apply_func'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:57:in `block in process_queue'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in `loop'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in `process_queue'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
Errno::EACCES: Permission denied @ rb_file_s_symlink - (.docker/Makefile, C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/coradoc-1.1.0/Makefile)
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:446:in `symlink'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:446:in `block (2 levels) in extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:65:in `each'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:412:in `block in extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:524:in `block in open_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:521:in `wrap'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:521:in `open_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:411:in `extract_tar_gz'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:391:in `block (2 levels) in extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/tar_reader.rb:65:in `each'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:388:in `block in extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `open'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package/file_source.rb:29:in `with_read_io'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/package.rb:385:in `extract_files'
  C:/tools/ruby31/lib/ruby/3.1.0/rubygems/installer.rb:862:in `extract_files'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:26:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/source/rubygems.rb:200:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:62:in `apply_func'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:57:in `block in process_queue'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in `loop'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in `process_queue'
  C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

Environment

Bundler       2.4.10
  Platforms   ruby, x64-mingw-ucrt
Ruby          3.1.2p20 (2022-04-12 revision 4491bb740a9506d76391ac44bb2fe6e483fec952) [x64-mingw-ucrt]
  Full Path   C:/tools/ruby31/bin/ruby.exe
  Config Dir  C:/ProgramData
RubyGems      3.3.7
  Gem Home    C:/tools/ruby31/lib/ruby/gems/3.1.0
  Gem Path    C:/Users/TestUser/.local/share/gem/ruby/3.1.0;C:/tools/ruby31/lib/ruby/gems/3.1.0
  User Home   C:/Users/TestUser
  User Path   C:/Users/TestUser/.local/share/gem/ruby/3.1.0
  Bin Dir     C:/tools/ruby31/bin
OpenSSL
  Compiled    OpenSSL 1.1.1n  15 Mar 2022
  Loaded      OpenSSL 1.1.1n  15 Mar 2022
  Cert File   C:/tools/ruby31/ssl/cert.pem
  Cert Dir    C:/tools/ruby31/ssl/certs
Tools
  Git         2.37.3.windows.1
  RVM         not installed
  rbenv       not installed
  chruby      not installed

Bundler Build Metadata

Built At          2023-03-27
Git SHA           7ffdec80d0
Released Version  true

Bundler settings

rubygems.pkg.github.com
  Set for the current user (C:/Users/TestUser/.bundle/config): "Intelligent2013:[REDACTED]"

Gemfile

Gemfile

source "https://rubygems.org"

gem "metanorma-cli"

Gemfile.lock

<No D:/Work/Metanorma/XML/OGC/OGC137_ImageBreak/Gemfile.lock found>
--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+rb_file_s_symlink+-+%28.docker%2FMakefile%2C+C+%2Ftools%2Fruby31%2Flib%2Fruby%2Fgems%2F3.1.0%2Fgems%2Fcoradoc-1.1.0%2FMakefile%29&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.

Platform: Win10 64-bit.

The user TestUser doesn't have the administrative rights, but coradoc tries to create a symlink. Windows 10 doesn't allow to create the symlink to the file for the user without administrative rights (allows only directory symlink).

@Intelligent2013 Intelligent2013 added the bug Something isn't working label Jun 10, 2024
hmdne added a commit to hmdne/coradoc that referenced this issue Jun 17, 2024
This removes symlinks which are particularly troublesome on
Win32 systems. This fixes metanorma#104
ronaldtse pushed a commit that referenced this issue Jun 22, 2024
This removes symlinks which are particularly troublesome on
Win32 systems. This fixes #104
@webdev778 webdev778 self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants