Replies: 9 comments 3 replies
-
Hi, Are you saying you are renaming files directly in the LZ? You should never do that. All file changes should occur through Samba, never directly in the LZ. If you are indeed always working through Samba:
Cheers. |
Beta Was this translation helpful? Give feedback.
-
No, I'm doing it through Samba. When I do it through Samba, it changes the file name in the LZ, but not on the actual drive. I try and run fsck, and that's when it changes the LZ file name back. I'm having problems finding the instance in the /var/log/greyhole.log file, however I did see this: Sep 03 01:16:49 WARN 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: /usr/share/greyhole/build_vfs.sh current I've seen this before, and tried recompiling. Could this cause the behavior I'm seeing? |
Beta Was this translation helpful? Give feedback.
-
I also found this in the logs from this morning, after the server did it's daily updates/reboot: Sep 04 01:25:11 WARN read_smb_spool: PHP Warning [2]: Error while sending QUERY packet. PID=157883 in /usr/bin/greyhole on line 689; BT: greyhole[L8015] run() => greyhole[L7333] parse_samba_spool() => greyhole[L4277] acquireLock(read_smb_spool,5) => greyhole[L764] getFirstValue(SELECT GET_LOCK(:name, :timeout),array ( 'name' => 'read_smb_spool', 'timeout' => 5,)) => greyhole[L721] getFirst(SELECT GET_LOCK(:name, :timeout),array ( 'name' => 'read_smb_spool', 'timeout' => 5,)) => greyhole[L713] execute(SELECT GET_LOCK(:name, :timeout),array ( 'name' => 'read_smb_spool', 'timeout' => 5,)) => greyhole[L689] execute() I just ran the build_vfs.sh current command and it completed successfully. I restarted both samba and greyhole, and I didn't see this warning pop up, so maybe the build command fixed the issue. I'll have to test renaming a file this evening when I can access the SMB shares. |
Beta Was this translation helpful? Give feedback.
-
If the files are not renamed in the storage pool drives, that means the Greyhole daemon didn't "see" the files being renamed. |
Beta Was this translation helpful? Give feedback.
-
Alright, I kept a terminal window up while renaming the file, and did a tail -f on /var/logs/greyhole.log, and the only thing it's showing is: Sep 04 17:36:42 DEBUG sleep: Nothing to do... Sleeping. In a seperate window, I can see that I renamed the lz file, but it did not rename the file in the storage pool. t*****@:/var/hda/files/lz/tv series/B********/Season 1$ ls -al |
Beta Was this translation helpful? Give feedback.
-
Please show the terminal & command you used to rename the file. |
Beta Was this translation helpful? Give feedback.
-
What happens in the greyhole daemon log, when you add a file into that share? Is it handled as soon as its added (within 10 secs)? Do you have your Samba shares mounted locally on your server, in Please run this, and send me the URL you receive: https://github.com/gboudreau/Greyhole/wiki/GetHelp#gather-system-information While renaming, try to tail all the Samba logs: |
Beta Was this translation helpful? Give feedback.
-
I've attached the logs while adding a file to the share. t********@Galactica:/var/hda/files/lz/tv series/B*********/Season 1$ ls -al I don't see a link being set up from the LZ to the share drives. Running the command you provided doesn't seem to be working..... t********@Galactica:~$ curl -Ls https://bit.ly/gh-infos | sudo sh ix.io is taking a break 🍻 This used to all work. I'm not sure what is going on. |
Beta Was this translation helpful? Give feedback.
-
If files are not processed, when they are added onto your share, your Greyhole VFS is not working. See https://github.com/gboudreau/Greyhole/blob/master/USAGE#L55 You can use the |
Beta Was this translation helpful? Give feedback.
-
I've had an issue with renaming files after the file in the landing zone is copied to the drive, where I simply can't do it. An example would be I copy a TV series to a landing zone, and I have to go back through and change episode numbers. What will happen is if the file has already been copied over, it'll rename the file back to the original file. This is driving me a bit nuts.
l'm running 0.15.22-1 on Fedora 40 Server
Beta Was this translation helpful? Give feedback.
All reactions