/var/uploads Folder is large

ntbone

Joined: 2007-11-27
Posts: 4
Posted: Mon, 2011-08-22 17:17

I ran out of space on my web server and was looking to see where all the space went. I inspected the /var folder for my Gallery3 installation and I noticed it had an /var/uploads folder with a copy of all the pictures I uploaded. There also seemed to be an additional copy of the photos in the /var/albums/... folder. My question is why does it keep a second copy in /var/uploads?

Nicolas

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2011-08-22 17:44

My install does not.
My guess is that Gallery tries to remove them once image processing is done and it can't due to some permissions issue on your install.
You can safely remove them once you have the thumbs and resizes etc done.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ntbone

Joined: 2007-11-27
Posts: 4
Posted: Mon, 2011-08-22 19:53

Thanks. Any idea what the permissions for these folders should be? Right now its set to wwwrun and www. I am running OpenSuse 11.2 linux distribution. My entire var folder (and everything under it has wwwrun and www for the permissions with drwxr-xr-x.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-08-23 15:05

drwxr-x--- with me as the owner and me as the webserver user as well. I'm no expert in this sort of thing.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rmohrbacher

Joined: 2011-07-11
Posts: 5
Posted: Mon, 2011-09-12 20:04

I have the same problem, when I upload images via the REST API.
The webserver process has the necessary rights to delete all items in this folder.
With normal upload, the folder var/uploads stay empty.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-09-12 20:05

ntbone, are you still watching this thread? If so, what method do you use to upload?
____________________________________________
Like Gallery? Like the support? Donate now!

 
ntbone

Joined: 2007-11-27
Posts: 4
Posted: Mon, 2011-09-12 21:17

Yup. I recieve emails when it is updated. I am using a plugin into lightroom to upload the images. I dont' recall exactly which plugin it is. I can find out more specifics when I am home.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-09-13 00:34

I'm pretty sure that's using the REST API as well. I wonder if there is something happening there not doing any clean up. Dave, do you happen to be using any client that's using REST?
____________________________________________
Like Gallery? Like the support? Donate now!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-09-13 00:57

I've kept away from REST since it has been over my head. I could try a client that is build already if needed.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-09-13 02:39

Yeah, same here.
____________________________________________
Like Gallery? Like the support? Donate now!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-09-13 02:43

When they tell us what client... I'll try it.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2011-09-13 03:38

I just tried uploading a sample photo with my Windows REST client ( http://gallery.menalto.com/node/98976 ). The photo stayed in the uploads directory after being added to the Gallery.

 
weegee77

Joined: 2010-11-25
Posts: 7
Posted: Sun, 2011-10-02 19:43

Same problem here, too. Uploading via Lightroom plugin using REST. Running out of webspace.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-10-02 20:09

Created a ticket:
https://sourceforge.net/apps/trac/gallery/ticket/1788

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2011-10-04 06:21