gpt4 book ai didi

ruby-on-rails - ArgumentError : parent directory is world writable, FileUtils#remove_entry_secure 不起作用

转载 作者:行者123 更新时间:2023-12-04 06:34:15 25 4
gpt4 key购买 nike

我尝试将 Rails 应用程序部署到服务器。但是当网页运行时我遇到了这个错误。我对这个问题做了很多研究,大部分都是改权限。但我绝对无法更改 .socket 文件夹中的权限。如果有人知道如何解决这个问题,请帮助我。谢谢

parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/.socket/fcgi/passenger-native-support-d8m77l" (parent directory mode 40777) (ArgumentError)
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:716:in `remove_entry_secure'
/.socket/passenger/lib/phusion_passenger/utils/tmpio.rb:72:in `ensure in mktmpdir'
/.socket/passenger/lib/phusion_passenger/utils/tmpio.rb:72:in `mktmpdir'
/.socket/passenger/lib/phusion_passenger/native_support.rb:147:in `download_binary_and_load'
/.socket/passenger/lib/phusion_passenger/native_support.rb:49:in `start'
/.socket/passenger/lib/phusion_passenger/native_support.rb:405:in `<top (required)>'
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/.socket/passenger/lib/phusion_passenger.rb:237:in `require_passenger_lib'
/.socket/passenger/helper-scripts/rack-preloader.rb:75:in `init_passenger'
/.socket/passenger/helper-scripts/rack-preloader.rb:157:in `<module:App>'
/.socket/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/.socket/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'

最佳答案

这是 Passenger 的一个已知问题。试试这个 chmod o+t -R/tmp

在此处了解有关粘性位的更多信息:https://askubuntu.com/questions/432699/what-is-the-t-letter-in-the-output-of-ls-ld-tmp

关于ruby-on-rails - ArgumentError : parent directory is world writable, FileUtils#remove_entry_secure 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33812378/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com