毎度お世話になります。
現在、
WSLを使ったUbuntu20.04にruby2.6.8 rails6.0.4を載せてrailsチュートリアルを進行しています。
3章の部分で
rails test
をすると、
/home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:200:in `initialize': Permission denied @ dir_initialize - /home/yuuspc/environment/sample_app/.git/logs (Errno::EACCES) from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:200:in `new' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:200:in `watch' yuuspc@DESKTOP-TO1C7LD:~/environment/sample_app$ from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:210:in `block in watch' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:202:in `each' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:202:in `watch' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:210:in `block in watch' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:202:in `each' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:202:in `watch' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/adapter/linux.rb:35:in `_configure' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/adapter/base.rb:47:in `block in configure' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/adapter/base.rb:42:in `each' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/adapter/base.rb:42:in `configure' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/adapter/base.rb:66:in `start' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/2.6.0/forwardable.rb:230:in `start' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/listener.rb:71:in `block in <class:Listener>' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/fsm.rb:124:in `instance_eval' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/fsm.rb:124:in `call' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/fsm.rb:105:in `transition_with_callbacks!' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/fsm.rb:72:in `transition' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/listen-3.5.1/lib/listen/listener.rb:92:in `start' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-watcher-listen-2.0.1/lib/spring/watcher/listen.rb:27:in `start' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:80:in `start_watcher' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:89:in `preload' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `run' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /home/yuuspc/.rbenv/versions/2.6.8/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from -e:1:in `<main>'
書き込み権限がない(.git/logsにアクセスできない)、諸々のファイルがrequireできない、という旨でいいんでしょうか?エラーが返ってきてtestができません。何度かプロジェクト自体を削除して作り直したり、bundle cleanなどもしました。
このような場合何をすれば解決できるでしょうか。ご教示お願いします。
あなたの回答
tips
プレビュー