Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daemon: Greyhole VFS module warning #314

Open
tamorgen opened this issue Jul 5, 2023 · 2 comments
Open

daemon: Greyhole VFS module warning #314

tamorgen opened this issue Jul 5, 2023 · 2 comments

Comments

@tamorgen
Copy link

tamorgen commented Jul 5, 2023

Good morning,
I saw on my server that I'm getting the following error:

Jul 05 01:41:47 daemon: Greyhole VFS module (/usr/lib64/samba/vfs/greyhole.so) seems to be missing some required libraries. If you have issues connecting to your Greyhole-enabled shares, try to compile a new VFS module for Samba by running this command: sudo /usr/share/greyhole/build_vfs.sh current

I tried compiling as directed, but it fails:

Installing build dependencies...
Last metadata expiration check: 2:20:30 ago on Wed 05 Jul 2023 06:05:04 AM EDT.
Package patch-2.7.6-17.fc37.x86_64 is already installed.
Package gcc-12.3.1-1.fc37.x86_64 is already installed.
Package python3-devel-3.11.4-1.fc37.x86_64 is already installed.
Package gnutls-devel-3.8.0-2.fc37.x86_64 is already installed.
Package make-1:4.3-11.fc37.x86_64 is already installed.
Package rpcgen-1.4-10.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 2:20:36 ago on Wed 05 Jul 2023 06:05:04 AM EDT.
Package perl-CPAN-2.34-4.fc37.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
- Installing Parse::Yapp::Driver perl module
- Installing zlib-devel
Last metadata expiration check: 2:20:49 ago on Wed 05 Jul 2023 06:05:04 AM EDT.
Package zlib-devel-1.2.12-5.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
- Installing e2fsprogs-devel & heimdal-devel
Last metadata expiration check: 2:20:50 ago on Wed 05 Jul 2023 06:05:04 AM EDT.
Package e2fsprogs-devel-1.46.5-3.fc37.x86_64 is already installed.
Package heimdal-devel-7.8.0-5.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Compiling Greyhole VFS module for samba-4.17.8... 
  Downloading Greyhole source code
  Running 'configure'

Configuring Samba failed.
Hint : install the required dependencies. See step 3 in https://raw.githubusercontent.com/gboudreau/Greyhole/master/INSTALL

cat /usr/share/greyhole/vfs-build/samba-4.17.8/gh_vfs_build.log :
./configure --enable-debug --disable-symbol-versions --without-acl-support --without-ldap --without-ads --without-pam --without-ad-dc --disable-python --with-shared-modules=!vfs_snapper --without-json --without-libarchive --with-system-heimdalkrb5'

I ran the command in step 3, and I get the same results afterwards.

sudo yum -y install patch gcc python-devel gnutls-devel make rpcgen zlib-devel e2fsprogs-devel heimdal-devel
Last metadata expiration check: 2:31:28 ago on Wed 05 Jul 2023 06:05:04 AM EDT.
Package patch-2.7.6-17.fc37.x86_64 is already installed.
Package gcc-12.3.1-1.fc37.x86_64 is already installed.
Package python3-devel-3.11.4-1.fc37.x86_64 is already installed.
Package gnutls-devel-3.8.0-2.fc37.x86_64 is already installed.
Package make-1:4.3-11.fc37.x86_64 is already installed.
Package rpcgen-1.4-10.fc37.x86_64 is already installed.
Package zlib-devel-1.2.12-5.fc37.x86_64 is already installed.
Package e2fsprogs-devel-1.46.5-3.fc37.x86_64 is already installed.
Package heimdal-devel-7.8.0-5.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

The shares appear to work, however, I would like to determine 1) why I a getting the error and b) why the configure command is failing.

[tmorgenthaler@galactica docs]$ cat /etc/fedora-release 
Fedora release 37 (Thirty Seven)
[tmorgenthaler@galactica docs]$ sudo smbstatus

Samba version 4.17.8
@gboudreau
Copy link
Owner

Try ldd /usr/lib64/samba/vfs/greyhole.so
This should list all required libraries, and the error is because some are not found.

As for why it fails, can you take a look at the end of /usr/share/greyhole/vfs-build/samba-4.17.8/gh_vfs_build.log, there should be an error somewhere in there.

@tamorgen
Copy link
Author

tamorgen commented Jul 5, 2023

Try ldd /usr/lib64/samba/vfs/greyhole.so This should list all required libraries, and the error is because some are not found.

As for why it fails, can you take a look at the end of /usr/share/greyhole/vfs-build/samba-4.17.8/gh_vfs_build.log, there should be an error somewhere in there.

Okay, thanks.

sudo ldd /usr/lib64/samba/vfs/greyhole.so | grep 'not found'
ldd: warning: you do not have execution permission for `/usr/lib64/samba/vfs/greyhole.so'
        libsmbd-base-samba4.so => not found
        libtalloc-samba4.so => not found
        libtevent-samba4.so => not found
        libsamba-debug-samba4.so => not found

I've attached gh_vfs_build.log. There are a log of 'not found' comments in there. I don't know if that is normal or not. Like I said, greyhole appears to work and the shares are accessible, which I would think if there was an issue would not be the case.

gh_vfs_build.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants