Changes

From Amahi Wiki
Jump to: navigation, search
1,103 bytes added ,  22:12, 26 December 2020
no edit summary
<b>NOTE:</b> For Fedora 19, all Greyhole commands must be executed as root user. Ubuntu requires commands be prefixed with sudo.__TOC__
Gathering Good Troubleshooting Information when reporting an issue with Greyhole, or asking for help regarding <b>NOTE:</b> All Greyhole. You should provide the following (execute the given commands must be executed as ''root)'' user or prefixed with <code>sudo</code>.
Gathering good troubleshooting information when reporting an issue with Greyhole, or asking for help. You should provide the following in a text file or use fpaste or [https://pastebin.com/ Pastebin] (please '''DO NOT''' post excessive amounts of text content).  Provide the info below to [https://greyhole.freshdesk.com/support/home Greyhole support on Freshdesk], not [https://forums.amahi.org Amahi Forums]: 1. What version of FedoraOS, Samba & Greyhole are you running? <blockquote><u>Fedora:</u></blockquote>
uname -r; rpm -q samba amahi-greyhole
 
<blockquote><u>Ubuntu:</u></blockquote>
uname -r; dpkg -s samba greyhole
2. The content of the /etc/samba/smb.conf & /etc/greyhole.conf files (provide paste URLs):
fpaste /etc/samba/smb.conf
fpaste /etc/greyhole.conf
 
::'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 and greater.
<blockquote><u>Ubuntu:</u></blockquote>
4. The list drives in your storage pool (per Amahi platform):
mysql -u root -phda p -e "select * from disk_pool_partitions" hda_production ::'''WARNING:''' Please see [[Database Root Password]] for the appropriate login password.
5. A list of the directories on the root of the drives included in your storage pool, obtained with the following command (provide a paste URL):
<blockquote><u>Fedora</u></blockquote>
mysql -u root -phda p -e "select concat(path, '/gh') from disk_pool_partitions" \
hda_production | grep -v 'concat(' | xargs ls -la | fpaste
 
::'''WARNING:''' Please see [[Database Root Password]] for the appropriate login password.
<blockquote><u>Ubuntu</u></blockquote>
6. The Greyhole work queue:
greyhole --view-queue
:If the above command returns nothing, execute the following to see the problem:
tail /var/log/greyhole.log
greyhole --debug filename
== Clearing The Greyhole Work Queue ==
I've not seen too many other reports of this occuring on the internet, so I suspect it's something that may be specific to my setup. However, the fix is pretty general, so I'm documenting it here for others to use.
Stop the greyhole daemon<br />
<blockquote><u>Fedora 19</u></blockquote>
systemctl stop amahi-greyhole.service
Restart the greyhole daemon<br />
<blockquote><u>Fedora 19</u></blockquote>
systemctl start amahi-greyhole.service
greyhole --fsck
===Queue Still Stuck===
If you've done the above, and all you've accomplished is another stuck fsck, it's time to get serious. The only solution I've found is to blow away the landing zone and then schedule the fsck with an empty landingzone. Greyhole will rebuild your file links from the files in your storage drives, so you won't lose anything except the data that was waiting to be moved to your storage drives. The steps below will mitigate even that loss.
If you run into any trouble with the above, post it in the [http://forums.amahi.org/viewforum.php?f=39&sid=f676fa2944ab7d2ccfc8901ee731b6fe Amahi forums] '''and''' PM me (U=doczombie) the link to your forum post if you like (PM's without a link to a forum post are liable to be ignored).
===Database Table Error Table :greyhole.tasks does not exist === Can't describe tasks with query: DESCRIBE tasks - Error: Table 'greyhole.tasks' doesn't exist}}
If the Greyhole service will not start, or you see this message when gathering info for support, it is possible that the Greyhole database was not created.
The following MySQL commands command will create the database:  hda-create-db-and-user greyhole mysql -ugreyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql Restart the greyhole daemon<br /> <blockquote><u>Fedora</u></blockquote> systemctl start amahi-greyhole.service <blockquote><u>Ubuntu</u></blockquote> service greyhole start ==Drive is OFFLINE==Check that the ''/gh'' folder is created on the drive. == Out Of iNodes ==If you run out of iNodes due to the size of the Greyhole Spool directory, the following should fix the problem: mv /var/spool/greyhole /var/spool/greyhole.bak mkdir -p /var/spool/greyhole chmod 777 /var/spool/greyhole /usr/bin/greyhole --create-mem-spool systemctl restart amahi-greyhole.service greyhole -f Reference: [https://github.com/gboudreau/Greyhole/issues/123 Greyhole Issue 123]
mysql -u root -phda -e 'create database greyhole'
mysql -u root -phda -e "grant all on greyhole.* to greyhole@'localhost'
identified by 'greyhole'"
mysql -u greyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql
service greyhole restart
Back to the [[GreyholeTroubleshooting]] page.
12,424

edits