Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item5442: errors on plugins installaton for both command line and configure/extensions

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Extension GenPDFLatexAddOn, TreeBrowserPlugin, TreePlugin, FormQueryPlugin, FormPlugin, CalendarPlugin, EditTablePlugin, TinyMCEPlugin  
twiki version: TWiki-4.2.0, Tue, 22 Jan 2008, build 16278, Plugin API version 1.2

action: trying to install various plugins

problem:
  • installation fails in configure.pl/extensions
  • and also fails from command line when launching plugin installers
  • similar errors (see below) happen with several different plugins

Example of errors:
  • using command line (tar extraction + launch installer)
http://twiki.org/cgi-bin/view/Plugins/GenPDFAddOn   perl GenPDFAddOn?_installer
Subroutine install redefined at GenPDFAddOn?_installer line 845 (#1)
(W redefine) You redefined a subroutine. To suppress this warning, say

{
no warnings 'redefine';
eval "sub name { ... }";
}

### GenPDFAddOn? Installer ###
This installer must be run from the root directory of your TWiki
installation.
* The script will not do anything without asking you for
confirmation first (unless you used -a).
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
Fetching the archive for TWiki::Contrib::GenPDFAddOn.
An existing /disk/home/cologne/www/html/twiki/GenPDFAddOn.tgz exists; would you like me to use it? [y/n] y
Got a local archive from /disk/home/cologne/www/html/twiki/GenPDFAddOn.tgz
GenPDFAddOn?_installer
bin/
bin/genpdf
data/
data/TWiki/
data/TWiki/GenPDFAddOn.txt
data/TWiki/GenPDFExampleTitleTopic.txt
data/TWiki/GenPDFExampleHeaderFooterTopic.txt
lib/
lib/TWiki/
lib/TWiki/Contrib/
lib/TWiki/Contrib/GenPDF.pm
Archive unpacked
Install data/TWiki/GenPDFExampleHeaderFooterTopic.txt, permissions 0774
Install data/TWiki/GenPDFExampleTitleTopic.txt, permissions 0774
Install data/TWiki/GenPDFAddOn.txt, permissions 0774
Install bin/genpdf, permissions 0774
Install lib/TWiki/Contrib/GenPDF.pm, permissions 0774
Can't locate object method "findUser" via package "TWiki::Users" at
GenPDFAddOn?_installer line 668 (#2)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.

Uncaught exception from user code:
Can't locate object method "findUser" via package "TWiki::Users" at GenPDFAddOn?_installer line 668.
at GenPDFAddOn?_installer line 668
TWiki::checkin('TWiki', 'GenPDFExampleHeaderFooterTopic', 'undef') called at GenPDFAddOn?_installer line 788
TWiki::emplace('/tmp/F5i0VveM50') called at GenPDFAddOn?_installer line 889
TWiki::install() called at GenPDFAddOn?_installer line 937
http://twiki.org/cgi-bin/view/Plugins/GenPDFLatexAddOn   ### GenPDFLatexAddOn? Installer ###
This installer must be run from the root directory of your TWiki
installation.
* The script will not do anything without asking you for
confirmation first.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
Hit to proceed with installation
##########################################################
Checking dependency on HTML::LatexLMP....
*** GenPDFLatexAddOn? depends on perl package HTML::LatexLMP
which is described as "download from TWiki:GenPDFLatexAddOn and install."
But when I tried to find it I got this error:
Can't locate HTML/LatexLMP.pm
##########################################################
Checking dependency on File::Basename....
##########################################################
Checking dependency on File::Temp....
##########################################################
Checking dependency on Archive::Zip....
Can't locate object method "findUser" via package "TWiki::Users" at
GenPDFLatexAddOn?_installer.pl line 562, line 1 (#2)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.

Uncaught exception from user code:
Can't locate object method "findUser" via package "TWiki::Users" at GenPDFLatexAddOn?_installer.pl line 562, line 1.
at GenPDFLatexAddOn?_installer.pl line 562
main::checkin('TWiki', 'GenPDFLatexAddOn', 'undef') called at GenPDFLatexAddOn?_installer.pl line 671
main::install() called at GenPDFLatexAddOn?_installer.pl line 762

http://twiki.org/cgi-bin/view/Plugins/BibtexPlugin   Error: Installer returned errors:
Subroutine install redefined at /disk/home/cologne/www/cgi-bin/twiki/BibtexPlugin_installer.pl line 635.
http://twiki.org/cgi-bin/view/Plugins/ChartPlugin   Error: Installer returned errors:
Subroutine install redefined at /disk/home/cologne/www/cgi-bin/twiki/ChartPlugin_installer.pl line 890.
http://twiki.org/cgi-bin/view/Plugins/CommentPlugin  

Error: Installer returned errors:
Subroutine install redefined at /disk/home/cologne/www/cgi-bin/twiki/CommentPlugin_installer.pl line 940.

Discussion

Additional info:

  • Seemingly same issue as discussed by multiple users at http://twiki.org/cgi-bin/view/Support/AddExtensionInstallerProblem
  • Sounds similar or identical to Item5660 (but this page has more info)
  • An old and closed issue with a similar error message exists as Item3360 - may be completely different, but thought I should post just in case.
  • This item may warrant a move to Urgent priority, if it is affecting multiple users trying to install any plugin for TWiki 4.2? Candidate for fix in 4.2.1, or even a patch?

-- TWiki:Main.RasmusPraestholm - 17 Jun 2008

I agree that it warrants urgent status. In all the above cases the errors can be resolved by getting the extensions repackaged using the latest installer code with the patch and extender.pl from http://twiki.org/cgi-bin/view/Codev/ExtenderScript. breadCrumbsPlugin and CommentPlugin have already been done, and I was able to install them.

Retasked to the extension authors.

-- CrawfordCurrie - 18 Jun 2008

They will never touch even a fraction of them.

Do we have an overview of which extensions that have this issue?

Is it potentially all release since 2005 or...?

-- TWiki:Main.KennethLavrsen - 18 Jun 2008

I'm trying to edit in a few more plugin names I harvested from other pages, but sometimes have trouble getting a normal edit to submit here.

I just installed ActionTrackerPlugin on a TWiki 4.2, and to my surprise it worked. Well, I still hit the issue I documented at http://twiki.org/cgi-bin/view/Support/ActionTrackerPluginSkinProblemOnEdit, but it installed alright (and I got the same issue on 4.1.2, so it can't be a 4.2 problem)

I might be able to do some plugin install testing (I've been meaning to make a crazy almost every plugin installed box anyway). Are there any existing frameworky-like resources to help test or organize results for testing plugins, or do I just list them and start testing on a new page like TWiki04x02x00PluginInstallTest ? That way others can edit in their results too. Unless that's overkill - I'm not yet very familiar with the development and testing process here.

Does trying out the process on the Extender Script pages require Subversion access, to get the last couple relevant revisions? It looks on the page like it might.

Supposed plugins having seen this symptom: GenPDFAddOn, GenPDFLatexAddOn, TreeBrowserPlugin, TreePlugin, FormQueryPlugin, FormPlugin, CalendarPlugin, EditTablePlugin, TinyMCEPlugin

-- TWiki:Main.RasmusPraestholm - 18 Jun 2008

It would be good to identify a certain characteristic for the problem extensions so we could do a simple scripted search. Then it would be a relatively small problem to republish the ones with the problem. It is a simple set of command from a subversion checkout.

-- TWiki:Main.KennethLavrsen - 18 Jun 2008

I'm about to re publish GenPDFAddOn, so removing it from the list

-- SvenDowideit - 25 Jun 2008

It's fairly easy to spot which extensions will have a problem; it's any that have an installer script that does not use extender.pl, so the size of the installer script is a dead giveaway. Also there will be a date before which packages will have been done the 'old way' by default.

For anyone with a subversion checkout it's trivial to republish all the extensions, e.g. for plugins foreach ext in *Plugin; do (cd $ext/lib/TWiki/Plugins/$ext; perl build.pl release); done (untested, but I'm sure you get the idea)

-- TWiki:Main.CrawfordCurrie - 27 Jun 2008

I will do it. Scheduled for the weekend.

-- TWiki:Main.OliverKrueger - 03 Jul 2008

Examined some installer files to see, which extensions need a rebuild and compliled the following list of rebuild candidates:

Installers without extender.pl call rebuild done
TWiki:Plugins.AccessStatsPlugin DONE
TWiki:Plugins.AntiWikiSpamPlugin failed due to ACL
TWiki:Plugins.AnyWikiDrawPlugin (DONE)
TWiki:Plugins.AttachContentPlugin DONE
TWiki:Plugins.AutoCompletePlugin DONE
TWiki:Plugins.BatchUploadPlugin DONE
TWiki:Plugins.BeautifierPlugin DONE
TWiki:Plugins.ClamAVPlugin not in svn, defered
TWiki:Plugins.CliRunnerContrib DONE
TWiki:Plugins.CounterPlugin DONE
TWiki:Plugins.DateFieldPlugin  
TWiki:Plugins.PatternSkin  
TWiki:Plugins.SpacedWikiWordPlugin  
TWiki:Plugins.TdbContrib  
TWiki:Plugins.TopicClassificationAddOn  
TWiki:Plugins.TreeBrowserPlugin  
TWiki:Plugins.TreePlugin  
TWiki:Plugins.TwistyContrib  
TWiki:Plugins.CalendarPlugin DONE
TWiki:Plugins.GenPDFLatexAddOn  
TWiki:Plugins.RevCommentPlugin  
TWiki:Plugins.UserInfoPlugin  
TWiki:Plugins.WebDAVPlugin  
TWiki:Plugins.XpTrackerPlugin  
TWiki:Plugins.DoxygenPlugin  
TWiki:Plugins.EditTablerowPlugin  
TWiki:Plugins.ExecuterContrib  
TWiki:Plugins.ExtendedSelectPlugin  
TWiki:Plugins.FileUploadPlugin  
TWiki:Plugins.FlowchartPlugin  
TWiki:Plugins.FormQueryPlugin  
TWiki:Plugins.FundraisingPlugin  
TWiki:Plugins.GoogleAjaxSearchPlugin  
TWiki:Plugins.GoogleAnalyticsPlugin  
TWiki:Plugins.HeadlinesPlugin  
TWiki:Plugins.HostnamePlugin  
TWiki:Plugins.HTTPDUserAdminContrib  
TWiki:Plugins.ImmediateNotifyPlugin  
TWiki:Plugins.JQueryDevPlugin  
TWiki:Plugins.JSPopupPlugin  
TWiki:Plugins.JSUnitContrib  
TWiki:Plugins.KupuContrib  
TWiki:Plugins.LatexModePlugin  
TWiki:Plugins.MailPageAddOn  
TWiki:Plugins.MetaWorkflowPlugin  
TWiki:Plugins.MultiEditPlugin  
TWiki:Plugins.OrphansPlugin  
TWiki:Plugins.PerforcePlugin  
TWiki:Plugins.PhotoarchivePlugin  
TWiki:Plugins.QuizPlugin  
TWiki:Plugins.RecursiveRenderPlugin  
TWiki:Plugins.RevisionLinkPlugin  
TWiki:Plugins.SearchSummaryPlugin  
TWiki:Plugins.SkillsPlugin  
TWiki:Plugins.StylePlugin  
TWiki:Plugins.TaskExeContrib  
TWiki:Plugins.TaskExePlugin  
TWiki:Plugins.TemplateToolkitPlugin  
TWiki:Plugins.TipsContrib  
TWiki:Plugins.TopicCreatePlugin  
TWiki:Plugins.TWikiAjaxContrib  
TWiki:Plugins.TWikiAjaxPlugin  
TWiki:Plugins.UploadToTWikiAddOn  
TWiki:Plugins.WikiwygContrib  
TWiki:Plugins.WorkflowReportsContrib  
TWiki:Plugins.XmlRpcContrib  
TWiki:Plugins.YahooUserInterfaceContrib  
TWiki:Plugins.YetAnotherDBCacheContrib  
TWiki:Plugins.YetAnotherXpTrackerPlugin  
TWiki:Plugins.BibtexPlugin  
TWiki:Plugins.BlogPlugin  
TWiki:Plugins.DirectedGraphWebMapPlugin  
TWiki:Plugins.EasyTimelinePlugin  
TWiki:Plugins.ExcelImportExportPlugin DONE
TWiki:Plugins.ExternalLinkPlugin  
TWiki:Plugins.FormFieldListPlugin  
TWiki:Plugins.ForUserLanguagesPlugin  
TWiki:Plugins.FuncUsersContrib  
TWiki:Plugins.GnuPlotPlugin  
TWiki:Plugins.HtmlFormsPlugin  
TWiki:Plugins.ImgPlugin  
TWiki:Plugins.LightboxPlugin  
TWiki:Plugins.LinkOptionsPlugin  
TWiki:Plugins.LocalTimePlugin  
TWiki:Plugins.MasonPlugin  
TWiki:Plugins.NewsPlugin  
TWiki:Plugins.PloticusPlugin  
TWiki:Plugins.QuickCalendarPlugin  
TWiki:Plugins.QuickMenuSkin  
TWiki:Plugins.RandomTopicPlugin  
TWiki:Plugins.SlidyPlugin  
TWiki:Plugins.SmartEditPlugin  
TWiki:Plugins.SoapClientPlugin  
TWiki:Plugins.TocPlugin  
TWiki:Plugins.ToolTipPlugin DONE
TWiki:Plugins.TopicReferencePlugin  
TWiki:Plugins.TWikiDrawPlugin  
TWiki:Plugins.UpdateInfoPlugin  
TWiki:Plugins.YetAnotherFormQueryPlugin  
Extensions without an installer
TWiki:Plugins.AutoNavigationPlugin  
TWiki:Plugins.BBCodePlugin  
TWiki:Plugins.BeeWikiPlugin  
TWiki:Plugins.BlackListPlugin  
TWiki:Plugins.BugzillaQueryPlugin  
TWiki:Plugins.CaboteriaSkin  
TWiki:Plugins.CacheAddOn  
TWiki:Plugins.CaptchaPlugin  
TWiki:Plugins.ChecklistPlugin  
TWiki:Plugins.ChecklistTablePlugin  
TWiki:Plugins.ColorPickerContrib  
TWiki:Plugins.CommonHeaderFooterPlugin  
TWiki:Plugins.CopyrightPlugin  
TWiki:Plugins.DBIQueryPlugin  
TWiki:Plugins.DiffWordByWordAddOn  
TWiki:Plugins.DiskUsagePlugin  
TWiki:Plugins.EditSyntaxPlugin  
TWiki:Plugins.EmailObfuscationPlugin  
TWiki:Plugins.FluidPivotsPlugin  
TWiki:Plugins.FootNotePlugin  
TWiki:Plugins.ForEachPlugin  
TWiki:Plugins.GaugePlugin  
TWiki:Plugins.GenApplicationPlugin  
TWiki:Plugins.GlobalReplacePlugin  
TWiki:Plugins.GoogieSpellContrib  
TWiki:Plugins.GoogieSpellPlugin  
TWiki:Plugins.GuidPlugin  
TWiki:Plugins.HtmlMetaPlugin  
TWiki:Plugins.IndexGenAddOn  
TWiki:Plugins.InterwikiPreviewPlugin  
TWiki:Plugins.JavaDocPlugin  
TWiki:Plugins.KinoSearchPlugin  
TWiki:Plugins.LdapPlugin  
TWiki:Plugins.LocalCityTimePlugin  
TWiki:Plugins.LocalizeContrib  
TWiki:Plugins.LoginEmailPlugin  
TWiki:Plugins.LoginNameAliasesPlugin  
TWiki:Plugins.MarkupEditorContrib  
TWiki:Plugins.MercurialContrib  
TWiki:Plugins.MostPopularPlugin  
TWiki:Plugins.NavBarAddOn  
TWiki:Plugins.ObjectPlugin  
TWiki:Plugins.OpenOffice2TWikiAddOn  
TWiki:Plugins.ParseTopicTablesPlugin  
TWiki:Plugins.PerlDocPlugin  
TWiki:Plugins.PodPlugin  
TWiki:Plugins.PostgreSqlAutoDocPlugin  
TWiki:Plugins.PostgreSqlPsqlPlugin  
TWiki:Plugins.ProjectPlannerPlugin  
TWiki:Plugins.PublicCacheAddOn  
TWiki:Plugins.PublishWebPlugin  
TWiki:Plugins.RackPlannerPlugin  
TWiki:Plugins.RandomQuotePlugin  
TWiki:Plugins.RcsSyncAddOn  
TWiki:Plugins.RecentChangesPlugin  
TWiki:Plugins.RemixAddOn  
TWiki:Plugins.RemoteFileAttachPlugin  
TWiki:Plugins.RequireRegistrationPlugin  
TWiki:Plugins.SablotronPlugin  
TWiki:Plugins.SearchEnginePluceneAddOn  
TWiki:Plugins.SearchPDFPlugin  
TWiki:Plugins.ShortURLPlugin  
TWiki:Plugins.SimpleBlueSkin  
TWiki:Plugins.SmartEditAddOn  
TWiki:Plugins.SourceHighlightPlugin  
TWiki:Plugins.StopWikiWordLinkPlugin  
TWiki:Plugins.SubscribeAddOn  
TWiki:Plugins.SvnPlugin  
TWiki:Plugins.TabbedNavigationAddOn  
TWiki:Plugins.TextSectionPlugin  
TWiki:Plugins.TimeTablePlugin  
TWiki:Plugins.ToPDFAddOn  
TWiki:Plugins.TopicCryptPlugin  
TWiki:Plugins.TopicTranslationsPlugin  
TWiki:Plugins.TWikiDotNetForumAppAddOn  
TWiki:Plugins.TWikiUmlPlugin  
TWiki:Plugins.VarCachePlugin  
TWiki:Plugins.XinhaEditorPlugin  
TWiki:Plugins.XmlQueryPlugin  

-- TWiki:Main.OliverKrueger - 05 Jul 2008

I buried the idea of autmatically republish the plugins. Kenneth kindly warned me about extensions once put into svn but actually being developed via t.o.

I will continue to republish them manually - a few each day. Feel free to change the order of the listing above to prioritise important plugins.

-- TWiki:Main.OliverKrueger - 06 Jul 2008

I've rebuilt TWiki:Plugins.ToolTipPlugin - Trial release attached to the Dev topic. I'll update it once I get some feedback.

-- TWiki:Main.GeorgeClark - 29 Aug 2008

I look forward to the successful completion of this bug. smile

-- TWiki:Main.CharlesHowes - 07 Oct 2008

Im coordinating the work on this item with TopicNameMappingTable. Its probably a good idea to combine this task with the mass re-releasing of extenions in our new home.

-- OliverKrueger - 11 Nov 2008

Closing this topic, since every extension which is ported to this websites repository is/will be rebuild from svn and therefore gets a fresh extender.pl.

-- OliverKrueger - 04 Feb 2009

ItemTemplate edit

Summary errors on plugins installaton for both command line and configure/extensions
ReportedBy TWiki:Main.LunaDeFerrari
Codebase
SVN Range TWiki-5.0.0, Sun, 09 Mar 2008, build 16496
AppliesTo Extension
Component GenPDFLatexAddOn, TreeBrowserPlugin, TreePlugin, FormQueryPlugin, FormPlugin, CalendarPlugin, EditTablePlugin, TinyMCEPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins TWikirev:16900 TWikirev:16901 TWikirev:16986 TWikirev:17488 TWikirev:17489
TargetRelease patch
ReleasedIn
Topic revision: r30 - 04 Feb 2009, OliverKrueger
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License