Project

General

Profile

Actions

Bug #12232

closed

Creating content fails silently when no Openscap proxy available

Added by Marek Hulán almost 9 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When a create new content file, it tries to find available proxy. When there's no running it redirects me back to list of contents without displaying any error. I found following trace in log

015-10-21T13:35:11 [app] [I] Failed to save: 
2015-10-21T13:35:11 [app] [I] Redirected to https://localhost/foreman/compliance/scap_contents
2015-10-21T13:35:11 [app] [W] ProxyAPI operation FAILED
 | ProxyAPI::ProxyException: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Errno::ECONNREFUSED]: Connection refused - connect(2)) for proxy https://foreman.example.com:
8443/features
 | /home/ares/Projekty/Zdrojaky/foreman/lib/proxy_api/features.rb:11:in `rescue in features'
 | /home/ares/Projekty/Zdrojaky/foreman/lib/proxy_api/features.rb:9:in `features'
 | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/lib/proxy_api/available_proxy.rb:15:in `initialize'
 | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:94:in `new'
 | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:94:in `block in proxy_url'
 | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each'
 | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each'
 | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:93:in `proxy_url'
 | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:13:in `validate'
 | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_before_5213'
 | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:451:in `_run__1420527013265607526__validate__1983963136343841740__call
backs'

Files

no-proxy.png View no-proxy.png 82.7 KB Ondřej Pražák, 11/26/2021 02:04 PM

Related issues 1 (0 open1 closed)

Has duplicate OpenSCAP - Bug #14996: Missing error message for scap content createDuplicateActions
Actions #1

Updated by Shlomi Zadok almost 9 years ago

Moving to 0.5.1, also related to #9766

Actions #2

Updated by Shlomi Zadok almost 9 years ago

  • Target version changed from 0.5.0 to 0.5.1
Actions #3

Updated by Marek Hulán about 8 years ago

  • Target version deleted (0.5.1)
Actions #4

Updated by Ondřej Pražák almost 3 years ago

It seems like this one is fixed already, closing.

Actions #5

Updated by Ondřej Pražák almost 3 years ago

  • Status changed from New to Closed
Actions #6

Updated by Ondřej Pražák almost 3 years ago

  • Has duplicate Bug #14996: Missing error message for scap content create added
Actions

Also available in: Atom PDF