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

3 hours ago, FlamongOle said:

Update 2025.02.15

  • Commit #381 - BUG: SMART detected as failed when the drives are OK. I found a problem where the SMART status did not change. Adjusted some variables and defined them differently. Hopefully this is now fixed.
  • Commit #380 - BUG: Unexpected files causes System tab to fail. Added a check for unexpected files and also possibility to delete them via System.
  • Commit #379 - BUG: Disk Tray Layout missing add button has been fixed when a Disk Location is in a clean state.

This fixed my SMART error! Fantastic, looks like everything is good to go now. :)

 

All my tabs seem to work too.

  • Replies 1.6k
  • Views 249.1k
  • 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
37 minutes ago, ban said:

Great plug-in, but my setup contains two Norco chassis stacked vertically in a rack. 

 

Possible to configure disk location to reflect two Norco 4224 vertically?  Currently I can only configure the plugin to be side-by-side.

That's just auto-position, no settings between group elements. Maybe I have a look into it in the future if it's easy enough.

  • Author

Update 2025.02.16

  • Commit #383 - BUG: System tab not loading because of array tried to merge with nothing.

 

the brownie's kicking in, so no more debugging tnoite

@FlamongOle downloaded update 2025.02.16 the system tab is fixed for a fresh install or for a plugin reset wipe.  These PHP errors show in the log though after either option:

 

[15-Feb-2025 12:10:28 America/New_York] PHP Warning:  Undefined array key 0 in /usr/local/emhttp/plugins/disklocation/pages/page_system.php on line 246
[15-Feb-2025 12:10:28 America/New_York] PHP Warning:  Trying to access array offset on null in /usr/local/emhttp/plugins/disklocation/pages/page_system.php on line 246

 

On a side note, on the configuration tab/Common Configuration/Change background colors the default is heat map.  Not sure which users use more disk type or heat map but wanted to make you aware.  Everything else looks great!

Edited by SShadow

Blank dashboard after latest update

 

@JLKunka do you mean the dashboard tab in the plugin itself?  Like the picture below?

 

DiskLocationDashboardError.thumb.jpg.8ac37e5de8ad8f6db0db99dbf3b7fbbe.jpg

11 minutes ago, SShadow said:

@JLKunka do you mean the dashboard tab in the plugin itself?  Like the picture below?

 

DiskLocationDashboardError.thumb.jpg.8ac37e5de8ad8f6db0db99dbf3b7fbbe.jpg

Both, the plugin dashboard and the main dashboard.

 

12 minutes ago, JLKunka said:

Both, the plugin dashboard and the main dashboard.

 

Gotcha, I think I did this to my system testing this morning.  In one of the tests I forgot to run Force Smart+DB very first thing.  I ended up deleting the file below:

/boot/config/plugins/disklocation/groups.json

 

After I deleted the file all the tabs came back and then I made sure I ran Force Smart+DB before doing anything else.  😁

Edited by SShadow

Deleted the file you specify, now the dashboard for the plugin shows this:

"Information" tab is blank. Main dashboard works again.

 

Edit: Hoping these changes will not delete the arrangement and tray locations I have set up !!

 

image.png.2ab9668eb0eb9382a0ec5ee6f9bf1c70.png

Edited by JLKunka

@JLKunka not sure, is this a new install or an existing one with backups?

Installed disklocation a few days ago, got everything set up with my disk arrangement (four sets: Front Panel, Icydock, USB, and Internal). The Disklocation updates in the last couple days broke it. Running Unraid 7.0.0 on a Dell Poweredge R730, eight 3.5" bays.

Edited by JLKunka

1 minute ago, JLKunka said:

Installed disklocation a few days ago, got everything set up with my disk arrangement (four sets: Front Panel, Icydock, USB, and Internal). The updates in the last couple days broke it. Running Unraid 7.0.0 on a Dell Poweredge R730, eight 3.5" bays.

@JLKunka as long as you have a backup you should eventually be ok.  From terminal in Unraid run this command:

ls -la /boot/config/plugins/disklocation/backup/

 

This should show if you have backups.  During testing today I was deleting the file I listed along with some others to test like a new install.  I was able to restore from backup every time successfully.  If you don't have a backup then I apologize you would need to recreate the config.  I did not run into your exact issue only having the dashboard and information tabs.  @FlamongOle might need to assist with the issue you are having.   

 

 

Just now, SShadow said:

@JLKunka as long as you have a backup you should eventually be ok.  From terminal in Unraid run this command:

ls -la /boot/config/plugins/disklocation/backup/

 

This should show if you have backups.  During testing today I was deleting the file I listed along with some others to test like a new install.  I was able to restore from backup every time successfully.  If you don't have a backup then I apologize you would need to recreate the config.  I did not run into your exact issue only having the dashboard and information tabs.  @FlamongOle might need to assist with the issue you are having.   

 

 

There is a backup directory i found while browsing for the json file to delete. Is there a short instruction set to restore the plugin from backups, or do you move and overwrite the files in the root plugin directory?

@JLKunka if you had access to the system tab doing a restore is super easy choose the backup file and press restore.  Are you running the latest update 2025.02.16?  There was a bug in update 2025.02.15 that the system tab was blank in certain situations.

Edited by SShadow

8 minutes ago, SShadow said:

@JLKunka if you had access to the system tab doing a restore is super easy choose the backup file and press restore.  Are you running the latest update 2025.02.16?  There was a bug in update 2025.02.15 that the system tab was blank in certain situations.

Running latest

image.png.e9baefc39d5f8b30f850bd53ff8f3150.png

 

Hoping maybe there will be another update soon that may resolve this. Willing to roll the dice a bit rather than powering everything down again to pull every drive and write down SSN's to rebuild my database.

14 minutes ago, JLKunka said:

Running latest

image.png.e9baefc39d5f8b30f850bd53ff8f3150.png

 

Hoping maybe there will be another update soon that may resolve this. Willing to roll the dice a bit rather than powering everything down again to pull every drive and write down SSN's to rebuild my database.

@JLKunka all the serial # information is pulled from Unraid itself.  Wait, I understand what you are saying you would need to know where each drive is in the server itself.  I had to do that myself after messing up my config before and no backup.  Are there directories listed in the disklocation backup folder?  This is what my backup folder looks like.

 

ls -la /boot/config/plugins/disklocation/backup/
total 80
drwx------ 5 root root 16384 Feb 14 10:06 ./
drwx------ 3 root root 16384 Feb 15 10:45 ../
drwx------ 2 root root 16384 Feb 11 10:24 20250211-102428/
drwx------ 2 root root 16384 Feb 14 09:55 20250214-095558/
drwx------ 2 root root 16384 Feb 14 10:06 20250214-100607/

Edited by SShadow

Well I got impatient and did some experimentation that fixed this. First I copied everything under /boot/config/plugins/disklocation as a precaution. I then deleted the plugin and reinstalled. Nothing changed until I manually deleted the files shown here:

image.png.1adec894b7c1fc6cb5de10fc94f1debd.png

When I reinstalled the plugin, all the tabs were back. After running "Force Smart + DB", I restored the backup file and my previous configuration was still there.

image.png.f4181479fa9df3bad475237ba5c9821c.png

Edited by JLKunka

@JLKunka awesome!  You did exactly what I was going to eventually suggest but I wanted to make sure you had a backup file before I suggested it.  Nice job!  Enjoy!

6 hours ago, FlamongOle said:

Update 2025.02.16

  • Commit #383 - BUG: System tab not loading because of array tried to merge with nothing.

 

the brownie's kicking in, so no more debugging tnoite

Your rapid deployment of updates fixed that System tab problem for me.  Thank you very much.

 

Sorry for the delay in gettin back to you (I was installing a new ham radio antenna cable today).

I hope I’m not missing something but I tried updating via community apps and it pulls the update, says it’s been updated. Then goes back too there’s an update available. Is anyone else seeing this?

19 hours ago, JLKunka said:

Well I got impatient and did some experimentation that fixed this. First I copied everything under /boot/config/plugins/disklocation as a precaution. I then deleted the plugin and reinstalled. Nothing changed until I manually deleted the files shown here:

image.png.1adec894b7c1fc6cb5de10fc94f1debd.png

When I reinstalled the plugin, all the tabs were back. After running "Force Smart + DB", I restored the backup file and my previous configuration was still there.

 

 

 

Thanks.  I was having the issue as well.  Deleting those files and re-installing the plugin allowed me to reconfigure everything and have it actually work.

 

4 hours ago, Lassley7 said:

I hope I’m not missing something but I tried updating via community apps and it pulls the update, says it’s been updated. Then goes back too there’s an update available. Is anyone else seeing this?

Yes, I had this issue, had to uninstall the plugin and then reinstall it to get the latest update.... yes not ideal so make sure you backup your layout etc before doing it just in case it doesn't come back when you reinstall it, mine did.  

 

Now I've got the 'bug' again where the dot/square icons on the dashboard don't correlate with the status of the drives.  Normally they would be green when the drive is spun up and black when they're not spun up.... it's not working with nvme, sata ssd or hard drives.  I know it's not working because I can see what the drives are doing on the array panel of the dashboard. 

 

Last time this was fixed with using a backup and multiple 'refreshes' but this time it's just not working, this was about 2 weeks ago. 

 

I am not using the developer edition which I'd expect to be buggy, I'm using the 'stable' build (2025.02.16) and if I read the notes correctly this bug looks like it should have been fixed with commit #381 ....  I have tried resetting configuration.  

  • Author
12 minutes ago, LSG501 said:

Yes, I had this issue, had to uninstall the plugin and then reinstall it to get the latest update.... yes not ideal so make sure you backup your layout etc before doing it just in case it doesn't come back when you reinstall it, mine did.  

 

Now I've got the 'bug' again where the dot/square icons on the dashboard don't correlate with the status of the drives.  Normally they would be green when the drive is spun up and black when they're not spun up.... it's not working with nvme, sata ssd or hard drives.  I know it's not working because I can see what the drives are doing on the array panel of the dashboard. 

 

Last time this was fixed with using a backup and multiple 'refreshes' but this time it's just not working, this was about 2 weeks ago. 

 

I am not using the developer edition which I'd expect to be buggy, I'm using the 'stable' build (2025.02.16) and if I read the notes correctly this bug looks like it should have been fixed with commit #381 ....  I have tried resetting configuration.  

It takes up to 5 minutes before you'll see the standby LED turn on. Things are cached, and that info is not super crucial for anything, I would assume. Wait 5 minutes and see if it changes (also make sure it's actually in standby after checking it).

 

There's a new bugfix coming up that maybe fixes the issue you had first.

  • Author

Update 2025.02.17

  • Fixed a bug that could cause page to not load.

  • Also made it possible to use System tab directly outside of Unraid to create a backup and restore database (among some other things): accessible via URL:

    http(s)://<your server>:<your port>/plugins/disklocation/pages/page_system.php

17 minutes ago, FlamongOle said:

It takes up to 5 minutes before you'll see the standby LED turn on. Things are cached, and that info is not super crucial for anything, I would assume. Wait 5 minutes and see if it changes (also make sure it's actually in standby after checking it).

 

There's a new bugfix coming up that maybe fixes the issue you had first.

I've waited around an hour and not seen it change.....I can also physically hear my drive spin up/down and they're set to spin down after 2 hours of inactivity.  I've also used the commands on the array page to spin up and down the array. 

 

I'll check the new update to see if it fixes it. 

 

Also not sure why standby LED needs to be cached, can't it just pull the data like the array panel on the dashboard does, that's pretty much real time for each drive. 

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.