Page 1 of 1
SOLVED: How to delete a file
Posted: Wed Jul 24, 2013 3:18 am
by shapethelola
Hey there,
Im amazed of greyhole and Amahi, keep it up. The interface already helped me a lot to understand the core features of it and work with it. Ive just got 1 small question.
I mean if I put a file into the landing zone and after greyhole puts it into the greyhole folder and puts the symlink it also puts metadata and metadata backup files into the pool drives. What do I have to do to remove the file itself? Do I have to go through all metadata and gh folders and remove them by myself?
I hope it was not too hard to understand what I try to achieve.
Regards,
Jan
Re: How to delete a file
Posted: Wed Jul 24, 2013 5:17 am
by bigfoot65
When you delete files from the share, Greyhole will automatically remove it from the /gh directories and database. This will occur the next time it runs.
If you want to learn more about how Greyhole works, check out the wiki or the Greyhole home page.
https://wiki.amahi.org/index.php/Greyhole
http://www.greyhole.net/
Re: How to delete a file
Posted: Wed Jul 24, 2013 5:22 am
by shapethelola
Thanks a lot..

Sometimes its really as easy as you think it is, but one never knows. You helped me a lot, appreciate it
Ive looked at that posts already, but just couldnt help me with this point in general.
Re: SOLVED: How to delete a file
Posted: Sun Sep 08, 2013 7:56 am
by shapethelola
Ive tried this now several times.
The thing is, I have to run greyhole -f with a crontab, it snot doing it automatically. And greyhole -f does recreate the symbolic link when I previously removed it :/ I was expecting that greyhole then deletes the files itself
Re: SOLVED: How to delete a file
Posted: Sun Sep 08, 2013 11:47 am
by bigfoot65
The fsck should run automatically. What OS are you using? What version of Greyhole?
Re: SOLVED: How to delete a file
Posted: Sun Sep 08, 2013 12:31 pm
by shapethelola
Well it actually is running but the log does say nothing but this :
Code: Select all
Sep 08 21:28:38 7 sleep: Nothing to do... Sleeping.
Its like it doesn't see something in the Landing Zone
Ive updated to the latest greyhole today, version 0.9.34.
Im using Ubuntu Server 12.04
Re: SOLVED: How to delete a file
Posted: Sun Sep 08, 2013 1:07 pm
by bigfoot65
Check out the guidance in the wiki. There are some troubleshooting tips that might help.
https://wiki.amahi.org/index.php/Greyho ... leshooting
Re: SOLVED: How to delete a file
Posted: Sun Sep 08, 2013 11:52 pm
by shapethelola
The greyhole update seems to have fixed it, it tonight created all the sym links and copied it to the correct folders.
Now I get a php error :
Code: Select all
4 write: PHP Warning [8]: Uninitialized string offset: -1 in /usr/bin/greyhole on line 692; BT: greyhole[L2881] execute_next_task() => greyhole[L3227] gh_write(Movies,Promised.Land.(2013)/Promised.Land.cd2.orig.nfo,4800) => greyhole[L3837] gh_write_process_metafiles(1,array (),Movies,Promised.Land.(2013)/Promised.Land.cd2.orig.nfo,/var/hda/files/drives/drive5/Movies/Promised.Land.(2013)/Promised.Land.cd2.orig.nfo,6255,4800) => greyhole[L3876] save_metafiles(Movies,Promised.Land.(2013),Promised.Land.cd2.orig.nfo,array ( '/var/hda/files/drives/drive2/gh/Movies/Promised.Land.(2013)/Promised.Land.cd2.orig.nfo' => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive2/gh/Movies/Promised.Land.(2013)/Promised.Land.cd2.orig.nfo', 'is_linked' => true, 'state' => 'Pending', )),)) => greyhole[L4321] gh_mkdir(/var/hda/files/drives/drive2/gh/.gh_metastore/Movies/Promised.Land.(2013),/var/hda/files/drives/drive5/Movies/Promised.Land.(2013)) => greyhole[L4058] clean_dir(/)
Its not really important as it does work as it should, at least it seems that way.
Re: SOLVED: How to delete a file
Posted: Mon Sep 09, 2013 5:13 am
by bigfoot65
Unsure what that warning is about. Maybe it will resolve itself. Glad things are working better now for you.