Page 1 of 2

Greyhole won't start after Amahi re-install

Posted: Sat Apr 07, 2012 8:40 pm
by theyoungsdotca
I needed to change the domain name I use on my local LAN which required me to delete my hda from Amahi's list & re-install with a new install code. After doing so, my greyhole server won't start.

When I bring up the web interface & check Setup --> Settings --> Servers it shows Greyhole as stopped. Trying to start the server from the command line with "#greyhole -D" fails with a "Can't describe tasks with query: DESCRIBE tasks - Error: Table 'greyhole.tasks' doesn't exist" error.

detail from http://wiki.amahi.org/index.php/Greyhol ... leshooting is as follows

#uname -r; rpm -q samba hda-greyhole
samba-3.5.5-68.fc14.1.i686
hda-greyhole-0.9.2-1.i386

#fpaste /etc/samba/smb.conf
http://fpaste.org/4ZOY/

#fpaste /etc/greyhole.conf
http://fpaste.org/1YVV/

#mount; fdisk -l; df -h; greyhole --stats
http://fpaste.org/w6AT/

#mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
id path minimum_free created_at updated_at
8 /var/hda/files/drives/drive1 10 2012-04-07 23:15:08 2012-04-07 23:15:08
9 /var/hda/files/drives/drive2 10 2012-04-07 23:15:17 2012-04-07 23:15:17
10 /var/hda/files/drives/drive3 10 2012-04-07 23:15:19 2012-04-07 23:15:19

#mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
http://fpaste.org/jHiD/

#greyhole --view-queue
Can't describe tasks with query: DESCRIBE tasks - Error: Table 'greyhole.tasks' doesn't exist

#tail /var/log/greyhole.log
Apr 07 17:05:54 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:10:45 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:15:54 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:17:25 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:27:25 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:37:25 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:45:42 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:45:43 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 17:56:06 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
Apr 07 18:06:06 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.

Re: Greyhole won't start after Amahi re-install

Posted: Tue Apr 17, 2012 7:16 am
by ciscoh
did this get resolved?

i think you simply need to add the drive to your pool. Greyhole wont run unless it has a drive to use

Re: Greyhole won't start after Amahi re-install

Posted: Tue Apr 17, 2012 11:15 am
by sgtfoo
Apr 07 18:06:06 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
There's your answer. Just add a share folder to the pool and it's running!

Re: Greyhole won't start after Amahi re-install

Posted: Tue Apr 17, 2012 6:27 pm
by theyoungsdotca
did this get resolved?

i think you simply need to add the drive to your pool. Greyhole wont run unless it has a drive to use
Thanks for your interest. No this is not resolved.
I have three drives in my pool.

http://fpaste.org/1YVV/
...
storage_pool_directory = /var/hda/files/drives/drive1/gh, min_free: 10gb
storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gb
storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb
...

Re: Greyhole won't start after Amahi re-install

Posted: Tue Apr 17, 2012 6:39 pm
by theyoungsdotca
Apr 07 18:06:06 4 daemon: You have no storage_pool_directory defined. Greyhole can't run.
There's your answer. Just add a share folder to the pool and it's running!
I have 6 share folders in the pool of three drives, but it's not running.

http://fpaste.org/w6AT/
...
num_copies[Books] = 1
num_copies[Pictures] = 1
num_copies[Movies] = 1
num_copies[Music] = 1
num_copies[Docs] = 1
num_copies[TV] = 1

Re: Greyhole won't start after Amahi re-install

Posted: Wed Apr 18, 2012 4:54 am
by bigfoot65
Maybe try reinstalling Greyhole as something might have broke. You could also consider updating to the latest version. Many users have done so with no issues.

http://wiki.amahi.org/index.php/Greyhole_updating

Re: Greyhole won't start after Amahi re-install

Posted: Wed Apr 18, 2012 10:46 pm
by theyoungsdotca
If you feel re-installing greyhole is safe, please direct me to some documentation explaining how to do this manually. Our wiki simply covers it's use, :? unless I've overlooked something.

I don't want to make things worse because I don't have the space to move my data elsewhere before I make any more non-undo-able moves. No disrespect intended, I just need to move cautiously here. I appreciate all you do around here.

Re: Greyhole won't start after Amahi re-install

Posted: Thu Apr 19, 2012 3:46 am
by gboudreau
If you feel re-installing greyhole is safe, please direct me to some documentation explaining how to do this manually. Our wiki simply covers it's use, :? unless I've overlooked something.

I don't want to make things worse because I don't have the space to move my data elsewhere before I make any more non-undo-able moves. No disrespect intended, I just need to move cautiously here. I appreciate all you do around here.
The link bigfoot65 gave in his last message is a direct link to instructions on how to update to the latest version of Greyhole. Follow those instructions.

Re: Greyhole won't start after Amahi re-install

Posted: Thu Apr 19, 2012 5:59 pm
by theyoungsdotca
OK, I got nervous when I read the disclaimer he linked to. "If you follow this guide to update your GH install manually you do so on your own risk. If it breaks, it's on you."

Will give it a whirl. Thanks for your time.

Re: Greyhole won't start after Amahi re-install

Posted: Thu Apr 19, 2012 6:12 pm
by theyoungsdotca
Updated to 0.9-22-1

I'm still getting the "Can't describe tasks with query: DESCRIBE tasks - Error: Table 'greyhole.tasks' doesn't exist" error msg when I use #greyhole -D from the command line, and trying to restart from the web interface has no effect.