Skip to content
New issue

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

Full Update class 'KeyError' #41

Open
Crimson1110 opened this issue Apr 11, 2022 · 12 comments
Open

Full Update class 'KeyError' #41

Crimson1110 opened this issue Apr 11, 2022 · 12 comments
Assignees
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation
Milestone

Comments

@Crimson1110
Copy link

On a fresh install of Netbox, I am having this error as soon as I try to do a full update:

Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'KeyError'>

'errors'

Python version: 3.8.10
NetBox version: 3.0.0

If further assistance is required, please post to the NetBox mailing list.
Home Page

@emersonfelipesp emersonfelipesp self-assigned this Apr 13, 2022
@emersonfelipesp emersonfelipesp added bug Further discussion is needed to determine this issue's scope and/or implementation under review Further discussion is needed to determine this issue's scope and/or implementation labels Apr 13, 2022
@emersonfelipesp
Copy link
Member

Could you please try running it on django development mode using python3 manage.py runserver 0.0.0.0:8000 --insecure and provide out terminal output error here?
Also, try using the last version released to se if maybe the problem is already solved!

@Crimson1110
Copy link
Author

Perhaps I need to test it on fresh install of Netbox, but for now the error is still there with the last version.

and the manage.py gave this error:
ModuleNotFoundError: No module named 'django'

I installed the requirements.txt
then it started to give this error:
manage.py runserver: error: unrecognized arguments: --insecure

on venv it starts normally but when I try to do the Proxmox full update, it still gives the keyerror.

Am I doing something wrong?

@emersonfelipesp
Copy link
Member

Try following steps:

  1. Enter Netbox Virtual Environment
source /opt/netbox/venv/bin/activate
  1. Start Django server on port 8000 for testing purposes, it shows real-time logging on Linux terminal.
cd /opt/netbox/netbox
python3 manage.py runserver 0.0.0.0:8000 --insecure
  1. Open your Netbox on Web Browser using the following URL format: http://<your-ip-address>:8000

WARNING: You MUST use http:// instead of https://, because the --insecure argument is to do exactly that: to not use HTTPS. If not, it will probably occur HTTP error and the page will not even open if not using HTTP.

If you get the same errors again, copy the full logging output you got on Linux terminal so I can help you to solve it!

@JacobdeBrouwer
Copy link

hi @emersonfelipesp,

i am running into the same issue (on a fresh netbox install, with the plugin installed according to the instructions.

Running your instructions as mentioned above only results in the following output:

`(venv) root@netbox01:/opt/netbox/netbox# python3 manage.py runserver 0.0.0.0:800 0 --insecure
Performing system checks...

System check identified no issues (0 silenced).
May 10, 2022 - 20:23:03
Django version 4.0.4, using settings 'netbox.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[10/May/2022 20:23:18] "GET / HTTP/1.1" 200 154256
[10/May/2022 20:23:18] "GET /static/netbox-light.css?v=3.2.2 HTTP/1.1" 200 23217 5
[10/May/2022 20:23:18] "GET /static/netbox-dark.css?v=3.2.2 HTTP/1.1" 200 374410
[10/May/2022 20:23:18] "GET /static/netbox-external.css?v=3.2.2 HTTP/1.1" 200 28 6568
[10/May/2022 20:23:18] "GET /static/netbox.js?v=3.2.2 HTTP/1.1" 200 375393
[10/May/2022 20:23:18] "GET /static/netbox_icon.svg HTTP/1.1" 200 835
[10/May/2022 20:23:18] "GET /static/netbox_logo.svg HTTP/1.1" 200 4719
[10/May/2022 20:23:18] "GET /static/netbox-print.css?v=3.2.2 HTTP/1.1" 200 72786 7
[10/May/2022 20:23:18] "GET /static/materialdesignicons-webfont-KSYPMDN6.woff2?v =5.9.55 HTTP/1.1" 200 325244
[10/May/2022 20:23:18] "GET /static/netbox_touch-icon-180.png HTTP/1.1" 200 4054
[10/May/2022 20:23:18] "GET /static/netbox.ico HTTP/1.1" 200 1174
[10/May/2022 20:23:21] "GET /plugins/proxbox/ HTTP/1.1" 200 134981
[Proxbox - Netbox plugin | Update All]
[10/May/2022 20:23:22] "GET /plugins/proxbox/full_update/ HTTP/1.1" 500 1561
[10/May/2022 20:23:22] "GET /static/netbox-light.css HTTP/1.1" 200 232175
[10/May/2022 20:23:22] "GET /favicon.ico HTTP/1.1" 404 133718
[10/May/2022 20:23:57] "GET / HTTP/1.1" 200 154256
[10/May/2022 20:24:00] "GET /plugins/proxbox/ HTTP/1.1" 200 134981
[Proxbox - Netbox plugin | Update All]
[10/May/2022 20:24:01] "GET /plugins/proxbox/full_update/ HTTP/1.1" 500 1561`

is there some more verbose logging available? this doesn't seem to give us much information.

@emersonfelipesp
Copy link
Member

i am running into the same issue (on a fresh netbox install, with the plugin installed according to the instructions.

Hi @JacobdeBrouwer, what Netbox version are you using and are you running the last Proxbox version released (v0.0.4)?

@JacobdeBrouwer
Copy link

@emersonfelipesp i am running netbox 3.2.2 and using proxbox cloned from the github's master repository. (i had other issues in the PIP release).

also, i am running both on a debian 11 VM with python 3.9.

@emersonfelipesp
Copy link
Member

Are you using develop branch (which is the default one)?
Does Netbox GUI (webpage) shows any errors? Or it just does not open?

@JacobdeBrouwer
Copy link

i am running the default branch (which indeed seems to be development).

see the attached screenshot for details on what the GUI shows:

image

@emersonfelipesp
Copy link
Member

i am running the default branch (which indeed seems to be development).

see the attached screenshot for details on what the GUI shows:

image

What Proxmox version are you running? Does Proxbox created any object on Netbox?
Also, let me know if you have Virtual Machines or Containers with the same name, because I think there is a bug related to it.

@ettorsson
Copy link

I am having the same problem.
image

I am using Proxmox 7.2-3.
Netbox version 0.0.4

I have no vms with same name, I had one but still the same problem after changing the name.

@emersonfelipesp
Copy link
Member

I am having the same problem. image

I am using Proxmox 7.2-3. Netbox version 0.0.4

I have no vms with same name, I had one but still the same problem after changing the name.

Maybe the problem is related to Proxmox >7.x.x as all my development environment runs Proxmox with version 6.x.x.
I will upgrade one of my servers to latest Proxmox version and comeback here to show my results.

@emersonfelipesp emersonfelipesp pinned this issue May 14, 2022
@emersonfelipesp emersonfelipesp added accepted This issue has been accepted for implementation and removed under review Further discussion is needed to determine this issue's scope and/or implementation labels May 14, 2022
@emersonfelipesp emersonfelipesp added this to the v0.0.5 milestone May 14, 2022
@emersonfelipesp emersonfelipesp modified the milestones: v0.0.5, v0.0.6 May 21, 2022
@emersonfelipesp emersonfelipesp unpinned this issue May 23, 2022
@emersonfelipesp
Copy link
Member

Hi, could you please try testing it again, if possible? There was several new updates to code since then. Thank you already!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation
Projects
None yet
Development

No branches or pull requests

4 participants