Linux でマウントされた共有にいる場合、ruby プログラムまたは単に irb を起動すると、次のエラーが発生します。私が共有の外にいる限り、すべて正常に動作します。共有は rclone によってマウントされます。多分そのrclone固有です。irb の場合、エラーは次のとおりです。
/usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:80:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:80:in `lockfile_contents'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:68:in `lockfile_version'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:22:in `bundler_version_with_reason'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:7:in `bundler_version'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:39:in `compatible?'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1042:in `block in find_by_path'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `each'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `find'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `find_by_path'
from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:212:in `try_activate'
from /usr/lib/ruby/2.3.0/irb/locale.rb:150:in `block in search_file'
from /usr/lib/ruby/2.3.0/irb/locale.rb:158:in `block in each_localized_path'
from /usr/lib/ruby/2.3.0/irb/locale.rb:167:in `each_sublocale'
from /usr/lib/ruby/2.3.0/irb/locale.rb:157:in `each_localized_path'
from /usr/lib/ruby/2.3.0/irb/locale.rb:145:in `search_file'
from /usr/lib/ruby/2.3.0/irb/locale.rb:124:in `find'
from /usr/lib/ruby/2.3.0/irb/locale.rb:108:in `load'
from /usr/lib/ruby/2.3.0/irb/locale.rb:32:in `initialize'
from /usr/lib/ruby/2.3.0/irb/init.rb:113:in `new'
from /usr/lib/ruby/2.3.0/irb/init.rb:113:in `init_config'
from /usr/lib/ruby/2.3.0/irb/init.rb:17:in `setup'
from /usr/lib/ruby/2.3.0/irb.rb:378:in `start'
from /usr/bin/irb:11:in `<main>'
これを修正する方法を知っている人はいますか?