WebUI not accessible - `tmpdir': could not find a temporary directory

Solution Verified - Updated -

Environment

  • Red Hat Satellite (Satellite) < 6.10

Issue

  • The Satellite WebUI is not accessible.

Resolution

From the Satellite server console run the following command to set the 'sticky bit' on /tmp directory:

# chmod 1777 /tmp

Root Cause

The 'sticky bit' access permission is not set for the /tmp directory.

Diagnostic Steps

In /var/log/messages, a similar error can be seen:

Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: `/usr/share/foreman` is not writable.
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: Bundler also failed to create a temporary home directory at `':
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: could not find a temporary directory
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:193:in `rescue in tmp_home_path'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:181:in `tmp_home_path'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:172:in `user_home'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:197:in `user_bundle_path'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/settings.rb:377:in `global_config_file'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/settings.rb:80:in `initialize'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:257:in `new'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:257:in `settings'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:236:in `app_cache'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:456:in `cache_path'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/source/rubygems.rb:24:in `initialize'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/source_list.rb:16:in `new'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/source_list.rb:16:in `initialize'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:26:in `new'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:26:in `initialize'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:11:in `new'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:11:in `evaluate'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/gemfile.rb:46:in `parse'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /usr/share/foreman/config/application.rb:35:in `<top (required)>'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /usr/share/foreman/extras/dynflow-sidekiq.rb:4:in `<top (required)>'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:292:in `boot_system'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:46:in `run'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/bin/sidekiq:12:in `<top (required)>'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/bin/sidekiq:23:in `load'
Dec 30 10:45:08 sat68.test.lan dynflow-sidekiq@orchestrator: /opt/theforeman/tfm/root/usr/bin/sidekiq:23:in `<main>'
Dec 30 10:45:08 sat68.test.lan systemd: dynflow-sidekiq@orchestrator.service: main process exited, code=exited, status=1/FAILURE
Dec 30 10:45:08 sat68.test.lan systemd: Unit dynflow-sidekiq@orchestrator.service entered failed state.
Dec 30 10:45:08 sat68.test.lan systemd: dynflow-sidekiq@orchestrator.service failed.

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.

Comments