Hello Experts,
I'm trying to take the backup of neo4j database database which is ruining on Kubernetes pod with helm chart. Is there any other way to take backup and restore the database from 1 server to another server.
i have executed the below command.
neo4j-admin database backup --to-path=/tmp/backup_neo4j/edcdbbkp edc --verbose.
output of above command:
2023-05-09 13:12:28.786+0000 INFO [c.n.c.c.s.StoreCopyClient] Requesting store listing from: 0.0.0.0:6362
2023-05-09 13:12:30.779+0000 INFO [c.n.c.c.p.ClientInstallerV1] Receiving file: neostore.counts.db from: 0.0.0.0/[0:0:0:0:0:0:0:1]:6362
2023-05-09 13:22:28.582+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Lost connection to 0.0.0.0/[0:0:0:0:0:0:0:1]:6362 [DBMS version:1.0]
2023-05-09 13:22:30.792+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Lost connection to 0.0.0.0/[0:0:0:0:0:0:0:1]:6362 [Catchup version:1.0]
2023-05-09 13:22:30.797+0000 ERROR [c.n.b.v.OnlineBackupExecutor] Error performing backup for database edc
com.neo4j.backup.v2.BackupExecutionException: Backup of database edc
failed.
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.backup(DefaultOnlineDatabaseBackupAction.java:83) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.OnlineBackupExecutor.tryBackup(OnlineBackupExecutor.java:148) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.OnlineBackupExecutor.executeBackups(OnlineBackupExecutor.java:101) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.OnlineBackupCommand.executeBackups(OnlineBackupCommand.java:315) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.OnlineBackupCommand.execute(OnlineBackupCommand.java:209) ~[neo4j-backup-5.2.0.jar:5.2.0]
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92) ~[neo4j-command-line-5.2.0.jar:5.2.0]
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37) ~[neo4j-command-line-5.2.0.jar:5.2.0]
at picocli.CommandLine.executeUserObject(CommandLine.java:1953) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine.access$1300(CommandLine.java:145) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316) ~[picocli-4.6.3.jar:4.6.3]
at picocli.CommandLine.execute(CommandLine.java:2078) ~[picocli-4.6.3.jar:4.6.3]
at org.neo4j.cli.AdminTool.execute(AdminTool.java:91) ~[neo4j-command-line-5.2.0.jar:5.2.0]
at org.neo4j.cli.AdminTool.main(AdminTool.java:79) ~[neo4j-command-line-5.2.0.jar:5.2.0]
Caused by: com.neo4j.causalclustering.catchup.store_copy.StoreCopyFailedException: java.util.concurrent.ExecutionException: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at com.neo4j.causalclustering.store.StoreFilesDownloader.prepareStoreCopy(StoreFilesDownloader.java:105) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.StoreFilesDownloader.downloadStoreFiles(StoreFilesDownloader.java:67) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:223) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:199) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.remote.BackupClient.fullStoreCopy(BackupClient.java:299) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.fullBackup(DefaultOnlineDatabaseBackupAction.java:156) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.performBackup(DefaultOnlineDatabaseBackupAction.java:141) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.backup(DefaultOnlineDatabaseBackupAction.java:68) ~[neo4j-backup-5.2.0.jar:5.2.0]
... 16 more
Caused by: java.util.concurrent.ExecutionException: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?]
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) ~[?:?]
at com.neo4j.causalclustering.catchup.store_copy.StoreCopyClient.prepareStoreCopy(StoreCopyClient.java:51) ~[neo4j-protocol-catchup-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.StoreFilesDownloader.prepareStoreCopy(StoreFilesDownloader.java:103) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.StoreFilesDownloader.downloadStoreFiles(StoreFilesDownloader.java:67) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:223) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:199) ~[neo4j-store-management-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.remote.BackupClient.fullStoreCopy(BackupClient.java:299) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.fullBackup(DefaultOnlineDatabaseBackupAction.java:156) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.performBackup(DefaultOnlineDatabaseBackupAction.java:141) ~[neo4j-backup-5.2.0.jar:5.2.0]
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.backup(DefaultOnlineDatabaseBackupAction.java:68) ~[neo4j-backup-5.2.0.jar:5.2.0]
... 16 more
Caused by: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at com.neo4j.causalclustering.catchup.protocol.ResponseDelegator.onTimeout(ResponseDelegator.java:92) ~[neo4j-protocol-catchup-5.2.0.jar:5.2.0]
at com.neo4j.causalclustering.net.app.common.error.InboundInactivityHandler.userEventTriggered(InboundInactivityHandler.java:26) ~[neo4j-cluster-common-5.2.0.jar:5.2.0]
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:400) ~[netty-transport-4.1.84.Final.jar:4.1.84.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376) ~[netty-transport-4.1.84.Final.jar:4.1.84.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:368) ~[netty-transport-4.1.84.Final.jar:4.1.84.Final]
at io.netty.handler.timeout.IdleStateHandler.channelIdle(IdleStateHandler.java:373) ~[netty-handler-4.1.84.Final.jar:4.1.84.Final]
at io.netty.handler.timeout.IdleStateHandler$ReaderIdleTimeoutTask.run(IdleStateHandler.java:503) ~[netty-handler-4.1.84.Final.jar:4.1.84.Final]
at io.netty.handler.timeout.IdleStateHandler$AbstractIdleTask.run(IdleStateHandler.java:475) ~[netty-handler-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:406) ~[netty-transport-classes-epoll-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.84.Final.jar:4.1.84.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
2023-05-09 13:22:30.819+0000 WARN [c.n.b.v.BackupOutputMonitor] Backup of database 'edc' failed, took 10m 3s 744ms.
org.neo4j.cli.CommandFailedException: Execution of backup failed. Request timed out after 600000 ms.
at com.neo4j.backup.v2.OnlineBackupCommand.processBackupResults(OnlineBackupCommand.java:231)
at com.neo4j.backup.v2.OnlineBackupCommand.execute(OnlineBackupCommand.java:210)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:91)
at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
Caused by: com.neo4j.backup.v2.BackupExecutionException: Backup of database edc
failed.
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.backup(DefaultOnlineDatabaseBackupAction.java:83)
at com.neo4j.backup.v2.OnlineBackupExecutor.tryBackup(OnlineBackupExecutor.java:148)
at com.neo4j.backup.v2.OnlineBackupExecutor.executeBackups(OnlineBackupExecutor.java:101)
at com.neo4j.backup.v2.OnlineBackupCommand.executeBackups(OnlineBackupCommand.java:315)
at com.neo4j.backup.v2.OnlineBackupCommand.execute(OnlineBackupCommand.java:209)
... 12 more
Caused by: com.neo4j.causalclustering.catchup.store_copy.StoreCopyFailedException: java.util.concurrent.ExecutionException: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at com.neo4j.causalclustering.store.StoreFilesDownloader.prepareStoreCopy(StoreFilesDownloader.java:105)
at com.neo4j.causalclustering.store.StoreFilesDownloader.downloadStoreFiles(StoreFilesDownloader.java:67)
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:223)
at com.neo4j.causalclustering.store.RemoteStore.copy(RemoteStore.java:199)
at com.neo4j.backup.v2.remote.BackupClient.fullStoreCopy(BackupClient.java:299)
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.fullBackup(DefaultOnlineDatabaseBackupAction.java:156)
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.performBackup(DefaultOnlineDatabaseBackupAction.java:141)
at com.neo4j.backup.v2.DefaultOnlineDatabaseBackupAction.backup(DefaultOnlineDatabaseBackupAction.java:68)
... 16 more
Caused by: java.util.concurrent.ExecutionException: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
at com.neo4j.causalclustering.catchup.store_copy.StoreCopyClient.prepareStoreCopy(StoreCopyClient.java:51)
at com.neo4j.causalclustering.store.StoreFilesDownloader.prepareStoreCopy(StoreFilesDownloader.java:103)
... 23 more
Caused by: com.neo4j.causalclustering.net.app.common.error.InboundInactivityException: Request timed out after 600000 ms.
at com.neo4j.causalclustering.catchup.protocol.ResponseDelegator.onTimeout(ResponseDelegator.java:92)
at com.neo4j.causalclustering.net.app.common.error.InboundInactivityHandler.userEventTriggered(InboundInactivityHandler.java:26)
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:400)
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376)
at io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:368)
at io.netty.handler.timeout.IdleStateHandler.channelIdle(IdleStateHandler.java:373)
at io.netty.handler.timeout.IdleStateHandler$ReaderIdleTimeoutTask.run(IdleStateHandler.java:503)
at io.netty.handler.timeout.IdleStateHandler$AbstractIdleTask.run(IdleStateHandler.java:475)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:406)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)