2011/2/14 Brendan Cheng <ccp...@gmail.com>

> Thanks for the advice but I still get an exception
>
> I added "enable_online_backup = true"  to neo4j-server.properties
> but still getting
>
> run:
> Tue Feb 15 01:30:58 CST 2011: Client connected to localhost:6362
> Tue Feb 15 01:30:58 CST 2011: Opened a new channel to localhost/
> 127.0.0.1:6362
> 2011/2/15 01:31:18 itags.Sync.SyncData main
> : null
> org.neo4j.com.ComException: org.neo4j.com.ComException:
> org.jboss.netty.handler.queue.BlockingReadTimeoutException
>         at org.neo4j.com.Client.sendRequest(Client.java:183)
>        at
> org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42)
>        at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67)
>         at itags.Sync.SyncData.fullThenIncremental(SyncData.java:46)
>        at itags.Sync.SyncData.main(SyncData.java:233)
> Caused by: org.neo4j.com.ComException:
> org.jboss.netty.handler.queue.BlockingReadTimeoutException
>        at
> org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61)
>        at org.neo4j.com.Client$2.readNext(Client.java:155)
>         at
> org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79)
>        at
> org.neo4j.com.DechunkingChannelBuffer.<init>(DechunkingChannelBuffer.java:50)
>        at org.neo4j.com.Client$2.<init>(Client.java:151)
>        at org.neo4j.com.Client.sendRequest(Client.java:150)
>        ... 4 more
> Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException
>        at
> org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236)
>        at
> org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167)
>        at
> org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57)
>        ... 9 more
>
> any idea?
>

Hmm, not really... I just downloaded 1.3.M02 package, edited
conf/neo4j.properties file and added:

   enable_online_backup = true

Then called:

   ./bin/neo4j start

I then wrote a class using the classpath from the unpacked 1.3.M02 package
containing:

   public class Backup
   {
       public static void main( String[] args )
       {
           OnlineBackup.from( "localhost" ).full( "myBackup" ).close();
       }
   }

And it worked. Have you done exactly like me?

Best,
Mattias


>
> thanks in advance
>
> Brendan
>
> Date: Mon, 14 Feb 2011 10:13:16 +0100
> From: Mattias Persson <matt...@neotechnology.com>
> Subject: Re: [Neo4j] Onlineback up Error on 1.3M02
> To: Neo4j user discussions <user@lists.neo4j.org>
> Message-ID:
>       <aanlktimbfcc-uqziu1gpskz8_pfhmeeugbzns_9n8...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> The Neo4j server is registered at port 7474, but the backup server isn't...
> you usually don't need to specify port so that the default can be used.
> What
> you'll have to do is:
>
> * Add "enable_online_backup = true" to your neo4j configuration file and
> restart the server (if that wasn't the case).
> * Use OnlineBackup.from( "localhost" );
>
> and it should work (just tried it).
>
> 2011/2/14 Brendan Cheng <ccp...@gmail.com>
>
> > Hi,
> >
> > I was trying to test the online backup process.  I received a
> > ComException saying "Channel has been closed".
> >
> > Here is my code which is copied from your Testbackup with a small
> > modification:
> >
> >   private String serverPath = "localhost";
> >   private String backupPath = "target/var/backuedup-serverdb";
> >
> >   public void fullThenIncremental() throws Exception
> >   {
> >       ServerInterface server = startServer();
> >       OnlineBackup backup = OnlineBackup.from( "localhost",7474 );
> >       backup.full( backupPath );
> >       shutdownServer( server );
> >
> >       DbRepresentation furtherRepresentation = addMoreData();
> >       server = startServer();
> >       backup.incremental( backupPath );
> >       assertEquals( furtherRepresentation, DbRepresentation.of(
> > backupPath ) );
> >       shutdownServer( server );
> >   }
> >
> > and the error message is:
> >
> > run:
> > Mon Feb 14 13:37:54 CST 2011: Client connected to localhost:7474
> > Mon Feb 14 13:37:54 CST 2011: Opened a new channel to localhost/
> > 127.0.0.1:7474
> > 2011/2/14 01:37:54 itags.Sync.SyncData main
> > : null
> > org.neo4j.com.ComException: org.neo4j.com.ComException: Channel has been
> > closed
> >       at org.neo4j.com.Client.sendRequest(Client.java:183)
> >       at
> org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42)
> >       at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67)
> >       at itags.Sync.SyncData.fullThenIncremental(SyncData.java:45)
> >       at itags.Sync.SyncData.main(SyncData.java:232)
> > Caused by: org.neo4j.com.ComException: Channel has been closed
> >       at org.neo4j.com.Client$2.readNext(Client.java:159)
> >       at
> >
> org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79)
> >       at
> >
> org.neo4j.com.DechunkingChannelBuffer.<init>(DechunkingChannelBuffer.java:50)
> >       at org.neo4j.com.Client$2.<init>(Client.java:151)
> >       at org.neo4j.com.Client.sendRequest(Client.java:150)
> >       ... 4 more
> >
> > I have my db server started as window service.
> >
> > Also, I want to know if we need the process "startServer()" if the db
> > server has been started.
> >
> > Regards,
> >
> > Brendan
> > _______________________________________________
> > 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