Nexus3 helm probelm

HI Everyone:
when I use the helm to push the chart to nexus3,I meet a problem。
the error notice :

[root@k8s-master ~]# helm push mychart-0.1.0.tgz nexus3-helm
Pushing mychart-0.1.0.tgz to nexus3-helm...
Error: 405: could not properly parse response JSON: 
<!DOCTYPE html>
<html lang="en">
<head>
  <title>405 - Nexus Repository Manager</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


  <!--[if lt IE 9]>
  <script>(new Image).src="http://192.168.137.1:8081/favicon.ico?3.23.0-03"</script>
  <![endif]-->
  <link rel="icon" type="image/png" href="http://192.168.137.1:8081/favicon-32x32.png?3.23.0-03" sizes="32x32">
  <link rel="mask-icon" href="http://192.168.137.1:8081/safari-pinned-tab.svg?3.23.0-03" color="#5bbad5">
  <link rel="icon" type="image/png" href="http://192.168.137.1:8081/favicon-16x16.png?3.23.0-03" sizes="16x16">
  <link rel="shortcut icon" href="http://192.168.137.1:8081/favicon.ico?3.23.0-03">
  <meta name="msapplication-TileImage" content="http://192.168.137.1:8081/mstile-144x144.png?3.23.0-03">
  <meta name="msapplication-TileColor" content="#00a300">

  <link rel="stylesheet" type="text/css" href="http://192.168.137.1:8081/static/css/nexus-content.css?3.23.0-03"/>
</head>
<body>
<div class="nexus-header">
  <a href="http://192.168.137.1:8081">
    <div class="product-logo">
      <img src="http://192.168.137.1:8081/static/images/nexus.png?3.23.0-03" alt="Product logo"/>
    </div>
    <div class="product-id">
      <div class="product-id__line-1">
        <span class="product-name">Nexus Repository Manager</span>
      </div>
      <div class="product-id__line-2">
        <span class="product-spec">OSS 3.23.0-03</span>
      </div>
    </div>
  </a>
</div>

<div class="nexus-body">
  <div class="content-header">
    <img src="http://192.168.137.1:8081/static/rapture/resources/icons/x32/exclamation.png?3.23.0-03" alt="Exclamation point" aria-role="presentation"/>
    <span class="title">Error 405</span>
    <span class="description">Method Not Allowed</span>
  </div>
  <div class="content-body">
    <div class="content-section">
      HTTP method POST is not supported by this URL
    </div>
      </div>
</div>
</body>
</html>


Error: plugin "push" exited with error

some things:

helm version:
version.BuildInfo{Version:“v3.2.1”, GitCommit:“fe51cd1e31e6a202cba7dead9552a6d418ded79a”, GitTreeState:“clean”, GoVersion:“go1.13.10”}
nexus3 version:3.23.0-03
the nexus3 helm repo url:
nexus3-helm http://192.168.137.1:8081/repository/helm-hosted/

who can help me,thank you !!

Did you try using curl or UI upload as documented?
https://help.sonatype.com/display/NXRM3/Helm+Repositories#HelmRepositories-UploadingChartstoHelmHostedRepositories

I see an issue with helm push which leads me to believe it’s not supported (or at least there may be issues): https://issues.sonatype.org/browse/NEXUS-23331
That would match a 405 response if true.
-Joe

Thank you for your reply, Joe Tom!
I had used the curl or Nexus3’s UI upload as the offical documents described to push the charts to the nexus3’s helm hosted repository,that’s ok!

Through the information you gave,I‘m sure ’It’s a real bug,I will pay attention to version repair later!
Thank you !!

1 Like