(SOLVED) PHP Warnings and Errors when --going ??

jbmia
Posts: 67
Joined: Sun Nov 07, 2010 11:59 am

(SOLVED) PHP Warnings and Errors when --going ??

Postby jbmia » 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:

Code: Select all

/var/hda/files/drives/drive3 /var/hda/files/drives/drive2
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:

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,)
The last PHP Warning indicates it's a "fatal" error:

Code: Select all

Jan 20 14:08:06 3 going: PHP Fatal Error: Cannot unset string offsets; BT: greyhole[L4927]
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

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)
....
Last edited by jbmia on Thu Jan 23, 2014 9:18 pm, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: PHP Warnings and Errors when --going ??

Postby bigfoot65 » Tue Jan 21, 2014 8:26 am

Might want to updgrade Greyhole to the latest version, 0.9.39 I believe. There were some issues fixed after 0.9.22 that might apply here.

There is guidance in the wiki to help. After that, then see if the issue persists.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

jbmia
Posts: 67
Joined: Sun Nov 07, 2010 11:59 am

Re: (SOLVED) PHP Warnings and Errors when --going ??

Postby jbmia » Thu Jan 23, 2014 9:32 pm

Yes, it does it does appear the upgrade to the new release of Greyhole resolved this issue.

I did an apt-get update and then an apt-get dist-upgrade and ran into some issues related to some ia32 libraries, but once those were resolved, the upgrade went okay and the --going on that drive completed okay..

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: (SOLVED) PHP Warnings and Errors when --going ??

Postby bigfoot65 » Fri Jan 24, 2014 6:07 am

Good to hear. We hope to keep Greyhole updated on Amahi 7 to prevent such issues. Since we will now be building our own hda-greyhole packages, we have better control and testing of how they work with Amahi.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 57 guests