December 10, 201510 yr 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!
December 10, 201510 yr 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!
December 10, 201510 yr Author 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.
December 10, 201510 yr I will be wondering how your tests are ending, but on my side, bonienl's update works like a charm. Both cache_dirs and its child processes are killed. A big thank you for both of you for taking the time and fixing this. This issue was outstanding for years!
December 11, 201510 yr Author 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.
December 11, 201510 yr 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.
December 11, 201510 yr 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!
December 11, 201510 yr Author 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.
December 11, 201510 yr Why would I want to use this? I have an APC UPS and I thought V6 didn't require this
December 12, 201510 yr Why would I want to use this? I have an APC UPS and I thought V6 didn't require this Because the built in powering down system doesn't entirely handle everything.
December 13, 201510 yr Author 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.
December 13, 201510 yr 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.
December 16, 201510 yr 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
December 16, 201510 yr 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?
December 16, 201510 yr 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
December 16, 201510 yr 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
December 16, 201510 yr 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
December 16, 201510 yr Author 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.
December 17, 201510 yr 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.
December 17, 201510 yr Quick question: is is possible to shut down a remote unRAID server (Backup Server) by using the Powerdown package? I would like to add it to my rsync script to shut down the machine after the backup is complete. Thank you.
December 17, 201510 yr 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.
December 17, 201510 yr So after spending all day on the forums looking around I have discovered the source of my issues. It turned out to be not having enough memory installed. That's why my diagnostics utility wasn't working and why this plugin wouldn't install.
Archived
This topic is now archived and is closed to further replies.