SOLVED: Problem accessing shares on new Amahi 11 install

bt107
Posts: 88
Joined: Fri Aug 06, 2010 8:40 pm

Re: Problem accessing shares on new Amahi 11 install

Postby bt107 » Sat Oct 06, 2018 12:32 pm

The samba-module/bin/4.7/greyhole-x86_64.so file doesn't exist on my system that I can find. Where should it be located?

bt107
Posts: 88
Joined: Fri Aug 06, 2010 8:40 pm

Re: Problem accessing shares on new Amahi 11 install

Postby bt107 » Sat Oct 06, 2018 12:48 pm

From /var/log/greyhole.log :
Oct 06 15:04:15 INFO daemon: The Samba daemon will now restart...
Oct 06 15:06:38 INFO daemon: Greyhole (version 0.10.15) daemon started.
Oct 06 15:06:38 INFO daemon: Optimizing MySQL tables...
Oct 06 15:06:39 WARN daemon: Greyhole VFS module for Samba was missing, or the wrong version for your Samba. It will now be replaced with a symlink to /usr/lib64/greyhole/greyhole-samba47.so
Oct 06 15:06:39 WARN daemon: PHP Warning [2]: symlink(): No such file or directory in /usr/bin/greyhole on line 1760; BT: greyhole[L3635] run() => greyhole[L3601] initialize() => greyhole[L3624] samba_check_vfs() => greyhole[L4980] gh_symlink(/usr/lib64/greyhole/greyhole-samba47.so,/usr/lib64/samba/vfs/greyhole.so) => greyhole[L1760] symlink(/usr/lib64/greyhole/greyhole-samba47.so,/usr/lib64/samba/vfs/greyhole.so)
Oct 06 15:06:39 INFO daemon: The Samba daemon will now restart...

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

Re: Problem accessing shares on new Amahi 11 install

Postby bigfoot65 » Sat Oct 06, 2018 1:26 pm

Not sure as I am away and can’t look at my machine.

Might try:

Code: Select all

sudo dnf reinstall amahi-Greyhole
Watch the output and check Greyhole log file for errors.
ßîgƒσστ65
Applications Manager

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

bt107
Posts: 88
Joined: Fri Aug 06, 2010 8:40 pm

Re: Problem accessing shares on new Amahi 11 install

Postby bt107 » Sat Oct 06, 2018 6:57 pm

I think I got it. The problem was that greyhole-samba47.so doesn't get installed in /usr/lib64/greyhole for some reason. When greyhole starts and tries to initialize a samba link it fails. Samba then creates a symlink for greyhole-samba47.so but it doesn't point anywhere because the target file doesn't exist. To try and fix this I went to the Greyhole site and downloaded greyhole-x86_64.so from the greyhole- 0.10.15.tar.gz archive. I copied this file to /usr/lib64/greyhole and renamed it to greyhole-samba47.so. Then I was able to recreate the symlink.

Code: Select all

ln -s /usr/lib64/greyhole/greyhole-samba47.so /usr/lib64/samba/vfs/greyhole.so
Restart greyhole

Code: Select all

systemctl restart amahi-greyhole
I was then able to access the greyhole shares from a windows client. Seems to be working.

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

Re: Problem accessing shares on new Amahi 11 install

Postby bigfoot65 » Sat Oct 06, 2018 7:38 pm

Great job on finding the issue.

We will repackage Greyhole so that file is included.

Presume we can mark this as resolved.
ßîgƒσστ65
Applications Manager

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

bt107
Posts: 88
Joined: Fri Aug 06, 2010 8:40 pm

Re: Problem accessing shares on new Amahi 11 install

Postby bt107 » Sun Oct 07, 2018 11:30 am

Yep. It seems to be working ok now. Thanks for your help.

Who is online

Users browsing this forum: No registered users and 13 guests