Item11301: Errors when re-installing FormPlugin.

pencil
Priority: Low
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: Configure, FormPlugin
Branches: Release01x01 trunk
Reported By: JayenAshar
Waiting For:
Last Change By: GeorgeClark
reinstalling other plugins (tested with HistoryPlugin) works

uninstalling and installing FormPlugin works

Installing FormPlugin

Loading package installer
fetching installer from http://foswiki.org/pub/Extensions/ ... succeeded
Dependency Report for FormPlugin ..
===== INSTALLED =======
JSON version 2.53 loaded

List::MoreUtils version 0.33 loaded

Regexp::Common version 2011041701 loaded

Foswiki::Plugins::JQueryPlugin version 4.10 loaded


Creating Backup of FormPlugin ...
Backup saved into /.../Foswiki-1.1.3/working/configure/backup/FormPlugin-backup-20111127-124129 
   Archived as /.../Foswiki-1.1.3/working/configure/backup/FormPlugin-backup-20111127-124129.tgz 
Running Pre-install exit for FormPlugin ...
Installing FormPlugin... 
Unpacking /tmp/9mPPzJCseA.tgz...
Checked in: data/Sandbox/FormPluginExamples.txt  as Sandbox.FormPluginExamples
Checked in: data/Sandbox/FormPluginExamplesFeedback.txt  as Sandbox.FormPluginExamplesFeedback
Checked in: data/System/FormPlugin.txt  as System.FormPlugin
Attached:   pub/System/FormPlugin/screenshot_validation_example.png to System/FormPlugin
Installed:  FormPlugin_installer to /.../Foswiki-1.1.3/working/configure/pkgdata
Error: Errors encountered during package installation. The Extension may not be usable.
Source file missing, probable packaging error
Source file missing, probable packaging error
Source file missing, probable packaging error
Failed to move/copy file '/tmp/TD7oYZevbM/FormPlugin_installer' to /.../Foswiki-1.1.3/working/configure/pkgdata/FormPlugin_installer: No such file or directory
Installation terminated

-- 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
 
Topic revision: r14 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy