vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Cannot view or upload attachments in filesystem. (https://vborg.vbsupport.ru/showthread.php?t=288604)

Sarteck 10-03-2012 02:28 PM

Cannot view or upload attachments in filesystem.
 
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:

Code:

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.

Code:

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:

Code:

$ 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 [DATE]1349282709[/DATE] at [TIME]1349282709[/TIME] ---------------

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.


All times are GMT. The time now is 10:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01761 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete