I got your logs and analysed them and it looks a little strange, but are you
trying to do a backup from a closed server? At first there's this:

INFO|wrapper|11-05-21 13:55:33|received service control 1
INFO|wrapper|11-05-21 13:55:33|reporting status 1
INFO|wrapper|11-05-21 13:55:33|Win service stop - timeout: 30000
INFO|wrapper|11-05-21 13:55:33|Win service wrapper.control -> stopping
application
INFO|wrapper|11-05-21 13:55:33|set state RUNNING->STATE_USER_STOP
INFO|wrapper|11-05-21 13:55:33|stopping process with pid/timeout 3492 45000
INFO|3492/0|11-05-21 13:55:33|controller sending a stop command
INFO|3492/0|11-05-21 13:55:33|Controller State: LOGGED_ON -> WAITING_CLOSED
FINEST|3492/0|11-05-21 13:55:33|May 21, 2011 1:55:33 PM
org.neo4j.server.logging.Logger log
FINEST|3492/0|11-05-21 13:55:33|INFO: Neo4j Server shutdown initiated by
kill signal
INFO|3492/0|11-05-21 13:55:33|wrapper manager received stop command
INFO|3492/0|11-05-21 13:55:34|Controller State: WAITING_CLOSED -> USER_STOP

Which looks like a user or the OS is shutting it down. Then right after that
is this exception:

java.nio.channels.ClosedByInterruptException
    at java.nio.channels.spi.AbstractInterruptibleChannel.end(Unknown
Source)
    at sun.nio.ch.FileChannelImpl.write(Unknown Source)
    at org.neo4j.kernel.impl.transaction.TxLog.txDone(TxLog.java:223)
    at
org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:704)
    at
org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:584)
    at
org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:104)
    at
org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:85)
    at
org.neo4j.server.rest.web.DatabaseActions.createRelationship(DatabaseActions.java:442)
    at
org.neo4j.server.rest.web.RestfulGraphDatabase.createRelationship(RestfulGraphDatabase.java:262)
    at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:184)
    at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)

Which I think just is a second failure for trying to commit a transaction in
a closed database. After that I see several attempts to do a backup, which
obviously will not work on a closed database.

My conclusion is that the reason you could not get a backup from the server
was that it had been shut down.

2011/5/22 Kevin Dieter <kevin.die...@megree.com>

> Here's what I see in the messages.log when I tried the backup command:
>
> Fri May 20 07:00:24 PDT 2011: Found dead channel [id: 0x3d36acb6, /
> 127.0.0.1:56110 :> /127.0.0.1:6362], SlaveContext[ID:0, eventIdentifier:0,
> [(lucene-index, 15726285), (nioneodb, 38747027)]]
> Fri May 20 07:00:24 PDT 2011: Removed [id: 0x3d36acb6, /127.0.0.1:56110 :>
> /
> 127.0.0.1:6362], SlaveContext[ID:0, eventIdentifier:0, [(lucene-index,
> 15726285), (nioneodb, 38747027)]]
>
> It also seems the server becomes somewhat unstable after this and
> eventually
> I need to stop and restart it (and it always seems to detect it as a
> non-clean shutdown and spends a fair amount of time applying transactions
> to
> restore the state of the server).
>
> Does this help?
>
> Kevin
>
>
>
> On Fri, May 20, 2011 at 4:42 PM, Mattias Persson
> <matt...@neotechnology.com>wrote:
>
> > Could you post the contents of the messages.log from the database
> > directory?
> > It may be that it encounters an exception on the database you're getting
> > the
> > backup from. If you're running neo4j server the file would be
> > <neo4j-server-directory>\data\graph.db\messages.log or if you run an
> > embedded database it would be <neo4j-database-directory>\messages.log.
> That
> > would could give hints about the problem.
> >
> > Are you seeing more/other stacktraces btw? Could you post full
> stacktraces?
> >
> > 2011/5/20 Kevin Dieter <kevin.die...@megree.com>
> >
> > > Hi,
> > >
> > > I am trying to set up a scheduled backup for my neo4j database and I
> have
> > > been unable to get the backup to run.
> > >
> > > See below for the commands I am running (first to do a full backup and
> > then
> > > incremental).
> > >
> > > The weird thing is that I was able to run the full backup, and
> > incremental
> > > successfully last night using the exact same commands.
> > >
> > > Any idea why I am getting the timeout exception?
> > >
> > > Thanks,
> > >
> > > Kevin
> > > -----------------------------------------------
> > >
> > > C:\cURL>C:\neo4J\neo4j-enterprise-1.3-windows\bin\neo4jbackup -full
> -from
> > > single://localhost:6362 -to c:/neo4J-backup
> > > Performing full backup from 'single://localhost:6362'
> > > Exception in thread "main" java.lang.RuntimeException: c:/neo4J-backup
> > > already contains a database
> > >        at org.neo4j.backup.OnlineBackup.full(OnlineBackup.java:69)
> > >        at org.neo4j.backup.BackupTool.doBackup(BackupTool.java:119)
> > >        at org.neo4j.backup.BackupTool.main(BackupTool.java:83)
> > >
> > > C:\cURL>C:\neo4J\neo4j-enterprise-1.3-windows\bin\neo4jbackup
> > -incremental
> > > -from single://localhost:6362 -to c:/neo4J-backup
> > > Performing incremental backup from 'single://localhost:6362'
> > > Couldn't connect to 'single://localhost:6362',
> > org.neo4j.com.ComException:
> > > org.jboss.netty.handler.queue.BlockingReadTimeoutException
> > > _______________________________________________
> > > Neo4j mailing list
> > > User@lists.neo4j.org
> > > https://lists.neo4j.org/mailman/listinfo/user
> > >
> >
> >
> >
> > --
> > Mattias Persson, [matt...@neotechnology.com]
> > Hacker, Neo Technology
> > www.neotechnology.com
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to