Backup problem. F1. Online, onprem, 5.20 ent, ubuntu 24.04

hi, some f1 needed. on docker works fine, but on prem - not working same command.

ubuntu 24.04 lts
neo4j 5.20 enterprise
openjdk version "21.0.3" 2024-04-16

neo4j-admin database backup --to-path=/opt/backups/ neo4j

2024-06-18 11:29:58.843+0000 INFO [c.n.b.b.BackupOutputMonitor] Starting backup of database 'neo4j' from servers: [127.0.0.1:6362]
2024-06-18 11:29:59.442+0000 WARN [c.n.b.b.BackupOutputMonitor] Server 127.0.0.1:6362 did not respond to request: java.nio.channels.ClosedChannelException
Execution of backup failed. Cannot retrieve databases from the provided server(s)

neo4j.log - nothing

debug

2024-06-18 11:53:58.673+0000 INFO  [c.n.c.p.h.HandshakeServerInitializer] [backup-server] Handshake completed on channel [id: 0x92d8a143, L:/127.0.0.1:6362 - R:/127.0.0.1:46978]. Installing: Category[name=DBMS] version:2.0
2024-06-18 11:53:58.693+0000 INFO  [c.n.c.n.a.s.InboundRequestLogger] Handling inbound request. [Request: com.neo4j.causalclustering.dbms.protocol.messages.get_all_database_ids.GetAllDatabaseIdsRequest@4877c465, From: /127.0.0.1:46978]
2024-06-18 11:53:58.695+0000 ERROR [c.n.c.p.i.ServerChannelInitializer] [backup-server] Exception in inbound for channel: [id: 0x92d8a143, L:/127.0.0.1:6362 - R:/127.0.0.1:46978]
java.util.NoSuchElementException: No value present
	at java.util.Optional.orElseThrow(Optional.java:377) ~[?:?]
	at com.neo4j.causalclustering.dbms.protocol.messages.get_all_database_ids.GetAllDatabaseIdsRequestHandler.lambda$channelRead0$0(GetAllDatabaseIdsRequestHandler.java:39) ~[neo4j-protocol-dbms-5.20.0.jar:5.20.0]
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) ~[?:?]
	at java.util.TreeMap$KeySpliterator.forEachRemaining(TreeMap.java:3099) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
	at com.neo4j.causalclustering.dbms.protocol.messages.get_all_database_ids.GetAllDatabaseIdsRequestHandler.channelRead0(GetAllDatabaseIdsRequestHandler.java:43) ~[neo4j-protocol-dbms-5.20.0.jar:5.20.0]
	at com.neo4j.causalclustering.dbms.protocol.messages.get_all_database_ids.GetAllDatabaseIdsRequestHandler.channelRead0(GetAllDatabaseIdsRequestHandler.java:19) ~[neo4j-protocol-dbms-5.20.0.jar:5.20.0]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:102) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]

verbose out

Blockquote
--verbose
2024-06-18 11:53:58.125+0000 INFO [c.n.b.b.BackupOutputMonitor] Starting backup of database 'neo4jcopy2' from servers: [127.0.0.1:6362]
2024-06-18 11:53:58.604+0000 INFO [c.n.c.p.i.ClientChannelInitializer] Initializing client channel [id: 0xe814e48f]
2024-06-18 11:53:58.654+0000 DEBUG [c.n.c.p.i.InitClientHandler] Channel [id: 0xe814e48f, L:/127.0.0.1:46978 - R:127.0.0.1/127.0.0.1:6362] received a correct magic message
2024-06-18 11:53:58.661+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Initiating handshake on channel [id: 0xe814e48f, L:/127.0.0.1:46978 - R:127.0.0.1/127.0.0.1:6362] [class io.netty.channel.epoll.EpollSocketChannel]
2024-06-18 11:53:58.678+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Connected to 127.0.0.1/127.0.0.1:6362 [Category[name=DBMS] version:2.0]
2024-06-18 11:53:58.678+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Handshake completed on channel [id: 0xe814e48f, L:/127.0.0.1:46978 - R:127.0.0.1/127.0.0.1:6362]. Installing: Category[name=DBMS] version:2.0
2024-06-18 11:53:58.697+0000 INFO [c.n.c.p.h.HandshakeClientInitializer] Lost connection to 127.0.0.1/127.0.0.1:6362 [Category[name=DBMS] version:2.0]
2024-06-18 11:53:58.697+0000 WARN [c.n.b.b.BackupOutputMonitor] Server 127.0.0.1:6362 did not respond to request: java.nio.channels.ClosedChannelException
2024-06-18 11:53:58.698+0000 WARN [c.n.b.b.OnlineBackupExecutor] Failed to get database names for address 127.0.0.1:6362
java.util.concurrent.ExecutionException: java.nio.channels.ClosedChannelException
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?]
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) ~[?:?]
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.reportException(OnlineBackupExecutor.java:340) [neo4j-backup-5.20.0.jar:5.20.0]
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.getAllDatabaseNames(OnlineBackupExecutor.java:285) [neo4j-backup-5.20.0.jar:5.20.0]
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.execute(OnlineBackupExecutor.java:78) [neo4j-backup-5.20.0.jar:5.20.0]
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.executeBackups(OnlineBackupExecutor.java:52) [neo4j-backup-5.20.0.jar:5.20.0]
at com.neo4j.backuprestore.backup.OnlineBackupCommand.executeBackups(OnlineBackupCommand.java:345) [neo4j-backup-5.20.0.jar:5.20.0]
at com.neo4j.backuprestore.backup.OnlineBackupCommand.execute(OnlineBackupCommand.java:231) [neo4j-backup-5.20.0.jar:5.20.0]
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92) [neo4j-command-line-5.20.0.jar:5.20.0]
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37) [neo4j-command-line-5.20.0.jar:5.20.0]
at picocli.CommandLine.executeUserObject(CommandLine.java:2041) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine.access$1500(CommandLine.java:148) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) [picocli-4.7.5.jar:4.7.5]
at picocli.CommandLine.execute(CommandLine.java:2170) [picocli-4.7.5.jar:4.7.5]
at org.neo4j.cli.AdminTool.execute(AdminTool.java:94) [neo4j-command-line-5.20.0.jar:5.20.0]
at org.neo4j.cli.AdminTool.main(AdminTool.java:82) [neo4j-command-line-5.20.0.jar:5.20.0]
Caused by: java.nio.channels.ClosedChannelException
at com.neo4j.causalclustering.dbms.protocol.ClientInstallerV1.lambda$install$1(ClientInstallerV1.java:95) ~[neo4j-protocol-dbms-5.20.0.jar:5.20.0]
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:625) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:105) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1164) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:755) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:731) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:620) ~[netty-transport-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.shutdownInput(AbstractEpollChannel.java:522) ~[netty-transport-classes-epoll-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:824) ~[netty-transport-classes-epoll-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:501) ~[netty-transport-classes-epoll-4.1.109.Final.jar:4.1.109.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:399) ~[netty-transport-classes-epoll-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.109.Final.jar:4.1.109.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
org.neo4j.cli.CommandFailedException: Execution of backup failed. Cannot retrieve databases from the provided server(s)
at com.neo4j.backuprestore.backup.OnlineBackupCommand.executeBackups(OnlineBackupCommand.java:348)
at com.neo4j.backuprestore.backup.OnlineBackupCommand.execute(OnlineBackupCommand.java:231)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:94)
at org.neo4j.cli.AdminTool.main(AdminTool.java:82)
Caused by: com.neo4j.backuprestore.backup.BackupExecutionException: Cannot retrieve databases from the provided server(s)
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.execute(OnlineBackupExecutor.java:81)
at com.neo4j.backuprestore.backup.OnlineBackupExecutor.executeBackups(OnlineBackupExecutor.java:52)
at com.neo4j.backuprestore.backup.OnlineBackupCommand.executeBackups(OnlineBackupCommand.java:345)
... 13 more

with java 17 not workink too.

offline dump working. online - nope.

ubuntu 22.04 java 21 onprem
looks like online backups working

2024-06-20 06:37:41.140+0000 INFO  [o.n.d.a.Dumper] Done: 71 files, 197.5MiB processed.
2024-06-20 06:37:41.157+0000 INFO  [c.n.b.b.BackupOutputMonitor] Finished artifact creation 'neo4jcopy2-2024-06-20T06-37-40.backup' for database 'neo4jcopy2', took 426ms.
2024-06-20 06:37:41.189+0000 INFO  [c.n.b.b.BackupOutputMonitor] Backup of database 'neo4jcopy2' completed, took 3s 343ms.
2024-06-20 06:37:41.193+0000 INFO  [c.n.c.p.h.HandshakeClientInitializer] Lost connection to localhost/127.0.0.1:6362 [Category[name=Catchup] version:4.0]
2024-06-20 06:37:41.196+0000 INFO  [c.n.c.p.h.HandshakeClientInitializer] Lost connection to localhost/127.0.0.1:6362 [Category[name=Catchup] version:4.0]
2024-06-20 06:37:41.196+0000 DEBUG [c.n.c.s.StoreCopyClient] PrepareStoreCopyRequest to [localhost:6362] failed with exception java.nio.channels.ClosedChannelException
2024-06-20 06:37:41.304+0000 INFO  [c.n.c.p.h.HandshakeClientInitializer] Lost connection to localhost/127.0.0.1:6362 [Category[name=DBMS] version:2.0]
Backup command completed.

with 1 error

something wrong with ubuntu 24.04

Reinstalled os. ubuntu 24.04 with java 21.
Reinstalled dbms. 5.21
Now works fine, online remote, online local, without setting RO, dump works too.