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

column d.device_role_id does not exist LINE 17 #22

Open
Honie123 opened this issue Feb 2, 2024 · 2 comments
Open

column d.device_role_id does not exist LINE 17 #22

Honie123 opened this issue Feb 2, 2024 · 2 comments

Comments

@Honie123
Copy link

Honie123 commented Feb 2, 2024

Maybe this is a bug with latest version of ntmap working with netbox latest version v3.7.1:

All created maps fail with following error.

column d.device_role_id does not exist LINE 17: ON d.device_role_id = r.id ^ HINT: Perhaps you meant to reference the column "d.device_type_id".

Please help!
Many thanks
Error

@milevskiy2
Copy link

Help

@mfoleyfh
Copy link

mfoleyfh commented May 1, 2024

I found a workaround by editing /opt/ntmap/backend/wsgi.py. Do a search for d.device_role_id and change the line to d.role_id. The full line should look like this: ON d.role_id = r.id After the change, restart the service with "systemctl restart ntmap" and reload the page.

The value in the Netbox database use to be device_role and was changed to just role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants