SID-00484: Upload attachments no longer work
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
5.8.5 |
| Category: |
CategoryAttachments |
Server OS: |
Centos 4, kernel 2.6.9 |
Last update: |
16 years ago |
I have had a happily functioning TWiki for over a year now and all of the sudden uploading of attachments has stopped working. I've got plenty of disk and I get no error at upload time. All the metadata is stored properly but I get a 0 byte file in the /pub/Main/Foo/Attachment directory with a proper
RCS file. I do get an error in the apache error log but I haven't been able to understand what the problem is:
[Fri Aug 14 22:38:21 2009] [error] [client 10.157.24.62] binmode() on closed filehandle fh00001mysql.txt at, referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:21 2009] [error] [client 10.157.24.62] \t/var/www/twiki/lib/TWiki/Store.pm line 979 (#1), referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:21 2009] [error] [client 10.157.24.62] (W unopened) You tried binmode() on a filehandle that was never opened., referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:21 2009] [error] [client 10.157.24.62] Check you control flow and number of arguments., referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:21 2009] [error] [client 10.157.24.62] , referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:22 2009] [error] [client 10.157.24.62] read() on closed filehandle fh00001mysql.txt at, referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:22 2009] [error] [client 10.157.24.62] \t/var/www/twiki/lib/TWiki/Store/RcsFile.pm line 730 (#2), referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:22 2009] [error] [client 10.157.24.62] (W closed) You tried to read from a closed filehandle., referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
[Fri Aug 14 22:38:22 2009] [error] [client 10.157.24.62] , referer: http://uspsvm60.eng.dnb.com/twiki/bin/attach/Sandbox/JasonTestUpload
any ideas? all dirs are chowned by apache:apache and seem the have adequate permissions... I'm at a loss. I did install the
BatchUploadPlugin a month or so ago but I'm assuming that wouldn't impact basic file attachment functionality....
--
JasonLeeTaylor - 2009-08-15
Discussion and Answer
Known issue of TWiki 4.2 if you install a plugin that uses the
beforeAttachmentSaveHandler callback. See
AttachmentsInPubAreZeroSize,
KnownIssuesOfTWiki04x02.
--
PeterThoeny - 2009-08-15
Peter,
Thanks for the prompt response! I followed the trail above and applied the patched Store.pm and it works like a charm. Thanks a million! I was searching for a binmode specific reference and that didn't seem to bear any fruit.
I also wanted to let you know that I think the TWiki is an awesome tool. I've been building on this initial implementation for over a year now and find it an extremely useful tool across many different dimensions. Thanks again!
-Jason
--
JasonLeeTaylor - 2009-08-16
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.