Re: [xwiki-users] - trouble restarting xwiki

2008-09-03 Thread Skinner, John (GE Healthcare)
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sergiu Dumitriu
Sent: Tuesday, September 02, 2008 5:59 PM
To: XWiki Users
Subject: Re: [xwiki-users] - trouble restarting xwiki

Skinner, John (GE Healthcare) wrote:
  
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Sergiu Dumitriu
 Sent: Tuesday, September 02, 2008 4:49 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] - trouble restarting xwiki
 
 John V. Skinner wrote:
 Ah, but i found 
webapps/xwiki/WEB-INF/hibernate.cfg.hsql.xml also.
  In this file the connection.url was jdbc:hsqldb:file:db/xwiki_db


 There is also 2 very large files,
 xwiki_db.log.delete,
 xwiki_db.script.delete

  Are these roll-back files of some kind?
 I don't find the xwiki_db file at all.  Don't know why not.


 
 Your setup looks really weird. There shouldn't be any .delete files. 
 The hibernate.cfg.hsql.xml file shouldn't be used unless you 
 configured something in xwiki.cfg.
 
 When did this error start to happen? Did you do something on the
server?
 
 We had to shutdown systems over the weekend, and it didn't restart for

 me today.
 Nothing at all that I can think of.
 
 As a general tip, the provided hsql database is not supposed to be 
 used in large wikis, and not in production. I guess we should 
 emphasize this in the download and installation notes.
 
 Well, I admit to knowing this was beta.
 If I can recover the database through these .delete files, that would 
 be good.
 I find all the text in there.
 
 It includes text like:
 INSERT INTO XWIKIDOC VALUES(-1324373334, 'Main.sometitle',
 'stuff','','','en',0,'2008-05-05 14:58:17.00', (and a fair amount of
 text)
 

For a start, you should:
1. Make a backup of those files. They are important.
2. Try to rename them to xwiki_db.log and xwiki_db.script (just delete
the .delete extension) 3. If it doesn't work, then check the access
rights. By default, HSQL should not throw an error, but create a new
database if it doesn't find its files.
4. If it still doesn't work, if you know SQL, or somebody else that
knows SQL, check the file to see if it is corrupted. Remove the broken
lines and try again.

 This  (steps 1,2 + restart) worked well!
 I think some recent updates were lost, but most of the data is
recovered.
 I restarted the server(start_xwiki.sh). The server went idle fairly
quickly.
 I then opened an url to the xwiki web page.  At this point,the server

  appears to to the rebuild of the database because the server was
consuming
 a lot of time and the initial response took around 2 minutes.
 Then it all came back up fine.

For the moment, this is all I can suggest.

After you manage to recover the database, you should seriously consider
an update, and switching to mysql or another dbms that supports heavy
load.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] - trouble restarting xwiki

2008-09-02 Thread Jean-Vincent Drean
On Tue, Sep 2, 2008 at 5:45 PM, John V. Skinner [EMAIL PROTECTED] wrote:
 My first posting:
 I am unable to start my xwiki, (beta 4).

You mean XWiki 1.0 beta 4 ?!

 I saw some discussions regarting this problem, but didn't quite
 see the solution.
 any help, plus help on exporting data without xwiki service
 running in case it does come back to life would be appreciated.

 http://ctaa.ct.med.ge.com:8080/xwiki/bin/view/Main/WebHome
 DBCPConnectionProvider:configure:191 - Could not create a DBCP pool
 org.apache.commons.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (User not found: SA)

This error means that xwiki is not able to connect to your database.
What kind of db are you trying to use ? Considering the user SA it
looks like your wiki is configured to use the embedded hsqldb
database, have you deleted the database/ directory ?

-- 
Jean-Vincent Drean
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] - trouble restarting xwiki

2008-09-02 Thread Skinner, John (GE Healthcare)
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Jean-Vincent Drean
Sent: Tuesday, September 02, 2008 10:30 AM
To: XWiki Users
Subject: Re: [xwiki-users] - trouble restarting xwiki

On Tue, Sep 2, 2008 at 5:45 PM, John V. Skinner
[EMAIL PROTECTED] wrote:
 My first posting:
 I am unable to start my xwiki, (beta 4).

You mean XWiki 1.0 beta 4 ?!

Yes



 I saw some discussions regarting this problem, but didn't quite see 
 the solution.
 any help, plus help on exporting data without xwiki service running in

 case it does come back to life would be appreciated.

 http://ctaa.ct.med.ge.com:8080/xwiki/bin/view/Main/WebHome
 DBCPConnectionProvider:configure:191 - Could not create a DBCP pool
 org.apache.commons.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (User not found: SA)

This error means that xwiki is not able to connect to your database.
What kind of db are you trying to use ? Considering the user SA it looks
like your wiki is configured to use the embedded hsqldb database, have
you deleted the database/ directory ?

--
Jean-Vincent Drean
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] - trouble restarting xwiki

2008-09-02 Thread John V. Skinner
On Tue, 2008-09-02 at 10:31, Skinner, John (GE Healthcare) wrote:
  
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Jean-Vincent Drean
 Sent: Tuesday, September 02, 2008 10:30 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] - trouble restarting xwiki
 
 On Tue, Sep 2, 2008 at 5:45 PM, John V. Skinner
 [EMAIL PROTECTED] wrote:
  My first posting:
  I am unable to start my xwiki, (beta 4).
 
 You mean XWiki 1.0 beta 4 ?!
 
 Yes
 
 
 
  I saw some discussions regarting this problem, but didn't quite see 
  the solution.
  any help, plus help on exporting data without xwiki service running in
 
  case it does come back to life would be appreciated.
 
  http://ctaa.ct.med.ge.com:8080/xwiki/bin/view/Main/WebHome
  DBCPConnectionProvider:configure:191 - Could not create a DBCP pool
  org.apache.commons.dbcp.SQLNestedException: Cannot create 
  PoolableConnectionFactory (User not found: SA)
 
 This error means that xwiki is not able to connect to your database.
 What kind of db are you trying to use ? Considering the user SA it looks
 like your wiki is configured to use the embedded hsqldb database, have
 you deleted the database/ directory ?

from webapps/xwiki/WEB-INF/hobernate.cfg.xml it reads like i am using
myql, although i thought i was using hsqldb.  Am I looking int the
right file?

hibernate-configuration
  session-factory

  
property name=show_sqlfalse/property
property name=use_outer_jointrue/property

  
property name=dbcp.defaultAutoCommitfalse/property
property name=dbcp.maxActive50/property
property name=dbcp.maxIdle5/property
property name=dbcp.maxWait3/property
property name=dbcp.whenExhaustedAction1/property
property name=dbcp.ps.whenExhaustedAction1/property
property name=dbcp.ps.maxActive20/property
property name=dbcp.ps.maxWait12/property
property name=dbcp.ps.maxIdle20/property

  
!-- Uncomment if you want to use HSQLDB.
 Note that the database will be created automatically if it
doesn't already exist.property
name=connection.urljdbc:hsqldb:file:/some/path/xwiki_db;shutdown=true/property
property name=connection.usernamesa/property
property name=connection.password/property
property
name=connection.driver_classorg.hsqldb.jdbcDriver/property
property
name=dialectorg.hibernate.dialect.HSQLDialect/property
--

  
!-- Default MySQL configuration --
property
name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=false/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property

  
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property

  
!-- Mapping files --
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/

  

  
  /session-factory
/hibernate-configuration



 
 --
 Jean-Vincent Drean
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
-- 
John V. Skinner [EMAIL PROTECTED]
MICT Advanced Applications
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users