SOLVED: How to delete a file

shapethelola
Posts: 11
Joined: Sat Jul 20, 2013 12:40 pm

SOLVED: How to delete a file

Postby shapethelola » Wed Jul 24, 2013 3:18 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How to delete a file

Postby bigfoot65 » Wed Jul 24, 2013 5:17 am

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/
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

shapethelola
Posts: 11
Joined: Sat Jul 20, 2013 12:40 pm

Re: How to delete a file

Postby shapethelola » Wed Jul 24, 2013 5:22 am

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.

shapethelola
Posts: 11
Joined: Sat Jul 20, 2013 12:40 pm

Re: SOLVED: How to delete a file

Postby shapethelola » Sun Sep 08, 2013 7:56 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: SOLVED: How to delete a file

Postby bigfoot65 » Sun Sep 08, 2013 11:47 am

The fsck should run automatically. What OS are you using? What version of Greyhole?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

shapethelola
Posts: 11
Joined: Sat Jul 20, 2013 12:40 pm

Re: SOLVED: How to delete a file

Postby shapethelola » Sun Sep 08, 2013 12:31 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: SOLVED: How to delete a file

Postby bigfoot65 » Sun Sep 08, 2013 1:07 pm

Check out the guidance in the wiki. There are some troubleshooting tips that might help.
https://wiki.amahi.org/index.php/Greyho ... leshooting
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

shapethelola
Posts: 11
Joined: Sat Jul 20, 2013 12:40 pm

Re: SOLVED: How to delete a file

Postby shapethelola » Sun Sep 08, 2013 11:52 pm

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: SOLVED: How to delete a file

Postby bigfoot65 » Mon Sep 09, 2013 5:13 am

Unsure what that warning is about. Maybe it will resolve itself. Glad things are working better now for you.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 18 guests