Problem:
I had foreman 1.20 working fine.
then execute this commando for enable vmware:
foreman-installer --enable-foreman-compute-vmware --enable-foreman-plugin-ansible
this fail new hos registration… but with pulp-manage-db could fix this error.
but now i cant publish newers versions anymore, the error in the WebUI is “undefined method `’ for nil:NilClass”
2019-06-13T13:11:08 [I|app|] Started POST "/katello/api/v2/content_views/2/publish?organization_id=1" for 76.75.200.69 at 2019-06-13 13:11:08 -0300
2019-06-13T13:11:08 [I|app|8286d] Processing by Katello::Api::V2::ContentViewsController#publish as JSON
2019-06-13T13:11:08 [I|app|8286d] Parameters: {"id"=>"2", "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"2"}}
2019-06-13T13:11:08 [I|app|8286d] Current user set to XRU0811 (regular)
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on content_view_id 2
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on major 28
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on definition_archive_id
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on minor 0
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on repository_ids []
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewVersion (40) create event on environment_ids []
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentView (2) update event on next_version 28, 29
2019-06-13T13:11:08 [I|aud|8286d] Katello::ContentViewEnvironment (6) update event on content_view_version_id 30, 40
2019-06-13T13:11:08 [I|kat|8286d] GET: https://foreman/pulp/api/v2/repositories/23b4e4b9-9be3-466c-a490-750d6ed48fa2/?details=true: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: {"http_request_method": "GET", "exception": null, "error_message": "Missing resource(s): repository=23b4e4b9-9be3-466c-a490-750d6ed48fa2", "_href": "/pulp/api/v2/repositories/23b4e4b9-9be3-466c-a490-750d6ed48fa2/?details=true", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository": "23b4e4b9-9be3-466c-a490-750d6ed48fa2"}}, "description": "Missing resource(s): repository=23b4e4b9-9be3-466c-a490-750d6ed48fa2", "sub_errors": []}, "traceback": null, "resources": {"repository": "23b4e4b9-9be3-466c-a490-750d6ed48fa2"}}
2019-06-13T13:11:08 [I|kat|8286d] GET: https://foreman/pulp/api/v2/users/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: [{"_id": {"$oid": "5cfff269ec90f53526069474"}, "name": "admin", "roles": ["super-users"], "_ns": "users", "login": "admin", "_href": "/pulp/api/v2/users/admin/"}]
2019-06-13T13:11:08 [I|app|8286d] Current user set to XRU0811 (regular)
2019-06-13T13:11:08 [I|kat|8286d] GET: https://foreman/pulp/api/v2/repositories/1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2/?details=true: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: {"http_request_method": "GET", "exception": null, "error_message": "Missing resource(s): repository=1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2", "_href": "/pulp/api/v2/repositories/1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2/?details=true", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repository": "1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2"}}, "description": "Missing resource(s): repository=1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2", "sub_errors": []}, "traceback": null, "resources": {"repository": "1-CentOS_7CV-Library-23b4e4b9-9be3-466c-a490-750d6ed48fa2"}}
2019-06-13T13:11:08 [E|bac|8286d] undefined method `[]' for nil:NilClass (NoMethodError)