Many Inventory users are affected by an issue where device icon image URLs are redirecting to unrelated images (emoji and meme images).
The Inventory application uses a lookup API to locate a device icon image whenever a device is scanned and created in the Inventory. This lookup stores an image URL for the device icon image locally in the Desktop app database, and under normal circumstances the URL is not updated later.
Some of the image URLs point to a third-party (previously a partner company), and the URLs are no longer valid. Currently the invalid URLs are redirecting to display unrelated images in place of device icons.
The unrelated images are distracting and do not belong in the Inventory app, so we’re working on methods that would automatically prevent them from being displayed.
We have released a cache wipe to automatically wipe the image URLs, and also provided two methods for manually removing the URLs from devices to remove the unrelated images, including a simple method for individual devices, or a “global” method to hit all of your devices at once.
UPDATE (9/21): The “automatic” section below was added. Edited the above the reflect this update.
Resolutions### Automatic
We’ve released an image URL cache wipe that will resolve this for everyone automatically, without any interaction on your part. Typically it will take up to 24 hours to dump the cache, but you can also restart Spiceworks and wait 5-10 minutes. It is also safe to use the manual script (below), but at this point it should no longer be necessary.
Manual
Option 1 (edit individual devices)
If you only have a few devices that are affected you can force a device to reset the image URL, removing the bad URL.
To do this, view the device in Inventory and edit the details. Make any change to the Model or Manufacturer fields (make note of the correct value, as you can change it back) and save the device record. This resets the image URL, and should revert the icon to a default icon. Now, you can edit again and revert the change you made if needed.
Option 2 (globally remove bad URLs)
This option involves some downtime and is riskier (because editing the database directly is inherently risky). Typically the downtime will be a few minutes, long enough for the app to restart.
Overview: Create a backup, run a script, and then launch the app.
Step by step instructions below:
-
Go to Settings > Global Settings > Backup Configuration, click Backup Now
-
Confirm a good .zip backup is created in your backup folder (typically C:\Program Files (x86)\Spiceworks\backup) after a few minutes by opening the zip file to make sure the process was completed
-
Download: https://community.spiceworks.com/scripts/show/4426-device-inventory-icon-fix
-
Rename the file to sqlfix.rb
-
Copy sqlfix.rb into C:\Program Files (x86)\Spiceworks\bin
-
Open a command prompt (cmd.exe) as administrator and run
C:\Program Files (x86)\Spiceworks\bin\ruby "sqlfix.rb"
-
The app will be stopped, a backup will be made of the db and the fixes will be applied
-
Once the command window prompts, you can press a key to exit it and then restart Spiceworks. Typically this should take only a few seconds to complete
-
Startup Spiceworks