Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
How to get Greyhole to work with the Ubuntu 14.04 (trusty) builds #107
Comments
|
Thanks for the detailed report. (If not, make sure to re-compile the VFS module; it changed in 0.9.42, and using an earlier module will make Greyhole pretty unhappy.) Thanks. |
ajw107
commented
Feb 9, 2014
|
Hi No problem. I've just done a apt-get update and got the 0.9.43 version On 09/02/2014 14:43, Guillaume Boudreau wrote:
|
|
Yesterday's git HEAD is OK. You can use what you compiled then. |
ajw107
commented
Feb 11, 2014
|
Yeah, no problem. I've attached it to this email. As Trusty is still On 09/02/2014 22:26, Guillaume Boudreau wrote:
|
ajw107
commented
Feb 11, 2014
|
Hya, I'm just including an updated greyhole.so. Today there was On 09/02/2014 22:26, Guillaume Boudreau wrote:
|
|
Hi, Instead of compiling your own module, use the packaged module.
Then everyone will be happy. Might want to report that to the Ubuntu team somehow. |
gboudreau
closed this
Feb 13, 2014
|
Nevermind. I'll file the bug myself, since I have all the info. |
ajw107 commentedFeb 9, 2014
Hi,
Just a quick message to let you know how to get Greyhole to work with the quite stable Trusty builds for Ubuntu (so many of my 13.10 Saucy problems seem to have gone, phew). A new version of samba is working, and you will keep on getting errors like this:
[2014/02/08 23:33:53.823752, 0] ../lib/util/modules.c:56(load_module)
Error loading module '/usr/lib/x86_64-linux-gnu/samba/vfs/greyhole.so': libsmbd_base.so: cannot open shared object file: No such file or directory
[2014/02/08 23:33:53.823834, 0] ../source3/smbd/vfs.c:184(vfs_init_custom)
error probing vfs module 'greyhole': NT_STATUS_UNSUCCESSFUL
[2014/02/08 23:33:53.823894, 0] ../source3/smbd/vfs.c:349(smbd_vfs_init)
smbd_vfs_init: vfs_init_custom failed for greyhole
[2014/02/08 23:33:53.823950, 0] ../source3/smbd/service.c:632(make_connection_snum)
vfs_init failed for service Docs
When you try and mount in linux you will also get the error:
CIFS VFS: cifs_mount failed w/return code = -6
Also when you try and open a share in Windows (or any OS really) you will be able to see all of the share names, but you will not be able to go further than that, and will be told the device does not exist. (sorry for being overly verbose with the errors, it's just to make it easier for someone to find this post if they are googling for the error).
This is because the greyhole.so vfs library for samba 4.0 needs to be recompiled for samber 4.0.13 for some reason (the one that comes with the package will not work). The instructions on how to do this are in the INSTALL file in the root directory of this repository. Just remember to do a:
sudo apt-get install samba4-dev python-dev
before you come to the configure part, or it will not configure.
When I compiled it using make, it didn;t actually complete, and bombed out with errors at the linking stage. Luckily the greyhole.so library was linked just before it bombed out, so you are still able to copy it into place.
When copying, I also found the library in two other places to those mentioned in the INSTALL file (this coming from greyhole installed through the greyhole repositroy and apt-get). Not sure if it matters, but I also copied over these too. The locations are:
/usr/lib/x86_64-linux-gnu/samba/vfs/greyhole.so
/usr/lib64/greyhole/greyhole-samba40.so
as well as
/usr/lib/samba/vfs/greyhole.so
/usr/lib64/samba/vfs/greyhole.so
mentioned in the INSTALL file
After that, either sudo reboot, or just run:
sudo initctl restart greyhole
sudo service smbd restart
sudo service nmbd restart
optionally:
sudo service mount_shares_locally
if you use that script too.
Then you are good to go.
Hope that helps someone out there....
Alex