• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6170: Plugin installation fails on windows: extender.pl line 684

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   patch 4.3.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

When installing extensions using the extender.pl script (from the configure page), it mostly fails with the following message:

Error: Installer returned errors:

No data could be read from file at tools/extender.pl line 684

It seems to be related to plugins having an install script, only on windows. Some debugging pointed to the fact that the saved extension.tgz file was corrupted in the twiki root directory. It seems to be related to the fact that Perl on windows (Activestate perl) translates LF to CRLF in the "print F $response->content();" statement (line 583) in extender.pl.

I have tested that by adding "binmode(F);" before this print solves this problem on windows.

-- TWiki:Main/ThysNel - 16 Jan 2009

Hi,

i am confused with line number - do you mean line number 538? Did you change following lines code?

 534         if( $response->is_success() ) {
 535             $f = $downloadDir.'/'.$module.$type;
 536             open(F, ">$f" ) || die "Failed to open $f for write: $!";
 537             print F $response->content();
 538             close(F);
 539             last;
 540         }

-- TWiki:Main.SopanShewale - 12 Feb 2009

Incorporated changes suggested by TWiki:Main.ThysNel

-- TWiki:Main.SopanShewale - 12 Feb 2009

ItemTemplate
Summary Plugin installation fails on windows: extender.pl line 684
ReportedBy TWiki:Main.ThysNel
Codebase 4.2.3, 4.2.4
SVN Range TWiki-5.0.0, Wed, 22 Oct 2008, build 17677
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:17815 TWikirev:17816
TargetRelease patch
ReleasedIn 4.3.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2009-04-08 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback