Tags:
create new tag
view all tags

SID-01445: attachment bug

Status: Unanswered Unanswered TWiki version: 5.1.1 Perl version: 5.12.4
Category: CategoryAttachments Server OS: Ubuntu 11.10, kernel 3.0.0-17-generic Last update: 13 years ago

When I try to attach a (png) file to a TWiki page, I get the message: Attention

Error saving topic During save of EclipseInstallation an error was found by the version control system. Please notify your TWiki administrator.

Could not establish socket connection, tried UNIX domain and TCP sockets

Go back in your browser and save your changes locally.

I ran fix-twiki-perms. That didn't change anything.

My apache/error.log contains:
[Thu Apr 12 14:55:17 2012] [error] [client 127.0.0.1] File does not exist: /var/www/tmp, referer: http://localhost/twiki/bin/view/Main/EclipseInstallation
[Thu Apr 12 14:55:17 2012] [error] [client 127.0.0.1] File does not exist: /var/www/tmp, referer: http://localhost/twiki/bin/view/Main/EclipseInstallation

These two lines are created whenever I refresh my page, EclipseInstallation. There is no /var/www/tmp (nor do I think there should be one).

The file I attached was /tmp/eclipse-splash.png. The /tmp/eclipse-splash.png is readable. The problem seems to be that TWiki is trying to access the file "/tmp/eclipse-splash.png" in the twiki root, /var/www. The attachment did not get copied to pub/Main.

When I attached the file, I clicked the box that says "Do not show attachment in table". It is the only attachment, so no attachment table is displayed.

I then copied the png file from /tmp to my home directory and tried attaching it. The new one doesn't show up either, even with the "Do not show" box unchecked.

I tried applying the patches from http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item6854, but that didn't change anything.

-- SteveKelem - 2012-04-12

Discussion and Answer

Not sure. What browser do you use?

-- PeterThoeny - 2012-04-13

Firefox 11.0.

My workaround is to create pub/Main/EclipseInstallation, then use the shell to copy each of my png's into that directory, then change ownership to www-data.www-data.

So, interim questions are:

  1. Why doesn't the attachment table show up on my TWiki page?
  2. Where is the meta-data for the attachments supposed to be stored?
  3. I'm guessing that the attachments are stored in pub/Main/MyTwikiTopic. That seems to work when I put files there manually.
  4. The error in the Apache log shows up only when I use Attach. My png's show up when referenced, but I'm now using %IMAGE{"file.png"}%

-- SteveKelem - 2012-04-12

-- SteveKelem - 2012-04-13

Can you try Attaching a png from /tmp, e.g., /tmp/foo.png?

-- SteveKelem - 2012-04-13

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2012-07-01

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Unanswered
Title attachment bug
SupportCategory CategoryAttachments
TWiki version 5.1.1
Server OS Ubuntu 11.10, kernel 3.0.0-17-generic
Web server Apache 2.2.20
Perl version 5.12.4
Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml configure.html r1 manage 199.0 K 2012-04-12 - 23:38 SteveKelem HTML output of the configure page (stored in /tmp/configure.html!)
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2012-07-01 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.