We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When configuring nginx to listen on an alternative port, using the following option in /etc/opscode/chef-server.rb:
nginx['ssl_port'] = 10443
Uploading of cookbooks fail with HTTP 500 Internal server error. Other knife commands seem to work normally.
nils@fatty:~/chef-repo-local$ cat .chef/knife.rb \# See http://docs.getchef.com/config_rb_knife.html for more information on knife configuration options current_dir = File.dirname(__FILE__) log_level :info log_location STDOUT node_name "nils" client_key "#{current_dir}/nils.pem" validation_client_name "meh-validator" validation_key "#{current_dir}/meh-validator.pem" chef_server_url "https://centos6-1/organizations/meh" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] nils@fatty:~/chef-repo-local$ getent hosts centos6-1 10.32.0.4 centos6-1 nils@fatty:~/chef-repo-local$ knife cookbook create empty ** Creating cookbook empty ** Creating README for cookbook: empty ** Creating CHANGELOG for cookbook: empty ** Creating metadata for cookbook: empty nils@fatty:~/chef-repo-local$ knife cookbook upload empty Uploading empty [0.1.0] Uploaded 1 cookbook. nils@fatty:~/chef-repo-local$ knife cookbook delete empty Do you really want to delete empty version 0.1.0? (Y/N)Y Deleted cookbook[empty version 0.1.0]
nils@fatty:~/chef-repo-local$ cat .chef/knife.rb \# See http://docs.getchef.com/config_rb_knife.html for more information on knife configuration options current_dir = File.dirname(__FILE__) log_level :info log_location STDOUT node_name "nils" client_key "#{current_dir}/nils.pem" validation_client_name "meh-validator" validation_key "#{current_dir}/meh-validator.pem" chef_server_url "https://centos6-1:10443/organizations/meh" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] nils@fatty:~/chef-repo-local$ knife cookbook list chef-client 3.9.0 chef_handler 1.1.6 cron 1.6.1 logrotate 1.7.0 ssh 0.1.0 starter 1.0.0 time 0.1.0 users 0.1.0 windows 1.34.8 nils@fatty:~/chef-repo-local$ knife cookbook create empty ** Creating cookbook empty ** Creating README for cookbook: empty ** Creating CHANGELOG for cookbook: empty ** Creating metadata for cookbook: empty nils@fatty:~/chef-repo-local$ knife cookbook upload empty Uploading empty [0.1.0] ERROR: Server returned error 500 for https://centos6-1:10443/organizations/meh/sandboxes/ae7303275706e1d0e4ff6dc7686995b7, retrying 1/5 in 4s
nils@fatty:~/chef-repo-local$ knife cookbook upload empty -VV DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as nils DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating GET to https://centos6-1:10443/organizations/meh/cookbooks?num_versions=all DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0; DEBUG: X-OPS-USERID: nils DEBUG: X-OPS-TIMESTAMP: 2014-12-11T13:43:50Z DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk= DEBUG: X-OPS-AUTHORIZATION-1: QcuM1fxXOY+Nn4nbuMA6pVVwmDZkAwtZVWjyMJPwev5RwPrSkcPT2vxlqBZk DEBUG: X-OPS-AUTHORIZATION-2: na5er6czBINoC+Mk5ioJlQ/10ot9n9H1ic71QC2uVcnuAnu2w2CGVEjuiwWJ DEBUG: X-OPS-AUTHORIZATION-3: +D8aqgomypsCSL4himp9iIjw5D5u/AElK85ZbuwylHgweYGuyTiB00Zx8UGm DEBUG: X-OPS-AUTHORIZATION-4: dJ7MrtlGCOblVJsfnDptJFoZcq1XfeP/6DUpDdg6CL0+CVTuSuBiqvu2Lf54 DEBUG: X-OPS-AUTHORIZATION-5: 63ka+jJofr04UOKPJWiebCxZ2kYLoY8sRqJeWXHtGiDWpFTsL6T13+pe1/F2 DEBUG: X-OPS-AUTHORIZATION-6: S01oPgmN/nePMPbRhGPSp8zUI6nhZTVknbRXzIkcnA== DEBUG: HOST: centos6-1:10443 DEBUG: X-REMOTE-REQUEST-ID: 783f1700-1367-4896-a04c-aa9195b17e22 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 200 OK DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:49 GMT DEBUG: content-type: application/json DEBUG: transfer-encoding: chunked DEBUG: connection: close DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=0.29.3 DEBUG: content-encoding: gzip DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: decompressing gzip response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response Uploading empty [0.1.0] INFO: Validating ruby files DEBUG: Ruby file /home/nils/chef-repo-local/.chef/../cookbooks/empty/metadata.rb is unchanged, skipping syntax check DEBUG: Ruby file /home/nils/chef-repo-local/.chef/../cookbooks/empty/recipes/default.rb is unchanged, skipping syntax check INFO: Validating templates INFO: Syntax OK INFO: Saving empty DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as nils DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating POST to https://centos6-1:10443/organizations/meh/sandboxes DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Content-Type: application/json DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0; DEBUG: X-OPS-USERID: nils DEBUG: X-OPS-TIMESTAMP: 2014-12-11T13:43:50Z DEBUG: X-OPS-CONTENT-HASH: Tf5EsKz4yLjblQK5gdpAezCGlP8= DEBUG: X-OPS-AUTHORIZATION-1: aTBVBQBDja3uc1jQ4q13+0wvEIjHVMP/4xjgh31DxBIC6kNehE9QR+AFFBPE DEBUG: X-OPS-AUTHORIZATION-2: uD3CZY26pCAzyxMhSg+nu8QA1e7/VR2MRSCiJv/Sni88JgZ2vq5r3eCLI5xF DEBUG: X-OPS-AUTHORIZATION-3: 2AIo2yoMtK/fUwgcVCzN9QOPHA/FUNpJmZkZrWoPPD3CCCo5RAgEOLFtUPeW DEBUG: X-OPS-AUTHORIZATION-4: pfDTB4UaDyI2egd7SxUyk5SqwDlaJrptOs9pNjVRruwnPqV+Ie0YxHFh0Rj+ DEBUG: X-OPS-AUTHORIZATION-5: s0NF8xtCWPmvKvMrxe8MOEKp4rDx51RTFEnyc2dMXhI5hUCjv9TcZDFjmpWb DEBUG: X-OPS-AUTHORIZATION-6: T1QF2McXOvXdi1sYyetroqy+L2XkQL6z4RH7ABlD+g== DEBUG: HOST: centos6-1:10443 DEBUG: X-REMOTE-REQUEST-ID: 783f1700-1367-4896-a04c-aa9195b17e22 DEBUG: Content-Length: 175 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 201 Created DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 1397 DEBUG: connection: close DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=0.29.3 DEBUG: location: http://centos6-1:10443/organizations/meh/sandboxes/ae7303275706b33ac7eb13e14431b19a DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response INFO: Uploading files INFO: Uploading /home/nils/chef-repo-local/cookbooks/empty/CHANGELOG.md (checksum hex = 8d8f6ea573078cf28515b3095d82844b) to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-8d8f6ea573078cf28515b3095d82844b?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=q9y19bGXWhyLD/QBUDRhSnqROtQ%3D INFO: Uploading /home/nils/chef-repo-local/cookbooks/empty/recipes/default.rb (checksum hex = 7811a4e3d56e21739f395de9ef19ae1a) to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-7811a4e3d56e21739f395de9ef19ae1a?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=gdcj6MFDsTyUfzlEmG8VNGYMOV8%3D INFO: Uploading /home/nils/chef-repo-local/cookbooks/empty/README.md (checksum hex = 293c80dcfa10f4db57cf711be5df7142) to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-293c80dcfa10f4db57cf711be5df7142?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=W4EBiq3zD7JF69kQtOZyuOGJbRw%3D INFO: Uploading /home/nils/chef-repo-local/cookbooks/empty/metadata.rb (checksum hex = c86cfa40f581bd0aa6037ba233436940) to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-c86cfa40f581bd0aa6037ba233436940?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=LGsZjawlw%2BjJcb9UVHqqzdKu25s%3D DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Initiating PUT to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-293c80dcfa10f4db57cf711be5df7142?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=W4EBiq3zD7JF69kQtOZyuOGJbRw%3D DEBUG: ---- HTTP Request Header Data: ---- DEBUG: content-type: application/x-binary DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Initiating PUT to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-8d8f6ea573078cf28515b3095d82844b?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=q9y19bGXWhyLD/QBUDRhSnqROtQ%3D DEBUG: ---- HTTP Request Header Data: ---- DEBUG: content-type: application/x-binary DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: content-md5: KTyA3PoQ9NtXz3Eb5d9xQg== DEBUG: Initiating PUT to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-c86cfa40f581bd0aa6037ba233436940?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=LGsZjawlw%2BjJcb9UVHqqzdKu25s%3D DEBUG: content-md5: jY9upXMHjPKFFbMJXYKESw== DEBUG: accept: application/json DEBUG: accept: application/json DEBUG: X-Ops-Sign: algorithm=sha1;version=1.0; DEBUG: X-Ops-Userid: nils DEBUG: X-Ops-Timestamp: 2014-12-11T13:43:50Z DEBUG: X-Ops-Content-Hash: +3wFiIrVrs9mkK4TuHzaNFVKQMA= DEBUG: X-Ops-Authorization-1: dMmXVh4N+xQ78NEpTqghdlFUedIMMyCZaFNWBTQAq/LGrFVmivyjm563yK/o DEBUG: Initiating PUT to https://centos6-1:10443/bookshelf/organization-0b9c6e274c175682cf44ae7303275706/checksum-7811a4e3d56e21739f395de9ef19ae1a?AWSAccessKeyId=901561e2dbf7b640e4589503be41f5c3cda4f7bb&Expires=1417797470&Signature=gdcj6MFDsTyUfzlEmG8VNGYMOV8%3D DEBUG: ---- HTTP Request Header Data: ---- DEBUG: content-type: application/x-binary DEBUG: content-md5: eBGk49VuIXOfOV3p7xmuGg== DEBUG: accept: application/json DEBUG: X-Ops-Sign: algorithm=sha1;version=1.0; DEBUG: X-Ops-Userid: nils DEBUG: X-Ops-Timestamp: 2014-12-11T13:43:50Z DEBUG: ---- HTTP Request Header Data: ---- DEBUG: content-type: application/x-binary DEBUG: content-md5: yGz6QPWBvQqmA3uiM0NpQA== DEBUG: accept: application/json DEBUG: X-Ops-Sign: algorithm=sha1;version=1.0; DEBUG: X-Ops-Userid: nils DEBUG: X-Ops-Timestamp: 2014-12-11T13:43:50Z DEBUG: X-Ops-Authorization-2: xBuMIv5XW0Txr/nJv7+MJXmxFu2dOJ2yGvwQ0TATh/171e780Yx4EcxiCuW8 DEBUG: X-Ops-Authorization-3: 4IdR22WDelKson/BN/LeDxQVNPrullLo8G8JS6nxzc3vXZa+f6hjD4E60Upr DEBUG: X-Ops-Content-Hash: GOaozZ/PdO0RCVqp6WQj/tmiGNs= DEBUG: X-Ops-Authorization-1: pHG1aLMYytLynXM6YgYwwpXPDyn5LWr3lbwby6layrsQkdyZLP3MppQ6TmYF DEBUG: X-Ops-Authorization-2: MllFvB4bjlScmmtIepssBuzF4KhrtEV+k1wHWahoj0DrRHDMTYHbM49/tFll DEBUG: X-Ops-Authorization-3: HJA06rO+XLJOPyzgtka30rVd8zsH/MX+K9dVkFd4xRHvtmyU2+2p9JsYZVpL DEBUG: X-Ops-Authorization-4: nXswuoCo/KqyUJGDS12S6fdEdy+XNLXbNMx+yS4SduDVKmSYs/2zYnoan0IG DEBUG: X-Ops-Authorization-5: qUmelQr0BWNdFT5FNIF5pbVzfHi8iPyenXYu1FDDUsItIzU4n0u6o2nGZZuA DEBUG: X-Ops-Authorization-6: NnrCUPO9DhtANHAJV4qtT8S75cft3ZKJHgu+WHGgZg== DEBUG: X-Ops-Sign: algorithm=sha1;version=1.0; DEBUG: X-Ops-Userid: nils DEBUG: X-Ops-Timestamp: 2014-12-11T13:43:50Z DEBUG: X-Ops-Content-Hash: gM+dlDyvO4H4YksPuRyVTyed4sM= DEBUG: X-Ops-Authorization-1: XbNC/tspO/U+P/jwwOORCr9OMIy3gxK6sg0jNE1vSezRGCHJSW6/voGJzqtC DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: Content-Length: 1440 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: X-Ops-Authorization-2: sFwVEpDhCYuk+5zI6I4v9oTGQp9r7aKJBf0gnDe+5CNe/BkmifbLdgg8VJ1U DEBUG: X-Ops-Authorization-3: x+3MMGdldX9gUDMyUtqVo6XXkPmyE7f15r1aoPgM21YyGfRYgRO2eWuAXQhz DEBUG: X-Ops-Authorization-4: mBX8qVAzI4ARpiRKo7+MRqEHXhIiIrNQD/4BWVJWX1G7x/NyjJOAO7FTY6nN DEBUG: X-Ops-Authorization-5: zejLvTO+njBRmBziUGza5qIBiJkFPBRSned5LL0fHUucHZlBxL5g1u4y4SPp DEBUG: X-Ops-Authorization-6: /70Ucx9lSyMJYalzbJs1a6tiAqkt8ROSWNJqbv3ROw== DEBUG: X-Ops-Content-Hash: yKkHYWE1SRXaJd0l6pWgzcQYaYQ= DEBUG: X-Ops-Authorization-4: 8os1JGOVlnVH4xF/yqkDlKAUCod9gNoHXrP0ABbKLOZa1sKCa8Hf3yu/e2cX DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Authorization-1: sTi/QfK9rdOqup6RRyKFn7pHo8IgAmm2nvbtzq7TbzzxJUM6OP6YrhueXUvK DEBUG: X-Ops-Authorization-5: pG+7B0wVpwyZUjf4JeGtMIQtke+PSmnrR/ufGD/aESUCWGUQet8c8lFNxvxd DEBUG: Content-Length: 131 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: X-Ops-Authorization-6: djEqgCPH12S1pxP1/BCwzt46xY8ZTj4IPuZ66UTC+Q== DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: Content-Length: 447 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: X-Ops-Authorization-2: IP3l8hCk6/3Gak3X0NAkSN31ASsLdxXhXOsuS/96o+pmpcz4XZ9vFicJDeDs DEBUG: X-Ops-Authorization-3: HqTnLxaImy8xATVFnsOwUm8E6T3/cKH4Z+sp9zjY2E74t42BdMMrhFPin+jC DEBUG: X-Ops-Authorization-4: vJk9qAHn8oNexnzV3hwyYdGX0fDJ38qtNsFFAy7ej4+GSnedQkjT/hlhVsex DEBUG: X-Ops-Authorization-5: zWX4asmP6Dqn2gGhORWsVwU/DR1sFSfS8N41pVI6kHgUowfL993yQdCYqTLI DEBUG: X-Ops-Authorization-6: wgCGcpiKOMMZKRR0vhNgA7pyQ3U4iXLOplory+kEvA== DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: Content-Length: 274 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 204 No Content DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 0 DEBUG: connection: close DEBUG: x-amz-request-id: g2gCZAATYm9va3NoZWxmQDEyNy4wLjAuMWgDYgAABYliAAwnmmIAAy+4 DEBUG: etag: eBGk49VuIXOfOV3p7xmuGg== DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 204 No Content DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 0 DEBUG: connection: close DEBUG: x-amz-request-id: g2gCZAATYm9va3NoZWxmQDEyNy4wLjAuMWgDYgAABYliAAwnmmIAAv6j DEBUG: etag: KTyA3PoQ9NtXz3Eb5d9xQg== DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 204 No Content DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 0 DEBUG: connection: close DEBUG: x-amz-request-id: g2gCZAATYm9va3NoZWxmQDEyNy4wLjAuMWgDYgAABYliAAwnmmIAAzoK DEBUG: etag: yGz6QPWBvQqmA3uiM0NpQA== DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 204 No Content DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 0 DEBUG: connection: close DEBUG: x-amz-request-id: g2gCZAATYm9va3NoZWxmQDEyNy4wLjAuMWgDYgAABYliAAwnmmIAAz4V DEBUG: etag: jY9upXMHjPKFFbMJXYKESw== DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Committing sandbox DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as nils DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating PUT to https://centos6-1:10443/organizations/meh/sandboxes/ae7303275706e939f72732e3c4a682bd DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Content-Type: application/json DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0; DEBUG: X-OPS-USERID: nils DEBUG: X-OPS-TIMESTAMP: 2014-12-11T13:43:50Z DEBUG: X-OPS-CONTENT-HASH: oMRtV6loUDnbKJuGcW6nqBbF8ww= DEBUG: X-OPS-AUTHORIZATION-1: HAUujYXnWtCh8sRzF8X/0L4i2/0FTC/LqlrddwoT7QmTWGevJYcw4rgfaZOT DEBUG: X-OPS-AUTHORIZATION-2: n/qTMr0vFnvtNxzeQuZK0ARAmSwn9mKacaK4yWBsaiSgACtvXH58YO4fZjHi DEBUG: X-OPS-AUTHORIZATION-3: +N+OOPK2sxr3ThPnKWNWk5Wvsmg+o2LGKf095BkeASvCK4SgLYIP0Oc1bR+r DEBUG: X-OPS-AUTHORIZATION-4: ciqOgY1LbCKm5tM7WsKiD0vPZe1FpL1WAvUGHpoTGddGe7OvKu+Z+Yirqoy8 DEBUG: X-OPS-AUTHORIZATION-5: 2h1JW2LrsEJ+hjE75aJuBITUT17t7JPdL2LKKfzkW3BYru0QjdasakruQqBT DEBUG: X-OPS-AUTHORIZATION-6: iShTFZhbVOo3Bgdp8eyDScNZqo0GJleHpFHbZKYk3Q== DEBUG: HOST: centos6-1:10443 DEBUG: X-REMOTE-REQUEST-ID: 783f1700-1367-4896-a04c-aa9195b17e22 DEBUG: Content-Length: 21 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 500 Internal Server Error DEBUG: server: ngx_openresty/1.4.3.6 DEBUG: date: Fri, 05 Dec 2014 16:22:50 GMT DEBUG: content-type: application/json DEBUG: content-length: 36 DEBUG: connection: close DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=0.29.3 DEBUG: ---- End HTTP Status/Header Data ---- ERROR: Server returned error 500 for https://centos6-1:10443/organizations/meh/sandboxes/ae7303275706e939f72732e3c4a682bd, retrying 1/5 in 4s
==> /var/log/opscode/opscode-erchef/crash.log <== {<<"method=PUT; path=/organizations/meh/sandboxes/ae7303275706e1d0e4ff6dc7686995b7; status=500; ">>,{error,{throw,{checksum_check_error,4},[{chef_wm_named_sandbox,validate_checksums_uploaded,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,144}]},{chef_wm_named_sandbox,from_json,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,99}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,accept_helper,1,[{file,"src/webmachine_decision_core.erl"},{line,612}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,517}]},{webmachine_decision_core,handle_request,2,[{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}}2014-12-05 17:22:50 =ERROR REPORT==== Checking presence of file (checksum: <<"c86cfa40f581bd0aa6037ba233436940">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-c86cfa40f581bd0aa6037ba233436940") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50 =ERROR REPORT==== Checking presence of file (checksum: <<"293c80dcfa10f4db57cf711be5df7142">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-293c80dcfa10f4db57cf711be5df7142") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50 =ERROR REPORT==== Checking presence of file (checksum: <<"8d8f6ea573078cf28515b3095d82844b">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-8d8f6ea573078cf28515b3095d82844b") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50 =ERROR REPORT==== Checking presence of file (checksum: <<"7811a4e3d56e21739f395de9ef19ae1a">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-7811a4e3d56e21739f395de9ef19ae1a") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50 =ERROR REPORT==== {<<"method=PUT; path=/organizations/meh/sandboxes/ae7303275706e939f72732e3c4a682bd; status=500; ">>,{error,{throw,{checksum_check_error,4},[{chef_wm_named_sandbox,validate_checksums_uploaded,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,144}]},{chef_wm_named_sandbox,from_json,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,99}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,accept_helper,1,[{file,"src/webmachine_decision_core.erl"},{line,612}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,517}]},{webmachine_decision_core,handle_request,2,[{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}} ==> /var/log/opscode/opscode-erchef/requests.log.1 <== 2014-12-05T16:18:18Z [email protected] method=PUT; path=/organizations/meh/cookbooks/empty/0.1.0; status=201; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAO9TAAAAAAAAAAA; org_name=meh; msg={created,<<"empty">>}; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=290; rdbms_time=70; rdbms_count=8; user=nils; 2014-12-05T16:18:26Z [email protected] method=GET; path=/organizations/meh/cookbooks/empty; status=200; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAO+ZgAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=26; rdbms_time=10; rdbms_count=7; authz_time=7; authz_count=1; user=nils; 2014-12-05T16:18:29Z [email protected] method=DELETE; path=/organizations/meh/cookbooks/empty/0.1.0; status=200; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAO+ywAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=173; rdbms_time=96; rdbms_count=7; authz_time=12; authz_count=1; s3_time=38; s3_count=1; user=nils; 2014-12-05T16:22:24Z [email protected] method=GET; path=/organizations/meh/cookbooks?num_versions=1; status=200; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPKEgAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=74; rdbms_time=23; rdbms_count=7; authz_time=44; authz_count=1; user=nils; 2014-12-05T16:22:41Z [email protected] method=GET; path=/organizations/meh/cookbooks?num_versions=all; status=200; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPLHQAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=28; rdbms_time=7; rdbms_count=7; authz_time=14; authz_count=1; user=nils; 2014-12-05T16:22:41Z [email protected] method=POST; path=/organizations/meh/sandboxes; status=201; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPLZgAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=255; rdbms_time=45; rdbms_count=8; user=nils; 2014-12-05T16:22:41Z [email protected] method=PUT; path=/organizations/meh/sandboxes/ae7303275706e1d0e4ff6dc7686995b7; status=500; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPMEwAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=26; rdbms_time=5; rdbms_count=6; authz_time=9; authz_count=1; s3_time=3; s3_count=1; user=nils; 2014-12-05T16:22:49Z [email protected] method=GET; path=/organizations/meh/cookbooks?num_versions=all; status=200; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPM3wAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=29; rdbms_time=8; rdbms_count=7; authz_time=11; authz_count=1; user=nils; 2014-12-05T16:22:50Z [email protected] method=POST; path=/organizations/meh/sandboxes; status=201; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPNKAAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=332; rdbms_time=65; rdbms_count=8; user=nils; 2014-12-05T16:22:50Z [email protected] method=PUT; path=/organizations/meh/sandboxes/ae7303275706e939f72732e3c4a682bd; status=500; req_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAPNzwAAAAAAAAAA; org_name=meh; couchdb_groups=false; couchdb_organizations=false; couchdb_containers=false; couchdb_acls=false; 503_mode=false; couchdb_associations=false; couchdb_association_requests=false; req_time=33; rdbms_time=5; rdbms_count=6; authz_time=6; authz_count=1; s3_time=13; s3_count=1; user=nils; ==> /var/log/opscode/opscode-erchef/erchef.log <== 2014-12-05 17:22:41.735 [error] {<<"method=PUT; path=/organizations/meh/sandboxes/ae7303275706e1d0e4ff6dc7686995b7; status=500; ">>,{error,{throw,{checksum_check_error,4},[{chef_wm_named_sandbox,validate_checksums_uploaded,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,144}]},{chef_wm_named_sandbox,from_json,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,99}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,accept_helper,1,[{file,"src/webmachine_decision_core.erl"},{line,612}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,517}]},{webmachine_decision_core,handle_request,2,[{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}} 2014-12-05 17:22:50.352 [error] Checking presence of file (checksum: <<"c86cfa40f581bd0aa6037ba233436940">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-c86cfa40f581bd0aa6037ba233436940") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50.352 [error] Checking presence of file (checksum: <<"293c80dcfa10f4db57cf711be5df7142">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-293c80dcfa10f4db57cf711be5df7142") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50.352 [error] Checking presence of file (checksum: <<"8d8f6ea573078cf28515b3095d82844b">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-8d8f6ea573078cf28515b3095d82844b") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50.354 [error] Checking presence of file (checksum: <<"7811a4e3d56e21739f395de9ef19ae1a">>) for org <<"0b9c6e274c175682cf44ae7303275706">> from bucket "bookshelf" (key: "organization-0b9c6e274c175682cf44ae7303275706/checksum-7811a4e3d56e21739f395de9ef19ae1a") raised exception error:{aws_error,{socket_error,{conn_failed,{error,econnrefused}}}} 2014-12-05 17:22:50.354 [error] {<<"method=PUT; path=/organizations/meh/sandboxes/ae7303275706e939f72732e3c4a682bd; status=500; ">>,{error,{throw,{checksum_check_error,4},[{chef_wm_named_sandbox,validate_checksums_uploaded,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,144}]},{chef_wm_named_sandbox,from_json,2,[{file,"src/chef_wm_named_sandbox.erl"},{line,99}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,accept_helper,1,[{file,"src/webmachine_decision_core.erl"},{line,612}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,517}]},{webmachine_decision_core,handle_request,2,[{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}}
The text was updated successfully, but these errors were encountered:
@nilscant Apologies for the delay. I am going to close this bug in favor of #50 which has the root cause described.
Sorry, something went wrong.
No branches or pull requests
When configuring nginx to listen on an alternative port, using the following option in /etc/opscode/chef-server.rb:
Uploading of cookbooks fail with HTTP 500 Internal server error. Other knife commands seem to work normally.
With the default settings:
On the alternative port 10443
Running in verbose mode:
Relevant log entries on chef server:
The text was updated successfully, but these errors were encountered: