Giter VIP home page Giter VIP logo

Comments (5)

hbokh avatar hbokh commented on August 22, 2024 2

The storage did not exist indeed (no ZFS). The additional error-message pointed me to where I had to fix things. So yes, the mentioned fix in #57 fixed my issue.

from proxmoxer.

hbokh avatar hbokh commented on August 22, 2024 1

I get the same kind of error using POST (HTTP):

192.168.1.2 - root@pam [29/11/2018:20:49:32 +0100] "POST /api2/json/nodes/pve/qemu HTTP/1.1" 500 13

And in Ansible the last error looks like this:

"msg": "creation of qemu VM prov-test3 with vmid 101 failed with exception=500 Internal Server Error: b'{\"data\":null}'"

$ pveversion
pve-manager/5.2-12/ba196e4b (running kernel: 4.15.18-9-pve)

from proxmoxer.

shibumi avatar shibumi commented on August 22, 2024

Here is some traceback:

---------------------------------------------------------------------------
ResourceException                         Traceback (most recent call last)
<ipython-input-35-7a21cf167f34> in <module>
      1 for node in proxmox.nodes.get():
----> 2     for vm in proxmox.nodes(node['node']).qemu.get():
      3         print(vm)
      4
      5

~/.virtualenvs/proxmox-dokuwiki-exporter/lib/python3.7/site-packages/proxmoxer/core.py in get(self, *args, **params)                                                                                                              
     82
     83     def get(self, *args, **params):
---> 84         return self(args)._request("GET", params=params)
     85
     86     def post(self, *args, **data):

~/.virtualenvs/proxmox-dokuwiki-exporter/lib/python3.7/site-packages/proxmoxer/core.py in _request(self, method, data, params)                                                                                                    
     77         if resp.status_code >= 400:
     78             raise ResourceException("{0} {1}: {2}".format(resp.status_code, httplib.responses[resp.status_code],                                                                                                          
---> 79                                                           resp.content))
     80         elif 200 <= resp.status_code <= 299:
     81             return self._store["serializer"].loads(resp)

ResourceException: 500 Internal Server Error:

from proxmoxer.

hbokh avatar hbokh commented on August 22, 2024

Using the fix mentioned in #57 ([FIX] Add reasons to error codes) helped me one step further:

"msg": "creation of qemu VM prov-test3 with vmid 101 failed with exception=500 Internal Server Error: storage 'local-zfs' does not exists, Content:b'{\"data\":null}'"

from proxmoxer.

shibumi avatar shibumi commented on August 22, 2024

@hbokh does the storage really just exist? so your error message is valid and your fix is fixing the issue?

from proxmoxer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.