I get ValueError: zero length field name in format while i start prometheus-couchbase-exporter with Python...












0















I get an error thrown while i start/restart prometheus-couchbase-exporter on my CentOS release 6.8 (Final) with Python 2.6.



Below is the error.



Exception happened during processing of request from ('..*.**', 54288)
Traceback (most recent call last):
File "/usr/lib64/python2.6/SocketServer.py", line 570, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.6/SocketServer.py", line 627, in init
self.handle()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
method()
File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 146, in do_GET
output = encoder(registry)
File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 119, in generate_latest
output.append(sample_line(s))
File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 86, in sample_line
s.name, labelstr, floatToGoString(s.value), timestamp)
File "/usr/lib/python2.6/site-packages/prometheus_client/utils.py", line 21, in floatToGoString
mantissa = '{}.{}{}'.format(s[0], s[1:dot], s[dot+1:]).rstrip('0.')
ValueError: zero length field name in format



I have two installations, old and new.



I get this error only on NEW installation where as both installations have Python 2.6



When i compare both the installations, utils.py is not present in the older installation of Python 2.6.



Hoping for a solution to fix this.










share|improve this question



























    0















    I get an error thrown while i start/restart prometheus-couchbase-exporter on my CentOS release 6.8 (Final) with Python 2.6.



    Below is the error.



    Exception happened during processing of request from ('..*.**', 54288)
    Traceback (most recent call last):
    File "/usr/lib64/python2.6/SocketServer.py", line 570, in process_request_thread
    self.finish_request(request, client_address)
    File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib64/python2.6/SocketServer.py", line 627, in init
    self.handle()
    File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
    File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
    File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 146, in do_GET
    output = encoder(registry)
    File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 119, in generate_latest
    output.append(sample_line(s))
    File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 86, in sample_line
    s.name, labelstr, floatToGoString(s.value), timestamp)
    File "/usr/lib/python2.6/site-packages/prometheus_client/utils.py", line 21, in floatToGoString
    mantissa = '{}.{}{}'.format(s[0], s[1:dot], s[dot+1:]).rstrip('0.')
    ValueError: zero length field name in format



    I have two installations, old and new.



    I get this error only on NEW installation where as both installations have Python 2.6



    When i compare both the installations, utils.py is not present in the older installation of Python 2.6.



    Hoping for a solution to fix this.










    share|improve this question

























      0












      0








      0








      I get an error thrown while i start/restart prometheus-couchbase-exporter on my CentOS release 6.8 (Final) with Python 2.6.



      Below is the error.



      Exception happened during processing of request from ('..*.**', 54288)
      Traceback (most recent call last):
      File "/usr/lib64/python2.6/SocketServer.py", line 570, in process_request_thread
      self.finish_request(request, client_address)
      File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
      self.RequestHandlerClass(request, client_address, self)
      File "/usr/lib64/python2.6/SocketServer.py", line 627, in init
      self.handle()
      File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
      self.handle_one_request()
      File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
      method()
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 146, in do_GET
      output = encoder(registry)
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 119, in generate_latest
      output.append(sample_line(s))
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 86, in sample_line
      s.name, labelstr, floatToGoString(s.value), timestamp)
      File "/usr/lib/python2.6/site-packages/prometheus_client/utils.py", line 21, in floatToGoString
      mantissa = '{}.{}{}'.format(s[0], s[1:dot], s[dot+1:]).rstrip('0.')
      ValueError: zero length field name in format



      I have two installations, old and new.



      I get this error only on NEW installation where as both installations have Python 2.6



      When i compare both the installations, utils.py is not present in the older installation of Python 2.6.



      Hoping for a solution to fix this.










      share|improve this question














      I get an error thrown while i start/restart prometheus-couchbase-exporter on my CentOS release 6.8 (Final) with Python 2.6.



      Below is the error.



      Exception happened during processing of request from ('..*.**', 54288)
      Traceback (most recent call last):
      File "/usr/lib64/python2.6/SocketServer.py", line 570, in process_request_thread
      self.finish_request(request, client_address)
      File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
      self.RequestHandlerClass(request, client_address, self)
      File "/usr/lib64/python2.6/SocketServer.py", line 627, in init
      self.handle()
      File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
      self.handle_one_request()
      File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
      method()
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 146, in do_GET
      output = encoder(registry)
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 119, in generate_latest
      output.append(sample_line(s))
      File "/usr/lib/python2.6/site-packages/prometheus_client/exposition.py", line 86, in sample_line
      s.name, labelstr, floatToGoString(s.value), timestamp)
      File "/usr/lib/python2.6/site-packages/prometheus_client/utils.py", line 21, in floatToGoString
      mantissa = '{}.{}{}'.format(s[0], s[1:dot], s[dot+1:]).rstrip('0.')
      ValueError: zero length field name in format



      I have two installations, old and new.



      I get this error only on NEW installation where as both installations have Python 2.6



      When i compare both the installations, utils.py is not present in the older installation of Python 2.6.



      Hoping for a solution to fix this.







      linux installation python






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 21 at 7:16









      user987769user987769

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396496%2fi-get-valueerror-zero-length-field-name-in-format-while-i-start-prometheus-couc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396496%2fi-get-valueerror-zero-length-field-name-in-format-while-i-start-prometheus-couc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy