(SOLVED) PHP Warnings and Errors when --going ??
Posted: Mon Jan 20, 2014 2:03 pm
I brought up the Unity UI on my Ubuntu 12.04 Amahi server a few days back and noticed that I had "impending failure" messages on a couple of my drives:
Both were 1TB drives, so I promptly ordered a 3TB WD RED drive... Once I installed that drive and added it to the pool, I did a "greyhole --going=/var/hda/files/drives/drive3/gh" and let her run.... I didn't check my log at the time, but after reading a few threads thought to check greyhole.conf and noticed the drive was no longer on the list and the going command was no longer running, so I figured it completed okay... I did notice the HDA UI still marked it as part of the pool which was strange, so I unchecked it there, put a hash tag in front of the drive in fstab, disconnected it, and rebooted in prep for for executing the going command on the next bad drive. Greyhole wanted to do an fsck which I let complete and then I executed the --going on the next drive... After some time, I checked greyhole.conf file and the 2nd bad drive is still showing, so I took a look at the logs and I'm not seeing the the "going" command running in the log's, so I did a search for the last "going" lines in the log and ran across some PHP Warnings... some of these are related to .../drives/drive4 being full.. (which is odd that it would try to populate that drive as there are others with plenty of space), but other PHP Warning look more alarming:
The last PHP Warning indicates it's a "fatal" error:
I'm obviously a bit alarmed and somewhat confused by these errors. I've been greyhole user for a few years now and been happy with it. Can anyone point me in the right direction here? I'd like to remove this bad drive, I'd like to ensure my data is secure, and I'd like to understand why I'm getting these errors and what I should be doing to prevent them in the future. Following is all the required troubleshooting info:
1. What version of Ubuntu, Samba & Greyhole are you running?
....
Code: Select all
/var/hda/files/drives/drive3
/var/hda/files/drives/drive2
Code: Select all
Jan 20 14:08:06 4 going: PHP Warning [8]: Object of class stdClass to string conversion in /usr/bin/greyhole on line 4845; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Jan 20 14:08:06 4 going: PHP Warning [8]: Object of class stdClass to string conversion in /usr/bin/greyhole on line 4845; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Jan 20 14:08:06 4 going: PHP Warning [8]: Object of class stdClass to string conversion in /usr/bin/greyhole on line 4845; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Jan 20 14:08:06 4 going: PHP Warning [2]: Invalid argument supplied for foreach() in /usr/bin/greyhole on line 4851; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Jan 20 14:08:06 4 going: PHP Warning [2]: Invalid argument supplied for foreach() in /usr/bin/greyhole on line 4866; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Jan 20 14:08:06 4 going: PHP Warning [8]: Undefined variable: expected_file_size in /usr/bin/greyhole on line 4896; BT: greyhole[L2135] gh_fsck(/var/hda/files/Music,Music) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure,Music,) => greyhole[L4666] gh_fsck(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,Music,) => greyhole[L4668] gh_fsck_file(/var/hda/files/Music/Audio Files/Processed/Alternative/The Cure/Galore,AlbumArt_{5F9853BE-2EDE-4AFA-A2A1-E201DF8FB559}_Small.jpg,link,landing_zone,Music,)
Code: Select all
Jan 20 14:08:06 3 going: PHP Fatal Error: Cannot unset string offsets; BT: greyhole[L4927]
1. What version of Ubuntu, Samba & Greyhole are you running?
Code: Select all
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
smbstatus
Samba version 3.6.3
greyhole -h
greyhole, version 0.9.22, for linux-gnu (noarch)