Project

General

Profile

Bug #33013

bundler warns /usr/share/foreman is not writable

Added by Ewoud Kohl van Wijngaarden 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Packaging
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When running foreman-rake, Bundler complains the home directory is not writable.

Executing: foreman-rake upgrade:run
`/usr/share/foreman` is not writable.
Bundler will use `/tmp/bundler20210520-43729-pzug1w43729' as your home directory temporarily.
'ErbParser' is ignored.
'RubyParser' is ignored.
=============================================
Upgrade Step 1/2: katello:correct_repositories. This may take a long while.
=============================================
Upgrade Step 2/2: katello:clean_backend_objects. This may take a long while.
Failed upgrade task: katello:clean_backend_objects, see logs for more information.

This is a problem with a recent enough Bundler (as present in rh-ruby27). In particular that contains a fix for https://access.redhat.com/security/cve/CVE-2019-3881 (https://github.com/rubygems/bundler/commit/02e7f67727b45).


Related issues

Related to Smart Proxy - Bug #33520: bundler warns /usr/share/foreman-proxy is not writableClosed

Associated revisions

Revision f25a21e1 (diff)
Added by Ewoud Kohl van Wijngaarden 3 months ago

Fixes #33013 - Silence bundler in production

In production deployments the Rails directory is usually not writable.
This leads to warnings. By using the silent UI this is hidden from
users.

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8663 added

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.0.0 added

#3 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 3 months ago

  • Category set to Packaging

#5 Updated by Evgeni Golov about 1 month ago

  • Related to Bug #33520: bundler warns /usr/share/foreman-proxy is not writable added

Also available in: Atom PDF