[Plugin] FolderView


Recommended Posts

39 minutes ago, scolcipitato said:

What I can see is that the "[IP] is being replaced with an empty string, this should not be possible, the only way for it to be possible is because the server don't see a driver for that docker network, I'm not sure but maybe in the PHP logs you can find an error (Tools > PHP Settings), either way I need the debug file (first port for instruction).

I set Error reporting level to All Categories,refreshed docker page couple times(cache disabled with DevTools),but nothing shows on log view window.

I tried stop,restart and completely remove and recreate the container,still no log and log file size is 0B

 

image.thumb.png.ee52007b20277dfedb37afa8ddafc2ea.pngimage.thumb.png.855e2faf405de8c59a22d44125774d54.png

 

This is just a minor issue,I can still use http://192.168.1.10:25500 instead:P

Edited by nukecat
Link to comment

Hi there, really nice addition.

I have a feature quest if you have some time :)I looked to see if anyone has asked for this already, sorry if this is repeat.

 

I have some containers that I do not autostart, mostly development environments for different projects. 

I have grouped these environments into different folders and start/stop them manually when I need them. When I manually start them, It would be nice if they started in a certain order and we could put a delay between them. For instance;

I would like my database container to fire up first and wait about 15/20 seconds before the application server starts. I have more complicated scenarios, but you get the picture. 

 

 

it would be really cool it I could add a script pre/post for each container were I could interrogate the environment to see if it is running or not before the next one was started, but that would just be a cool addition ;)

 

Right now I use my own scripts to start things in the right order, but would be nice if it was built in to your start option.

 

Thank you again for the great utility, keep up the great work

 

Edited by piyper
Link to comment
3 hours ago, piyper said:

Hi there, really nice addition.

I have a feature quest if you have some time :)I looked to see if anyone has asked for this already, sorry if this is repeat.

 

I have some containers that I do not autostart, mostly development environments for different projects. 

I have grouped these environments into different folders and start/stop them manually when I need them. When I manually start them, It would be nice if they started in a certain order and we could put a delay between them. For instance;

I would like my database container to fire up first and wait about 15/20 seconds before the application server starts. I have more complicated scenarios, but you get the picture. 

 

 

it would be really cool it I could add a script pre/post for each container were I could interrogate the environment to see if it is running or not before the next one was started, but that would just be a cool addition ;)

 

Right now I use my own scripts to start things in the right order, but would be nice if it was built in to your start option.

 

Thank you again for the great utility, keep up the great work

 

Implementing this would be hard, the plugin is coded to run on the client side, so checking container status is possible only through the docker API. As you mentioned you can use script, the plugin support running custom script from the user script plugin.
I think the scripts are a better way to implement this kind of stuff, as it gives the user the flexibility to run everything.

If you need help building scripts, feel free to reach me in DM.

Link to comment

So I have the latest release of FolderView (2023.11.04) installed on UR 6.12.4. I have a couple of empty folders that I would like to delete, but when I click on them, I do not see a "remove" option. I have also gone into "edit", but I don't see an option to delete it there either. How do you delete folders in this version?

Link to comment
1 hour ago, irishjd said:

So I have the latest release of FolderView (2023.11.04) installed on UR 6.12.4. I have a couple of empty folders that I would like to delete, but when I click on them, I do not see a "remove" option. I have also gone into "edit", but I don't see an option to delete it there either. How do you delete folders in this version?

The remove button should be in the menu of the folder.

immagine.png.ddf867be4828504c24379acea6597c05.png

If you don't see it, check the browser console for errors.

Link to comment
6 minutes ago, irishjd said:

Thus, how do I delete an empty folder?

Screenshot 2023-11-14 at 09.50.46.png

I think this is a problem with CSS, the remove should be under the edit button, and from what it looks like it is there, you can expand the browser window and you should be able to see the button or you can run this in the browser console in the tab where is your folder, NOT the dashboard.

rmFolder('yourfolderid');

Replace yourfolderid with the id of your folder, you can find that in Setting > FolderView.

Edited by scolcipitato
Link to comment

immagine.thumb.png.47d61b262a63de8d28b0576decd2669b.png

In this case, the image is on my server.

As you can see, you can input links to external sites (ex. GitHub). But remember, everything is requested client side, so if you have any ad blocker or, maybe there are problems with CORS, the request may be blocked, and you end up not seeing the icon. If this doesn't work, send a screenshot of the browser console (if there is anything).

  • Thanks 1
Link to comment

Been having some issues with the WebUI, sometimes pages load slowly or not at all. Just updated to 6.12.4 from 6.11.5. Anyone else having these issues?

 

I'm wondering if it's this plugin because I went to reorder a folder, then I went to click Submit, the UI froze for a bit; and when the action was completed all my folders disappeared.

 

Additional information, it seems to trigger when you click submit multiple times.

Edited by MelloJello
Link to comment
19 hours ago, scolcipitato said:

immagine.thumb.png.47d61b262a63de8d28b0576decd2669b.png

In this case, the image is on my server.

As you can see, you can input links to external sites (ex. GitHub). But remember, everything is requested client side, so if you have any ad blocker or, maybe there are problems with CORS, the request may be blocked, and you end up not seeing the icon. If this doesn't work, send a screenshot of the browser console (if there is anything).

This is the answer...  Unlike the previous version that automatically stored an icon you browsed for, this version requires you to make a location on your server for the files, and type in the path...

 

I was hoping this wasn't the only way, but I ended up making a folder on my flash drive for the icons.

Link to comment

can this error be fix ?

Nov 19 05:29:54 Unraid nginx: 2023/11/19 05:29:54 [error] 10499#10499: *68057 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:29:59 Unraid nginx: 2023/11/19 05:29:59 [error] 10499#10499: *68057 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Docker"
Nov 19 05:32:19 Unraid nginx: 2023/11/19 05:32:19 [error] 10499#10499: *69905 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:32:27 Unraid nginx: 2023/11/19 05:32:27 [error] 10499#10499: *69947 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Docker"
Nov 19 05:34:18 Unraid nginx: 2023/11/19 05:34:18 [error] 10499#10499: *71349 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:36:05 Unraid nginx: 2023/11/19 05:36:05 [error] 10499#10499: *72635 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Plugins"

 

Link to comment
3 minutes ago, insomnia417 said:

can this error be fix ?

Nov 19 05:29:54 Unraid nginx: 2023/11/19 05:29:54 [error] 10499#10499: *68057 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:29:59 Unraid nginx: 2023/11/19 05:29:59 [error] 10499#10499: *68057 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Docker"
Nov 19 05:32:19 Unraid nginx: 2023/11/19 05:32:19 [error] 10499#10499: *69905 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:32:27 Unraid nginx: 2023/11/19 05:32:27 [error] 10499#10499: *69947 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Docker"
Nov 19 05:34:18 Unraid nginx: 2023/11/19 05:34:18 [error] 10499#10499: *71349 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Dashboard"
Nov 19 05:36:05 Unraid nginx: 2023/11/19 05:36:05 [error] 10499#10499: *72635 open() "/usr/local/emhttp/plugins/folder.view/langs/zh.json" failed (2: No such file or directory) while sending to client, client: 10.0.0.230, server: , request: "GET /plugins/folder.view/langs/zh.json HTTP/1.1", host: "10.0.0.249", referrer: "http://10.0.0.249/Plugins"

 

If you want to translate you can do it, the instructions are in the first post, otherwise you can ignore the error.

Link to comment
On 11/17/2023 at 11:30 AM, House Of Cards said:

This is the answer...  Unlike the previous version that automatically stored an icon you browsed for, this version requires you to make a location on your server for the files, and type in the path...

 

I was hoping this wasn't the only way, but I ended up making a folder on my flash drive for the icons.

Hello,

 

I've got 2 questions. Where on the flash drive and how did you link to them afterward?

 

Thank you

Link to comment
On 11/10/2023 at 7:37 AM, piyper said:

Hi there, really nice addition.

I have a feature quest if you have some time :)I looked to see if anyone has asked for this already, sorry if this is repeat.

 

I have some containers that I do not autostart, mostly development environments for different projects. 

I have grouped these environments into different folders and start/stop them manually when I need them. When I manually start them, It would be nice if they started in a certain order and we could put a delay between them. For instance;

I would like my database container to fire up first and wait about 15/20 seconds before the application server starts. I have more complicated scenarios, but you get the picture. 

 

 

it would be really cool it I could add a script pre/post for each container were I could interrogate the environment to see if it is running or not before the next one was started, but that would just be a cool addition ;)

 

Right now I use my own scripts to start things in the right order, but would be nice if it was built in to your start option.

 

Thank you again for the great utility, keep up the great work

 

 

On 11/10/2023 at 11:25 AM, scolcipitato said:

Implementing this would be hard, the plugin is coded to run on the client side, so checking container status is possible only through the docker API. As you mentioned you can use script, the plugin support running custom script from the user script plugin.
I think the scripts are a better way to implement this kind of stuff, as it gives the user the flexibility to run everything.

If you need help building scripts, feel free to reach me in DM.

 

I am having this issue as well. From my understanding UNRAID has the delay column for reboot which works. However this plugin does not acknowledge this and just starts everything at the same time (when right clicking on folder and selecting start). Is there any way to make the plugin follow this logic given the information and ability to do so is already there?

Link to comment
5 hours ago, AngryPig said:

 

 

I am having this issue as well. From my understanding UNRAID has the delay column for reboot which works. However this plugin does not acknowledge this and just starts everything at the same time (when right clicking on folder and selecting start). Is there any way to make the plugin follow this logic given the information and ability to do so is already there?

As I said in my response, the plugin is coded to run on the webui, this means I can only check the status that docker report.

Because of this reason, you can not close the webui until all the container are started. On top of this you lose the flexibility of scripts that not only can do what you are asking on the server side (no wait of the webui) and you can check container status in different way (HTTP response, a query in case of a db).

Considering this, implementing this feature would be hard, and useless, you can already do it with scripts and the plugin gives you the ability to run scripts, this is the way to do what you want.

Link to comment
2 hours ago, scolcipitato said:

As I said in my response, the plugin is coded to run on the webui, this means I can only check the status that docker report.

Because of this reason, you can not close the webui until all the container are started. On top of this you lose the flexibility of scripts that not only can do what you are asking on the server side (no wait of the webui) and you can check container status in different way (HTTP response, a query in case of a db).

Considering this, implementing this feature would be hard, and useless, you can already do it with scripts and the plugin gives you the ability to run scripts, this is the way to do what you want.

 

I just assumed since you have to tell the dockers to run somewhere in a loop that you could just grab the autostart value from the UI input and use that as a delay before the next loop using async await. I guess that is my misunderstanding of how plugins work sorry. 

 

How would I go about making a script to execute them instead? Is there a reference in this thread or another to get me started?

Link to comment
1 minute ago, AngryPig said:

I just assumed since you have to tell the dockers to run somewhere in a loop that you could just grab the autostart value from the UI input and use that as a delay before the next loop using async await. I guess that is my misunderstanding of how plugins work sorry. 

This is my initial idea, the only difference being that I would take the delay from the server and not from the webui. But as I explained the implementation has downside, for me too much to be reliable, considering that scripts offer a much more reliable and flexible way to do what you want.

 

4 minutes ago, AngryPig said:

How would I go about making a script to execute them instead? Is there a reference in this thread or another to get me started?

Just create an userscript and that add it in the folder settings, if you want you can hide the default start/stop/... button.

For creating the script itself you can use a bash script, or you can use python or even PHP, what you feel comfortable using. For a simple implementation (like just waiting x amount of time) I suggest using a bash script, if you need to interact with the container to check for service availability I suggest python or PHP.

 

  • Thanks 1
Link to comment

this isnt working at all for me..  6.12.3 user and the original plugin was janked out and I was forced to move to this if i want similar functionality, which there was ZERO warning for....

 

just another reason to leave unraid.  i cannot express how bad this pisses me off without being banned from this forum.

Link to comment
4 hours ago, danktankk said:

this isnt working at all for me..  6.12.3 user and the original plugin was janked out and I was forced to move to this if i want similar functionality, which there was ZERO warning for....

 

just another reason to leave unraid.  i cannot express how bad this pisses me off without being banned from this forum.

Such is the nature of a community-driven plugin ecosystem. Which isn't unique to unRAID. unRAID didn't create the old plugin or this one, so there would be no warning from them. The development for the old plugin died and I'm glad @scolcipitato created this one. He's very responsive and helpful in the development and improvement of it.

 

Can you elaborate on what isn't working for you? We'll be glad to try to help you with it.

 

I think most of us have FolderView working just as well or better than Docker Folders at this point.

  • Like 2
Link to comment
18 hours ago, Mattaton said:

Such is the nature of a community-driven plugin ecosystem. Which isn't unique to unRAID. unRAID didn't create the old plugin or this one, so there would be no warning from them. The development for the old plugin died and I'm glad @scolcipitato created this one. He's very responsive and helpful in the development and improvement of it.

 

Can you elaborate on what isn't working for you? We'll be glad to try to help you with it.

 

I think most of us have FolderView working just as well or better than Docker Folders at this point.

There is nothing to elaborate.  I have it working fine and admittedly, it is a very nice replacement.  I have everything as it should be and it was very easy to do so.  I even used the svg icons from the former plugin as well.  The plugins documentation was all I needed to get it to work as expected and it is also intuitively configured 'out of the box' to where I had minimal issues with configuring anything extra that I wanted.

You are 100% right that unraid, nor the maintainers of this plugin have anything to do with docker folders deprecation and it wouldn't matter anyway.  Complaining about free software from people that work hard to provide anything beneficial is not the best use of ones time to say the least.  It was late, I was tired and just hated checking "one last thing real quick" only to find i needed to "fix" yet another problem from doing nothing more than well.... nothing.  It still surprises me that you can literally do nothing and break your install for [insert linux distro here].  Thats just how linux is.  It's by design and I totally get it.  

That being said, I would just like to thank all here that have made this new plugin possible and also offer my sincere apologies for my momentary lapse in logical thought.  TL:DR  My bad lol

image.thumb.png.0353f5aab236d4fa297f9188ac2acaf4.png

 

It will need further refinement on my end to work for me, but I was able to do this in less than 15 minutes having never used this plugin before.  Well done on the ease of use!

Edited by danktankk
  • Like 2
  • Upvote 1
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.