gboudreau / Greyhole

Greyhole uses Samba to create a storage pool of all your available hard drives, and allows you to create redundant copies of the files you store.
http://www.greyhole.net
GNU General Public License v3.0
259 stars 34 forks source link

PHP Fatal Error - Greyhole crashes #35

Closed larseknu closed 12 years ago

larseknu commented 12 years ago

Excerpt from the log:

Nov 03 02:18:54 7 fsck: Entering /mnt/d_nas/gh/Movies/Anger Management (2003) Nov 03 02:18:54 3 fsck: PHP Fatal Error: Object of class stdClass could not be converted to string; BT: greyhole[L647]

Nov 03 07:56:01 7 unlink: Loading metafiles for Series/MythBusters/Season 6/MythBusters - S06E14 - Blind Driving.avi ... Nov 03 07:56:02 7 unlink: Got 1 metadata files. Nov 03 07:56:02 3 unlink: PHP Fatal Error: Object of class stdClass could not be converted to string; BT: greyhole[L647]

So, it happens at seemingly random times, often at the same places. I then have to start greyhole again, hoping that it will overcome the place where it encounters the error. It might take som tries, but it eventually moves on.

I'm running: Ubuntu Server 11.04 32-bit PHP 5.3.5-1ubuntu7.3 with Suhosin-Patch (cli) (built: Oct 13 2011 21:56:07) Greyhole 0.9.16

gboudreau commented 12 years ago

This is a known issue, where Greyhole would stop when it is supposed to just log a warning. You can replace your /usr/bin/greyhole using this command, to fix this issue: curl -o /usr/bin/greyhole https://raw.github.com/gist/1336243 Next time this would happen, you'll get a warning logged in your greyhole.log file instead, now pointing you to a different problem. Feel free to re-open a new issue if you need help debugging what you discover then.