View Full Version : Upgrade and can't rebuild thumbnails
May 11th, 2008, 09:52 PM
Upgrade from 2.1 to 3 and everything went fine. I'm trying to rebuild the thumbnails and I'm keep running into an error as a result of file permissions on the 'thumbs' folder being set to 666. I set the permissions to 777 and rerun and then i get the same error for images in a differ thumbs folder. I go there and change it.
No matter how many times I set the folders to 777 a different one (always a thumbs folder) will revert back to 666.
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/IMG_0172.JPG
Creating from /home/tmcowne/public_html/market/data/6/IMG_0172.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/IMG_0171.JPG
Creating from /home/tmcowne/public_html/market/data/6/IMG_0171.JPG ...
Warning: copy(/home/tmcowne/public_html/market/data/5/thumbs/): failed to open stream: Is a directory in /home/tmcowne/public_html/market/image-inc.php on line 463
If I set the data/5/thumbs to 777 and rerun I'll get the error on data/7/thumbs. I've checked all thumbs folders and ran but when the process starts it's resetting the folder permissions somehow...????
May 11th, 2008, 10:59 PM
After further investigation the permission issue has been resolved by setting the owner of the files to root. However when I run the database scan -> rebuild all thumbnails it will process about 15-20 files and then throw the above warnings and quit. I can re-run the process and it will process some more files and quit on a different file. There doesn't seem to be a pattern : /
May 11th, 2008, 11:28 PM
If I change the image processing to GD2 it seems to process more than using Imagemagick. However both ultimately fail due to not being able to open a thumbs folder.
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Resized_DSC005881.jpg
Creating from /home/tmcowne/public_html/market/data/5/Resized_DSC005881.jpg ...
Warning: copy(/home/tmcowne/public_html/market/data/10/thumbs/): failed to open stream: Is a directory in /home/tmcowne/public_html/market/image-inc.php on line 463
Warning: unlink(/home/tmcowne/public_html/market/data/10/thumbs/): Is a directory in /home/tmcowne/public_html/market/image-inc.php on line 503
Error creating thumbnail! Error code: 1
Command: "/usr/bin/X11/mogrify" -size 100x75 -quality 60 -geometry 100x75 /home/tmcowne/public_html/market/data/10/thumbs/
So it will process files into folder '5/thumb's and choke on one going to '10/thumbs'. If I rerun it it will choke on some other file in '5/thumbs'....
I'm pulling out my hair on this one... :mad:
May 12th, 2008, 06:18 AM
Try SSH to your server using putty ssh client or so and as root and go to your classifieds directory and type this to set permissions recursively to ensure permissions are changed and try again. Seems to me like permissions issues.
chmod -R data
May 12th, 2008, 07:28 AM
No luck with that... I've ran chmod -R 777 * on the data dir about 10 times and retried. If I check the permissions everything says 777...
May 12th, 2008, 07:34 AM
Here is a perfect example of the situation. Look at the top line where it shows a thumbnail generating in the "data/6/thumbs" folder but stoping on it at the end...
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/DSCN0500.JPG
Creating from /home/tmcowne/public_html/market/data/6/DSCN0500.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/DSCN0502.JPG
Creating from /home/tmcowne/public_html/market/data/6/DSCN0502.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/DSCN0503.JPG
Creating from /home/tmcowne/public_html/market/data/6/DSCN0503.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Master_Craft_Boat_rear_view.jpg
Creating from /home/tmcowne/public_html/market/data/5/Master_Craft_Boat_rear_view.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/9/thumbs/Approach_Boots_3.jpg
Creating from /home/tmcowne/public_html/market/data/9/Approach_Boots_3.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/new_cup_holders_001.jpg
Creating from /home/tmcowne/public_html/market/data/5/new_cup_holders_001.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Dance_016.jpg
Creating from /home/tmcowne/public_html/market/data/5/Dance_016.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Dance_017.jpg
Creating from /home/tmcowne/public_html/market/data/5/Dance_017.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/690_hours.jpg
Creating from /home/tmcowne/public_html/market/data/5/690_hours.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Airboom_and_Bimini.jpg
Creating from /home/tmcowne/public_html/market/data/5/Airboom_and_Bimini.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/Interior.jpg
Creating from /home/tmcowne/public_html/market/data/5/Interior.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/DSC01656new.JPG
Creating from /home/tmcowne/public_html/market/data/5/DSC01656new.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/DSC01660new.JPG
Creating from /home/tmcowne/public_html/market/data/5/DSC01660new.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/DSC01679new.JPG
Creating from /home/tmcowne/public_html/market/data/5/DSC01679new.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/7/thumbs/seans_boat-13.JPG
Creating from /home/tmcowne/public_html/market/data/7/seans_boat-13.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/DSCF2973.JPG
Creating from /home/tmcowne/public_html/market/data/6/DSCF2973.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/DSCF2975.JPG
Creating from /home/tmcowne/public_html/market/data/6/DSCF2975.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/10/thumbs/board012.jpg
Creating from /home/tmcowne/public_html/market/data/10/board012.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/10/thumbs/board.jpg
Creating from /home/tmcowne/public_html/market/data/10/board.jpg ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/P5060050.JPG
Creating from /home/tmcowne/public_html/market/data/6/P5060050.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/P5060053.JPG
Creating from /home/tmcowne/public_html/market/data/6/P5060053.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/6/thumbs/P4260097.JPG
Creating from /home/tmcowne/public_html/market/data/6/P4260097.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/IMG_1300.JPG
Creating from /home/tmcowne/public_html/market/data/5/IMG_1300.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/IMG_1301.JPG
Creating from /home/tmcowne/public_html/market/data/5/IMG_1301.JPG ... completed!
Thumbnail not sized: /home/tmcowne/public_html/market/data/5/thumbs/IMG_1300.JPG
Creating from /home/tmcowne/public_html/market/data/5/IMG_1300.JPG ...
Warning: copy(/home/tmcowne/public_html/market/data/6/thumbs/): failed to open stream: Is a directory in /home/tmcowne/public_html/market/image-inc.php on line 463
Warning: unlink(/home/tmcowne/public_html/market/data/6/thumbs/): Is a directory in /home/tmcowne/public_html/market/image-inc.php on line 503
May 12th, 2008, 07:53 AM
It is failing on specific images which might indicate an issue with that specific image maybe its corrupt. Have you tried searching to find out what ad that is and actually viewing to see if the main image is corrupt?
We can not rebuild a thumb if the main image is corrupt.
May 12th, 2008, 08:02 AM
I think that something like this may be possible... However I'm a little concerned as there are a ton of ads... I seem to have better luck using GD2 to resize thumbs (it processes more before it fails). However with GD2 it fails on an image that doesn't even exist...???...
May 12th, 2008, 08:07 AM
here is a log of the the gd2 processing... it throws some warning saying the file couldn't be opened to write to but then it stops on 82.JPG - which doesn't exit on the server...?
May 12th, 2008, 08:30 AM
So I removed the 82.JPG from the db and it finished processing using GD2. However there are hundreds of warnings similar to the one's in the attached txt file above. About half of the thumbnail on the board are missing...
From a support standpoint what are my options? Can I source you (Chuck) to login and take a look?
May 12th, 2008, 03:27 PM
The issue here is you need to look at each place it fails and find the corrupted image and delete it. It looks to me like definate image corruption.
A good way to delete ads so your not littered with old ads is to make sure you run the sendnotice.php script which should be setup as a cron to remove your old expired ads. That may elimate your need to find issues for ads which should have long been deleted.
May 12th, 2008, 08:16 PM
I've gone through and cleaned up the ads... 900 down to < 200. Of those I am able to rebuild the thumbs with a few here and there not completing because the directory cannot be opened for writing (as in text file).
After completing this the board is missing 90% of the thumbnails... images are missing everywhere - and no product has a thumbnail that will show on the category page. All of the show the "no thumb" graphic.
How would all of these go missing???
May 12th, 2008, 08:18 PM
please post your site link so we can see it and see if we can see what your issue might be.
You might also want to post an admin login to us via pm. Did you have a recent server move anything?
May 12th, 2008, 09:11 PM
I pm'ed you a login. The board is locked down so I could do the updates... I'm not sure if this is relevant but with the ads it seems like the first 3 images on most (if not all ads) are missing... but after that (images 4-6) they are there is they were uploaded.
May 12th, 2008, 09:34 PM
Your issue is easy once I saw your site
You ran an upgrade again you where not suppose to run. You had 2.5 or higher before. You ran the 2.4 upgrade which renamed your first 3 images see because in 2.4 we also added the ability to upload 3 more images for a total of 6 so seeing your site and how the first 3 images where only messed up told me explicitly that you had reran that upgrade when you where not suppose to.
To fix your issue you would need to restore a backup of your cp_products table before the upgrade and run the 2.5 or 2.6 upgrades only do not run any prior upgrades. :)
May 12th, 2008, 10:18 PM
thx for the help...that certainly fixed the missing thumbs for the 1st 3 images. Before I started the upgrade I logged in and the stats page said I had version 2.11... Sorry for the goof and thx for the help!
May 13th, 2008, 09:43 AM
Not a problem. You have a good day.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.