Task errors: Trying to use logger katello/pulp_rest which has not been configured

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not been
configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

Nobody can help with this? All tasks (~6500) are now in paused error or planned
pending because of this error.

··· On Fri, Sep 18, 2015 at 3:51 PM, Cristian Falcas wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

Was there a solution to this problem? It seems to be affecting all my syncs
at the moment as well.

Any updates would be greatly appreciated.

Thanks in advance!

··· On Friday, September 18, 2015 at 8:51:25 AM UTC-4, Cristian Falcas wrote: > > Hello, > > I get this error on all tasks: > > Task errors: Trying to use logger katello/pulp_rest which has not > been configured., Trying to use logger katello/pulp_rest which has not been > configured. > > > Anybody knows what is this about? > > Thank you, > Cristian Falcas > >

A temporary fix was to change in
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/lib/katello/util/thread_session.rb
from pulp_rest to cp_rest, which seems to be initialized at that moment

··· On Sun, Sep 20, 2015 at 2:00 PM, Cristian Falcas wrote:

Nobody can help with this? All tasks (~6500) are now in paused error or planned
pending because of this error.

On Fri, Sep 18, 2015 at 3:51 PM, Cristian Falcas cristi.falcas@gmail.com > wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

In your configuration file (katello.yaml) do you see a line that looks like

:pulp_rest:
:enabled: true

If so, what is that :enabled: set to? You may want to change it and see if
the problem goes away

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

··· On Mon, Jun 6, 2016 at 9:45 AM, Tatenda Mupaso wrote:

Was there a solution to this problem? It seems to be affecting all my
syncs at the moment as well.

Any updates would be greatly appreciated.

Thanks in advance!

On Friday, September 18, 2015 at 8:51:25 AM UTC-4, Cristian Falcas wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas


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.

The change I made was actually on 2.3.1 version, since it had the same
problem here.

··· On Sun, Sep 20, 2015 at 6:25 PM, Cristian Falcas wrote:

A temporary fix was to change in
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/lib/katello/util/thread_session.rb
from pulp_rest to cp_rest, which seems to be initialized at that moment

On Sun, Sep 20, 2015 at 2:00 PM, Cristian Falcas cristi.falcas@gmail.com > wrote:

Nobody can help with this? All tasks (~6500) are now in paused error or planned
pending because of this error.

On Fri, Sep 18, 2015 at 3:51 PM, Cristian Falcas <cristi.falcas@gmail.com >> > wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

That variable is actually not set in katello.yaml. The following sections I
see in that file are:

:rest_client_timeout: 120
:candlepin:
:pulp:
:qpid:

but I don't see a section for the :pulp_rest: - Is that something I should
add in there?

Thanks!

··· -- Tatenda Mupaso Linux Systems Administrator JMU Information Technology

Actually it seems to be the same. The same exception is thrown:

2015-09-20 16:48:21 [foreman-tasks/action] [E] Trying to use logger
katello/cp_rest which has not been configured. (RuntimeError)
> /usr/share/foreman/lib/foreman/logging.rb:52:in logger&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/katello/util/thread_session.rb:67:inpulp_config'
>
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/actions/middleware/remote_action.rb:32:in
as_pulp_user&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/actions/middleware/remote_action.rb:45:inblock in as_remote_user'
>
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/katello/util/thread_session.rb:79:in
`cp_config'

··· On Sun, Sep 20, 2015 at 6:28 PM, Cristian Falcas wrote:

The change I made was actually on 2.3.1 version, since it had the same
problem here.

On Sun, Sep 20, 2015 at 6:25 PM, Cristian Falcas cristi.falcas@gmail.com > wrote:

A temporary fix was to change in
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/lib/katello/util/thread_session.rb
from pulp_rest to cp_rest, which seems to be initialized at that moment

On Sun, Sep 20, 2015 at 2:00 PM, Cristian Falcas <cristi.falcas@gmail.com >> > wrote:

Nobody can help with this? All tasks (~6500) are now in paused error or planned
pending because of this error.

On Fri, Sep 18, 2015 at 3:51 PM, Cristian Falcas < >>> cristi.falcas@gmail.com> wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

try adding in at the bottom,

:loggers:
:pulp_rest:
:enabled: true

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

··· On Fri, Jun 10, 2016 at 10:28 AM, Tatenda Mupaso wrote:

That variable is actually not set in katello.yaml. The following sections
I see in that file are:

:rest_client_timeout: 120
:candlepin:
:pulp:
:qpid:

but I don’t see a section for the :pulp_rest: - Is that something I
should add in there?

Thanks!


Tatenda Mupaso
Linux Systems Administrator
JMU Information Technology http://www.jmu.edu/computing/


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.

I opened Bug #11900: app/lib/katello/util/thread_session.rb throws exceptions - Katello - Foreman for this.

··· On Sun, Sep 20, 2015 at 11:49 PM, Cristian Falcas wrote:

Actually it seems to be the same. The same exception is thrown:

2015-09-20 16:48:21 [foreman-tasks/action] [E] Trying to use logger
katello/cp_rest which has not been configured. (RuntimeError)

/usr/share/foreman/lib/foreman/logging.rb:52:in `logger’

/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/katello/util/thread_session.rb:67:in
`pulp_config’

/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/actions/middleware/remote_action.rb:32:in
`as_pulp_user’

/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/actions/middleware/remote_action.rb:45:in
`block in as_remote_user’

/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.1/app/lib/katello/util/thread_session.rb:79:in
`cp_config’

On Sun, Sep 20, 2015 at 6:28 PM, Cristian Falcas cristi.falcas@gmail.com > wrote:

The change I made was actually on 2.3.1 version, since it had the same
problem here.

On Sun, Sep 20, 2015 at 6:25 PM, Cristian Falcas <cristi.falcas@gmail.com >> > wrote:

A temporary fix was to change in
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/lib/katello/util/thread_session.rb
from pulp_rest to cp_rest, which seems to be initialized at that moment

On Sun, Sep 20, 2015 at 2:00 PM, Cristian Falcas < >>> cristi.falcas@gmail.com> wrote:

Nobody can help with this? All tasks (~6500) are now in paused error or planned
pending because of this error.

On Fri, Sep 18, 2015 at 3:51 PM, Cristian Falcas < >>>> cristi.falcas@gmail.com> wrote:

Hello,

I get this error on all tasks:

Task errors: Trying to use logger katello/pulp_rest which has not
been configured., Trying to use logger katello/pulp_rest which has not been
configured.

Anybody knows what is this about?

Thank you,
Cristian Falcas

Thanks John, will give it a try and let you know the results of my
scheduled syncs after that change.

··· -- Tatenda Mupaso Linux Systems Administrator JMU Information Technology

Update: I'm seeing a huge improvement in the sync and task errors this week
after that change :slight_smile:

Thank you John!

··· On Fri, Jun 10, 2016 at 12:04 PM, Tatenda Mupaso wrote:

Thanks John, will give it a try and let you know the results of my
scheduled syncs after that change.


Tatenda Mupaso
Linux Systems Administrator
JMU Information Technology http://www.jmu.edu/computing/


Tatenda Mupaso
Linux Systems Administrator
JMU Information Technology http://www.jmu.edu/computing/

Tartenda,

Good to hear! :slight_smile:

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

··· On Wed, Jun 15, 2016 at 12:17 PM, Tatenda Mupaso wrote:

Update: I’m seeing a huge improvement in the sync and task errors this
week after that change :slight_smile:

Thank you John!

On Fri, Jun 10, 2016 at 12:04 PM, Tatenda Mupaso <tatenda.mupaso@gmail.com > > wrote:

Thanks John, will give it a try and let you know the results of my
scheduled syncs after that change.


Tatenda Mupaso
Linux Systems Administrator
JMU Information Technology http://www.jmu.edu/computing/


Tatenda Mupaso
Linux Systems Administrator
JMU Information Technology http://www.jmu.edu/computing/


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.