[SOLVED] Unable to delete a failed upload
|
netburnr
Joined: 2010-02-09
Posts: 6 |
Posted: Tue, 2010-02-09 15:58
|
|
Hey guys, hopefully you can help me. I tried searching but all I am getting are results about thumbnail creation. What happened is, one of my users was uploading some images to his folder, and one of the images failed to upload correctly. Now we have a broken thumbnail, and no image when you click on it. We are unable to move or delete this failed upload. My question is, can I remove this image manually, or is there some way to make the gallery do this for us...? I've put all the debug info I can into a text files here: Link to album folder: I've tried clearing the caches, checking permissions, basically everything the forum says to do before I make a post. Can anyone help point me in the right direction for getting rid of this bad image? -Steven |
|

Posts: 16503
Not without really know the database structure of G2, so no.
Try manually uploading the image to g2data/albums/MemberRides/bigbabylou/nose/01_FrontNoseSanding.jpg, then deleting it and re-uploading it.
FAQ: How do I backup G2?
And
FAQ: How to upgrade Gallery2?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
The image is already in the folder, I confirmed using ssh.
How will upgrading solve my problem?
Posts: 16503
2.2.2 is old, unsupported and has known security issues that have long since been fixed. It may or may not fix your problem.
Is the debug output you posted from when the photo is being uploaded or when you try to delete it?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
edit to answer above question: The debug is from the delete function, I was not the one to upload the file so I don't know if it even showed any errors on their side.
Also, I am unable to clear the DB cache:
Unable to delete directory: /home/netburnr/g2data/cache/entity
Successfully deleted directory: /home/netburnr/g2data/cache/theme
Unable to delete directory: /home/netburnr/g2data/cache/module
And rebuild thumbnails gives me the following debug:
http://dl.dropbox.com/u/46964/rebuildthumb.rtf
I am willing to upgrade if that will fix the issue. But I don't want to start randomly updating and changing the gallery while I'm having problems in case it just makes it worse.
Posts: 16503
I'm betting your permissions are messed up:
Gallery should have FULL control to ALL files and directories under g2data. Whether the user thew webserver or PHP run as created the files and is the owner or the permissions are set to 777, that's up to you and your setup:
http://codex.gallery2.org/Gallery2:Security
Try this FAQ:
FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
Or these:
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?
FAQ: How can I fix the problem with the Storage Directory Permissions reported by the Upgrade Wizard?
This is separate, but occurs when you try to rebuild thumbs. It's choking on
atgomeets/070305/sunfire_002.mpg
I don't know what version of FFMPEG or Debian is running on your system, but based on this, both old:
built on May 4 2007 15:46:52, gcc: 3.3.5 (Debian 1:3.3.5-13)
But that doesn't explain why it probably worked fine when that mpg was uploaded.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
g2data was set to 777 recursively as stated in my original post stating "checking permissions".
The FAQ you pointed at just states to check permissions, everything related to g2 is 777 at this point.
I'm a bit concerned that gallery can't delete the cache folders that are 777.
edit: I deleted the offending movie files and rebuilt the thumbnails again, it worked this time, so the broken image from the first post is not causing any errors when I rebuild the thumbnails
Posts: 6
Wait... now the image is there after rebuilding the thumbnails.... very very odd.
I was able to delete it now, YAY, and re-upload it, and now everything is back to normal.
Thank you so much nivekiam for pointing me in the right direction :D
Posts: 16503
Are you able to delete the cache folders now? It may have been hitting some resource limit too if there are a lot of files and choke at that point.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
Yep, the delete database cache is now working, I guess those videos/ffmpeg was causing that error? Or the failed upload. Either way, all is well now. Again, thank you very much for helping to point me in the right direction
(you can mark this resolved if you want)