[Solved] Error uploading files
BjornBP
Joined: 2005-03-07
Posts: 5 |
Posted: Tue, 2005-03-08 13:02 |
Hi, netpbm is up loaded. I unzipped a file from Sourceforge called: netpbm_gallery-1.4-pl2-freebsd-4.5.zip. Files were uploaded into a folder in the root of the public area on the server and the path was set in the config to /public_html/netpbm. Files were set to CHMOD 755 as was the folder. But I'm getting the following debug errors when I run an upload: - Adding Bjorn Executing: '/public_html/netpbm/jpegtopnm' '/home/bj563hb/public_html/albums/Austria-2004/Bjorn.jpg' | '/public_html/netpbm/pnmscale' -xysize 150 150 | '/public_html/netpbm/pnmtojpeg' --quality=90 > '/home/bj563hb/public_html/albums/Austria-2004/Bjorn.thumb.jpg' Results: Debug messages:: Status: 127 (expected 0) jpegtopnm, pnmscale and pnmtojpeg are all there though. ....and, although it appears to be making orphaned thumbnails in the Albums folder, the album itself says "no images in this album". Any ideas? Thanks in advance ---- |
|
Posts: 391
Hello!
This is where your albums folder are:
/home/bj563hb/public_html/albums/
This is where you have said your netpbm files are:
/public_html/netpbm/
They should be here:
/home/bj563hb/public_html/netpbm/
Rerun the config wizard, and update your netpbm path.
Posts: 3236
Its possible that freebsd is also not the correct binaries for your platform, but I could not get your OS from netcraft... so if fixing the path doesn't work (your path is wrong for sure) you might try using the linux binaries.
Posts: 5
NitroTN and Fryfrog...
Thanks both for your very kind replies.
I updated the path to NetPBM as suggested (must admit I thought I had tried this new path before and it didn't work). Anyway, here's the debug info after following your advice.....
Processing status...
- Adding 117_1744_IMG
Resizing/compressing original image /home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg
No resizing required
File /home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg type 2.
/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg
Executing:
'/home/bj563hb/public_html/netpbm/jpegtopnm' '/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.jpg' | '/home/bj563hb/public_html/netpbm/pnmscale' -xysize 150 150 | '/home/bj563hb/public_html/netpbm/pnmtojpeg' --quality=90 > '/home/bj563hb/public_html/albums/Austria-2004/117_1744_IMG.thumb.jpg'
Results:
none
Debug messages::
Status: 255 (expected 0)
Error: Unable to make thumbnail (0)
So, like fryfrog suggests as possible, do I have the wrong binaries?
Where do I go from here?
Posts: 3236
Your path strongly suggests a unix/linux variant, but I can't say for sure. I would always try the "linux-intel" binaries first since that is by far the most common set used on the internet. Freebsd would be second IMHO. So give it a go, worst that happens is it doesn't work
Posts: 391
Hi!
You could test this from a shell:
file /home/bj563hb/public_html/netpbm/jpegtopnm
and post the output in here.
Posts: 5
Thanks Guys - looks like it was indeed two problems.
1) Wrong path
2) Not using the Linux binaries.
Fixed those two and it all appears to be working just fine.
Many thanks for all your help.
Bjorn