Bug #14740
closedHammer-cli repository upload content fail
Added by Mario Gamboa over 8 years ago. Updated about 6 years ago.
Description
hammer> repository upload-content --id 5 --organization-id 1 --path /root/rabbitmq-server-3.3.0-1.noarch.rpm
[Foreman] Password for admin:
Failed to upload file 'rabbitmq-server-3.3.0-1.noarch.rpm' to repository. Please check the file and try again.
on the server the file is upload but appear as number no as rpm, this repo before was sync with the epel repo i just try to add one up to date version needed for my environment but is fail via hammer via the gui
rwxrwxrwx. 1 apache apache 136 Apr 21 16:23 rabbitmq-server-3.1.5-1.el6.noarch.rpm -> /var/lib/pulp/content/units/rpm/58/cd677dcefa5b96434befbdff1d38ffc11c3173bcb1ceed7cecb00485765a8f/rabbitmq-server-3.1.5-1.el6.noarch.rpm
lrwxrwxrwx. 1 apache apache 134 Apr 21 16:23 rabbitmq-server-3.3.0-1.noarch.rpm -> /var/lib/pulp/content/units/rpm/2b/2e0878d2332f32fbd56b905bcbf80749c8b39c6f5ac73a30d951b0ede4d11e/0540f16a-583f-4cce-9824-30482a8707fa
Files
foreman-debug-dLMsL.tar.xz | foreman-debug-dLMsL.tar.xz | 652 KB | Mario Gamboa, 04/21/2016 02:38 AM | ||
task.png | View task.png | 45.3 KB | Mario Gamboa, 04/22/2016 08:50 AM |
Updated by Mario Gamboa over 8 years ago
just miss that the metadata is created but is fail to try install not found the package
Updated by Mario Gamboa over 8 years ago
also just to make sure i check the sum and are ok
[root@nz2zmsosat01 2e0878d2332f32fbd56b905bcbf80749c8b39c6f5ac73a30d951b0ede4d11e]# md5sum 0540f16a-583f-4cce-9824-30482a8707fa
049a8f35dad7b4883fa88a1008a59e6a 0540f16a-583f-4cce-9824-30482a8707fa
[root@nz2zmsosat01 2e0878d2332f32fbd56b905bcbf80749c8b39c6f5ac73a30d951b0ede4d11e]# md5sum /root/rabbitmq-server-3.3.0-1.noarch.rpm
049a8f35dad7b4883fa88a1008a59e6a /root/rabbitmq-server-3.3.0-1.noarch.rpm
[root@nz2zmsosat01 2e0878d2332f32fbd56b905bcbf80749c8b39c6f5ac73a30d951b0ede4d11e]#
this mean something break the process to rename the number into rpm package.
attached foreman-debug
Updated by Mario Gamboa over 8 years ago
Debug show the fiel is upload ok but in the repos is nothing no file at all
attr_accessor :net_http_res = #<Net::HTTPOK:0x01dbb608
@body_exist = true,
@read = true,
@socket = nil,
attr_accessor :body = ...String...,
attr_accessor :decode_content = false,
attr_accessor :uri = nil,
attr_reader :code = "200",
attr_reader :header = {
"date" => [
[0] "Fri, 22 Apr 2016 12:40:47 GMT"
],
"server" => [
[0] "Apache/2.4.6 (CentOS)"
],
"x-frame-options" => [
[0] "SAMEORIGIN"
],
"x-xss-protection" => [
[0] "1; mode=block"
],
"x-content-type-options" => [
[0] "nosniff"
],
"foreman_version" => [
[0] "1.11.1"
],
"foreman_api_version" => [
[0] "2"
],
"apipie-checksum" => [
[0] "86a307e0acee19428b90b374d33c1515"
],
"cache-control" => [
[0] "max-age=0, private, must-revalidate"
],
"x-request-id" => [
[0] "995e59c6-fa61-4d15-80d7-0810fe218085"
],
"x-runtime" => [
[0] "2.937619"
],
"x-powered-by" => [
[0] "Phusion Passenger 4.0.18"
],
"set-cookie" => [
[0] "request_method=PUT; path=/",
[1] "_session_id=1eff1ae1762fe87328ba8defe194acaa; path=/; secure; HttpOnly"
],
"etag" => [
[0] "\"7215ee9c7d9dc229d2921a40e899ec5f\""
],
"status" => [
[0] "200 OK"
],
"content-length" => [
[0] "1"
],
"content-type" => [
[0] "text/plain; charset=utf-8"
]
},
attr_reader :http_version = "1.1",
attr_reader :message = "OK"
>,
attr_reader :code = 200,
attr_reader :headers = {
:date => "Fri, 22 Apr 2016 12:40:47 GMT",
:server => "Apache/2.4.6 (CentOS)",
:x_frame_options => "SAMEORIGIN",
:x_xss_protection => "1; mode=block",
:x_content_type_options => "nosniff",
:foreman_version => "1.11.1",
:foreman_api_version => "2",
:apipie_checksum => "86a307e0acee19428b90b374d33c1515",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "995e59c6-fa61-4d15-80d7-0810fe218085",
:x_runtime => "2.937619",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "request_method=PUT; path=/",
[1] "_session_id=1eff1ae1762fe87328ba8defe194acaa; path=/; secure; HttpOnly"
],
:etag => "\"7215ee9c7d9dc229d2921a40e899ec5f\"",
:status => "200 OK",
:content_length => "1",
:content_type => "text/plain; charset=utf-8"
}
[DEBUG 2016-04-22 22:41:07 API] Response headers: {
:date => "Fri, 22 Apr 2016 12:40:47 GMT",
:server => "Apache/2.4.6 (CentOS)",
:x_frame_options => "SAMEORIGIN",
:x_xss_protection => "1; mode=block",
:x_content_type_options => "nosniff",
:foreman_version => "1.11.1",
:foreman_api_version => "2",
:apipie_checksum => "86a307e0acee19428b90b374d33c1515",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "995e59c6-fa61-4d15-80d7-0810fe218085",
:x_runtime => "2.937619",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "request_method=PUT; path=/",
[1] "_session_id=1eff1ae1762fe87328ba8defe194acaa; path=/; secure; HttpOnly"
],
:etag => "\"7215ee9c7d9dc229d2921a40e899ec5f\"",
:status => "200 OK",
:content_length => "1",
:content_type => "text/plain; charset=utf-8"
}
[ INFO 2016-04-22 22:41:07 API] Server: https://localhost/
[ INFO 2016-04-22 22:41:07 API] PUT /katello/api/repositories/5/import_uploads
[DEBUG 2016-04-22 22:41:07 API] Params: {
:upload_ids => [
[0] "f5fd86a9-22a0-4214-8276-1da84bb0ae58"
]
}
[DEBUG 2016-04-22 22:41:07 API] Headers: {}
[DEBUG 2016-04-22 22:42:37 API] 400 Bad Request
{
"displayMessage" => "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://nz2zmsosat01.pp.vficonnect.net.nz/foreman_tasks/tasks/5f632d74-78f5-4586-8475-368db0076a8f",
"errors" => [
[0] "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://nz2zmsosat01.pp.vficonnect.net.nz/foreman_tasks/tasks/5f632d74-78f5-4586-8475-368db0076a8f"
]
}
Failed to upload file 'rabbitmq-server-3.3.0-1.noarch.rpm' to repository. Please check the file and try again.
[ INFO 2016-04-22 22:42:37 API] Server: https://localhost/
[ INFO 2016-04-22 22:42:37 API] DELETE /katello/api/repositories/5/content_uploads/f5fd86a9-22a0-4214-8276-1da84bb0ae58
[DEBUG 2016-04-22 22:42:37 API] Params: {}
[DEBUG 2016-04-22 22:42:37 API] Headers: {
:params => {}
}
[DEBUG 2016-04-22 22:42:37 API] Response: #<String:0x028ca9b8
attr_accessor :args = {
:timeout => nil,
:headers => {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en"
},
:verify_ssl => false,
:user => "admin",
:password => "***",
:oauth => nil,
:method => :delete,
:url => "https://localhost//katello/api/repositories/5/content_uploads/f5fd86a9-22a0-4214-8276-1da84bb0ae58"
},
attr_accessor :net_http_res = #<Net::HTTPOK:0x02889800
@body_exist = true,
@read = true,
@socket = nil,
attr_accessor :body = ...String...,
attr_accessor :decode_content = false,
attr_accessor :uri = nil,
attr_reader :code = "200",
attr_reader :header = {
"date" => [
[0] "Fri, 22 Apr 2016 12:42:37 GMT"
],
"server" => [
[0] "Apache/2.4.6 (CentOS)"
],
"x-frame-options" => [
[0] "SAMEORIGIN"
],
"x-xss-protection" => [
[0] "1; mode=block"
],
"x-content-type-options" => [
[0] "nosniff"
],
"foreman_version" => [
[0] "1.11.1"
],
"foreman_api_version" => [
[0] "2"
],
"apipie-checksum" => [
[0] "86a307e0acee19428b90b374d33c1515"
],
"cache-control" => [
[0] "max-age=0, private, must-revalidate"
],
"x-request-id" => [
[0] "665d7062-bda4-4c07-812a-7d588c288201"
],
"x-runtime" => [
[0] "0.206448"
],
"x-powered-by" => [
[0] "Phusion Passenger 4.0.18"
],
"set-cookie" => [
[0] "request_method=DELETE; path=/",
[1] "_session_id=b12c9de7f2c9f720ce2df7bc3ff1ad9e; path=/; secure; HttpOnly"
],
"etag" => [
[0] "\"7215ee9c7d9dc229d2921a40e899ec5f\""
],
"status" => [
[0] "200 OK"
],
"content-length" => [
[0] "1"
],
"content-type" => [
[0] "text/plain; charset=utf-8"
]
},
attr_reader :http_version = "1.1",
attr_reader :message = "OK"
>,
attr_reader :code = 200,
attr_reader :headers = {
:date => "Fri, 22 Apr 2016 12:42:37 GMT",
:server => "Apache/2.4.6 (CentOS)",
:x_frame_options => "SAMEORIGIN",
:x_xss_protection => "1; mode=block",
:x_content_type_options => "nosniff",
:foreman_version => "1.11.1",
:foreman_api_version => "2",
:apipie_checksum => "86a307e0acee19428b90b374d33c1515",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "665d7062-bda4-4c07-812a-7d588c288201",
:x_runtime => "0.206448",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "request_method=DELETE; path=/",
[1] "_session_id=b12c9de7f2c9f720ce2df7bc3ff1ad9e; path=/; secure; HttpOnly"
],
:etag => "\"7215ee9c7d9dc229d2921a40e899ec5f\"",
:status => "200 OK",
:content_length => "1",
:content_type => "text/plain; charset=utf-8"
}
[DEBUG 2016-04-22 22:42:37 API] Response headers: {
:date => "Fri, 22 Apr 2016 12:42:37 GMT",
:server => "Apache/2.4.6 (CentOS)",
:x_frame_options => "SAMEORIGIN",
:x_xss_protection => "1; mode=block",
:x_content_type_options => "nosniff",
:foreman_version => "1.11.1",
:foreman_api_version => "2",
:apipie_checksum => "86a307e0acee19428b90b374d33c1515",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "665d7062-bda4-4c07-812a-7d588c288201",
:x_runtime => "0.206448",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "request_method=DELETE; path=/",
[1] "_session_id=b12c9de7f2c9f720ce2df7bc3ff1ad9e; path=/; secure; HttpOnly"
],
:etag => "\"7215ee9c7d9dc229d2921a40e899ec5f\"",
:status => "200 OK",
:content_length => "1",
:content_type => "text/plain; charset=utf-8"
}
Updated by Mario Gamboa over 8 years ago
Apparently said
[DEBUG 2016-04-22 22:42:37 API] 400 Bad Request {
"displayMessage" => "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://nz2zmsosat01.pp.vficonnect.net.nz/foreman_tasks/tasks/5f632d74-78f5-4586-8475-368db0076a8f",
"errors" => [
[0] "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://nz2zmsosat01.pp.vficonnect.net.nz/foreman_tasks/tasks/5f632d74-78f5-4586-8475-368db0076a8f"
]
}
Failed to upload file 'rabbitmq-server-3.3.0-1.noarch.rpm' to repository. Please check the file and try again.
but as you can see the task is finish successful no errors at all
Updated by Eric Helms over 8 years ago
- Status changed from New to Need more information
Mario,
Have you re-tested this at all? Are you still seeing it?
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release changed from 86 to 144
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release deleted (
144)
Updated by Justin Sherrill over 8 years ago
- Status changed from Need more information to Rejected
- Translation missing: en.field_release set to 166
We can't reproduce this, please reopen if you are able to.
Thanks