Device-Type-Library-Import icon indicating copy to clipboard operation
Device-Type-Library-Import copied to clipboard

Error creating manufacturers 4.3.0

Open LHBL2003 opened this issue 9 months ago • 2 comments

For info

Hi, I got many manufacturers on the first run, but some are still missing, so some device types were not created. e.g. Cisco, Opengear, Fortinet and some others were not created. I have a classic netbox installation after option A.

During the following import the manufacturers are still not created.

I now have the following device types, whereby Ciso was created manually and a few are mine.

Name Device Types
3COM 1
ABBUS 1
Acht:Werk 2
Adtran 4
Alcatel 1
APC 131
AVM 17
AZ-Delivery 1
Barracuda 12
Baudisch Intercom GmbH 2
Brother 4
Buffalo 1
Cisco 112
Cisco Systems 2
Debian 0
Dell 136
Deutsche Telekom 5
D-Link 20
Elcon 1
Extreme Networks Aerohive 1
Gigaset 1
Godex 1
Honeywell 1
HP 22
HPE 429
HPE Aruba 4
HUAWEI 1
Janitza 1
Konftel 2
Lenovo 46
Microsoft 2
Mifcom 1
Mitsubishi 1
Netgear 34
OpnSense 0
Optoma 1
Patton 2
Poly 2
QNAP 37
RaspberryPi 1
Rittal 3
Silex technology Inc. 2
SMC 1
SOLARE Datensystem 1
STARFACE 0
STEINHAUER 2
TOSHIBA 17
tp-link 1
Ubuntu 0
Unknown 13
VIDEC 0
VMware 0
WatchGuard 11
Zapas 0
Zebra 2
Zyxel 27

Here is an excerpt without SSL errors

user@Server:~/Documents/Netbox Device Type Import$ ./spira_run_import.sh 
Package devicetype-library is already installed, updating /home/onoff/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo
Netbox version 4.3 found. Using new filters.
194 Vendors Found
4340 Device-Types Found
Error creating manufacturers
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-432pxu-rp.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-432pxu-rp.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1936/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-883xu-rp.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-883xu-rp.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1937/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-832pxu-rp.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-832pxu-rp.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1943/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-432pxu.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-432pxu.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1946/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-253a.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-253a.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/26/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1949/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-251-plus.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-251-plus.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1693/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-431x.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-431x.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1951/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231p2.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231p2.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1961/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231-plus.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/QNAP/qnap-ts-231-plus.rear.png'} updated at https://NetBox-100.Server.local//api/dcim/device-types/1964/: <Response [200]>
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'PLANET', 'slug': 'planet'}"]} creating device type: PLANET POE-2400G
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TC-P48C5E
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEG-S50g
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TC-P24C5E
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEW-821DAP
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEG-S16Dg
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEG-30284
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEW-WLC100
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TK-802R
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TE100-S16
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TC-P16C5E
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEG-S224
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TPE-113GI/A
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'TrendNet', 'slug': 'trendnet'}"]} creating device type: TrendNet TEG-240WS
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Bachmann', 'slug': 'bachmann'}"]} creating device type: Bachmann Bachmann 107686
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Bachmann', 'slug': 'bachmann'}"]} creating device type: Bachmann Bachmann 9x Power Socket
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Bachmann', 'slug': 'bachmann'}"]} creating device type: Bachmann Bachmann 6x Power Socket
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Qotom', 'slug': 'qotom'}"]} creating device type: Qotom Q330G4
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'VideoXLink', 'slug': 'videoxlink'}"]} creating device type: VideoXLink X8
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'VideoXLink', 'slug': 'videoxlink'}"]} creating device type: VideoXLink X4 Mini
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'VideoXLink', 'slug': 'videoxlink'}"]} creating device type: VideoXLink X4
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'VideoXLink', 'slug': 'videoxlink'}"]} creating device type: VideoXLink X2
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4430a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4430a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/1969/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4433a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4433a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/1982/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt3000rmi2uc.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt3000rmi2uc.rear.png'} updated at https://NetBox.domain.local//api/dcim/device-types/2001/: <Response [200]>
Images {'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4452.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2011/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt1500rmi2uc.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt1500rmi2uc.rear.png'} updated at https://NetBox.domain.local//api/dcim/device-types/2017/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt2200rm2unc.front.png', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smt2200rm2unc.rear.png'} updated at https://NetBox.domain.local//api/dcim/device-types/2018/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4450a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4450a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2026/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4422a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4422a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2029/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4452a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4452a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2033/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4423a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4423a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2036/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4450aj.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4450aj.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2041/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap7950b.front.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2042/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4431a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4431a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2044/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4421a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4421a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2047/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4433.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4433.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2048/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4453a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4453a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2054/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4432a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4432a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2056/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4452aj.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4452aj.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2058/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4424a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4424a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2062/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smx3000rmlv2u.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-smx3000rmlv2u.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2063/: <Response [200]>
Images {'front_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4434a.front.jpg', 'rear_image': '/home/Server/Documents/Netbox Device Type Import/Device-Type-Library-Import/repo/elevation-images/APC/apc-ap4434a.rear.jpg'} updated at https://NetBox.domain.local//api/dcim/device-types/2066/: <Response [200]>

LHBL2003 avatar May 08 '25 06:05 LHBL2003

Thanks, this works well, the only two issues I have is the import timing out and images not being added. So to run through the whole script I have to restart it.

This is what I get for any images. I am not worried about any of that, just thought I document it here.

Images {'front_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ptx10004.front.png', 'rear_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ptx10004.rear.png'} updated at https://netbox.domain.com/api/dcim/device-types/673/: <Response [500]>
Images {'front_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex4000-8p.front.jpg', 'rear_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex4000-8p.rear.jpg'} updated at https://netbox.domain.com/api/dcim/device-types/678/: <Response [500]>
Images {'front_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex4000-12p.front.jpg', 'rear_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex4000-12p.rear.jpg'} updated at https://netbox.domain.com/api/dcim/device-types/680/: <Response [500]>
Images {'front_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex2300-c-12p.front.png', 'rear_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-ex2300-c-12p.rear.png'} updated at https://netbox.domain.com/api/dcim/device-types/687/: <Response [500]>
Images {'front_image': '/root/Device-Type-Library-Import/repo/elevation-images/Juniper/juniper-qfx5100-96s-8q.front.jpg'} updated at https://netbox.domain.com/api/dcim/device-types/694/: <Response [500]>

I am on Netbox Version 4.3.0

denis-ev avatar May 22 '25 04:05 denis-ev

I also got those 500 errors, because the user under which Netbox was running didn't have write access to the media folder on the server. If you're starting from their Docker config, the owner of the mounted "netbox-media-files" folder should be 999, or just make it world-writable. You may want to do the same for reports and scripts too.

sburlappp avatar Jul 29 '25 17:07 sburlappp