Pulp internal server error

Hi all,

I'm pretty new to Katello and Foreman and since I've updated pulp to the
latest version I'm not able to use any function/feature of it,
Katello/foreman throws always the following error:

There was an issue with the backend service pulp: 500 Internal Server Error

I've tried to debug what's going on but could locate anything in the logs
so far.

Here the version I'm running:
katello-3.4.3-1.el7.noarch
foreman-1.15.2-1.el7.noarch
pulp-client-1.0-1.noarch
pulp-docker-plugins-2.4.0-2.el7.noarch
pulp-katello-1.0.2-1.el7.noarch
pulp-puppet-plugins-2.13.2-1.el7.noarch
pulp-puppet-tools-2.13.2-1.el7.noarch
pulp-rpm-plugins-2.13.2-1.el7.noarch
pulp-selinux-2.13.2-1.el7.noarch
pulp-server-2.13.2-1.el7.noarch

Thanks for any help to debug that problem.

rgds,
Arsène

Same happened to me yesterday, but I had forgotten to run:

foreman-installer --scenario katello --upgrade

Did you run this part? If not, this would be the reason for your problem.
You could verify this by looking at /var/log/foreman/production.log. Your
500 errors will look similar to:

2017-07-17 12:35:53 37103215 [app] [I] Started GET
"/katello/sync_management" for 192.168.122.1 at 2017-07-17 12:35:53 +0100
2017-07-17 12:35:53 37103215 [app] [I] Processing by
Katello::SyncManagementController#index as HTML
2017-07-17 12:35:53 37103215 [app] [I] Current user: admin (administrator)
2017-07-17 12:35:53 37103215 [katello/pulp_rest] [E] RestClient.post
"https://katello.innes.net/pulp/api/v2/repositories/search/", 614 byte(s)
length, "Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Content-Length"=>"614", "accept"=>"application/json",
"content_type"=>"application/json"
> \n# => 500 InternalServerError | text/html 531 bytes
>
2017-07-17 12:35:53 37103215 [app] [I] Completed 500 Internal Server Error
in 49ms (ActiveRecord: 4.1ms)
2017-07-17 12:35:53 37103215 [app] [F]
> RestClient::InternalServerError (500 Internal Server Error):
> katello (3.4.2) app/models/katello/glue/pulp/repos.rb:53:in
prepopulate!' > katello (3.4.2) app/helpers/katello/sync_management_helper.rb:38:incollect_repos'
> katello (3.4.2)
app/controllers/katello/sync_management_controller.rb:29:in index' > app/controllers/concerns/application_shared.rb:15:inset_timezone'
> app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in
set_topbar_sweeper_controller' > katello (3.4.2) lib/katello/params_parser_wrapper.rb:12:incall'
> lib/middleware/catch_json_parse_errors.rb:8:in call' > lib/middleware/tagged_logging.rb:18:incall'
>
>

You see Katello is being referenced as (3.4.2) rather than (3.4.3).

Posting this part of your production.log will also help diagnose the
problem if this isn't the cause.

D

··· On Tuesday, 18 July 2017 08:48:11 UTC+1, Arsène Gschwind wrote: > > Hi all, > > I'm pretty new to Katello and Foreman and since I've updated pulp to the > latest version I'm not able to use any function/feature of it, > Katello/foreman throws always the following error: > > There was an issue with the backend service pulp: 500 Internal Server Error > > > I've tried to debug what's going on but could locate anything in the logs > so far. > > Here the version I'm running: > katello-3.4.3-1.el7.noarch > foreman-1.15.2-1.el7.noarch > pulp-client-1.0-1.noarch > pulp-docker-plugins-2.4.0-2.el7.noarch > pulp-katello-1.0.2-1.el7.noarch > pulp-puppet-plugins-2.13.2-1.el7.noarch > pulp-puppet-tools-2.13.2-1.el7.noarch > pulp-rpm-plugins-2.13.2-1.el7.noarch > pulp-selinux-2.13.2-1.el7.noarch > pulp-server-2.13.2-1.el7.noarch > > Thanks for any help to debug that problem. > > rgds, > Arsène >

Many thanks Duncan it did it !

I forgot to run that command…

Regards,
Arsène

··· On Tuesday, July 18, 2017 at 10:13:05 AM UTC+2, Duncan Innes wrote: > > Same happened to me yesterday, but I had forgotten to run: > > foreman-installer --scenario katello --upgrade > > Did you run this part? If not, this would be the reason for your problem. > You could verify this by looking at /var/log/foreman/production.log. Your > 500 errors will look similar to: > > 2017-07-17 12:35:53 37103215 [app] [I] Started GET > "/katello/sync_management" for 192.168.122.1 at 2017-07-17 12:35:53 +0100 > 2017-07-17 12:35:53 37103215 [app] [I] Processing by > Katello::SyncManagementController#index as HTML > 2017-07-17 12:35:53 37103215 [app] [I] Current user: admin (administrator) > 2017-07-17 12:35:53 37103215 [katello/pulp_rest] [E] RestClient.post " > https://katello.innes.net/pulp/api/v2/repositories/search/", 614 byte(s) > length, "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, > deflate", "Content-Length"=>"614", "accept"=>"application/json", > "content_type"=>"application/json" > > \n# => 500 InternalServerError | text/html 531 bytes > > > 2017-07-17 12:35:53 37103215 [app] [I] Completed 500 Internal Server Error > in 49ms (ActiveRecord: 4.1ms) > 2017-07-17 12:35:53 37103215 [app] [F] > > RestClient::InternalServerError (500 Internal Server Error): > > katello (3.4.2) app/models/katello/glue/pulp/repos.rb:53:in > `prepopulate!' > > katello (3.4.2) app/helpers/katello/sync_management_helper.rb:38:in > `collect_repos' > > katello (3.4.2) > app/controllers/katello/sync_management_controller.rb:29:in `index' > > app/controllers/concerns/application_shared.rb:15:in `set_timezone' > > app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in > `set_topbar_sweeper_controller' > > katello (3.4.2) lib/katello/params_parser_wrapper.rb:12:in `call' > > lib/middleware/catch_json_parse_errors.rb:8:in `call' > > lib/middleware/tagged_logging.rb:18:in `call' > > > > > > You see Katello is being referenced as (3.4.2) rather than (3.4.3). > > Posting this part of your production.log will also help diagnose the > problem if this isn't the cause. > > D > > On Tuesday, 18 July 2017 08:48:11 UTC+1, Arsène Gschwind wrote: >> >> Hi all, >> >> I'm pretty new to Katello and Foreman and since I've updated pulp to the >> latest version I'm not able to use any function/feature of it, >> Katello/foreman throws always the following error: >> >> There was an issue with the backend service pulp: 500 Internal Server Error >> >> >> I've tried to debug what's going on but could locate anything in the logs >> so far. >> >> Here the version I'm running: >> katello-3.4.3-1.el7.noarch >> foreman-1.15.2-1.el7.noarch >> pulp-client-1.0-1.noarch >> pulp-docker-plugins-2.4.0-2.el7.noarch >> pulp-katello-1.0.2-1.el7.noarch >> pulp-puppet-plugins-2.13.2-1.el7.noarch >> pulp-puppet-tools-2.13.2-1.el7.noarch >> pulp-rpm-plugins-2.13.2-1.el7.noarch >> pulp-selinux-2.13.2-1.el7.noarch >> pulp-server-2.13.2-1.el7.noarch >> >> Thanks for any help to debug that problem. >> >> rgds, >> Arsène >> >