Resource Menu

Id : 106
Type : BUG
Reporter : ze
Assignee :
Sebastien Jourdain
Priority : BLOCKER
Creation Date : 13 Jun 07 02:42
Last Update Date : 14 Jun 07 01:43
Resolution : Fixed
Bootstrap error
Hi,

I have try (many times) to finish install of 2.2 but Bootstrap stop with:

# Importing Group "Authors" at node /documentation/doc/authors
Problem during import()
Caused by : Error in createGroup : Error in bind : A resource is already binded with this URI /documentation/doc/authors
I use Debian etch with JDK 1.6 - (I also try with 1.5) -

Here the log:

IMPORT, createProfile = true
Wed Jun 13 10:11:00 CDT 2007 : /users/root :  : kernel.create
Wed Jun 13 10:11:00 CDT 2007 : /users/root :  : kernel.resetAcls
Wed Jun 13 10:11:00 CDT 2007 : /users/root :  : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root :  : kernel.setProperty
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /ServerConfig : kernel.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /ServerConfig : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /ServerConfig : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /ServerConfig : kernel.setProperty
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : kernel.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : kernel.setProperty
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : kernel.bind
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : libresourceWiki.page.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation : libresourceWiki.page.editContent
org.libresource.LibresourceException: Can't remove a document
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:128)
        at org.libresource.search.LibresourceSearch.reindex(LibresourceSearch.java:134)
        at org.libresource.kernel.ejb.IndexationEventListenerBean.onMessage(IndexationEventListenerBean.java:94)
        at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214)
        at $Proxy0.onMessage(Unknown Source)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
Caused by: java.io.FileNotFoundException: /home/richard_y/LibreSource/tmp-work/index/segments (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(Unknown Source)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
        at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:121)
        … 16 more
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : kernel.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : kernel.setProperty
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : kernel.bind
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : libresourceWiki.page.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : libresourceWiki.page.editContent
org.libresource.LibresourceException: Can't remove a document
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:128)
        at org.libresource.search.LibresourceSearch.reindex(LibresourceSearch.java:134)
        at org.libresource.kernel.ejb.IndexationEventListenerBean.onMessage(IndexationEventListenerBean.java:94)
        at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214)
        at $Proxy0.onMessage(Unknown Source)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
Caused by: java.io.FileNotFoundException: /home/richard_y/LibreSource/tmp-work/index/segments (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(Unknown Source)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
        at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:121)
        … 16 more
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc : libresourceWiki.page.edit
org.libresource.LibresourceException: Can't remove a document
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:128)
        at org.libresource.search.LibresourceSearch.reindex(LibresourceSearch.java:134)
        at org.libresource.kernel.ejb.IndexationEventListenerBean.onMessage(IndexationEventListenerBean.java:94)
        at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.objectweb.jonas_ejb.container.JMessageEndpointProxy.invoke(JMessageEndpointProxy.java:214)
        at $Proxy0.onMessage(Unknown Source)
        at org.objectweb.joram.client.connector.InboundSession.onMessage(InboundSession.java:172)
        at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:449)
        at org.objectweb.joram.client.jms.MultiSessionConsumer.onMessage(MultiSessionConsumer.java:168)
        at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1835)
        at org.objectweb.joram.client.jms.Session.run(Session.java:878)
        at org.objectweb.joram.client.connector.InboundSession.run(InboundSession.java:157)
        at org.objectweb.jonas_lib.JWorkManager.doMyWork(JWorkManager.java:386)
        at org.objectweb.jonas_lib.JWorkManager.nextWork(JWorkManager.java:443)
        at org.objectweb.jonas_lib.JWorkManager$WorkThread.run(JWorkManager.java:536)
Caused by: java.io.FileNotFoundException: /home/richard_y/LibreSource/tmp-work/index/segments (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(Unknown Source)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
        at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
        at org.libresource.search.LibresourceSearch.remove(LibresourceSearch.java:121)
        … 16 more
2007-06-13 10:11:01,810 : JManagedConnection.prepareStatement : reuse an open pstmt
2007-06-13 10:11:01,812 : JManagedConnection.prepareStatement : reuse an open pstmt
2007-06-13 10:11:01,814 : JManagedConnection.prepareStatement : reuse an open pstmt
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc/authors : kernel.create
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc/authors : kernel.resetAcls
Wed Jun 13 10:11:01 CDT 2007 : /users/root : /documentation/doc/authors : kernel.resetAcls




Upload a new file :   
11 comment(s)
comment by Sebastien Jourdain - 14 Jun 07 01:43 PM Ok good news,

if you need the jabber notification, since you reset the database you will need to execute an sql script and create a specific user on libresource for the jabber notification. Let me know, if you want more information about it.

Seb

comment by ze - 14 Jun 07 01:31 PM No driver problem, I think I have try a second time bootstrap step without re-init database and this cause the binding error.

For history I have used the java 1.6 from backports.org and I have set java alternative via update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

So installation is now OK :)

thanks

comment by Sebastien Jourdain - 14 Jun 07 11:46 AM A document part that is present in the source package but maybe not in the installeur part.

1) LibreSource config file
  - create a directory for the LibreSource indexation (kernel.indexationDataDir)
  - create a directory for the LibreSource file exchange (libresource.distributedFilesystem)
  - give to the postgres group the right to use these folders
     sudo chgrp postgres tmp/files tmp/index
     sudo chmod g+rwx tmp/files tmp/index
  - create the libresource database in PostgreSQL
  - create the libresource user in PostgreSQL
  - allow this user to be a superuser : 
    ALTER USER libresource WITH superuser;
  - Edit the file $LIBRESOURCE_HOME/Distribution/ls-config.properties
     in order to set your server properties
  - Edit the file $LIBRESOURCE_HOME/Distribution/build.properties
     in order to choose the service you want
  - Export the JONAS_ROOT path 
     (The following given path should be updated regarding your personnal configuration)
     on windows: SET JONAS_ROOT=c:/JONAS_4_7_x
     on linux  : export JONAS_ROOT=/opt/JONAS_4_7_x
  - Run "./ThirdPart/ant/bin/ant clean-all; ./ThirdPart/ant/bin/ant deploy" to build 
      the LibreSource ear and libresourceDS.properties and libresourceMail.properties and libresourceConfig.properties

Thanks for your feed back,

so finally the first problem came from the driver and the second from the postgres user limitation ?

comment by ze - 14 Jun 07 11:33 AM When try shutdown, drop, create, register root, login and bootstrap I has

Importing defaultBootstrap.xml (5804314 o.) at (you are ls://v-vserveur2.uhb.fr:9000/users/root)

* NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists… * NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists… * NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists… * Importing Page "Documentation" at node /documentation * Importing Page "LibreSource Documentation" at node /documentation/doc * Importing Group "Authors" at node /documentation/doc/authors * Importing Repository "Figures" at node /documentation/doc/images * Importing File "authentification-fig1.png" at node /documentation/doc/images/authentification-fig1

Problem during import() Caused by : Error in createFile : ERREUR: doit être super-utilisateur pour utiliser lo_import() du côté serveur

So the problem is that libresource need a postgres account with super-user priviliege...

You can close the bug and add this need in install document :)

Regards,

comment by Sebastien Jourdain - 14 Jun 07 10:31 AM Ok then, And let me know if it was the solution of your problem.

Seb

comment by ze - 14 Jun 07 10:22 AM installed from libresource installer
comment by ze - 14 Jun 07 10:21 AM I use Postgres 8.1 (from etch packages)
comment by ze - 14 Jun 07 10:21 AM The web output: Importing defaultBootstrap.xml (5804314 o.) at (you are ls://v-vserveur2.xxxx.fr:9000/users/root)
  • NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists...
  • NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists...
  • NOTICE : The user "ls://v-vserveur2.uhb.fr:9000/users/guest" already exists...
  • Importing Page "Documentation" at node /documentation
  • Importing Page "LibreSource Documentation" at node /documentation/doc
  • Importing Group "Authors" at node /documentation/doc/authors
Problem during import() Caused by : Error in createGroup : Error in bind : A resource is already binded with this URI /documentation/doc/authors

I will try that you ask :)

comment by Sebastien Jourdain - 13 Jun 07 03:20 PM What is your database version ?

We needed to change the postgres driver for our installation. (http://jdbc.postgresql.org/download.html) in the JDBC 2 EE column.

comment by Sebastien Jourdain - 13 Jun 07 03:17 PM The indexation error during bootstrap are normal since the indexation database is build after bootstrap.

Could you add the importation web output in a comment ?

comment by Sebastien Jourdain - 13 Jun 07 03:08 PM We are currently running on Debian etch with JDK 1.6, without any error. So the problem don't come from your system.
  • Moreover, did you installed libresource from
    • the installer
    • used the ear directly in jonas
    • from the source ?
  • Did you used the default bootstrap ?
  • Did you retreived an old one ?
For information, if the bootstrap failed, and you want to try again follow this procedure :
  • shutdown jonas
  • drop libresource database
  • create libresource database
  • start jonas
  • go on libresource page and follow the procedure
    • create root user
    • bootstrap
Post a comment :


Wiki Syntax

Simple text filters

MnemonicRenderingComment
1 Title a style 1 heading (major heading)
1.1 Title a style 1.1 heading (minor heading)
- text a list item (with -), several lines create a single list
* text a list item (with *)
1. text an enumerated list
__bold__boldsimple bold text
~~italics~~italicssimple italic text
--strike--strikestrike through text
(empty line) produces a new paragraph
\\
 creates a line break, please use sparingly!
[/documentation] or [../documentation] or [/documentation|Doc]Like a standard linkinternal link to another document
http://www.libresource.org/http://www.libresource.org/creates a link to an external resource, special characters that come after the URL and are not part of it must be separated with a space.
\XXescape special character X (i.e. {)
---- creates a horizontal rule

Macros List

Macro syntaxe: {macroName:key1=param1|key2=param2|...}

MacroDescriptionParameters
apiGenerates links to Java or Ruby API documentation.1: class name, e.g. java.lang.Object or java.lang.Object@Java131
2: mode, e.g. Java12, Ruby, defaults to Java (optional)
asinGenerates links to DVD/CD dealers or comparison services. Configuration is read from conf/asinservices.txt1: asin number
blinkBlink a text.the text
bookmarksDisplay the user bookmarks.none
boxCreate a box in order to change the basic disposition.1. the box title (optional)
2. the floating behaviour (left or right) (optional)
3. the height of the box (px,%) (optional)
4. the width of the box (px,%) (optional)
childrenDisplay the current children list.1. uri= ...(optional) where you list the resources, the default uri is the current
2. groupby=… (optional) to group resources.The following value are available : type or owner or uri or creation or update or name
3. sort=… (optional) to sort resources. The values available are : type or owner or uri or creation or update or name
4. creation=...(optional) allows you to filter on the creation date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
5. update=...(optional) allows you to filter on the modification date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
6. type=...(optional) :allows you to filter resources with its type. The values available are : Project, Template, Timeline, Page, Repository, File, Forum, Thread, Message, Group, Synchronizer, BugTracker, Issue, Site, Survey, Form, DropBox
7. owner=...(optional):allows you to show only resources belonging to one user or many users.
8. limit=...(optional): allows you to limit the displayed resources
9. depth=...(optional): allows you to fix the depth of listed ressources
10. view=...(optional): to fix the view of displayed resources. The view available are : flat (default view) or count(to display the number of listed ressources) or tree(display resource following tree viewer)
codeDisplays a chunk of code with syntax highlighting, for example Java, XML and SQL. The none type will do nothing and is useful for unknown code types.1: syntax highlighter to use, defaults to java (optional)
helloSay hello example macro.1: name to print
htmlBy pass wiki engine to allow HTML code in contentthe html block
api-docsDisplays a list of known online API documentations and mappings.none
file-pathDisplays a file system path. The file path should use slashes. Defaults to windows.1: file path
imageDisplay an image.1. the image URI
2. align (right ,left or center) (optional)
3. width (optional)
4. height (optional)
inter-wikiDisplays a list of known InterWiki mappings.none
isbnGenerates links to book dealers or comparison services. Configuration is read from conf/bookservices.txt.1: isbn number
linkGenerate a weblink.unexplained, lazy programmer, probably
list-of-macrosDisplays a list of available macros.unexplained, lazy programmer, probably
loginBoxDisplay a login box.none
mailtoDisplays an email address.1: mail address
menuInclude the menu of the specified URI1. The uri for the menu to be include
newsDisplay a message thread as news.1. the thread URI
2. Max (optional)
preAllow rigid text style. (Keep text formating)none
printFieldDisplay a node forms fields values.1. (uri=) The uri on which you want to get the form value (Optional, by default=.)
2. (print=) Print or not the field label and the field value (Optional, by default=label, value, edit)
3. (field=) Print or not the specified field (Optional, by default will print all)
quoteDisplay quotations.1: source (optional)
2: displayed description, default is Source (optional)
quoteMessageQuote a message in another message by referencing only the message URI.1. The message URI to quote.
resourceInclude the view of a LibreSource resource.1. the uri of the resource (mandatory)
2. the view (optional)
3. the action (optional)
4. noaction (optional)
rfcGenerates links to RFCs.unexplained, lazy programmer, probably
rssInclude an RSS feed.1. the url of the rss feed (mandatory)
searchBoxDisplay a search box.1. the URI pattern
subProjectsDisplay the current subProjects list.none
summaryCreate the summary of a wiki page.1. the page URI (optional)
surveyDisplay results of a survey.the survey URI
tableDisplays a table.none
tableFormDisplay a table listing form results.1. (uri=) The uri on which you want to get the form value (Optional, by default use the local path)
2. (print=) Print additinal features such as a link to the data (goLink) or a link to get a CSV file (csvExport) (Optional, by default print all)
3. (field=) The list of field to show (Optional by default all)
timelineDisplay the first items of a timeline.1. the timeline URI
2. Max items (optional)
userGenerate a link to the current user page, according 'action'.1. the action (optional)
2. the link label (optional)
workspacesDisplay the user workspaces.none
xrefGenerates links to Java Xref source code.1: class name, e.g. java.lang.Object or java.lang.Object@Nanning
2: line number (optional)

Smiley

:-):-(;-):-P:-D:-[:-/:-*>:o8-):-$:-!:'(:-X =-O