I have tried deleting the lucene directory and that didn't work. I setup a new Ubuntu 14.04 LTS Server and it works there. I will try to compare the two installs.
BTW, Did you know the quick start instructions don't work? Otherwise a pretty straight forward install; 1. apt-get install tomcat6 2. put JSPWiki.war in /var/lib/tomcat6/webapps 3. bounce tomcat 4. http://{yourip}:8080/JSPWiki/Install.jsp 5. Get a 404 Error 6. sudo service tomcat6 stop 7. sudo vim /usr/share/tomcat6/lib/jspwiki-custom.properties containing: log4j.appender.FileLog.File=/tmp/jspwiki.log 8. sudo service tomcat6 start 9. http://{yourip}:8080/JSPWiki/Install.jsp 10. Get a 404 Error 11. sudo service tomcat6 stop 12. sudo mkdir /usr/share/tomcat6/jspwiki-files 13. sudo chown tomcat6:tomcat6 /usr/share/tomcat6/jspwiki-files 13. sudo service tomcat6 start 14. http://{yourip}:8080/JSPWiki/Install.jsp 15. Fill in Page Storage with "/usr/share/tomcat6/jspwiki-files" 16. Click Configure 17. sudo cp /tmp/tomcat6-tomcat6-tmp/jspwiki-custom.properties /usr/share/tomcat6/lib/ 18. sudo service tomcat6 stop 19. sudo service tomcat6 start 20. http://{yourip}:8080/JSPWiki/Install.jsp and get redirected to the logon page -----Original Message----- From: Siegfried Goeschl [mailto:[email protected]] Sent: February-06-15 14:48 To: [email protected] Subject: Re: JSPWiki no results from LuceneSearchProvider Hi Brian, a wild guess assuming that you first started JSPWiki and later copied the wiki files * can you stop JSPWiki * delete the /var/lib/jspwiki/workDir/lucene directory * start JSPWiki again * check if the “lucene” directory contains more & bigger files * check if the search is working again JSPWiki will re-index the existing pages if no “lucent” directory is found but otherwise assume that all changes are done though the JSPWiki server Cheers, Siegfried Goeschl > On 06 Feb 2015, at 20:14, Brian Buchanan <[email protected]> wrote: > > Hi, Thanks for the help. > > I'm using the packaged version from Ubuntu Universe. The package is 2.8.0-5 > and the LeftMenu footer says 2.8.0-beta-21. > > On this same server I just tried a parallel install with the 2.10.1 WAR file, > with the same results. > > This Ubuntu server has a bit of history, it started as a 13.10 and I > originally installed Tomcat7 (I chose the installer option to make it a > Tomcat Java Server) before I realized I had to use Tomcat6 with the package > version of JSPWiki. > > After the install I copied over the Wikifiles, chown'ed, and created a > template with a new logo. I'm able to add, edit and delete Wiki Pages. > (I can't change My Prefs/Profile/E-mail address, I get an error about > permission denied to /etc/jspwiki/userdatabase.xml.new ) > > The workDir/lucene directory (I even tried moving it out of /tmp) contains > two small files: > tech@hermes:/var/lib/jspwiki/workDir/lucene$ ls -lA total 8 > -rw-r--r-- 1 tomcat6 tomcat6 32 Feb 6 12:20 segments_1 > -rw-r--r-- 1 tomcat6 tomcat6 20 Feb 6 12:20 segments.gen > > My Config (with workDir set back to /tmp): > tech@hermes:~$ grep -v "^$\|^\s*\#" /etc/jspwiki/jspwiki.properties > jspwiki.applicationName = JSPWiki jspwiki.pageProvider = > VersioningFileProvider jspwiki.usePageCache = true > jspwiki.fileSystemProvider.pageDir = /var/lib/jspwiki/default/en > jspwiki.workDir = /tmp jspwiki.attachmentProvider = > BasicAttachmentProvider jspwiki.basicAttachmentProvider.storageDir = > /var/lib/jspwiki/default/en jspwiki.attachment.forbidden=*.jsp > jspwiki.diffProvider = TraditionalDiffProvider jspwiki.baseURL = > http://hermes.interfast.ca/JSPWiki/ > jspwiki.referenceStyle=relative > jspwiki.encoding = UTF-8 > jspwiki.translatorReader.allowHTML = false > jspwiki.breakTitleWithSpaces = false > jspwiki.translatorReader.matchEnglishPlurals = true > jspwiki.translatorReader.camelCaseLinks = false jspwiki.templateDir = > interfast jspwiki.translatorReader.useOutlinkImage = true > jspwiki.lockExpiryTime = 60 jspwiki.searchProvider = > LuceneSearchProvider jspwiki.specialPage.CreateGroup = NewGroup.jsp > jspwiki.specialPage.FindPage = Search.jsp jspwiki.specialPage.Login = > Login.jsp jspwiki.specialPage.NewGroup = NewGroup.jsp > jspwiki.specialPage.UserPreferences = UserPreferences.jsp > jspwiki.plugin.searchPath = jspwiki.loginModule.class = > com.ecyrd.jspwiki.auth.login.UserDatabaseLoginModule > jspwiki.authorizer = > com.ecyrd.jspwiki.auth.authorize.WebContainerAuthorizer > jspwiki.groupdatabase = > com.ecyrd.jspwiki.auth.authorize.XMLGroupDatabase > jspwiki.userdatabase = com.ecyrd.jspwiki.auth.user.XMLUserDatabase > jspwiki.xmlUserDatabaseFile = /etc/jspwiki/userdatabase.xml > jspwiki.aclManager = com.ecyrd.jspwiki.auth.acl.DefaultAclManager > jspwiki.interWikiRef.JSPWiki = http://www.jspwiki.org/Wiki.jsp?page=%s > jspwiki.interWikiRef.Edit = Edit.jsp?page=%s > jspwiki.interWikiRef.WikiWikiWeb = http://c2.com/cgi/wiki?%s > jspwiki.interWikiRef.TWiki = http://twiki.org/cgi-bin/view/TWiki/%s > jspwiki.interWikiRef.MeatballWiki = http://usemod.com/cgi-bin/mb.pl?%s > jspwiki.interWikiRef.Wikipedia = http://www.wikipedia.com/wiki/%s > jspwiki.interWikiRef.Google = http://www.google.com/search?q=%s > jspwiki.interWikiRef.Doc = http://doc.jspwiki.org/2.2/Wiki.jsp?page=%s > jspwiki.rss.generate = true > jspwiki.rss.fileName = rss.rdf > jspwiki.rss.interval = 3600 > jspwiki.rss.channelDescription = Oh poor me, my owner has not set \ > a channel description at all. \ > Pity me. > jspwiki.rss.channelLanguage = en-us > jspwiki.userdatabase.datasource=jdbc/UserDatabase > jspwiki.userdatabase.table=users > jspwiki.userdatabase.uid=uid > jspwiki.userdatabase.email=email > jspwiki.userdatabase.fullName=full_name > jspwiki.userdatabase.loginName=login_name > jspwiki.userdatabase.password=password > jspwiki.userdatabase.wikiName=wiki_name > jspwiki.userdatabase.created=created > jspwiki.userdatabase.modified=modified > jspwiki.userdatabase.lockExpiry=lock_expiry > jspwiki.userdatabase.attributes=attributes > jspwiki.userdatabase.roleTable=roles > jspwiki.userdatabase.role=role > jspwiki.groupdatabase.datasource=jdbc/GroupDatabase > jspwiki.groupdatabase.table=groups > jspwiki.groupdatabase.membertable=group_members > jspwiki.groupdatabase.created=created > jspwiki.groupdatabase.creator=creator > jspwiki.groupdatabase.name=name > jspwiki.groupdatabase.member=member > jspwiki.groupdatabase.modified=modified > jspwiki.groupdatabase.modifier=modifier > mail.from = @mail.from@ > mail.smtp.host = @mail.smtp.host@ > log4j.appender.FileLog = org.apache.log4j.RollingFileAppender > log4j.appender.FileLog.MaxFileSize = 10MB > log4j.appender.FileLog.MaxBackupIndex = 14 log4j.appender.FileLog.File > = /var/log/tomcat6/jspwiki.log log4j.appender.FileLog.layout = > org.apache.log4j.PatternLayout > log4j.appender.FileLog.layout.ConversionPattern=%d [%t] %p %c %x - > %m%n log4j.rootCategory=DEBUG,FileLog > > The catalina.out log has a few error on startup about > java.io.NotSerializableException: com.ecyrd.jspwiki.auth.UserManager but as > far as Lucene entries: > > Starting up background thread: JSPWiki Lucene Indexer. > Starting up background thread: WatchDog for 'JSPWiki'. > Starting up background thread: JSPWiki RSS Generator. > Feb 06, 2015 1:57:58 PM org.apache.catalina.startup.HostConfig > deployDescriptor > INFO: Deploying configuration descriptor ROOT.xml Feb 06, 2015 1:57:58 > PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 06, 2015 1:57:58 PM > org.apache.catalina.startup.Catalina start > INFO: Server startup in 4218 ms > > And in the jspwiki.log > 2015-02-06 13:57:55,446 [main] DEBUG > com.ecyrd.jspwiki.search.SearchManager - Loaded search provider > com.ecyrd.jspwiki.search.LuceneSearchProvider@253a056f > 2015-02-06 13:57:55,446 [main] INFO > com.ecyrd.jspwiki.search.LuceneSearchProvider - Lucene enabled, cache > will be in: /var/lib/jspwiki/workDir/lucene > 2015-02-06 13:57:55,458 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Full reindex, expected completion in 2147483647 s > 2015-02-06 13:57:55,458 [WatchDog for 'JSPWiki'] DEBUG > com.ecyrd.jspwiki.util.WatchDog - Checking watchdog 'JSPWiki Lucene Indexer' > 2015-02-06 13:57:55,459 [JSPWiki Lucene Indexer] INFO > com.ecyrd.jspwiki.search.LuceneSearchProvider - Files found in Lucene > directory, not reindexing. > 2015-02-06 13:57:55,459 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Full reindex > 2015-02-06 13:57:55,459 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:57:55,459 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > > 2015-02-06 13:58:00,460 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:00,460 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:05,461 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:05,461 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:10,462 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:10,462 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:15,463 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:15,464 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:20,465 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:20,467 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:25,463 [WatchDog for 'JSPWiki'] DEBUG > com.ecyrd.jspwiki.util.WatchDog - Checking watchdog 'JSPWiki RSS Generator' > 2015-02-06 13:58:25,465 [WatchDog for 'JSPWiki'] DEBUG > com.ecyrd.jspwiki.util.WatchDog - Checking watchdog 'JSPWiki Lucene Indexer' > 2015-02-06 13:58:25,468 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:25,468 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:30,469 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:30,470 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:35,471 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:35,471 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:40,472 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:40,472 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:45,473 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:45,473 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:50,474 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Entering > state Emptying index queue, expected completion in 60 s > 2015-02-06 13:58:50,474 [JSPWiki Lucene Indexer] DEBUG > com.ecyrd.jspwiki.util.WatchDog - JSPWiki Lucene Indexer: Exiting > state Emptying index queue > 2015-02-06 13:58:55,468 [WatchDog for 'JSPWiki'] DEBUG > com.ecyrd.jspwiki.util.WatchDog - Checking watchdog 'JSPWiki RSS Generator' > > I'm going to make a new Ubuntu Server 14.04.1 LTS Virtual Machine, install > Tomcat6, use the war file and see what happens. > > Brian > > -----Original Message----- > From: Siegfried Goeschl [mailto:[email protected]] > Sent: February-06-15 12:26 > To: [email protected] > Subject: Re: JSPWiki no results from LuceneSearchProvider > > Hi Brian, > > a few thoughts along the line > > * are you using the old version (from your Windows Server) or a newer > released version? > * does the log file give any hints (errors, directories, file permissions, > what so ever)? > * how does your configuration file look like? > > Cheers, > > Siegfried Goeschl > >> On 06 Feb 2015, at 18:21, Brian Buchanan <[email protected]> wrote: >> >> Hello, >> >> I migrated from an old Windows Sever running Tomcat5 to a new Ubuntu 14.04 >> server running Tomcat6 and I'm not getting any search results when I use the >> default LuceneSearchProvider. >> >> When I tested switching to BasicSearchProvider, I do get search results. >> >> Is there something missing from the Server install of Ubuntu that Lucene >> needs to return results? >> >> Brian >> >> >> >> ===================================================================== >> = ================================================== >> >> This email may contain material that is confidential and/or >> privileged and is for the sole use of its intended recipient. All >> pricing information contained in this email or any attachment to this email >> is confidential and proprietary information. Any review, reliance or >> distribution by others, without express permission, is strictly prohibited. >> If you are not the intended recipient, please contact the sender and delete >> all copies. >> >> ===================================================================== >> = ================================================== > > > ====================================================================== > ================================================== > > This email may contain material that is confidential and/or privileged > and is for the sole use of its intended recipient. All pricing > information contained in this email or any attachment to this email is > confidential and proprietary information. Any review, reliance or > distribution by others, without express permission, is strictly prohibited. > If you are not the intended recipient, please contact the sender and delete > all copies. > > ====================================================================== > ================================================== ======================================================================================================================== This email may contain material that is confidential and/or privileged and is for the sole use of its intended recipient. All pricing information contained in this email or any attachment to this email is confidential and proprietary information. Any review, reliance or distribution by others, without express permission, is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ========================================================================================================================
