Read-only file system @ dir_s_mkdir - /components (Errno::EROFS)
See original GitHub issueHelp us help you! Have you looked for similar issues? Do you have reproduction steps? Contributing Guide
Steps to reproduce
(Guidelines for creating a bug report are available here)
Expected behavior
Tell us what should happen
Actual behavior
I couldn’t able to install the react-rails, while running rails generate react:install
, on my local machine, I’m getting an error (which is mentioned below).
System configuration
- Shakapacker: 6.5
- React-Rails version: 2.6
- Rect_UJS version:
- Rails version: 7.0.1
- Ruby version: 3.0.1
/Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:253:in `mkdir': Read-only file system @ dir_s_mkdir - /components (Errno::EROFS)
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:253:in `fu_mkdir'
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:231:in `block (2 levels) in mkdir_p'
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:229:in `reverse_each'
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:229:in `block in mkdir_p'
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:211:in `each'
from /Users/akhilgkrishnan/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/fileutils.rb:211:in `mkdir_p'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:52:in `block in invoke!'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:117:in `invoke_with_conflict_check'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:50:in `invoke!'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/actions.rb:93:in `action'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/react-rails-2.6.0/lib/generators/react/install_generator.rb:26:in `create_directory'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `block in invoke_all'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `each'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `map'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `invoke_all'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/group.rb:232:in `dispatch'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/railties-7.0.4/lib/rails/generators.rb:263:in `invoke'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/railties-7.0.4/lib/rails/commands/generate/generate_command.rb:26:in `perform'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /Users/akhilgkrishnan/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
Issue Analytics
- State:
- Created 9 months ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Bundle install gives `Errno::EROFS: Read-only file system ...
The underlying system error is Errno::EROFS: Read-only file system @ dir_s_mkdir - /home Bundler Output: There was an error accessing ...
Read more >webpack-cli [Error: EROFS: read-only file system, mkdir ' ...
I finally figure out what was happen, I config the folder start with a slash means that will create a folder resource in...
Read more >How to Fix "Read-only file system" error when I run ...
This worked for me: First, run this command with sudo permission: sudo fsck -n -f. Then reboot the machine.
Read more >How Do I Fix the "Read-only file system" Error When I ...
Scenario 1: File System Mounted as Read-only · Run the following command to check how the directory containing the deleted file is mounted:...
Read more >EROFS: read-only file system, - General
I am trying to create a file at the specified path, but I get an error. failed to create file: Error: EROFS: read-only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting. This issue is already resolved and the fix will be available in the next release. Meanwhile please manually edit
config/webpacker.yml
and setsource_entry_path
topacks
.Please share the result.
Worked for me as well.