Attachment not found#710

Subscribe to Attachment not found 7 post(s), 4 voice(s)

 
Avatar Ilyse Kazar 7 post(s) #1857

I attached a document called Design_Guidelines.pdf to a wiki page and the link shows fine and no problem uploading is reported, but when I click on the link it only turns up a 404 error page. Where do I look to diagnose what the problem is?

thanks!

 
Avatar Joe Homs 59 post(s) #1859

Check the production.log and your permissions for the directory where you are storing the files. Also check to see if your disk is full.

 
Avatar Adam Monago Administrator 254 post(s) #1862

Hi Ilyse,

Within the folder where you have installed the application, there is a folder called ‘logs’. The mingle.log file within this folder is the first place to check for any relevant errors. Are you seeing anything there?

 
Avatar Ilyse Kazar 7 post(s) #1864

Thanks for pointing me to that, though I’d have no idea how to interpret anything in it. (FWIW the folder was named “Log” not “Logs”)

Here is the section of the log that was added when, just now, I deleted the old attachment and tried uploading again from my Mac. (I hard-wrapped the log @ 60 char’s so I don’t mess up the page width of this web page)

==========BEGIN LOG========
2008-07-15 20:53:41,888 [/]

Processing PagesController#remove_attachment (for
216.254.72.16 at 2008-07-15 20:53:41) [POST]

2008-07-15 20:53:41,888 [/] Session ID:
22d89a8ed792ca897434cae5469f0996

2008-07-15 20:53:41,888 [/] Parameters:
{“file_name”=>”Vanguard_Design_Guide.pdf”,
“project_id”=>”vanguard_guidelines”, “controller”=>”pages”,
“action”=>”remove_attachment”, “id”=>”273”}

2008-07-15 20:53:41,907 [/] Cookie set:
last-visited-project=vanguard_guidelines; path=/;
expires=Thu, 16 Jul 2009 00:53:41 GMT

2008-07-15 20:53:42,013 [/] Completed in
0.12517 (7 reqs/sec) | Rendering: 0.01091 (8%) | DB: 0.11242
(89%) | 200 OK
[http://vcsprojects.com/projects/vanguard_guidelines/pages/
remove_attachment/273]

2008-07-15 20:53:47,678 [/]

Processing PagesController#edit (for 216.254.72.16 at
2008-07-15 20:53:47) [GET]

2008-07-15 20:53:47,679 [/] Session ID:
22d89a8ed792ca897434cae5469f0996

2008-07-15 20:53:47,679 [/] Parameters:
{“controller”=>”pages”, “project_id”=>”vanguard_guidelines”,
“page_identifier”=>”Design_Guidelines”, “action”=>”edit”}

2008-07-15 20:53:47,693 [/] Cookie set:
last-visited-project=vanguard_guidelines; path=/;
expires=Thu, 16 Jul 2009 00:53:47 GMT

2008-07-15 20:53:47,707 [/] Rendering within
layouts/application

2008-07-15 20:53:47,708 [/] Rendering
pages/edit

2008-07-15 20:53:47,768 [/] Completed in
0.08906 (11 reqs/sec) | Rendering: 0.04939 (55%) | DB:
0.07973 (89%) | 200 OK
[http://vcsprojects.com/projects/vanguard_guidelines/wiki/
Design_Guidelines/edit]

2008-07-15 20:54:01,570 [/]

Processing PagesController#update (for 216.254.72.16 at
2008-07-15 20:54:01) [POST]

2008-07-15 20:54:01,570 [/] Session ID:
22d89a8ed792ca897434cae5469f0996

2008-07-15 20:54:01,570 [/] Parameters:
{“page”=>{“id”=>”273”, “content”=>”I tried attaching a pdf
printout of the .fp7 Design Guide but clicking on the link
results in an error. Iwill post a q to the mingle forums
about this.\r\n\r\nIlyse”},
“attachments”=>{“0”=>#<file: />
fb6a4761404989ad934639051f342436_CGI.16624748.6>},
“controller”=>”pages”, “action”=>”update”,
“project_id”=>”vanguard_guidelines”,
“page_identifier”=>”Design_Guidelines”}

2008-07-15 20:54:01,584 [/] Cookie set:
last-visited-project=vanguard_guidelines; path=/;
expires=Thu, 16 Jul 2009 00:54:01 GMT

2008-07-15 20:54:01,685 [/] Redirected to
http://vcsprojects.com:8080/projects/vanguard_guidelines/
wiki/Design_Guidelines

2008-07-15 20:54:01,698 [/] Completed in
0.12627 (7 reqs/sec) | DB: 0.09681 (76%) | 302 Found
[http://vcsprojects.com/projects/vanguard_guidelines/wiki/
Design_Guidelines/update]

2008-07-15 20:54:01,751 [/]

Processing PagesController#show (for 216.254.72.16 at
2008-07-15 20:54:01) [GET]

2008-07-15 20:54:01,751 [/] Session ID:
22d89a8ed792ca897434cae5469f0996

2008-07-15 20:54:01,751 [/] Parameters:
{“controller”=>”pages”, “action”=>”show”,
“project_id”=>”vanguard_guidelines”,
“pagename”=>”Design_Guidelines”}

2008-07-15 20:54:01,767 [/] Cookie set:
last-visited-project=vanguard_guidelines; path=/;
expires=Thu, 16 Jul 2009 00:54:01 GMT

2008-07-15 20:54:01,799 [/] Rendering within
layouts/application

2008-07-15 20:54:01,800 [/] Rendering
pages/show

2008-07-15 20:54:01,942 [/] Completed in
0.18997 (5 reqs/sec) | Rendering: 0.10629 (55%) | DB:
0.03772 (19%) | 200 OK
[http://vcsprojects.com/projects/vanguard_guidelines/wiki/
Design_Guidelines]

======END LOG=======

Perhaps another clue to the problem is, I notice the Error 404 page references an /attachments/ subdirectory, but I do not see a directory named attachments within the mingle directory …

======BEGIN ERROR PAGE======

HTTP ERROR: 404

NOT_FOUND

RequestURI=/attachments/9797ee4801037adcd202be1825c4dafa/6/Vanguard_Design_Guide.pdf

Powered by Jetty://
=====END ERROR PAGE========

 
Avatar Ilyse Kazar 7 post(s) #1865

Joe, thanks for the thought re disk usage but this is on a spanking new web server with many gigs of free space, and no space restrictions set up for the domain (i.e., the domain can consume unlimited resources)

CentOS 5.something …

kazar

 
Avatar Suzie Prince Administrator 180 post(s) #1867

Kazar

The mingle.log does not indicate any issue with the upload.

As you rightly say Mingle will upload the file to a subdirectory /attachments/. Unlike the mingle.log this will be found in your Mingle data directory within the folder ‘public’. Your data directory is likely to be called Mingle (unless you specified a different name upon installation). Specifically in this example your uploaded file should be found at …/public/attachments/9797ee4801037adcd202be1825c4dafa/6/ . Try checking this location to see if the file was uploaded there. If there is no file or attachment folder it may be because, as Joe mentioned, you do not have the correct permissions to write to that folder. Have you been able to upload and retrieve other files?

As this issue may be related specifically to your instance and may require further indepth assistance may I suggest you contact our support team (http://studios.thoughtworks.com/mingle-project-intelligence/support-requests).

I hope we are able to resolve this issue for you.

- Suzie

P.S. I moved this issue to the bug forum so anyone else experiencing a problem with uploading may be more easily able to find information on it. Thanks for letting us know.

 
Avatar Ilyse Kazar 7 post(s) #1870

Hi Suzie—Wow, it took me a while to find the thread! I tend to wait before moving something into a bug forum (since first I’ll preusme it’s my own inexperience that’s the problem!) ... but you know your own forums best. I actually do not think this is a bug.

I did find a line in the log where mingle is unable to find its attachment:
2008-07-15 20:58:33,380 [/] mingleFiles: File not found: /attachments/9797ee4801037adcd202be1825c4dafa/6/Vanguard_Design_Guide.pdf

but when I peek at the server via an ftp client, that path & file is indeed there.

very strange. I will open a support ticket and if I learn anything interesting will post back here for the sake of future forum-searches.

kazar