Open Grieves

Open Grieves

Assimilate quickly!

You must comply!

Red Hat Satellite 6.2.2 Pulp sync results in Error 500

Out of troublePosted by Magnus Glantz 2016-11-02 10:43:09
If you, when you click on Content > Sync status, get an error message, and when you look at /var/log/foreman/production.log, see the below error message:

2016-11-01 19:20:52 [katello/pulp_rest] [E] "https://sat6.FQDN/pulp/api/v2/repositories/search/", 1613 byte(s) length, "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"1613", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 500 InternalServerError | text/html 531 bytes | 2016-11-01 19:20:52 [app] [I] Completed 500 Internal Server Error in 1047ms 2016-11-01 19:20:52 [app] [F] | RestClient::InternalServerError (500 Internal Server Error): | katello ( app/models/katello/glue/pulp/repos.rb:53:in `prepopulate!' | katello ( app/helpers/katello/sync_management_helper.rb:38:in `collect_repos' | katello ( app/controllers/katello/sync_management_controller.rb:27:in `index' | app/controllers/concerns/application_shared.rb:13:in `set_timezone' | lib/middleware/catch_json_parse_errors.rb:9:in `call'

Then, perhaps, the pulp database did not upgrade properly when you upgraded pulp at some point. Try:

(Running as root)
# usermod -s /bin/bash apache
# su - apache

(Running as apache)
$ pulp-db-migrate
$ exit

(Running as root)

# usermod -s /bin/false apache
# katello-service restart


  • Comments(0)

Fill in only if you are not real

The following XHTML tags are allowed: <b>, <br/>, <em>, <i>, <strong>, <u>. CSS styles and Javascript are not permitted.