Cannot add device to a rack #259

Closed
opened 2025-12-29 16:20:16 +01:00 by adam · 1 comment
Owner

Originally created by @drook on GitHub (Jul 20, 2016).

Netbox v1.3.1-dev, cloned today.

Cannot add device to a rack.

I've created site, rack group, rack, device type, platform. When I click on a utin in a rack 'add device' I recieve immediate error.


RelatedObjectDoesNotExist at /dcim/devices/add/

Device has no device_type.

Request Method:     GET
Request URL:    http://netbox.dev.enaza.ru/dcim/devices/add/?site=1&rack=1&face=0&position=42
Django Version:     1.9.7
Exception Type:     RelatedObjectDoesNotExist
Exception Value:    

Device has no device_type.

Exception Location:     /usr/local/python/lib/python2.7/site-packages/django/db/models/fields/related_descriptors.py in __get__, line 179
Python Executable:  /usr/local/python/bin/python
Python Version:     2.7.12
Python Path:    

['/var/www/netbox/netbox',
 '/usr/local/python/lib/python27.zip',
 '/usr/local/python/lib/python2.7',
 '/usr/local/python/lib/python2.7/plat-sunos5',
 '/usr/local/python/lib/python2.7/lib-tk',
 '/usr/local/python/lib/python2.7/lib-old',
 '/usr/local/python/lib/python2.7/lib-dynload',
 '/usr/local/python/lib/python2.7/site-packages']

Server time:    Wed, 20 Jul 2016 18:48:13 +0000
Traceback Switch to copy-and-paste view 
Originally created by @drook on GitHub (Jul 20, 2016). Netbox v1.3.1-dev, cloned today. Cannot add device to a rack. I've created site, rack group, rack, device type, platform. When I click on a utin in a rack 'add device' I recieve immediate error. ``` traceback RelatedObjectDoesNotExist at /dcim/devices/add/ Device has no device_type. Request Method: GET Request URL: http://netbox.dev.enaza.ru/dcim/devices/add/?site=1&rack=1&face=0&position=42 Django Version: 1.9.7 Exception Type: RelatedObjectDoesNotExist Exception Value: Device has no device_type. Exception Location: /usr/local/python/lib/python2.7/site-packages/django/db/models/fields/related_descriptors.py in __get__, line 179 Python Executable: /usr/local/python/bin/python Python Version: 2.7.12 Python Path: ['/var/www/netbox/netbox', '/usr/local/python/lib/python27.zip', '/usr/local/python/lib/python2.7', '/usr/local/python/lib/python2.7/plat-sunos5', '/usr/local/python/lib/python2.7/lib-tk', '/usr/local/python/lib/python2.7/lib-old', '/usr/local/python/lib/python2.7/lib-dynload', '/usr/local/python/lib/python2.7/site-packages'] Server time: Wed, 20 Jul 2016 18:48:13 +0000 Traceback Switch to copy-and-paste view ```
adam closed this issue 2025-12-29 16:20:16 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 20, 2016):

I believe this was fixed earlier today in 19d7caf1da. Please try pulling down the develop branch again and see if the bug persists.

@jeremystretch commented on GitHub (Jul 20, 2016): I believe this was fixed earlier today in 19d7caf1dae9f7efc6c03ff1f0a7e24418c17661. Please try pulling down the develop branch again and see if the bug persists.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#259