Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PLUGIN] Disk Location

Featured Replies

Hi,

 

My colors for the drives don't apply.

I want to change the 2 lowest drives to another color. 

image.thumb.png.abea953ee7235c76d2cdee94430b54e5.png

 

I select:

 image.png.aac459003eb6acb839bbca0a7a410771.png

image.png.803fa34957385c4b8bdd8b1b3d61c928.png

 

 

Save, and the color is back to the orange one. It does not apply. 

image.png.4cc85a6dbe452f122ee07c7d08cbd8cc.png

 

What could cause this issue?

  • Replies 1.6k
  • Views 249.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • olehj is the maintainer and it's his choice to do with the plugin what he sees fit.   It is, however, unusual to release to production a version that requires a beta OS release, instead of r

  • FlamongOle
    FlamongOle

    Update 2025.05.29 Commit #446 - BUG: Fatal error in page_system - causing furious rage in the forums :P Syntax error, misplaced parentheses 😅 @Mr Q I have an idea for you. Why don't you save your o

  • You guys please settle down.  The fact that sqlite support was in php in the first place was an oversight.  We never intended that a plugin would utilize a database application and honestly, I didn't

Posted Images

  • Author
10 hours ago, TallMan206 said:

Hi,

 

My colors for the drives don't apply.

I want to change the 2 lowest drives to another color. 

---

What could cause this issue?

 

I know there's some bugs with the custom colors, however it should mostly work.

 

You can first try to press "Reset all custom colors", then you must make sure you don't use the same colors as defined under "Common configuration" for custom colors under "Tray allocations". They can also NOT be in "heat map" mode.

  • Author

Update 2024.10.26

 

  • Commit #324 - FEATURE: Choose dynamic and static styles for LEDs (minor known bugs: this is not completed entirely, and will reset every update/reinstallations).
  • Commit #323 - FEATURE: Under configuration you can now set to display LEDs in all color coded circular modes instead of Unraid icons.
  • Commit #322 - IMPROVEMENT/MINOR: The "delete all" button and database move/delete requires now an additional checkbox to be performed. Also moved the backup button to a more sensible area. Some SQL syntax tweaks that will hopefully cause less corruption.
  • Commit #321 - MINOR: Sometimes the colors behaved weird when saving custom colors. This happened caused by some variables being loaded after the execution of a function that required the info before.

Edited by FlamongOle

Just a heads up that my dashboard stopped working after the latest update was pushed.  Once I removed the plugin it came back, so it's not playing nice with something.  I don't see anything in logs, latest stable Unraid 6.12.13.

Yes this update also killed my dashboard and wont let me look in the plugin settings.  Is there any way to roll back a plugin?

 

Edited by Gragorg

Had to uninstall plugin today (26/10/24) after latest update as caused dashboard tro load blank. Tried from private or normal firefox sesscion - clearing cache etc. Only way to restore was to uninstall plugin. Version on unraid is 6.12.13 with plugin version that failed released 2024.10.26

For me the Backup Button disappeared after deleting old backups. 

  • Author

Hmm, this is strange. I can't see why it does not work as it does here. Can someone go to Tools -> PHP Settings -> select "All categories" and Apply that. Then install the plugin, go to dashboard. Then back to PHP Settings and fetch the log for me.

 

25 minutes ago, TallMan206 said:

For me the Backup Button disappeared after deleting old backups. 

I found out why, this will reappear next update, sorry for that.

I am in the same boat as of last night. I'm going to see if I can uninstall the plugin then manually install the test. Will post logs if successful 

So, I installed the dev version and I still have the same issue. I was able to find the plugin directory but I was not able to find any logs.

Is there somewhere else besides /boot/config/plugin/disklocation (and disklocation-devel  where the logs might be?

15 hours ago, elitexero said:

Just a heads up that my dashboard stopped working after the latest update was pushed.  Once I removed the plugin it came back, so it's not playing nice with something.  I don't see anything in logs, latest stable Unraid 6.12.13.

 

I am also running Unraid 6.12.13 and my dashboard also went blank after installing the latest update to Disk Location plugin.  

  • Safari and Chrome both showed a blank dashboard.  
  • I tried rebooting my Unraid NAS, but that had no effect on the blank dashboard issue.  
  • As soon as I uninstalled the Disk Location plugin, the dashboard returned to normal (minus the disk location graphic, of course). 
  • Reinstalling the Disk Location plugin resulted in the same issue -- a blank dashboard.

 

FlamongOle, I recommend that you remove this latest version and restore the prior one in Unraid's repository until the root cause of this issue is discovered and resolved.  Lacking any on-screen clues as to the cause of the blank dashboard, there's too much chance of someone wasting a lot of time with memory testing, flash drive rewriting/replacement, array parity checks, etc. 

 

Edited by Miss_Sissy

@Miss_Sissy is there an easy way to roll back to the previous version? 

13 minutes ago, mwoods98 said:

@Miss_Sissy is there an easy way to roll back to the previous version? 

The only way that I know of is if you have a copy of the old .plg file.  I do not have that.

 

That is why I recommended that FlamongOle roll back the version in the Unraid repository.  

Quote

That is why I recommended that FlamongOle roll back the version in the Unraid repository.

Agreed

Edited by Gragorg

same thing happened to me, I updated the plugin and dashboard went away, now I can't even see my disks. I uninstalled the plugin and my dashboard is back, but seeing the disks on the main page required a reboot. 

here is a copy of the old disklocation plg file, dated 7-27-2024, but personally I would just wait for a rollback or patch

disklocation-master.plg

 

18 minutes ago, DecusAnima said:

here is a copy of the old disklocation plg file, dated 7-27-2024, but personally I would just wait for a rollback or patch

Thank you.  I plan to wait, but I worry about others experiencing the unexplained (to them) loss of their Unraid dashboard after an update/autoupdate or new install of the Disk Location plugin.  It's easy for a troubleshooting session to turn ugly and time consuming if the person is perplexed as to the cause of the problem in a complex system.

 

I don't want any of that to overshadow how grateful I am to FlamongOle for providing this valuable plugin.  I look forward to this minor hiccup being resolved.

 

Edited by Miss_Sissy

I just upgraded this plugin inside Unraid. During the update progress I noticed a big bold red text appearing in the progress window "database too old ..." - I can't remember the rest because it disappered too quickly. Right after that the Web GUI automatically changed to "http://xxxx/Tools/disklocation" which shows basically an empty page with the label "Devices" in the top left.

I have never seen such behavior during a plugin upgrade before, normally the progress window informs me that the update is done and I click the "done" button - here automatically the WebGUI goes somewhere else, which is completely unexpected.

 

After reading the previous reports, I can conform that the Dashboard is also fully broken, meaning completely empty.

 

I'm using current Unraid 6.12.13

 

I found the following in the PHP log (log level default):

[26-Oct-2024 22:35:06 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php:9
Stack trace:
#0 /usr/local/emhttp/plugins/disklocation/pages/load_settings.php(9): json_decode(Array, true)
#1 /usr/local/emhttp/plugins/disklocation/pages/system.php(486): include('/usr/local/emht...')
#2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code(21): require_once('/usr/local/emht...')
#3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715): eval()
#4 /usr/local/emhttp/plugins/dynamix/template.php(82): require_once('/usr/local/emht...')
#5 {main}
  thrown in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php on line 9
[26-Oct-2024 22:35:28 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php:9
Stack trace:
#0 /usr/local/emhttp/plugins/disklocation/pages/load_settings.php(9): json_decode(Array, true)
#1 /usr/local/emhttp/plugins/disklocation/pages/system.php(486): include('/usr/local/emht...')
#2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code(21): require_once('/usr/local/emht...')
#3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715): eval()
#4 /usr/local/emhttp/plugins/dynamix/template.php(82): require_once('/usr/local/emht...')
#5 {main}
  thrown in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php on line 9
[26-Oct-2024 22:35:41 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php:9
Stack trace:
#0 /usr/local/emhttp/plugins/disklocation/pages/load_settings.php(9): json_decode(Array, true)
#1 /usr/local/emhttp/plugins/disklocation/pages/system.php(486): include('/usr/local/emht...')
#2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code(24): require_once('/usr/local/emht...')
#3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715): eval()
#4 /usr/local/emhttp/plugins/dynamix/template.php(82): require_once('/usr/local/emht...')
#5 {main}
  thrown in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php on line 9
[26-Oct-2024 22:41:41 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php:9
Stack trace:
#0 /usr/local/emhttp/plugins/disklocation/pages/load_settings.php(9): json_decode(Array, true)
#1 /usr/local/emhttp/plugins/disklocation/pages/system.php(486): include('/usr/local/emht...')
#2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code(21): require_once('/usr/local/emht...')
#3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715): eval()
#4 /usr/local/emhttp/plugins/dynamix/template.php(82): require_once('/usr/local/emht...')
#5 {main}
  thrown in /usr/local/emhttp/plugins/disklocation/pages/load_settings.php on line 9

 

Edit: I looked at the PHP, and the error seems to occur while reading the settings from the database.

So I took a look at mine and noticed, that the current database (/boot/config/plugins/disklocation/disklocations.sqlite) is completely empty - it contains the table structure but no actual data anymore.

 

My guess is that the updater tried to migrate the database (hence the message "database too old" i saw) and failed - maybe by automatically loading another URL during the upgrade process which happened to me.

 

I replaced the database with the most recent backup (from /boot/config/plugins/disklocation/backup - file needs to be unzipped first!) - this gets the dashboard working again. There will probably be issues with that path, because something that was supposed to be changed in the database during the upgrade is now not there!

 

TLDR: Restoring from a recent disklocation-database backup will fix the dashboard - hopefully @FlamongOle will be able to fix this soon

 

 

Edited by Starfiresg1

After updating the plugin, the dashboard became a blank page. After deleting the plugin, the dashboard was restored. I hope this small error can be resolved   Unraid7.0.0 beta4.

  • Author

Update 2024.10.27-1337

 

  • Commit #331 - BUG: (Update 1337) Used wrong datatype in the database for a new function, might have caused an issue where you must manually save the config again.
  • Commit #328 - BUG: Added a check for existing cronjobs during installation and removal. Automatic update was likely started the exact time as the database update, and the installer ignored that partly. Also fixed an error where the plugin would be inaccessible if the database are indeed corrupted. Also enabled manual lock file deletion under System tab again, this will only be visible when it exists.
  • Commit #327 - BUG: Backup button disappeared when there were no backups available.
  • Commit #326 - MINOR: Styles for LEDs now restored after reinstallations and upgrades.
  • 2024.10.27 vs 2024.10.27-1145: nothing special, just minor cleanup.

 

Thanks to @Starfiresg1 for providing logs, this helped for debugging!

 

Those with corrupted databases should restore database from backup. You got backup, right?

 

To clear up some other confusions:

  • It should never be required a reboot when installing, removing or reinstalling this plugin - even after failures as this last update. Only hardware changes -might- require it, but often "Force update all" would fix several issues.
  • There's no rollback available, even if you have an older installation file, it will still pull the latest from the master branch on github. I do not package the releases manually. There's just "master" and "devel", at least for now.
  • It's impossible to test all scenarios that might occur and bugs like this will happen, it has happened before, it will happen again. As stated in GPL license, this software comes without any warranty: https://github.com/olehj/disklocation/blob/master/COPYING

Edited by FlamongOle

I updated to 2024.10.27 but no dashboard yet. Any action shall I take?

Uh I played around, and whey I changed, in the disk location settings, the "led display" from unraid icons to circular leds, everything started working again.

  • Author
54 minutes ago, SuperMario86 said:

I updated to 2024.10.27 but no dashboard yet. Any action shall I take?

 

50 minutes ago, SuperMario86 said:

Uh I played around, and whey I changed, in the disk location settings, the "led display" from unraid icons to circular leds, everything started working again.

 

Likely due to old existing corrupted database, restoring previous database under "System" tab should fix it. 

When updating to 2024.10.27 the updates completes as expected and the "Done" button appears - it no longer navigated to the settings page during upgrade like it did with 2024.10.26 for me.

 

The update windows states now that the existing database (that I restored from a backup) didn't need an upgrade.

 

After the update the settings page of the plugin worked out of the box. The dashboard however was broken (empty) again.

Going to the "Configuration" page in the plugin settings and clicking "Save" without actually changing anything fixed the dashboard again. Maybe my old database was missing some settings-migrations from the broken update to 2024.10.26?

 

So far everything is working now :)

 

Found the following new warning in the PHP log - maybe related to the initial empty Dashboard?

[27-Oct-2024 12:56:43 Europe/Berlin] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/emhttp/plugins/disklocation/pages/styles/signals.css' (include_path='.:/usr/local/emhttp') in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code:61
Stack trace:
#0 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715): eval()
#1 /usr/local/emhttp/plugins/dynamix/template.php(82): require_once('/usr/local/emht...')
#2 {main}
  thrown in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(715) : eval()'d code on line 61

 

Edited by Starfiresg1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.