Greyhole won't start after Amahi re-install

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

Greyhole won't start after Amahi re-install

Postby theyoungsdotca » Sat Apr 07, 2012 8:40 pm

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.

User avatar
ciscoh
Posts: 158
Joined: Thu Mar 10, 2011 1:53 pm

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

Postby ciscoh » Tue Apr 17, 2012 7:16 am

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

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

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

Postby sgtfoo » Tue Apr 17, 2012 11:15 am

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!
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

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

Postby theyoungsdotca » Tue Apr 17, 2012 6:27 pm

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
...

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

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

Postby theyoungsdotca » Tue Apr 17, 2012 6:39 pm

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

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

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

Postby bigfoot65 » Wed Apr 18, 2012 4:54 am

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
ßîgƒσστ65
Applications Manager

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

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

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

Postby theyoungsdotca » Wed Apr 18, 2012 10:46 pm

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.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Thu Apr 19, 2012 3:46 am

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.
- Guillaume Boudreau

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

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

Postby theyoungsdotca » Thu Apr 19, 2012 5:59 pm

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.

theyoungsdotca
Posts: 33
Joined: Fri Nov 11, 2011 1:32 pm

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

Postby theyoungsdotca » Thu Apr 19, 2012 6:12 pm

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.

Who is online

Users browsing this forum: No registered users and 17 guests