olympia Posted December 10, 2015 Share Posted December 10, 2015 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! Quote Link to comment
bonienl Posted December 10, 2015 Share Posted December 10, 2015 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! Quote Link to comment
dlandon Posted December 10, 2015 Author Share Posted December 10, 2015 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. Quote Link to comment
olympia Posted December 10, 2015 Share Posted December 10, 2015 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! Quote Link to comment
dlandon Posted December 11, 2015 Author Share Posted December 11, 2015 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. Quote Link to comment
bonienl Posted December 11, 2015 Share Posted December 11, 2015 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. Quote Link to comment
olympia Posted December 11, 2015 Share Posted December 11, 2015 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! Quote Link to comment
dlandon Posted December 11, 2015 Author Share Posted December 11, 2015 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. Quote Link to comment
squirrellydw Posted December 11, 2015 Share Posted December 11, 2015 Why would I want to use this? I have an APC UPS and I thought V6 didn't require this Quote Link to comment
BRiT Posted December 12, 2015 Share Posted December 12, 2015 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. Quote Link to comment
dlandon Posted December 13, 2015 Author Share Posted December 13, 2015 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. Quote Link to comment
olympia Posted December 13, 2015 Share Posted December 13, 2015 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. Quote Link to comment
weirdcrap Posted December 16, 2015 Share Posted December 16, 2015 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 Quote Link to comment
trurl Posted December 16, 2015 Share Posted December 16, 2015 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? Quote Link to comment
Squid Posted December 16, 2015 Share Posted December 16, 2015 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 Quote Link to comment
weirdcrap Posted December 16, 2015 Share Posted December 16, 2015 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 Quote Link to comment
trurl Posted December 16, 2015 Share Posted December 16, 2015 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 Quote Link to comment
dlandon Posted December 16, 2015 Author Share Posted December 16, 2015 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. Quote Link to comment
weirdcrap Posted December 17, 2015 Share Posted December 17, 2015 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. Quote Link to comment
dlandon Posted December 17, 2015 Author Share Posted December 17, 2015 Are your Dynamix plugins for V6.1? Quote Link to comment
EdgarWallace Posted December 17, 2015 Share Posted December 17, 2015 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. Quote Link to comment
weirdcrap Posted December 17, 2015 Share Posted December 17, 2015 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. Quote Link to comment
squirrellydw Posted December 17, 2015 Share Posted December 17, 2015 So you just install this? no configuration or anything? Quote Link to comment
dlandon Posted December 17, 2015 Author Share Posted December 17, 2015 So you just install this? no configuration or anything? Yes. Quote Link to comment
weirdcrap Posted December 17, 2015 Share Posted December 17, 2015 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. Quote Link to comment
Recommended Posts
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.