Pulp Auth Error

Hi,

With Katello RC8, i have ths error during create a repository :

An error occurred saving the Repository: There was an issue with the
backend service pulp_auth: 401 Unauthorized

==> /var/log/foreman/production.log <==
2016-06-08 15:58:01 [katello/pulp_rest] [E] RestClient.get
"https://<host>/pulp/api/v2/users/", "Accept"=>"/; q=0.5,
application/xml", "Accept-Encoding"=>"gzip, deflate",
"accept"=>"application/json", "content_type"=>"application/json"
> \n# => 401 Unauthorized | application/json 410 bytes
>
2016-06-08 15:58:01 [app] [W] 401 Unauthorized
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
return!&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:inblock in get_response'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
call&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:inprocess_result'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in
block in transmit&#39; &gt; /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:instart'

2016-06-08 15:58:01 [app] [E] RuntimeError: There was an issue with the
backend service pulp_auth: 401 Unauthorized
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:17:in
block in plan&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in
plan&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:incall'

Thx

Have you tried restarting your services?

katello-service restart

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Wed, Jun 8, 2016 at 10:00 AM, nd_dutyd2005 via Foreman users < foreman-users@googlegroups.com> wrote:

Hi,

With Katello RC8, i have ths error during create a repository :

An error occurred saving the Repository: There was an issue with the
backend service pulp_auth: 401 Unauthorized

==> /var/log/foreman/production.log <==
2016-06-08 15:58:01 [katello/pulp_rest] [E] RestClient.get “https:///pulp/api/v2/users/”,
“Accept”=>"/; q=0.5, application/xml", “Accept-Encoding”=>“gzip,
deflate”, “accept”=>“application/json”, “content_type”=>“application/json”

\n# => 401 Unauthorized | application/json 410 bytes

2016-06-08 15:58:01 [app] [W] 401 Unauthorized

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
`return!’

/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:in
`block in get_response’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
`call’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
`process_result’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in
`block in transmit’

/opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start’

2016-06-08 15:58:01 [app] [E] RuntimeError: There was an issue with the
backend service pulp_auth: 401 Unauthorized

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:17:in
`block in plan’

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in
`each’

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in
`plan’

/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in
`call’

Thx


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Yes.

··· Le mercredi 8 juin 2016 16:52:39 UTC+2, John Mitsch a écrit : > > Have you tried restarting your services? > > # katello-service restart > > John Mitsch > Red Hat Engineering > (860)-967-7285 > irc: jomitsch > > On Wed, Jun 8, 2016 at 10:00 AM, nd_dutyd2005 via Foreman users < > forema...@googlegroups.com > wrote: > >> Hi, >> >> With Katello RC8, i have ths error during create a repository : >> >> An error occurred saving the Repository: There was an issue with the >> backend service pulp_auth: 401 Unauthorized >> >> >> ==> /var/log/foreman/production.log <== >> 2016-06-08 15:58:01 [katello/pulp_rest] [E] RestClient.get >> "https:///pulp/api/v2/users/", "Accept"=>"*/*; q=0.5, >> application/xml", "Accept-Encoding"=>"gzip, deflate", >> "accept"=>"application/json", "content_type"=>"application/json" >> > \n# => 401 Unauthorized | application/json 410 bytes >> > >> 2016-06-08 15:58:01 [app] [W] 401 Unauthorized >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in >> `return!' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:in >> `block in get_response' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in >> `call' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in >> `process_result' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in >> `block in transmit' >> > /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start' >> >> >> 2016-06-08 15:58:01 [app] [E] RuntimeError: There was an issue with the >> backend service pulp_auth: 401 Unauthorized >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:17:in >> `block in plan' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in >> `each' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in >> `plan' >> > >> /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in >> `call' >> >> Thx >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >

Can you look for related errors in /var/log/messages?

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Wed, Jun 8, 2016 at 11:17 AM, nd_dutyd2005 via Foreman users < foreman-users@googlegroups.com> wrote:

Yes.

Le mercredi 8 juin 2016 16:52:39 UTC+2, John Mitsch a écrit :

Have you tried restarting your services?

katello-service restart

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

On Wed, Jun 8, 2016 at 10:00 AM, nd_dutyd2005 via Foreman users < >> forema...@googlegroups.com> wrote:

Hi,

With Katello RC8, i have ths error during create a repository :

An error occurred saving the Repository: There was an issue with the
backend service pulp_auth: 401 Unauthorized

==> /var/log/foreman/production.log <==
2016-06-08 15:58:01 [katello/pulp_rest] [E] RestClient.get “https:///pulp/api/v2/users/”,
“Accept”=>"/; q=0.5, application/xml", “Accept-Encoding”=>“gzip,
deflate”, “accept”=>“application/json”, “content_type”=>“application/json”

\n# => 401 Unauthorized | application/json 410 bytes

2016-06-08 15:58:01 [app] [W] 401 Unauthorized

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
`return!’

/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:in
`block in get_response’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
`call’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
`process_result’

/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in
`block in transmit’

/opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start’

2016-06-08 15:58:01 [app] [E] RuntimeError: There was an issue with the
backend service pulp_auth: 401 Unauthorized

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:17:in
`block in plan’

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in
`each’

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc8/app/lib/actions/middleware/backend_services_check.rb:15:in
`plan’

/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in
`call’

Thx


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.