Priority: Low
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: Configure,
FormPlugin
Branches: Release01x01 trunk
reinstalling other plugins (tested with
HistoryPlugin) works
uninstalling and installing
FormPlugin works
--
JayenAshar - 27 Nov 2011
I can't recreate the issue -I've reinstalled
FormPlugin on 1.1.3 several times, no errors. Are there any other errors logged? Can you try to install from the shell? Is that really the complete log of files installed, or have you excerpted the list? There should be a lot more files installed.
--
GeorgeClark - 27 Nov 2011
No other errors shown to the web browser. Errors in working/logs/error.log:
| 2011-11-27T06:15:09Z warning | Cannot mkdir {PublishPlugin}{Dir} Cannot mkdir {PublishPlugin}{Dir} at /.../Foswiki-1.1.3/lib/Foswiki/Plugins/PublishPlugin.pm line 32.
|
Errors in apache log:
[Sun Nov 27 17:16:18 2011] [error] [client 0.0.0.0] Indexing attachment System.FormPlugin.screenshot_validation_example.png, referer: https://server/bin/configure
[Sun Nov 27 17:16:18 2011] [error] [client 0.0.0.0] Committing index, referer: https://server/bin/configure
tools/extension_installer works fine (with or without the cached downloaded copy). The following is printed to stderr, presumably from ldapplugin and kinosearch:
fetchUsers=user1,user2
Indexing attachment System.FormPlugin.screenshot_validation_example.png
Indexing attachment System.FormPlugin.form_on_submit_diagram.png
Indexing attachment System.FormPlugin.error.gif
Indexing attachment System.FormPlugin.formplugin.css
That really is the complete log. I have only obfuscated path names.
Patching
PublishPlugin to give more info:
@@ -30,7 +30,7 @@
&& !-e $Foswiki::cfg{PublishPlugin}{Dir} )
{
mkdir( $Foswiki::cfg{PublishPlugin}{Dir}, 0777 )
- || die "Cannot mkdir {PublishPlugin}{Dir}";
+ || die "Cannot mkdir {PublishPlugin}{Dir}: $Foswiki::cfg{PublishPlugin}{Dir}: $!";
}
unless ( -d $Foswiki::cfg{PublishPlugin}{Dir}
&& -w $Foswiki::cfg{PublishPlugin}{Dir} )
I can see $Foswiki::cfg{PublishPlugin}{Dir} contains "$Foswiki::cfg{PubDir}/publish/" which is probably not being re-evaluated.
Changing Item to be against
PublishPlugin.
--
JayenAshar - 27 Nov 2011
Upgraded to 1.1.4, disabled and removed
PublishPlugin.
FormPlugin re-install/upgrade problem still persists. Changing Item back to
FormPlugin.
--
JayenAshar - 22 Dec 2011
The unexpanded config variables is noted in
Item11384 with a possible fix. Still unable to reproduce the file copy issue and don't understand why it happens.
--
GeorgeClark - 22 Dec 2011
Not sure what changed between yesterday and today, but kinoupdate doesn't seem to work (
Item11388). As a result, I disabled
EnableOnSaveUpdates, and I'm no longer seeing this issue. Perhaps there is an interaction issue with these two plugins?
--
JayenAshar - 23 Dec 2011
If this issue returns, please modify
lib/Foswiki/Configure/Package.pm
with the following to get some additional details:
diff --git a/core/lib/Foswiki/Configure/Package.pm b/core/lib/Foswiki/Configure/Package.pm
index 2130074..5b7c568 100644
--- a/core/lib/Foswiki/Configure/Package.pm
+++ b/core/lib/Foswiki/Configure/Package.pm
@@ -666,7 +666,7 @@ sub _installAttachments {
my $err = '';
$err = "Target file $tfile is not writable\n"
if ( -e "$tfile" && !-w "$tfile" && !-o "$tfile" );
- $err .= "Source file missing, probable packaging error\n"
+ $err .= "Source file $dir/$file missing, probable packaging error\n"
if ( !-e "$dir/$file" );
if ($err) {
$errors .= $err;
And/or contact us on IRC so we can do some more interactive debugging of the problems.
--
GeorgeClark - 23 Dec 2011
If this issue returns, I'll add all kinds of debugging and hopefully have a more accurate error message.
--
JayenAshar - 23 Dec 2011