Actions
Bug #36672
closedCannot create repository, Connection reset by peer
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
I run Foreman 3.6.1 with Katello 4.8.4 on CentOS Stream 8. I cannot create Debian 12 repository:
# hammer --debug repository create \ --deb-architectures amd64 \ --deb-releases bookworm \ --content-type deb \ --download-concurrency 1 \ --download-policy 'on_demand' \ --label Debian_12_bookworm \ --name 'Debian 12 bookworm' \ --mirroring-policy 'mirror_content_only' \ --organization MyOrganisation \ --product 'Debian 12 bookworm' \ --publish-via-http true \ --url http://ftp.sk.debian.org/debian/ [ INFO 2023-08-11T09:21:29 Init] Initialization of Hammer CLI (3.6.0) has started... [DEBUG 2023-08-11T09:21:29 Init] Running at ruby 2.7.6-p219 ... [ INFO 2023-08-11T09:21:31 HammerCLIKatello::Repository::CreateCommand] Called with options: {"option_unprotected"=>true, "option_content_type"=>"deb", "option_name"=>"Debian 12 bookworm", "option_label"=>"Debian_12_bookworm", "option_url"=>"http://ftp.sk.debian.org/debian/", "option_download_policy"=>"on_demand", "option_download_concurrency"=>1, "option_mirroring_policy"=>"mirror_content_only", "option_deb_releases"=>"bookworm", "option_deb_architectures"=>"amd64", "option_product_name"=>"Debian 12 bookworm", "option_organization_name"=>"MyOrganisation", "option_product_id"=>1} [ INFO 2023-08-11T09:21:31 API] Server: https://frm01.myorganisation.local [ INFO 2023-08-11T09:21:31 API] POST /katello/api/repositories [DEBUG 2023-08-11T09:21:31 API] Params: { "name" => "Debian 12 bookworm", "label" => "Debian_12_bookworm", "product_id" => 1, "content_type" => "deb", "url" => "http://ftp.sk.debian.org/debian/", "unprotected" => true, "download_policy" => "on_demand", "download_concurrency" => 1, "mirroring_policy" => "mirror_content_only", "deb_releases" => "bookworm", "deb_architectures" => "amd64" } [DEBUG 2023-08-11T09:21:31 API] Headers: {} [DEBUG 2023-08-11T09:21:31 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [ERROR 2023-08-11T09:21:32 API] 500 Internal Server Error [DEBUG 2023-08-11T09:21:32 API] { "displayMessage" => "Connection reset by peer", "errors" => [ [0] "Connection reset by peer" ] } [DEBUG 2023-08-11T09:21:32 Exception] Using exception handler HammerCLIKatello::ExceptionHandler#handle_internal_error [ERROR 2023-08-11T09:21:32 Exception] Connection reset by peer Could not create the repository: Connection reset by peer [ERROR 2023-08-11T09:21:32 Exception] RestClient::InternalServerError (500 Internal Server Error): /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in `exception_with_response' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in `return!' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/api.rb:353:in `block in rest_client_call_block' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:834:in `process_result' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in `block in transmit' /usr/share/ruby/net/http.rb:933:in `start' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in `transmit' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute' /usr/share/gems/gems/rest-client-2.1.0/lib/restclient/resource.rb:69:in `post' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/api.rb:327:in `call_client' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/api.rb:240:in `http_call' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/api.rb:190:in `call_action' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/api.rb:185:in `call' /usr/share/gems/gems/apipie-bindings-0.6.0/lib/apipie_bindings/resource.rb:21:in `call' /usr/share/gems/gems/hammer_cli-3.6.0/lib/hammer_cli/apipie/command.rb:53:in `send_request' /usr/share/gems/gems/hammer_cli_foreman-3.6.0/lib/hammer_cli_foreman/commands.rb:180:in `send_request' /usr/share/gems/gems/hammer_cli-3.6.0/lib/hammer_cli/apipie/command.rb:34:in `execute' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /usr/share/gems/gems/hammer_cli-3.6.0/lib/hammer_cli/abstract.rb:103:in `run' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /usr/share/gems/gems/hammer_cli-3.6.0/lib/hammer_cli/abstract.rb:103:in `run' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /usr/share/gems/gems/hammer_cli-3.6.0/lib/hammer_cli/abstract.rb:103:in `run' /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run' /usr/share/gems/gems/hammer_cli-3.6.0/bin/hammer:147:in `<top (required)>' /usr/bin/hammer:23:in `load' /usr/bin/hammer:23:in `<main>'
Actions