Greyhole on Amahi 7

Strangename
Posts: 31
Joined: Tue Feb 15, 2011 5:41 pm

Re: Greyhole on Amahi 7

Postby Strangename » Thu Aug 08, 2013 2:44 pm

Hi,

I noticed that Cpg had updated his comments however I have experienced a few problems.

I followed the suggestions as above but was getting an error in the Greyhole log file that Samba didn't know of the existing share share so I edited the smb.conf file adding

Code: Select all

dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole
for each share. That was fine but now I am getting the following errors:

Code: Select all

[root@localhost ~]# tail -f /var/log/greyhole.log Aug 08 21:39:11 2 daemon: Can't connect to mysql database. Aug 08 21:40:19 4 status: PHP Unknown Error [8192]: mysql_connect(): The mysql extension is deprecated and will be removed in the f uture: use mysqli or PDO instead in /usr/bin/greyhole on line 435 Aug 08 21:40:19 4 status: PHP Warning [2]: mysql_connect(): Access denied for user 'greyhole_user'@'localhost' (using password: YES ) in /usr/bin/greyhole on line 435; BT: greyhole[L2025] db_connect() => greyhole[L435] mysql_connect(localhost,greyhole_user,89y63j dwe) Aug 08 21:40:19 2 status: Can't connect to mysql database. Aug 08 22:15:01 4 fsck: PHP Unknown Error [8192]: mysql_connect(): The mysql extension is deprecated and will be removed in the fut ure: use mysqli or PDO instead in /usr/bin/greyhole on line 435 Aug 08 22:15:01 4 fsck: PHP Warning [2]: mysql_connect(): Access denied for user 'greyhole_user'@'localhost' (using password: YES) in /usr/bin/greyhole on line 435; BT: greyhole[L2025] db_connect() => greyhole[L435] mysql_connect(localhost,greyhole_user,89y63jdw e)
I looked at the install file that comes with the latest version of Greyhole and it says to setup the MySql database with the following:

Code: Select all

# Remove the -p parameter if your MySQL root user doesn't require a password for local connections. mysql -u root -p -e "create database greyhole; grant all on greyhole.* to greyhole_user@localhost identified by '89y63jdwe';" mysql -u greyhole_user -p89y63jdwe greyhole < /usr/share/greyhole/schema-mysql.sql
Any thoughts from anyone - if I uninstall MySQL should I use the MySQL from Cpg or from Guillaume?

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

Re: Greyhole on Amahi 7

Postby bigfoot65 » Thu Aug 08, 2013 2:54 pm

Have you updated MySQL to the latest? I had no problems.

EDIT: Just noticed I have the same warning. Might need to file a bug on this one.
ßîgƒσστ65
Applications Manager

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

Strangename
Posts: 31
Joined: Tue Feb 15, 2011 5:41 pm

Re: Greyhole on Amahi 7

Postby Strangename » Thu Aug 08, 2013 3:55 pm

Did a general yum update after installing from the Express disc that's all.

Basically, clean install of Amahi 7 - updated system - edited fstab and plugged in data drives - created MySQL DB - applied DB schema - edited greyhole.conf - updated smb.conf

Greyhole doesn't show in the server section but the MySQL and Samba servers show a green light. A bit stumped at the moment.

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

Re: Greyhole on Amahi 7

Postby bigfoot65 » Thu Aug 08, 2013 4:46 pm

Greyhole has been completely separated from Amahi, so there will be no server listed. I have a Greyhole app I created to update to the latest that should add the server feature to Amahi.

I have not tested it yet, but should be a simple install.
ßîgƒσστ65
Applications Manager

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

Strangename
Posts: 31
Joined: Tue Feb 15, 2011 5:41 pm

Re: Greyhole on Amahi 7

Postby Strangename » Thu Aug 08, 2013 4:53 pm

Nice. Will have one last attempt else will wait for your app - thanks

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

Re: Greyhole on Amahi 7

Postby bigfoot65 » Thu Aug 08, 2013 6:27 pm

The app is done, tested, and appears to work good. PM me your username if you want to test it.
ßîgƒσστ65
Applications Manager

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

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Greyhole on Amahi 7

Postby kikkegek » Fri Aug 09, 2013 2:54 am

@strangename
I contacted cpg on the IRC channel and he saw that you used a different user "greyhole_user" in stead of what he quoted
hda-create-db-and-user greyhole
that might be the problem?

can you confirm and please test?

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Greyhole on Amahi 7

Postby kikkegek » Fri Aug 09, 2013 3:19 am

I have done exactly what CPG has quoted and get no errors, other then that I didnt configure a storagepool yet.
Aug 09 12:16:00 4 stats: You have no storage_pool_drive defined. Greyhole can't run.
Aug 09 12:16:00 2 stats: Config file parsing failed. Exiting.
Aug 09 12:16:02 4 status: You have no storage_pool_drive defined. Greyhole can't run.
Aug 09 12:16:02 2 status: Config file parsing failed. Exiting.
I also fixed the PHP error by changing the timezone in the /etc/php.ini file.

for me into
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =Europe/Amsterdam
will add my drives later today, should be just fine............ I HOPE

Strangename
Posts: 31
Joined: Tue Feb 15, 2011 5:41 pm

Re: Greyhole on Amahi 7

Postby Strangename » Fri Aug 09, 2013 4:43 am

@kikkegek

Think you got it - wrong user - I sat for ages looking at the problem and I didn't see it - thank you.

Will test Bigfoot's app though - good chance with a clean install to do something productive!

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Greyhole on Amahi 7

Postby kikkegek » Fri Aug 09, 2013 4:52 am

@kikkegek

Think you got it - wrong user - I sat for ages looking at the problem and I didn't see it - thank you.

Will test Bigfoot's app though - good chance with a clean install to do something productive!
I'll see if I can move my drives to my new system this weekend. and report back here.

pretty curious if your setup now works!

Who is online

Users browsing this forum: No registered users and 13 guests