Powerdown package for unRAID v5 and v6 (DEPRECATED)


dlandon

Recommended Posts

Try this:

 

/usr/local/emhttp/plugins/dynamix.cache.dirs/scripts/rc.cachedirs stop

 

and tell me how long it runs.  This will stop cache_dirs with nothing else happening.

 

Not sure how to answer :)

The script runs and it stops cache_dirs immediately. I also get back the prompt immediately.

However, 'ps -ef | grep find' shows the actual child 'find' process is still running and finishes when it finishes depending on how large is the dir.

 

So killing cache_dirs works like a charm, but the sub-process stays there (PPID changes to 1 after parent has gone) and does not get killed.

 

Based on your quick test, there is nothing more I can do.  You should post this issue on the cache_dirs discussion and see if Joe L. the creator of the cache_dirs script can add a more robust shutdown to the cache_dirs script.

Fair enough. However I think he is not so interested any more in this. I raised this with him year(s) ago... That's why I was looking for another viable solution what is not from evil... :)

 

Just one question: I thought the intention with your adjustments was to kill the subprocesses on cache_dirs stop as well regardless if cache_dirs is doing that or not; have I misunderstood that? Based on your latest feedback now I feel you still expected cache_dirs doing that in its own.

 

Thank you for looking into this!

Link to comment
  • Replies 678
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I've made a small change and have the child processes killed as needed.

 

A new version of the cache_dirs plugin is available, give it a try!

 

Not working for me like the previous version.  Cache_dirs is holding up the array stop.

 

EDIT: Hold on that thought for a moment.  I am getting some really weird things happening depending on what I am doing to stop cache_dirs.  I'm going to do some more research.

Link to comment

Not working for me reliably.  I have done additional testing and I made some suggestions to Bonienl.

 

After my changes I am able to get cache_dirs to stop quickly under all conditions.

 

Another update of the Dynamix Cache Dirs plugin is available, which has these improvements.

 

Works fine here after a quick test! Many thanks again!

Link to comment

The latest version of the plugin is working for me also.  I posted what I think might be the cleanest solution on the cache_dirs forum.  Hopefully Joe L. will take a look at it and incorporate it into cache_dirs.  He will probably improve on it since I don't know that much about cache_dirs.

Link to comment

Not working for me reliably.  I have done additional testing and I made some suggestions to Bonienl.

 

After my changes I am able to get cache_dirs to stop quickly under all conditions.

 

Another update of the Dynamix Cache Dirs plugin is available, which has these improvements.

 

Works fine here after a quick test! Many thanks again!

 

Dynamix Cache Dirs has been updated using an updated cache_dirs script by Alex R. Berg.  His script is improved in several ways, he fixed some bugs, and it shuts down very nicely when cache_dirs is stopped.

 

Update the Dynamix Cache Dirs plugin and let us know if it is working for you when the array is stopped.

 

This is nothing scientific, but my server cpu load seems to have been reduced.

Link to comment

Not working for me reliably.  I have done additional testing and I made some suggestions to Bonienl.

 

After my changes I am able to get cache_dirs to stop quickly under all conditions.

 

Another update of the Dynamix Cache Dirs plugin is available, which has these improvements.

 

Works fine here after a quick test! Many thanks again!

 

Dynamic Cache Dirs has been updated using an updated cache_dirs script by Alex R. Berg.  His script is improved in several ways, he fixed some bugs, and it shuts down very nicely when cache_dirs is stopped.

 

Update the Dynamix Cache Dirs plugin and let us know if it is working for you when the array is stopped.

 

This is nothing scientific, but my server cpu load seems to have been reduced.

 

Yes, I can confirm stopping is working fine! Thank you for having the updated cache_dirs disk included. Let's cross the fingers it will work out fine as it was not beta tested by the community before. So we will need to keep an eye on it.

Link to comment

Just tried to install this through the plugin manager and received these errors:

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

 

I am using the latest version of unRAID v6.1.6

Link to comment

Just tried to install this through the plugin manager and received these errors:

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

 

I am using the latest version of unRAID v6.1.6

Can you ping github.com from your server?
Link to comment

Just tried to install this through the plugin manager and received these errors:

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

 

I am using the latest version of unRAID v6.1.6

Try setting DNS addresses in Network Settings of 8.8.8.8 and 8.8.4.4
Link to comment

Just tried to install this through the plugin manager and received these errors:

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

 

I am using the latest version of unRAID v6.1.6

Can you ping github.com from your server?

 

I am able to ping github without issue and google DNS is distributed by DHCP to all the machines at my house. The plugin Downloaded to my server fine from what I can tell (I apologize I was in a hurry this morning and didn't copy that part of the log). Should I try to download the plugin manually and install from a file maybe?

 

This is the full log from me trying to install the plugin:

 

plugin: installing: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg ... done

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

Link to comment

I am able to ping github without issue and google DNS is distributed by DHCP to all the machines at my house. The plugin Downloaded to my server fine from what I can tell (I apologize I was in a hurry this morning and didn't copy that part of the log). Should I try to download the plugin manually and install from a file maybe?

 

This is the full log from me trying to install the plugin:

 

plugin: installing: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg ... done

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

On the Dashboard under System Status, what do you have for flash : log : docker
Link to comment

Just tried to install this through the plugin manager and received these errors:

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

 

I am using the latest version of unRAID v6.1.6

 

Delete the /flash/config/plugins/powerdown folder and try again.  The download may have failed and left an empty file.

Link to comment

I am able to ping github without issue and google DNS is distributed by DHCP to all the machines at my house. The plugin Downloaded to my server fine from what I can tell (I apologize I was in a hurry this morning and didn't copy that part of the log). Should I try to download the plugin manually and install from a file maybe?

 

This is the full log from me trying to install the plugin:

 

plugin: installing: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg

plugin: downloading: https://github.com/dlandon/powerdown/raw/master/powerdown-x86_64.plg ... done

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Document is empty in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): /tmp/plugins/powerdown-x86_64.plg:1: parser error : Start tag expected, '<' not found in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

 

Warning: simplexml_load_file(): ^ in /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin on line 193

plugin: xml parse error

On the Dashboard under System Status, what do you have for flash : log : docker

it says not available for docker, see attached screenshot.

 

dlandon: I don't seem to have the powerdown folder in the plugins directory at all?

 

root@VOID:/boot/config/plugins# ls

dynamix/  dynamix.apcupsd/  dynamix.kvm.manager/  swapfile/  swapfile.plg*

 

This is all I have in there right now.

 

I had a previous version of the powerdown script installed in v4 & v5 however I followed the upgrade instructions and deleted the plugin folder and all the other folders it listed to remove so I am not sure what the issue might be. The Swap plugin installed fine as you can see.

Capture.PNG.626ee6a8f6243e5d1091eca287f05478.PNG

Link to comment

Are your Dynamix plugins for V6.1?

As far as I know, the plugin is dated 2015-12-01 & I just upgraded to the new version of unRAID last week. It is possible this is part of a larger issue as the "Diagnostics" tool doesn't seem to be working for me either so my upgrade might have had some hiccups. When I try to run the tool it gathers all the information it needs (I assume) but when it redirects me to download the zip file I get a 404 not found error.

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.