Question
I apologize if this was answered before in a previous question, but I've been searching and haven't found a suitable answer.
The problem I am having is when I run the Configure utility to Find new Extensions and go to install them. It gives me an Error. Here is the end part of the error for
XinhaEditorPlugin:
data/
data/TWiki/
data/TWiki/XinhaEditorPlugin.txt
data/TWiki/XinhaEditorPluginTopicLister.txt
data/TWiki/XinhaEditorPlugin.txt,v
templates/
templates/edit.xinha.tmpl
Warning: No installer script found in archive
Error: Failed to move file 'bin/wysiwyg/' to /usr/local/www/twiki/bin/wysiwyg: Operation not permitted
Content-type: text/html
Software error:
Installation terminated at /usr/local/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 149.
Environment
--
JustinKunder - 28 Sep 2007
Answer
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.
I guess that the user id of the web server has no
write permission to the directory
/usr/local/www/twiki/bin
. Installation guidelines like
TWiki.SettingFileAccessRightsLinuxUnix and
TWiki.TWikiInstallationGuide usually recommend that you only have
data
and
pub
writeable, and the rest read-only. Installing plugins via Configure needs
always write access to
lib/TWiki/
and in some cases to
bin
(most plugins have no files to go under
bin
, so you may have successfully installed plugins with Configure before).
Please re-set to AskedQuestions if I'm guessing wrong!
--
HaraldJoerg - 28 Sep 2007
Well, I ran a chmod -R 777 on both the lib and bin directory and I still am getting the errors. No plugin installations work from the Configure interface.
--
JustinKunder - 28 Sep 2007
Ps. thanks for the quick response.
here is my ls -la: (www is the apache user/group)
total 5416
drwxr-xr-x 10 www www 4096 Sep 28 15:11 .
drwxr-xr-x 6 root wheel 4096 Sep 27 17:08 ..
-r--r--r-- 1 www www 7625 Mar 3 2007 AUTHORS
-r--r--r-- 1 www www 328 Mar 3 2007 COPYING
-r--r--r-- 1 www www 355 Mar 3 2007 COPYRIGHT
-rw-r--r-- 1 www www 23264 Mar 6 2006 CalendarPlugin_installer.pl
-rw-r--r-- 1 www www 23264 Mar 6 2006 CalendarPlugin_installer.pl.bak
-rw-r--r-- 1 www www 30522 May 18 03:40 FlowchartPlugin_installer
-rw-r--r-- 1 www www 30522 May 18 03:40 FlowchartPlugin_installer.bak
-rw-r--r-- 1 www www 30522 May 18 03:40 FlowchartPlugin_installer.pl
-rw-r--r-- 1 www www 30522 May 18 03:40 FlowchartPlugin_installer.pl.bak
-rw-r--r-- 1 www www 52850 Mar 3 2007 INSTALL.html
-r--r--r-- 1 www www 19186 Mar 3 2007 LICENSE
-rw-r--r-- 1 www www 4700165 Mar 3 2007 TWiki-4.1.2.tgz
-rw-r--r-- 1 www www 218924 Mar 3 2007 TWikiHistory.html
-rw-r--r-- 1 www www 140053 Mar 3 2007 TWikiReleaseNotes04x01.html
-rw-r--r-- 1 www www 23278 Mar 3 2007 TWikiUpgradeGuide.html
-rw-r-x--- 1 www www 33746 Sep 17 17:08 WysiwygPlugin_installer
drwxrwxrwx 3 www www 4096 Sep 28 15:10 bin
drwxr-xr-x 9 www www 4096 Sep 28 15:08 data
-r--r--r-- 1 www www 40934 Mar 3 2007 index.html
drwxrwxrwx 4 www www 4096 Sep 27 17:15 lib
drwxr-xr-x 2 www www 4096 Mar 3 2007 locale
drw-r--r-- 8 www www 4096 Sep 28 11:30 pub
-r--r--r-- 1 www www 1610 Mar 3 2007 pub-htaccess.txt
-r--r--r-- 1 www www 3143 Mar 3 2007 readme.txt
-r--r--r-- 1 www www 589 Mar 3 2007 robots.txt
-r--r--r-- 1 www www 554 Mar 3 2007 root-htaccess.txt
-r--r--r-- 1 www www 526 Mar 3 2007 subdir-htaccess.txt
drwxr-xr-x 2 www www 8192 Mar 3 2007 templates
drwxrwxrwx 2 www www 4096 Sep 28 15:08 tmp
drwxr-xr-x 3 www www 4096 Sep 28 00:27 tools
-r--r--r-- 1 www www 5144 Mar 3 2007 twiki_httpd_conf.txt
--
JustinKunder - 28 Sep 2007
Some more information: I ran a tail /var/log/httpd-error.log and seen the following. (this is after trying to install
XinhaEditorPlugin)
[Fri Sep 28 17:10:32 2007] [error] [client {my ip, hidden for security}] BEGIN failed--compilation aborted at (eval 301) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:32 2007] [error] [client {my ip, hidden for security}] Can't locate TWiki/Contrib/YahooUserInterfaceContrib.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int /usr/local/www/twiki/lib/CPAN/lib//5.8.8 /usr/local/www/twiki/lib/CPAN/lib/ /usr/local/www/twiki/lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 302) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:32 2007] [error] [client {my ip, hidden for security}] BEGIN failed--compilation aborted at (eval 302) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:32 2007] [error] [client {my ip, hidden for security}] Can't locate TWiki/Contrib/YetAnotherDBCacheContrib.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int /usr/local/www/twiki/lib/CPAN/lib//5.8.8 /usr/local/www/twiki/lib/CPAN/lib/ /usr/local/www/twiki/lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 303) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:32 2007] [error] [client {my ip, hidden for security}] BEGIN failed--compilation aborted at (eval 303) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:33 2007] [error] [client {my ip, hidden for security}] Can't locate TWiki/Plugins/YetAnotherFormQueryPlugin.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int /usr/local/www/twiki/lib/CPAN/lib//5.8.8 /usr/local/www/twiki/lib/CPAN/lib/ /usr/local/www/twiki/lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 304) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:33 2007] [error] [client {my ip, hidden for security}] BEGIN failed--compilation aborted at (eval 304) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:33 2007] [error] [client {my ip, hidden for security}] Can't locate TWiki/Plugins/YetAnotherXpTrackerPlugin.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int /usr/local/www/twiki/lib/CPAN/lib//5.8.8 /usr/local/www/twiki/lib/CPAN/lib/ /usr/local/www/twiki/lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 305) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:10:33 2007] [error] [client {my ip, hidden for security}] BEGIN failed--compilation aborted at (eval 305) line 1., referer: http://localhost/twiki/bin/configure?t=1191013030
[Fri Sep 28 17:12:52 2007] [error] [client {my ip, hidden for security}] [Fri Sep 28 17:12:52 2007] configure: Installation terminated at /usr/local/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 149., referer: http://localhost/twiki/bin/configure?action=InstallExtension;data=http://twiki.org/cgi-bin/view/Plugins/;pub=http://twiki.org/p/pub/Plugins/;extension=XinhaEditorPlugin
--
JustinKunder - 28 Sep 2007
Here is the same error with another plugin:
lib/TWiki/Plugins/XpTrackerPlugin.pm
templates/
templates/oopstimesheet.tmpl
templates/oopstimesheetreport.tmpl
Error: Failed to move file 'lib/TWiki/Plugins/XpTrackerPlugin/' to /usr/local/www/twiki/lib/TWiki/Plugins/XpTrackerPlugin: Operation not permitted
Content-type: text/html
Software error:
Installation terminated at /usr/local/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 149.
--
JustinKunder - 28 Sep 2007
I get something similar: during configure:: EXTEND.pm Error: Failed to move file '/tmp/UGEnZK9pPW/pub/TWiki/WebPermissionsPlugin/' to /home/.../public_html/twiki/pub/TWiki/WebPermissionsPlugin/: Is a directory
Installation terminated at /home/.../public_html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 149.
--
MartinCleaver - 06 Oct 2007
The following looks like it will solve it for my case:
InstallingPluginsDreamhostErrors
--
MartinCleaver - 06 Oct 2007
Justin's extract from the error log seem to indicate that TWiki tries to load a bunch of extensions which aren't there. I'm sorry, but I am neither familiar with Xinha nor with FreeBSD. Maybe these are dependencies of the Xinha plugin which are not declared so that
configure
fails to pick them up? Or have you tried to install the other contribs and plugins as well, without success? The
@INC
list (which gives the list of places where Perl looks for modules) looks fine if your TWiki libraries are at
/usr/local/www/twiki/lib
.
Another observation: The error messages say
Failed to move file 'bin/wysiwyg/'
. Are there any - maybe specific for FreeBSD - restrictions to move directories?
--
HaraldJoerg - 06 Oct 2007
On the other hand - forget what I just wrote.
InstallingPluginsDreamhostErrors, as suggested by Martin, indeed gives a good explanation. Sorry for the noise.
--
HaraldJoerg - 06 Oct 2007