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

Greyhole quit working #265

Open
futz opened this issue Apr 4, 2021 · 6 comments
Open

Greyhole quit working #265

futz opened this issue Apr 4, 2021 · 6 comments
Labels

Comments

@futz
Copy link

futz commented Apr 4, 2021

Greyhole was working. I shut down the NAS for a few days. When I restarted it Greyhole wouldn't work. Actually, samba wasn't working either. I fooled around with things, upgraded server from 18.04 to 20.04. Added 'client min protocol = NT1' and 'server min protocol = NT1' to smb.conf. Now I see my greyhole shares in Network, but can't login.

trouble

@gboudreau
Copy link
Owner

I you can't login on your Greyhole shares, but can connect to non-Greyhole shares, look in the the greyhole.log just after restarting the daemon, and into the Samba logs.

Also, run this after restarting the daemon : https://github.com/gboudreau/Greyhole/wiki/GetHelp#gather-system-information

@gboudreau
Copy link
Owner

Of note : you seem to be running Greyhole with PHP 8, which was not tested. The error you posted above it related to that. Still, that won't prevent you from connecting to Greyhole shares.

@futz
Copy link
Author

futz commented Apr 4, 2021

Yup, I can mount non-greyhole shares, but not greyhole shares. Here is what the log said after restarting greyhole:

Apr 04 19:59:19 INFO daemon: Greyhole (version 0.15.5) daemon started.
Apr 04 19:59:19 INFO daemon: Checking MySQL tables...
Apr 04 19:59:19 DEBUG daemon: Loading metadata store backup directories...
Apr 04 19:59:19 DEBUG daemon:   Found 2 directories in the settings table.
Apr 04 19:59:19 DEBUG daemon: Checking symlink at /usr/lib/x86_64-linux-gnu/sam>
Apr 04 19:59:19 DEBUG daemon:   Is OK.
Apr 04 19:59:19 WARN daemon:   Greyhole VFS module (/usr/lib/x86_64-linux-gnu/s>
Apr 04 19:59:19 DEBUG read_smb_spool: Processing Samba spool...
Apr 04 19:59:19 ERROR read_smb_spool: PHP Fatal Error: Uncaught ArgumentCountEr>
Stack trace:
#0 /usr/bin/greyhole(4512): gh_error_handler()
#1 /usr/bin/greyhole(8392): SambaSpool::parse_samba_spool()
#2 /usr/bin/greyhole(8367): DaemonRunner->initialize()
#3 /usr/bin/greyhole(8417): DaemonRunner->run()
#4 {main}
  thrown; BT: greyhole[L5938]

And here is the URL from the information gatherer thing: http://ix.io/2V2g

@gboudreau
Copy link
Owner

Apr 04 20:03:31 WARN daemon: Greyhole VFS module (/usr/lib/x86_64-linux-gnu/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: /usr/share/greyhole/build_vfs.sh current

Do that (command at the end of the log).

@futz
Copy link
Author

futz commented Apr 4, 2021

Had a problem. Looking through the script right now.

futz@junker:/$ sudo /usr/share/greyhole/build_vfs.sh current
[sudo] password for futz: 
Installing build dependencies ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgnutls28-dev : Depends: libidn2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Compiling Greyhole VFS module for samba-4.11.6... 
  Downloading Greyhole source code... 
  Downloading Samba source code... 
/usr/share/greyhole/build_vfs.sh: line 95: cd: samba-4.11.6: No such file or directory

@gboudreau
Copy link
Owner

Looks like the script fails to install dependencies needed to compile the VFS module.
Command it uses is :

sudo apt-get -y install build-essential python3-dev libgnutls28-dev pkg-config

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

No branches or pull requests

2 participants