重启 Docker 容器后无法再访问 ArcadeDB-Studio

问题描述 投票:0回答:1

您的问题详情是什么?

重新启动其 Docker 容器后,我无法访问我的 ArcadeDB-Studio 实例。
目前,我正在研究和测试ArcadeDB,我每天都会关闭电脑。
问题是当我返回时,Docker 重新启动,我重新启动我的 ArcadeDB 容器,但我无法再访问它的 Studio。

如何修复我的 ArcadeDB-Docker 实例以在重新启动时工作?

This page isn’t working
localhost didn’t send any data.
ERR_EMPTY_RESPONSE

您尝试了什么以及您期待什么?

我尝试了停止并启动、停止并重新启动以及仅使用 Docker-UI 重新启动,但同样的问题是无法访问 ArcadeDB-Studio。 我尝试运行一个 local ArcadeDB-release

server.bat
,我也在测试/学习它。重启后效果很好。有了这个错误消息,我只是在看一个虚假标志/红鲱鱼吗?

我不明白我是否只是搞砸了 Docker、ArcadeDB,或者我需要编辑使用的

dockerfile
。 我对 ArcadeDB 和 Docker 都不太了解,无法对此做出有根据的判断或见解。 有没有人精通和/或熟悉这两者?

2023-05-31 07:34:46  █████╗ ██████╗  ██████╗ █████╗ ██████╗ ███████╗██████╗ ██████╗
2023-05-31 07:34:46 ██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗
2023-05-31 07:34:46 ███████║██████╔╝██║     ███████║██║  ██║█████╗  ██║  ██║██████╔╝
2023-05-31 07:34:46 ██╔══██║██╔══██╗██║     ██╔══██║██║  ██║██╔══╝  ██║  ██║██╔══██╗
2023-05-31 07:34:46 ██║  ██║██║  ██║╚██████╗██║  ██║██████╔╝███████╗██████╔╝██████╔╝
2023-05-31 07:34:46 ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═════╝ ╚═════╝
2023-05-31 07:34:46 PLAY WITH DATA                                    arcadedb.com
2023-05-31 07:34:46 removing old pid file /home/arcadedb/bin/arcadedb.pid
2023-05-31 07:34:46 
2023-05-31 07:34:46 2023-05-31 12:34:46.796 INFO  [ArcadeDBServer] <ArcadeDB_0> ArcadeDB Server v23.3.1-SNAPSHOT (build 0393db01efcce6d393482991ff18b330970081ef/1678969633791/main) is starting up...
2023-05-31 07:34:46 2023-05-31 12:34:46.807 INFO  [ArcadeDBServer] <ArcadeDB_0> Running on Linux 5.10.102.1-microsoft-standard-WSL2 - OpenJDK 64-Bit Server VM Temurin-11.0.18+10
2023-05-31 07:34:46 2023-05-31 12:34:46.807 INFO  [ArcadeDBServer] <ArcadeDB_0> Starting ArcadeDB Server in development mode with plugins [Redis, MongoDB, Postgres, GremlinServer] ...
2023-05-31 07:34:47 2023-05-31 12:34:46.819 INFO  [ArcadeDBServer] <ArcadeDB_0> - JMX Metrics Started...
2023-05-31 07:34:48 2023-05-31 12:34:47.632 INFO  [SourceDiscovery] <ArcadeDB_0> Analyzing url: https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz...
2023-05-31 07:34:48 2023-05-31 12:34:48.312 INFO  [SourceDiscovery] <ArcadeDB_0> Recognized format OrientDB (parsingLimitBytes=9.54MB parsingLimitEntries=0)
2023-05-31 07:34:49 Importing OrientDB database from stream to './databases/Imported'
2023-05-31 07:34:49 Creation of the schema: types, properties and indexes
2023-05-31 07:34:49 - Created index UNIQUE on Beer[id]
2023-05-31 07:34:49 - Created index UNIQUE on Brewery[id]
2023-05-31 07:34:49 - Created index UNIQUE on Style[id]
2023-05-31 07:34:49 - Created index UNIQUE on Category[id]
2023-05-31 07:34:49 Creation of records started: creating vertices and documents records (edges on the next phase)
2023-05-31 07:34:49 2023-05-31 12:34:48.312 INFO  [Importer] <ArcadeDB_0> Checking schema...Exception in thread "main" com.arcadedb.exception.CommandExecutionException: Error on importing database
2023-05-31 07:34:49 - Status update: parsed 9,997 (9,997/sec) - 0 documents (0/sec) - 5,417 vertices (5,417/sec) - 0 edges (0/sec) - 0 skipped edges - 0 linked edges (0/sec - 0%)
2023-05-31 07:34:49     at com.arcadedb.query.sql.parser.ImportDatabaseStatement.executeSimple(ImportDatabaseStatement.java:69)
2023-05-31 07:34:49     at com.arcadedb.query.sql.executor.SingleOpExecutionPlan.executeInternal(SingleOpExecutionPlan.java:91)
2023-05-31 07:34:49     at com.arcadedb.query.sql.parser.SimpleExecStatement.execute(SimpleExecStatement.java:52)
2023-05-31 07:34:49     at com.arcadedb.query.sql.parser.Statement.execute(Statement.java:77)
2023-05-31 07:34:49     at com.arcadedb.query.sql.parser.Statement.execute(Statement.java:61)
2023-05-31 07:34:49     at com.arcadedb.query.sql.SQLQueryEngine.command(SQLQueryEngine.java:104)
2023-05-31 07:34:49     at com.arcadedb.database.EmbeddedDatabase.command(EmbeddedDatabase.java:1257)
2023-05-31 07:34:49     at com.arcadedb.server.ServerDatabase.command(ServerDatabase.java:416)
2023-05-31 07:34:49     at com.arcadedb.server.ArcadeDBServer.loadDefaultDatabases(ArcadeDBServer.java:495)
2023-05-31 07:34:49     at com.arcadedb.server.ArcadeDBServer.start(ArcadeDBServer.java:139)
2023-05-31 07:34:49     at com.arcadedb.server.ArcadeDBServer.main(ArcadeDBServer.java:92)
2023-05-31 07:34:49 Caused by: com.arcadedb.integration.importer.ImportException: Error on parsing source 'https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz (compressed=true size=1085781)'
2023-05-31 07:34:49     at com.arcadedb.integration.importer.Importer.load(Importer.java:63)
2023-05-31 07:34:49     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-05-31 07:34:49     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-05-31 07:34:49     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-05-31 07:34:49     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2023-05-31 07:34:49     at com.arcadedb.query.sql.parser.ImportDatabaseStatement.executeSimple(ImportDatabaseStatement.java:61)
2023-05-31 07:34:49     ... 10 more
2023-05-31 07:34:49 Caused by: com.arcadedb.exception.DuplicatedKeyException: Duplicated key [1] found on index 'Category[id]' already assigned to record #73:0
2023-05-31 07:34:49     at com.arcadedb.database.TransactionIndexContext.checkUniqueIndexKeys(TransactionIndexContext.java:344)
2023-05-31 07:34:49     at com.arcadedb.database.TransactionIndexContext.checkUniqueIndexKeys(TransactionIndexContext.java:379)
2023-05-31 07:34:49     at com.arcadedb.database.TransactionIndexContext.commit(TransactionIndexContext.java:161)
2023-05-31 07:34:49     at com.arcadedb.database.TransactionContext.commit1stPhase(TransactionContext.java:487)
2023-05-31 07:34:49     at com.arcadedb.database.TransactionContext.commit(TransactionContext.java:114)
2023-05-31 07:34:49     at com.arcadedb.database.EmbeddedDatabase.lambda$commit$2(EmbeddedDatabase.java:356)
2023-05-31 07:34:49     at com.arcadedb.database.EmbeddedDatabase.executeInReadLock(EmbeddedDatabase.java:1326)
2023-05-31 07:34:49     at com.arcadedb.database.EmbeddedDatabase.commit(EmbeddedDatabase.java:351)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.OrientDBImporter.parseRecords(OrientDBImporter.java:341)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.OrientDBImporter.parseInputFile(OrientDBImporter.java:287)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.OrientDBImporter.run(OrientDBImporter.java:176)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.format.OrientDBImporterFormat.load(OrientDBImporterFormat.java:48)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.Importer.loadFromSource(Importer.java:93)
2023-05-31 07:34:49     at com.arcadedb.integration.importer.Importer.load(Importer.java:54)
2023-05-31 07:34:49     ... 15 more
docker run -d --name arcadeDb -p 2424:2424 -p 2480:2480 -p 8182:8182 
       --env JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata 
          -Darcadedb.server.defaultDatabases=Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz} 
          -Darcadedb.server.plugins=GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin " 
          arcadedata/arcadedb:latest
dockerfile graph-databases restart docker-container arcadedb
1个回答
0
投票

是的,这可能是一个错误。 尝试删除这一行: -Darcadedb.server.defaultDatabases=导入[根]{导入:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz} 您可能会丢失数据,因为您没有将其保存在主机上。 唯一的启动方法是删除容器并重新启动它。我没有找到解决此问题的方法。

© www.soinside.com 2019 - 2024. All rights reserved.