SOLVED: Troubleshooting issue

davymac
Posts: 33
Joined: Sun Apr 15, 2012 2:27 am

SOLVED: Troubleshooting issue

Postby davymac » Fri May 09, 2014 5:22 pm

Not sure if this is the correct section to be placing this but have an issue which may or may not be greyhole but tried to do some digging around with no joy. Not 100% sure where to start but came back from being away for a couple of weeks and had to restart my server as it was not recognised on my network. Went to the dash board and got an error indicating that the drive may be full before it jumped to another page indicating I could not access the server.

I am pretty much a Noob with linux but had an amahi 6 server before updating to 7 a few months back, the data drives were taken from the amahi 6 server and have been running with no issues.

df -h returned the following
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora_h111-root 50G 47G 0 100% /
devtmpfs 7.6G 0 7.6G 0% /dev
tmpfs 7.6G 84K 7.6G 1% /dev/shm
tmpfs 7.6G 604K 7.6G 1% /run
tmpfs 7.6G 0 7.6G 0% /sys/fs/cgroup
tmpfs 7.6G 64K 7.6G 1% /tmp
/dev/sdb1 1.8T 1.5T 231G 87% /var/hda/files
/dev/sdc1 1.8T 1.5T 238G 87% /var/hda/files/drives/drive2
/dev/sdd1 2.7T 2.4T 239G 91% /var/hda/files/drives/drive3
/dev/sda1 477M 81M 368M 18% /boot
/dev/mapper/fedora_h111-home 402G 75M 381G 1% /home
none 4.0M 0 4.0M 0% /var/spool/greyhole/mem

Done a bit of digging and then typed greyhole --stats and got this

PHP Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[HY000]: General error: 1021 Disk full (/var/tmp/#sql_580_0); waiting for someone to free some space...' in /usr/bin/greyhole:491
Stack trace:
#0 /usr/bin/greyhole(517): DB::execute('DESCRIBE tasks', Array)
#1 /usr/bin/greyhole(562): DB::getAll('DESCRIBE tasks')
#2 /usr/bin/greyhole(472): DB::migrate()
#3 /usr/bin/greyhole(3101): DB::connect()
#4 /usr/bin/greyhole(3065): CommandLineHelper->getRunner()
#5 /usr/bin/greyhole(3440): CommandLineHelper->processCommandLine()
#6 {main}
thrown in /usr/bin/greyhole on line 491

Didn't have a clue what was happening so thought before asking for advice checked - uname -r; rpm -q samba hda-greyhole

3.13.9-100.fc19.x86_64
samba-4.0.16-1.fc19.x86_64
package hda-greyhole is not installed

/etc.greyhole.conf
bash: /etc.greyhole.conf: No such file or directory

and then also tried this systemctl status greyhole.service
greyhole.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)

I thought this was very strange as I know greyhole was installed when I added the data drives and had been working fine.

It's mainly used for serving my media and I have subsonic and Plex installed. The strange thing is that before I tried the restart Plex appeared to be running as my niece had been accessing it over the internet earlier today. I tried to access the server from outside my network with the amahi app earlier in the week and could not access it nor could I access the subsonic server but Plex was working on my iPad but it's not running now as the server does not seem to be fully booting up.

Any help would be greatly appreciated.
Last edited by davymac on Fri May 09, 2014 5:58 pm, edited 1 time in total.

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

Re: Troubleshooting issue

Postby bigfoot65 » Fri May 09, 2014 5:50 pm

If you are running Amahi 7 (Fedora 19), then hda-greyhole would have to be installed. We only package it for Amahi 7.

Can you try this:

Code: Select all

yum list hda-greyhole
It should show installed.

Also if you checked for /etc/greyhole.conf file and it's absent, then there is a problem. That may be why the greyhole --stats command is throwing an error.

Was there a power outage? This can corrupt the disk and often cause similar behavior.
ßîgƒσστ65
Applications Manager

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

davymac
Posts: 33
Joined: Sun Apr 15, 2012 2:27 am

Re: Troubleshooting issue

Postby davymac » Fri May 09, 2014 6:02 pm

Hi Bigfoot

yum list hda-greyhole
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fedora: ftp.tudelft.nl
* rpmfusion-free: mirrors.coreix.net
* rpmfusion-free-updates: mirrors.coreix.net
* rpmfusion-nonfree: mirrors.coreix.net
* rpmfusion-nonfree-updates: mirrors.coreix.net
* updates: ftp.uni-siegen.de
Error: No matching Packages to list
As far as I'm aware there wasn't a power outage as I've got another machine that runs torrents which was still running fine when I came home.

The operating system was installed on a brand new disk when I set up Amahi7.
Last edited by davymac on Fri May 09, 2014 6:17 pm, edited 1 time in total.

davymac
Posts: 33
Joined: Sun Apr 15, 2012 2:27 am

Re: Troubleshooting issue

Postby davymac » Fri May 09, 2014 6:09 pm

I also ran the troubleshooting
Attachments
Troubleshoot.txt
(10.18 KiB) Downloaded 227 times

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

Re: Troubleshooting issue

Postby bigfoot65 » Fri May 09, 2014 6:17 pm

Is this 32- or 64-bit? Can you also try this:

Code: Select all

yum clean all
Then try running:

Code: Select all

yum list hda-greyhole
Noticed in your smb.conf file that Greyhole is not properly set up. There should be the following lines added to each share:
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
Recommend you check out the Greyhole setup instructions for Amahi 7 and ensure you have accurately completed all the steps.
https://wiki.amahi.org/index.php/Amahi_ ... hole_Setup

Also in future, please do not post such a long message. Add the info to a file and attach it to the post.
ßîgƒσστ65
Applications Manager

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

davymac
Posts: 33
Joined: Sun Apr 15, 2012 2:27 am

Re: Troubleshooting issue

Postby davymac » Fri May 09, 2014 6:27 pm

I'm sure i followed the guide when setting it up and it was running ok, here is what I got from the prompts
yum list hda-greyhole
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fedora: ftp.tudelft.nl
* rpmfusion-free: mirrors.coreix.net
* rpmfusion-free-updates: mirrors.coreix.net
* rpmfusion-nonfree: mirrors.coreix.net
* rpmfusion-nonfree-updates: mirrors.coreix.net
* updates: ftp.uni-siegen.de
Error: No matching Packages to list
[root@h111 davymac]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: amahi fedora rpmfusion-free rpmfusion-free-updates
: rpmfusion-nonfree rpmfusion-nonfree-updates updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@h111 davymac]# yum list hda-greyhole
Loaded plugins: fastestmirror
amahi | 2.9 kB 00:00
fedora/19/x86_64/metalink | 34 kB 00:00
fedora | 4.2 kB 00:00
rpmfusion-free | 3.3 kB 00:00
rpmfusion-free-updates | 3.3 kB 00:00
rpmfusion-nonfree | 3.3 kB 00:00
rpmfusion-nonfree-updates | 3.3 kB 00:00
updates/19/x86_64/metalink | 27 kB 00:00
updates | 4.9 kB 00:00
(1/3): amahi/19/primary_db | 89 kB 00:00
(2/3): updates/19/x86_64/primary_db | 11 MB 00:02
(3/3): fedora/19/x86_64/primary_db | 17 MB 00:03
(1/4): rpmfusion-free-updates/19/x86_64/primary_db | 329 kB 00:00
(2/4): rpmfusion-nonfree-updates/19/x86_64/primary_db | 246 kB 00:00
(3/4): rpmfusion-nonfree/19/x86_64/primary_db | 149 kB 00:00
(4/4): rpmfusion-free/19/x86_64/primary_db | 440 kB 00:00
Determining fastest mirrors
* fedora: mirror.bytemark.co.uk
* rpmfusion-free: mirror.nl.leaseweb.net
* rpmfusion-free-updates: mirror.nl.leaseweb.net
* rpmfusion-nonfree: mirror.nl.leaseweb.net
* rpmfusion-nonfree-updates: mirror.nl.leaseweb.net
* updates: mirror.bytemark.co.uk
Error: No matching Packages to list

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

Re: Troubleshooting issue

Postby bigfoot65 » Fri May 09, 2014 6:34 pm

Duh, it's not called hda-greyhole. It's amahi-greyhole. Did you get that from a wiki page? If so, please tell me which one so I can fix it.
ßîgƒσστ65
Applications Manager

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

davymac
Posts: 33
Joined: Sun Apr 15, 2012 2:27 am

Re: Troubleshooting issue

Postby davymac » Fri May 09, 2014 6:45 pm

i copied your instruction lol
Then try running:
Code:
yum list hda-greyhole
here is the correct instruction
yum list amahi-greyhole
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fedora: mirror.bytemark.co.uk
* rpmfusion-free: mirror.nl.leaseweb.net
* rpmfusion-free-updates: mirror.nl.leaseweb.net
* rpmfusion-nonfree: mirror.nl.leaseweb.net
* rpmfusion-nonfree-updates: mirror.nl.leaseweb.net
* updates: mirror.bytemark.co.uk
Installed Packages
amahi-greyhole.x86_64 0.9.49-2 @amahi
Available Packages
amahi-greyhole.i386 0.9.49-1 amahi
amahi-greyhole.i686 0.9.49-2 amahi

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

Re: Troubleshooting issue

Postby bigfoot65 » Fri May 09, 2014 6:50 pm

Ok, so all looks as it should.

I copied what you originally posted, so did not catch the mistake.
Didn't have a clue what was happening so thought before asking for advice checked - uname -r; rpm -q samba hda-greyhole
That's why I presumed you copied it from the wiki somewhere. If so, please let me know where.

Have you tried:

Code: Select all

systemctl restart amahi-greyhole.service
ßîgƒσστ65
Applications Manager

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

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

Re: Troubleshooting issue

Postby bigfoot65 » Fri May 09, 2014 6:52 pm

This is the Greyhole troubleshooting page in the wiki that you should be following:
https://wiki.amahi.org/index.php/Greyho ... leshooting
ßî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: Bing [Bot] and 30 guests