ruby FakeS 3:ERROR错误号::EROFS:只读文件系统@ dir_s_mkdir - /mnt [MACOS]

rekjcdws  于 2023-06-05  发布在  Ruby
关注(0)|答案(1)|浏览(398)

当使用许可证号的fakeS3在MAC OS中模拟AWS S3进行测试时(如文档中所建议的),会收到以下错误:
命令:sudo fakes3 -r /mnt/fakes3_root -p 4567 --license <<license-number>>
错误消息:

ERROR Errno::EROFS: Read-only file system @ dir_s_mkdir - /mnt
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
/Library/Ruby/Gems/2.6.0/gems/fakes3-2.0.0/lib/fakes3/file_store.rb:64:in `create_bucket'
/Library/Ruby/Gems/2.6.0/gems/fakes3-2.0.0/lib/fakes3/server.rb:208:in `do_PUT'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpservlet/abstract.rb:105:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'
wj8zmpe1

wj8zmpe11#

对于MacOS,/tmp目录用于上传文件。比如说

sudo fakes3 -r /tmp/fakes3_root -p 4567 --license <<license-key>>

相关问题