Preclear plugin


Recommended Posts

2 minutes ago, Switchblade said:

noticed this in my log today,

Jun 30 15:08:42 Tower root: error: plugins/preclear.disk/Preclear.php: wrong csrf_token 

 

It just keeps repeating in the log.  It said there was an update, did that, but still the errors in the log keep coming.  

 

I had to uninstall the plugin.  Looks like something is wrong.....

 

No changes on my end re drives.

 

 

 

Link to comment

attempted to clear 2 new discs. Neither will go past starting.

 

most recent plugin logs look like this:

 

Sat Jul 1 11:17:42 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:17:52 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:18:02 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:42:44 PDT 2017: PHP Warning: unlink(/tmp/preclear_stat_sdh): No such file or directory in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 291
Sat Jul 1 11:42:44 PDT 2017: PHP Warning: unlink(/tmp/preclear_stat_sdi): No such file or directory in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 291

 

Tried uninstalling/reinstalling, no change.

 

Running 6.2.4, tried with safari/chrome.

 

server logs at reinstall

Jul 1 11:58:35 Brahms3 emhttp: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin install https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/plugins/preclear.disk.plg
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/preclear.disk-2017.06.30b.txz - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/archive/preclear.disk-2017.06.30b.txz
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/preclear.disk-2017.06.30b.md5 - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/archive/preclear.disk-2017.06.30b.md5
Jul 1 11:58:35 Brahms3 root: plugin: skipping: /boot/readvz already exists
Jul 1 11:58:35 Brahms3 root: plugin: setting: /boot/readvz - mode to 755
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/StatsInstall - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/source/statistics.sender/StatsInstall.page
Jul 1 11:58:35 Brahms3 root: plugin: setting: /boot/config/plugins/preclear.disk/StatsInstall - mode to 755
Jul 1 11:58:35 Brahms3 root: plugin: running: anonymous
Jul 1 11:58:42 Brahms3 root: plugin: running: anonymous
Jul 1 11:58:42 Brahms3 rc.diskinfo[12817]: killing daemon with PID [3922]
Jul 1 11:58:42 Brahms3 rc.diskinfo[12824]: process started. To terminate it, type: rc.diskinfo --quit
Jul 1 12:04:09 Brahms3 rc.diskinfo[25737]: process started. To terminate it, type: rc.diskinfo --quit

 

Plugin also is making the GUI hang. I can't get to the diagnostics window to post those.

Link to comment
17 hours ago, 1812 said:

attempted to clear 2 new discs. Neither will go past starting.

 

most recent plugin logs look like this:

 


Sat Jul 1 11:17:42 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:17:52 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:18:02 PDT 2017: PHP Strict Notice: Non-static method Misc::get_json() should not be called statically in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 104
Sat Jul 1 11:42:44 PDT 2017: PHP Warning: unlink(/tmp/preclear_stat_sdh): No such file or directory in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 291
Sat Jul 1 11:42:44 PDT 2017: PHP Warning: unlink(/tmp/preclear_stat_sdi): No such file or directory in /usr/local/emhttp/plugins/preclear.disk/Preclear.php on line 291

 

Tried uninstalling/reinstalling, no change.

 

Running 6.2.4, tried with safari/chrome.

 

server logs at reinstall


Jul 1 11:58:35 Brahms3 emhttp: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin install https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/plugins/preclear.disk.plg
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/preclear.disk-2017.06.30b.txz - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/archive/preclear.disk-2017.06.30b.txz
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/preclear.disk-2017.06.30b.md5 - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/archive/preclear.disk-2017.06.30b.md5
Jul 1 11:58:35 Brahms3 root: plugin: skipping: /boot/readvz already exists
Jul 1 11:58:35 Brahms3 root: plugin: setting: /boot/readvz - mode to 755
Jul 1 11:58:35 Brahms3 root: plugin: creating: /boot/config/plugins/preclear.disk/StatsInstall - downloading from URL https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/source/statistics.sender/StatsInstall.page
Jul 1 11:58:35 Brahms3 root: plugin: setting: /boot/config/plugins/preclear.disk/StatsInstall - mode to 755
Jul 1 11:58:35 Brahms3 root: plugin: running: anonymous
Jul 1 11:58:42 Brahms3 root: plugin: running: anonymous
Jul 1 11:58:42 Brahms3 rc.diskinfo[12817]: killing daemon with PID [3922]
Jul 1 11:58:42 Brahms3 rc.diskinfo[12824]: process started. To terminate it, type: rc.diskinfo --quit
Jul 1 12:04:09 Brahms3 rc.diskinfo[25737]: process started. To terminate it, type: rc.diskinfo --quit

 

Plugin also is making the GUI hang. I can't get to the diagnostics window to post those.

 

 

 

Rebooting the serve has allowed the prelcear to start. Not sure why, but, ok.

Link to comment

When I stop the array these messages occur every second in my log:

Jul  4 08:06:39 BackupServer rc.diskinfo[7231]: PHP Warning: file_put_contents(/var/local/emhttp/smart//dev/sdg): failed to open stream: No such file or directory in /etc/rc.d/rc.diskinfo on line 483
Jul  4 08:06:40 BackupServer rc.diskinfo[7231]: PHP Warning: file_put_contents(/var/local/emhttp/smart//dev/sdg): failed to open stream: No such file or directory in /etc/rc.d/rc.diskinfo on line 483
Jul  4 08:06:41 BackupServer rc.diskinfo[7231]: PHP Warning: file_put_contents(/var/local/emhttp/smart//dev/sdg): failed to open stream: No such file or directory in /etc/rc.d/rc.diskinfo on line 483
Jul  4 08:06:42 BackupServer rc.diskinfo[7231]: PHP Warning: file_put_contents(/var/local/emhttp/smart//dev/sdg): failed to open stream: No such file or directory in /etc/rc.d/rc.diskinfo on line 483

 

Link to comment

I am also having same issue and when i try start Preclear status does not show and just sits there.

 

Trying to run preclear_disk.sh -A /dev/sdd 

and i get the following:
Sorry: Device /dev/sdd is busy.: 1

Even though this is still in unassigned and just sitting there

Link to comment

Please update your plugins and send me the Preclear Disk logs as shown below.

 

On 17/05/2015 at 8:10 PM, gfjardim said:

Q) How can I download a copy of the plugin log?

A) Please go to Tools, then Pleclear Disk, and click on the Download icon:

58d2586e87cf5_CapturadeTela2017-03-22as06_58_22.png.3225471341bf4d5dddaf798e9e6ee246.png

 

 

Link to comment
1 hour ago, gfjardim said:

Please update your plugins and send me the Preclear Disk logs as shown below.

 

 

 

I had this situation happen and tried to get the log, but the log is empty.

 

If it's any help, what is happening is that the serial number is shortened.

My disk serial number is:

WDC_WD2500AAJS-00VTA0_WD-WMART0840766

And what showed on the plugin UI was:

WMART0840766

Could it be a php handling of the '-'?

Link to comment
2 minutes ago, dlandon said:

I had this situation happen and tried to get the log, but the log is empty.

 

If it's any help, what is happening is that the serial number is shortened.

My disk serial number is:


WDC_WD2500AAJS-00VTA0_WD-WMART0840766

And what showed on the plugin UI was:


WMART0840766

Could it be a php handling of the '-'?

 

 

Could be. Need the logs to see what is happening.

Link to comment
1 minute ago, dlandon said:

I also re-enabled diskinfo in UD on my test server and it looks good.  I'll do a bit more testing this weekend and if all is good I'll release an update to UD with the diskinfo enabled.

 

It's not easy to cache information, update it when needed and keep everything in a consistent state. Let's see if this time it work as expected.

 

Thanks for your feedback.

Link to comment
  • Squid unpinned this topic

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.