[Satellite6] WebUI not accessible - `tmpdir': could not find a temporary directory
Environment
Red Hat Satellite 6
Issue
The Satellite WebUI is not accessible
Resolution
run the following:
chmod 1777 /tmp
Root Cause
The 'sticky bit' access permission is not set for the /tmp directory
Diagnostic Steps
In /var/log/httpd/error.log, a similar error can be seen:
[ 2017-10-16 12:14:11.0039 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] /opt/rh/rh-ruby22/root/usr/share/ruby/tmpdir.rb:34:in `tmpdir': could not find a temporary directory
[ 2017-10-16 12:14:11.0040 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] (ArgumentError)
[ 2017-10-16 12:14:11.0040 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/utils/tmpio.rb:17:in `new'
[ 2017-10-16 12:14:11.0040 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/utils/tee_input.rb:99:in `initialize'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:55:in `new'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:55:in `process_request'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
[ 2017-10-16 12:14:11.0041 31393/7f456e024700 Pool2/Implementation.cpp:1274 ]: [App 61797 stderr] from /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
