Limited number of pictures on site

yannack

Joined: 2002-08-23
Posts: 4
Posted: Fri, 2002-08-23 19:14

Hello,
I've just installed Gallery on my web site, and I seem to have a problem. Apparently I'm limited in how many pictures I can upload. Everything was going fine at first, I was able to create albums, upload 18 pictures and then suddenly, it started throwing error messages at me. i checked with debug, the messages were always different, so I decided to investigate a bit more. I tried executing the commands myself (I have shell access), and everything seemed to work. So I started thinking it probably was the PHP... I created a basic upload script to upload files, and there I noticed i could upload a relatively small file, and nothing much more... Given that I still had 100 Mbytes available on my account (this is my school's webserver by the way, and it provides every student with 125 MB of space), I started thinking it was some kind of restriction linked with the "nobody" user (the user which is used when executing PHP scripts), like a quota or something. i checked with my system admin, he said that "nobody" was not restricted. So I'm out of ideas! If anyone has an idea of what's going wrong, i really would be grateful, I so want to use Gallery and nothing else...
The config of my web server:
Sparc/Solaris
No .htaccess (it refuses to load setup if there is a .htaccess file)
PHP4 (i'd love to give the exact version but for the first time in 2 years, the web server seems to have crashed)

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-08-24 03:17

Well, please post the version when you get a chance, also, a sampling of the
error messages and possibly debugging output would be of use as well.
Please check the diagnostics.php page in the setup directory as well to make
sure that says all is well.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-08-24 03:35

My guess is that Apache/PHP is crashing. Unfortunately, both Apache and PHP still have bugs in them and Gallery tends to exercise it enough to cause it to break at times. Make sure that you have the latest version of each (Apache 1.3.26, PHP 4.2.2) and see if the problem persists.

 
yannack

Joined: 2002-08-23
Posts: 4
Posted: Mon, 2002-08-26 18:16

OK, here are the versions running on my school's server:
PHP Version 4.2.1
Apache version 1.3.24
Now the debugging output is pretty erratic and various, but here are some of the ones I'm getting:
jpegtopnm: WRITING PPM FILE
Premature end of JPEG file

Empty input file
pnmfile: EOF / read error reading magic number

Error: Invalid image: aal.jpg!

But I'm pretty sure this is not linked directly with gallery, because as I said the problem is coming from some kind of file restriction, as with my own upload script, I can't upload much either. When I check after trying to upload (via gallery or my script) I see that some of the files were uploaded partially (thus the error messages) some were not uploaded at all.
Your help is really being appreciated, thanks!
Yannack

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-08-26 20:27

Hmm, it wouldn't be a connection issue would it?
Or possible your running low on disk space?

 
yannack

Joined: 2002-08-23
Posts: 4
Posted: Mon, 2002-08-26 21:28
Quote:
Hmm, it wouldn't be a connection issue would it?
Or possible your running low on disk space?

It's not a connection issue, I have tried this from different computers, and ther is the same problem everywhere.
As I stated in my first post, I have 100Mb available so it's not a disk space issue.

 
yannack

Joined: 2002-08-23
Posts: 4
Posted: Mon, 2002-08-26 23:13

OK, I have a new test running which may give you hints on what it is. i am able to upload more pictures by running a shell script and a PHP script after evrey upload, which basically only change the owner of the various files in my albums directory. this way no files are ever owned by "nobody", they are all mine. By doing that I am able to get a lot more pictures online. The thing is that not only is this totally unpractical, but also is a pain because there's always a reason why one of those scripts messes up and then i loose all my albums... Anyways, this seems to prove somewhere there is a kind of restriction on what "nobody" can do... any other ideas?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-08-27 05:26

This sounds like it might be a permission issue, especially if you've set the user/group sticky bits on the album directory. I'd like to investigate in more detail. Would it be possible for me to ssh to your box and try tweaking the code? If so, private message me with the details. Thanks.