Sarteck
10-03-2012, 02:28 PM
I am trying to help fix a vBulletin that crashed a while back.
We've got most everything working, but attachments are being a pain in the neck.
We use the file system to store the attachments. I'm trying to Rebuild Attachment Thumbnails right at the moment, but it's going through 50,000 attachments saying:
Processing: Attachment : #### (ext)Error: Attachments Missing
Where #### is the ID and ext is the extension.
Afraid that they really were missing, I checked where they were stored.
Storage Type Attachments are currently being stored in the filesystem at ./attachments
Go to the attachment folder, and there's a few single-digit subdirectories, each with a bunch of single-digit sub-directories, and so on. At the deepest level of all that I checked (of course I didn't check ALL of them), there are a number of attachments like so:
$ ls 1/0/0/0/0/1
10031.attach 10541.attach 10688.attach 10693.attach 11951.attach 11960.attach 12147.attach 9546.attach 9565.attach 9577.attach 9583.attach 9596.attach 9946.attach
10031.thumb 10541.thumb 10688.thumb 10693.thumb 11951.thumb 11960.thumb 12147.thumb 9546.thumb 9565.thumb 9577.thumb 9583.thumb 9596.thumb 9946.thumb
10274.attach 10600.attach 10690.attach 10694.attach 11953.attach 11961.attach 12148.attach 9547.attach 9566.attach 9578.attach 9588.attach 9904.attach 9947.attach
10274.thumb 10600.thumb 10690.thumb 10694.thumb 11953.thumb 11961.thumb 12148.thumb 9547.thumb 9566.thumb 9578.thumb 9588.thumb 9904.thumb 9947.thumb
10275.attach 10601.attach 10691.attach 10695.attach 11958.attach 12053.attach 12149.attach 9548.attach 9567.attach 9579.attach 9589.attach 9944.attach
10275.thumb 10601.thumb 10691.thumb 10695.thumb 11958.thumb 12053.thumb 12149.thumb 9548.thumb 9567.thumb 9579.thumb 9589.thumb 9944.thumb
10540.attach 10687.attach 10692.attach 11735.attach 11959.attach 12146.attach 13768.attach 9557.attach 9568.attach 9582.attach 9590.attach 9945.attach
10540.thumb 10687.thumb 10692.thumb 11735.thumb 11959.thumb 12146.thumb 13768.thumb 9557.thumb 9568.thumb 9582.thumb 9590.thumb 9945.thumb
So I assume that the attachments are there, but for some reason or another, they cannot be found.
I'm not really sure where to go from here, so any advice is appreciated.
--------------- Added 1349282709 at 1349282709 ---------------
Ah, a Staff member can close this.
The problem was that the directory was owned by apache, and that was not their webserver user account on the server.
We've got most everything working, but attachments are being a pain in the neck.
We use the file system to store the attachments. I'm trying to Rebuild Attachment Thumbnails right at the moment, but it's going through 50,000 attachments saying:
Processing: Attachment : #### (ext)Error: Attachments Missing
Where #### is the ID and ext is the extension.
Afraid that they really were missing, I checked where they were stored.
Storage Type Attachments are currently being stored in the filesystem at ./attachments
Go to the attachment folder, and there's a few single-digit subdirectories, each with a bunch of single-digit sub-directories, and so on. At the deepest level of all that I checked (of course I didn't check ALL of them), there are a number of attachments like so:
$ ls 1/0/0/0/0/1
10031.attach 10541.attach 10688.attach 10693.attach 11951.attach 11960.attach 12147.attach 9546.attach 9565.attach 9577.attach 9583.attach 9596.attach 9946.attach
10031.thumb 10541.thumb 10688.thumb 10693.thumb 11951.thumb 11960.thumb 12147.thumb 9546.thumb 9565.thumb 9577.thumb 9583.thumb 9596.thumb 9946.thumb
10274.attach 10600.attach 10690.attach 10694.attach 11953.attach 11961.attach 12148.attach 9547.attach 9566.attach 9578.attach 9588.attach 9904.attach 9947.attach
10274.thumb 10600.thumb 10690.thumb 10694.thumb 11953.thumb 11961.thumb 12148.thumb 9547.thumb 9566.thumb 9578.thumb 9588.thumb 9904.thumb 9947.thumb
10275.attach 10601.attach 10691.attach 10695.attach 11958.attach 12053.attach 12149.attach 9548.attach 9567.attach 9579.attach 9589.attach 9944.attach
10275.thumb 10601.thumb 10691.thumb 10695.thumb 11958.thumb 12053.thumb 12149.thumb 9548.thumb 9567.thumb 9579.thumb 9589.thumb 9944.thumb
10540.attach 10687.attach 10692.attach 11735.attach 11959.attach 12146.attach 13768.attach 9557.attach 9568.attach 9582.attach 9590.attach 9945.attach
10540.thumb 10687.thumb 10692.thumb 11735.thumb 11959.thumb 12146.thumb 13768.thumb 9557.thumb 9568.thumb 9582.thumb 9590.thumb 9945.thumb
So I assume that the attachments are there, but for some reason or another, they cannot be found.
I'm not really sure where to go from here, so any advice is appreciated.
--------------- Added 1349282709 at 1349282709 ---------------
Ah, a Staff member can close this.
The problem was that the directory was owned by apache, and that was not their webserver user account on the server.