【问题标题】:eventstore container exists upon startingeventstore 容器在启动时存在
【发布时间】:2021-09-20 14:36:59
【问题描述】:

我使用 docker-compose 启动了一个 eventstore 服务,它在启动后立即退出。其他服务运行良好,但事件存储是唯一停止的服务。我刚开始使用 M1 芯片的 macbook air,怀疑是这个原因。

这些是服务日志:

> Executing task: docker logs --tail 1000 -f efb9a01f49d5383851f28e9badbd0934b1bc8a7b7cf1db018ed3a7b0436df25d <

[

    1, 1,14:24:17.218,FTL] Host terminated unexpectedly.
System.IO.IOException: Function not implemented
   at System.IO.FileSystemWatcher.StartRaisingEvents()
   at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
   at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
   at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration`1..ctor(Func`1 changeTokenProducer, Action`1 changeTokenConsumer, TState state)
   at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
   at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
   at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
   at EventStore.Common.Log.EventStoreLoggerConfiguration.Initialize(String logsDirectory, String componentName, String logConfig) in /build/src/EventStore.Common/Log/EventStoreLoggerConfiguration.cs:line 58
   at EventStore.Core.EventStoreHostedService`1.Init(TOptions options) in /build/src/EventStore.Core/EventStoreHostedService.cs:line 89
   at EventStore.ClusterNode.ClusterVNodeHostedService.Init(ClusterNodeOptions options) in /build/src/EventStore.ClusterNode/ClusterVNodeHostedService.cs:line 44
   at EventStore.Core.EventStoreHostedService`1..ctor(String[] args) in /build/src/EventStore.Core/EventStoreHostedService.cs:line 45
   at EventStore.ClusterNode.ClusterVNodeHostedService..ctor(String[] args) in /build/src/EventStore.ClusterNode/ClusterVNodeHostedService.cs:line 35
   at EventStore.ClusterNode.Program.Main(String[] args) in /build/src/EventStore.ClusterNode/Program.cs:line 22

Terminal will be reused by tasks, press any key to close it.

【问题讨论】:

    标签: docker apple-m1 eventstoredb


    【解决方案1】:

    这是在 M1 上运行的 docker 的一个已知问题。我们目前正致力于提供原生 arm64 构建和容器。您可以在此处跟踪进度:https://github.com/EventStore/EventStore/pull/3076

    【讨论】:

      【解决方案2】:

      提供了一个 alpha 版本,可让您在配备 M1 芯片组的 MacBook 上运行 Docker 映像。 您必须使用 GitHub Container 注册表镜像:https://github.com/EventStore/EventStore/pkgs/container/eventstore/7973829

      Docker 镜像:ghcr.io/eventstore/eventstore:20.6.1-alpha.0.69-arm64v8

      如何运行命令的示例:

      docker run --name esdb-node -it -p 2113:2113 -p 1113:1113 \
          ghcr.io/eventstore/eventstore:20.6.1-alpha.0.69-arm64v8 --insecure --run-projections=All \
          --enable-external-tcp --enable-atom-pub-over-http
      

      【讨论】:

      • 成功了!谢谢
      • 太棒了!很高兴读到!您能否也将其标记为 SO 上的正确答案? :)
      猜你喜欢
      • 1970-01-01
      • 2016-09-08
      • 2014-09-24
      • 2018-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-21
      相关资源
      最近更新 更多