Preclear plugin


Recommended Posts

6 minutes ago, dabl said:

What's the easiest way to roll back to version 05-03-2018?

Barring any other separately installed packages of which I don't know (I don't use Preclear), you can download these files

 

https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.txz and https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.md5

 

Save them on the flash drive at /config/plugins/preclear.disk, then edit the file /config/plugins/preclear.disk.plg and change the date that's probably listed at the top of the file to be 2018.05.03 and reboot.

 

But, since I don't use the plugin, this is untested, but it'll either install or it won't.

  • Like 2
Link to comment
On 7/11/2018 at 10:43 AM, fc0712 said:

Nice - How did you replace the original script?

 

Update:  Placed it under the plugin and renamed the new script to preclear_disk.sh

 

I'm not doing something right.  I'm under the flash and found the directory then placed the script in the directory and renamed it but it still has the old script name when I run the plugin.  I'm missing something somewhere.  Help? Thanks.

 

For reference I'm trying a different script because it keeps stalling at 99% on zeroing.

Link to comment
1 hour ago, rxnelson said:

I'm not doing something right.  I'm under the flash and found the directory then placed the script in the directory and renamed it but it still has the old script name when I run the plugin.  I'm missing something somewhere.  Help? Thanks.

 

From the first post in this thread.  Put it in the  /config/plugins/preclear.disk  folder on the flash drive.

Link to comment
13 hours ago, Squid said:

Barring any other separately installed packages of which I don't know (I don't use Preclear), you can download these files

 

https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.txz and https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.md5

 

Save them on the flash drive at /config/plugins/preclear.disk, then edit the file /config/plugins/preclear.disk.plg and change the date that's probably listed at the top of the file to be 2018.05.03 and reboot.

 

But, since I don't use the plugin, this is untested, but it'll either install or it won't.

 Thanks. 

 

Wow, so then, not particularly easy at all really.

 

I'm curious if it the case that the unRAID plugin system itself has no built in mechanism for rolling back any given plugin to a previous revision or is that functionality left to the plugin developer?

Link to comment
3 minutes ago, dabl said:

 Thanks. 

 

Wow, so then, not particularly easy at all really.

 

I'm curious if it the case that the unRAID plugin system itself has no built in mechanism for rolling back any given plugin to a previous revision or is that functionality left to the plugin developer?

Not that hard.  Downloading 2 files and replacing a date string

 

There's many different ways for a plugin author to handle installation / updates, not all of which are compatible with a roll-back.

 

If the plugins were auto-updated via CA Auto Update, then you can easily roll back (if the plugin supports it) via removing the plugin, and then reinstalling the plugin and  instead of pasting a URL browse to /boot/config/plugins-old-versions/NameOfPlug/DateOfRollbackRequired/nameOfPlug.plg  

 

Your mileage may vary.  This would most likely have worked with Preclear.  It will definitely work for any and all CA / CA related plugins.  Dynamix branded plugins it will not work at all, and cannot be rolled back.  Other plugins, I don't know one way or the other.  The main determination on if this works or not is how the author chose to name the installation package referenced within the .plg

 

 

Link to comment
4 hours ago, Squid said:

Not that hard.  Downloading 2 files and replacing a date string

 

There's many different ways for a plugin author to handle installation / updates, not all of which are compatible with a roll-back.

 

If the plugins were auto-updated via CA Auto Update, then you can easily roll back (if the plugin supports it) via removing the plugin, and then reinstalling the plugin and  instead of pasting a URL browse to /boot/config/plugins-old-versions/NameOfPlug/DateOfRollbackRequired/nameOfPlug.plg  

 

Your mileage may vary.  This would most likely have worked with Preclear.  It will definitely work for any and all CA / CA related plugins.  Dynamix branded plugins it will not work at all, and cannot be rolled back.  Other plugins, I don't know one way or the other.  The main determination on if this works or not is how the author chose to name the installation package referenced within the .plg

 

 

 

Thanks for the explanation, good to know. 

 

Right, not that hard, except not nearly as easy as pushing a button to fuck up what was working a minute ago :) 

 

To me the whole 'push a button to update your plugin' thing is somewhat deceptive and far less appealing and useful without a mechanism to roll back baked into it.

 

I'm sure I'm not the Lone Ranger here starting to think about how I'll go about making my own backup strategy before updating plugins........

 

 

Link to comment
16 hours ago, Frank1940 said:

 

From the first post in this thread.  Put it in the  /config/plugins/preclear.disk  folder on the flash drive.

 

I did this.  However, I didn't see any other *.sh files in that directory which makes me think something isn't right.  Do I need to stop and start the array or anything?

Link to comment
18 minutes ago, dabl said:

I'm sure I'm not the Lone Ranger here starting to think about how I'll go about making my own backup strategy before updating plugins........

 

Nope.  I actually submitted a PR a long time ago to make backups of the .plg files when dynamix updates a plugin which would allow for rollbacks, but it was denied (and pointed out) that since many plugins by design do not allow the mechanism to work that it shouldn't be approved as it would imply something that the system can do that it actually can't.  And realistically, this is correct, as it's up to the plugin author (and docker author by extension) to support rollbacks and there's no conformity there.

 

My personal belief however is that plugins should always be held up to a high standard, and if a release proves faulty then it should immediately be rectified.

 

This even extends to many, many applications available under Windows as an example.  Not every app supports reinstallation of previous versions, and only the latest version is listed available for download.

 

 

Link to comment
4 hours ago, dabl said:

I'm sure I'm not the Lone Ranger here starting to think about how I'll go about making my own backup strategy before updating plugins........

 

You can easily download a zipped backup of the flash drive at Main - Boot Device - Flash - Flash backup

Link to comment
4 hours ago, Squid said:

My personal belief however is that plugins should always be held up to a high standard, and if a release proves faulty then it should immediately be rectified.

 

This even extends to many, many applications available under Windows as an example.  Not every app supports reinstallation of previous versions, and only the latest version is listed available for download.

 

 

Amen. 

 

Gotta say, not great the plugin author pushed an update with no release notes, no notice in the thread, and isn't around to weigh in on issues afterward.

 

But this has happened before.

 

Another reason to have/use the good old command line script with screen etc.

Link to comment
16 hours ago, rxnelson said:

 

I did this.  However, I didn't see any other *.sh files in that directory which makes me think something isn't right.  Do I need to stop and start the array or anything?

 

I am sorry that I can't help you beyond what was there.  In the distant past, I did use @Joe L.'s script wit this plugin but I don't remember where I put it. The support of this plugin has been hit-and-miss for quite some time.  I have the feeling that life has gotten in the way and he can't devote the time necessary to to provide more assistance.  

 

I also suspect that his preclear script is not a stand-alone script but included in one of the other files.  I also don't recall what happened when I used @Joe L.'s as to whether I had to choose it or it was just used automatically.  (I suspect the latter since the instruction tell us to rename the script to a generic name.)  

Link to comment
10 hours ago, Frank1940 said:

 

I am sorry that I can't help you beyond what was there.  In the distant past, I did use @Joe L.'s script wit this plugin but I don't remember where I put it. The support of this plugin has been hit-and-miss for quite some time.  I have the feeling that life has gotten in the way and he can't devote the time necessary to to provide more assistance.  

 

I also suspect that his preclear script is not a stand-alone script but included in one of the other files.  I also don't recall what happened when I used @Joe L.'s as to whether I had to choose it or it was just used automatically.  (I suspect the latter since the instruction tell us to rename the script to a generic name.)  

OK, thank you.  It seems something may have changed at some point.  I appreciate the help.  I attempted to download the 2018.03.29 version and edit the .plg file as mentioned above but that didn't give me a different script either.  I haven't rebooted yet though.  

 

I think I want to run the bjp edited script from the console but my google is no good for that so far.  All the threads I find relate to this thread (sorry if I missed it) or just a thread saying the plugin doesn't work.  It would appear this is semi-dangerous in that if you type the wrong device it would wipe/zero out the drive so I want to be sure of what I'm typing.   Can you point me in the right direction?  I know there has been plenty of discussion about this particular plugin so maybe if we can point to the new script that apparently works and how to run it from the console, screen, whatever that may help end this thread and give you guys one post to point back to.

 

Thanks again

Link to comment
1 hour ago, rxnelson said:

think I want to run the bjp edited script from the console but my google is no good for that so far.  All the threads I find relate to this thread (sorry if I missed it) or just a thread saying the plugin doesn't work.  It would appear this is semi-dangerous in that if you type the wrong device it would wipe/zero out the drive so I want to be sure of what I'm typing.   Can you point me in the right direction?  I

 

Here is a link to the thread for that preclear script:

 

       https://lime-technology.com/forums/topic/30921-unofficial-faster-preclear/

 

 

I would start at the end of the thread and read carefully moving backward... 

Link to comment

installed because I wanted to clear a disk. It couldn't find the model/size/or anything.

 

uninstalled and now I get this log spam:

 

Jul 18 08:33:11 Brahms1 nginx: 2018/07/18 08:33:11 [error] 4671#4671: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:33:11 Brahms1 root: error: /webGui/include/ProcessStatus.php: wrong csrf_token
Jul 18 08:33:23 Brahms1 nginx: 2018/07/18 08:33:23 [error] 4671#4671: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"

server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:01 Brahms1 nginx: 2018/07/18 08:35:01 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:07 Brahms1 nginx: 2018/07/18 08:35:07 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:07 Brahms1 nginx: 2018/07/18 08:35:07 [error] 4671#4671: *396 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:16 Brahms1 nginx: 2018/07/18 08:35:16 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:21 Brahms1 nginx: 2018/07/18 08:35:21 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:21 Brahms1 nginx: 2018/07/18 08:35:21 [error] 4671#4671: *396 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:28 Brahms1 nginx: 2018/07/18 08:35:28 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:31 Brahms1 nginx: 2018/07/18 08:35:31 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:33 Brahms1 nginx: 2018/07/18 08:35:33 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:44 Brahms1 nginx: 2018/07/18 08:35:44 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:44 Brahms1 nginx: 2018/07/18 08:35:44 [error] 4671#4671: *497 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:53 Brahms1 nginx: 2018/07/18 08:35:53 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:56 Brahms1 nginx: 2018/07/18 08:35:56 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:59 Brahms1 nginx: 2018/07/18 08:35:59 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:09 Brahms1 nginx: 2018/07/18 08:36:09 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:09 Brahms1 nginx: 2018/07/18 08:36:09 [error] 4671#4671: *535 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:14 Brahms1 nginx: 2018/07/18 08:36:14 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:19 Brahms1 nginx: 2018/07/18 08:36:19 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:20 Brahms1 nginx: 2018/07/18 08:36:20 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:25 Brahms1 nginx: 2018/07/18 08:36:25 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:32 Brahms1 nginx: 2018/07/18 08:36:32 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:32 Brahms1 nginx: 2018/07/18 08:36:32 [error] 4671#4671: *570 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"

 

How do I make it stop?

Link to comment
13 minutes ago, 1812 said:

installed because I wanted to clear a disk. It couldn't find the model/size/or anything.

 

uninstalled and now I get this log spam:

 


Jul 18 08:33:11 Brahms1 nginx: 2018/07/18 08:33:11 [error] 4671#4671: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:33:11 Brahms1 root: error: /webGui/include/ProcessStatus.php: wrong csrf_token
Jul 18 08:33:23 Brahms1 nginx: 2018/07/18 08:33:23 [error] 4671#4671: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"

server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:01 Brahms1 nginx: 2018/07/18 08:35:01 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:07 Brahms1 nginx: 2018/07/18 08:35:07 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:07 Brahms1 nginx: 2018/07/18 08:35:07 [error] 4671#4671: *396 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:16 Brahms1 nginx: 2018/07/18 08:35:16 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:21 Brahms1 nginx: 2018/07/18 08:35:21 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:21 Brahms1 nginx: 2018/07/18 08:35:21 [error] 4671#4671: *396 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:28 Brahms1 nginx: 2018/07/18 08:35:28 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:31 Brahms1 nginx: 2018/07/18 08:35:31 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:33 Brahms1 nginx: 2018/07/18 08:35:33 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:44 Brahms1 nginx: 2018/07/18 08:35:44 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:44 Brahms1 nginx: 2018/07/18 08:35:44 [error] 4671#4671: *497 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:53 Brahms1 nginx: 2018/07/18 08:35:53 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:56 Brahms1 nginx: 2018/07/18 08:35:56 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:35:59 Brahms1 nginx: 2018/07/18 08:35:59 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:09 Brahms1 nginx: 2018/07/18 08:36:09 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:09 Brahms1 nginx: 2018/07/18 08:36:09 [error] 4671#4671: *535 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:14 Brahms1 nginx: 2018/07/18 08:36:14 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:19 Brahms1 nginx: 2018/07/18 08:36:19 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:20 Brahms1 nginx: 2018/07/18 08:36:20 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:25 Brahms1 nginx: 2018/07/18 08:36:25 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:32 Brahms1 nginx: 2018/07/18 08:36:32 [error] 4671#4671: *91 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10c6:1b91:67b9:1dc8, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"
Jul 18 08:36:32 Brahms1 nginx: 2018/07/18 08:36:32 [error] 4671#4671: *570 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: fe80::10bd:6493:1139:ffd, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "brahms1.local", referrer: "http://brahms1.local/Plugins"

 

How do I make it stop?

 

 

fixed. had to manually remove the plugin files from the flash.....

Link to comment
On 7/14/2018 at 11:50 AM, Squid said:

Barring any other separately installed packages of which I don't know (I don't use Preclear), you can download these files

 

https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.txz and https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.md5

 

Save them on the flash drive at /config/plugins/preclear.disk, then edit the file /config/plugins/preclear.disk.plg and change the date that's probably listed at the top of the file to be 2018.05.03 and reboot.

 

But, since I don't use the plugin, this is untested, but it'll either install or it won't.

Thanks for this, worked well for me. 

 

Went from 19MB/s zeroing for my 8TB to 197MB/s zeroing after downgrading.  Even resumed from where I left off :)

Link to comment
On 7/13/2018 at 6:50 PM, Squid said:

Barring any other separately installed packages of which I don't know (I don't use Preclear), you can download these files

 

https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.txz and https://github.com/gfjardim/unRAID-plugins/raw/master/archive/preclear.disk-2018.05.03.md5

 

Save them on the flash drive at /config/plugins/preclear.disk, then edit the file /config/plugins/preclear.disk.plg and change the date that's probably listed at the top of the file to be 2018.05.03 and reboot.

 

But, since I don't use the plugin, this is untested, but it'll either install or it won't.

 

If there are any other changes to the plg file besides the date this way may cause issues. It would be preferable to grab the older plg itself.

 

To get older plg files go to https://github.com/gfjardim/unRAID-plugins/blob/master/plugins/preclear.disk.plg

Hit the History button at the top

Click the link for the older version of the file you want ( In this case the top listing "Update PD plugin file" under "Commits on May 3, 2018" )

Then click View

Then click Raw

In this case you'll arrive here https://raw.githubusercontent.com/gfjardim/unRAID-plugins/a0015b199021e59308954b663b2fcbb72a766b8c/plugins/preclear.disk.plg

Which is the 2018.05.03 copy of the file.

Save page as (may have to delete .txt from end)

Install it

The preclear plg grabs the packages based off the date in the plg so there's no need to download them separately

 

This works to grab any older copy. Had to do this a while back when I had some issues :)

 

Edited by Riot
Missed a step
Link to comment
On 7/19/2018 at 9:49 AM, Riot said:

 

If there are any other changes to the plg file besides the date this way may cause issues. It would be preferable to grab the older plg itself.

 

To get older plg files go to https://github.com/gfjardim/unRAID-plugins/blob/master/plugins/preclear.disk.plg

Hit the History button at the top

Click the link for the older version of the file you want ( In this case the top listing "Update PD plugin file" under "Commits on May 3, 2018" )

Then click View

Then click Raw

In this case you'll arrive here https://raw.githubusercontent.com/gfjardim/unRAID-plugins/a0015b199021e59308954b663b2fcbb72a766b8c/plugins/preclear.disk.plg

Which is the 2018.05.03 copy of the file.

Save page as (may have to delete .txt from end)

Install it

The preclear plg grabs the packages based off the date in the plg so there's no need to download them separately

 

This works to grab any older copy. Had to do this a while back when I had some issues :)

 

Thanks!

Link to comment

@gfjardimwhen possible please fix the PHP warnings generated by the plugin, I know they don't cause a problem per se but it's a pain to find them flooding various syslogs every day making it much more time consuming to go through them, thanks.

 

Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte12h - assumed 'byte12h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant ID_MODEL - assumed 'ID_MODEL' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant SERIAL_SHORT - assumed 'SERIAL_SHORT' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte11h - assumed 'byte11h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte10h - assumed 'byte10h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte9h - assumed 'byte9h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte8h - assumed 'byte8h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte15h - assumed 'byte15h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte14h - assumed 'byte14h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte13h - assumed 'byte13h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte12h - assumed 'byte12h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663

 

  • Like 1
Link to comment
  • 2 weeks later...

Is the included script working correctly? It appears to be running entirely on the first thread, and maxes it out at that. It can only clear at 60MB/s thanks to the CPU limit, which is presumably less than a third of the drive's capabilities. Are the older scripts working any better?

Link to comment

had a preclear die 1/3 of the way through. does this indicate any drive issue or just a script hiccup?

 


############################################################################################################################
#                                                                                                                          #
#                                         unRAID Server Preclear of disk K7HBW54L                                          #
#                                       Cycle 3 of 3, partition start on sector 64.                                        #
#                                                                                                                          #
#                                                                                                                          #
#   Step 1 of 5 - Pre-read in progress:                                                                      (22% Done)    #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#   ** Time elapsed: 1:13:18 | Current speed: 205 MB/s | Average speed: 204 MB/s                                           #
#                                                                                                                          #
############################################################################################################################
#                               Cycle elapsed time: 1:13:19 | Total elapsed time: 65:15:59                                 #
############################################################################################################################

############################################################################################################################
#                                                                                                                          #
#                                               S.M.A.R.T. Status default                                                  #
#                                                                                                                          #
#                                                                                                                          #
#   ATTRIBUTE                    INITIAL  CYCLE 1  CYCLE 2  STATUS                                                         #
#   5-Reallocated_Sector_Ct      0        0        0        -                                                              #
#   9-Power_On_Hours             0        32       64       Up 64                                                          #
#   194-Temperature_Celsius      32       36       37       Up 5                                                           #
#   196-Reallocated_Event_Count  0        0        0        -                                                              #
#   197-Current_Pending_Sector   0        0        0        -                                                              #
#   198-Offline_Uncorrectable    0        0        0        -                                                              #
#   199-UDMA_CRC_Error_Count     0        0        0        -                                                              #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
#                                                                                                                          #
############################################################################################################################
#   SMART overall-health self-assessment test result: PASSED                                                               #
############################################################################################################################

--> ATTENTION: Please take a look into the SMART report above for drive health issues.

--> RESULT: Preclear Finished Successfully!.

malloc: jobs.c:1246: assertion botched
free: underflow detected; mh_nbytes out of range
Aborting.../usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 864: 0+()%(7814037168) : syntax error: operand expected (er
ror token is ")%(7814037168) ")

 

Link to comment
On 7/26/2018 at 5:02 AM, johnnie.black said:

@gfjardimwhen possible please fix the PHP warnings generated by the plugin, I know they don't cause a problem per se but it's a pain to find them flooding various syslogs every day making it much more time consuming to go through them, thanks.

 


Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte12h - assumed 'byte12h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant ID_MODEL - assumed 'ID_MODEL' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant SERIAL_SHORT - assumed 'SERIAL_SHORT' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte11h - assumed 'byte11h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte10h - assumed 'byte10h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte9h - assumed 'byte9h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte8h - assumed 'byte8h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 662
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte15h - assumed 'byte15h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte14h - assumed 'byte14h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte13h - assumed 'byte13h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663
Jul 25 21:41:08 Unraid-Plex rc.diskinfo[8419]: PHP Warning: Use of undefined constant byte12h - assumed 'byte12h' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 663

 

 

On 7/13/2018 at 12:34 PM, Frank1940 said:

@gfjardim, has this issue been addressed yet?


Jul 10 17:56:48 Rose rc.diskinfo[8325]: SIGHUP received, forcing refresh of disks info.
Jul 10 17:56:48 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant ID_MODEL - assumed 'ID_MODEL' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 10 17:56:48 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant SERIAL_SHORT - assumed 'SERIAL_SHORT' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 10 17:56:51 Rose rc.diskinfo[8325]: SIGHUP received, forcing refresh of disks info.
Jul 10 17:56:51 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant ID_MODEL - assumed 'ID_MODEL' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 10 17:56:51 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant SERIAL_SHORT - assumed 'SERIAL_SHORT' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 10 17:56:51 Rose rc.diskinfo[8325]: SIGHUP received, forcing refresh of disks info.
Jul 10 17:56:53 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant ID_MODEL - assumed 'ID_MODEL' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470
Jul 10 17:56:53 Rose rc.diskinfo[8325]: PHP Warning: Use of undefined constant SERIAL_SHORT - assumed 'SERIAL_SHORT' (this will throw an Error in a future version of PHP) in /etc/rc.d/rc.diskinfo on line 470

While it is not a 'show stopper' at this point, it could become a major problem with the next release of PHP. 

 

Those will be addressed in the next release, guys. Thanks for pointing them out.

 

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.