简体   繁体   English

健康检查失败-Atlassian的Localstack

[英]Health Check failed - Atlassian's Localstack

Pretty much as the title says said. 几乎正如标题 所说 说。

I'm trying to run localstack, via docker on CentOS 7, having nothing but trouble. 我正在尝试通过CentOS 7上的docker运行localstack,除了麻烦之外,没有其他问题。

Today's problem is ERROR:localstack.services.kinesis.kinesis_starter:Kinesis health check failed: Could not connect to the endpoint URL: http://localhost.localdomain:4568/ 今天的问题是ERROR:localstack.services.kinesis.kinesis_starter:Kinesis health check failed: Could not connect to the endpoint URL: http://localhost.localdomain:4568/

which apparently is cause for the entire thing to restart, and that is less than ideal when the s3 mock doesn't persist... 这显然是导致整个事件重新启动的原因,并且在s3模拟不能持续存在时这不理想。

And rather than struggle through that I figured it would just be easier to not have kinesis run, at all, or even better; 而且,与其说我不为此奋斗,不如说根本不进行运动学,甚至更好,不如不进行运动学。 to only run the services that I'm attempting to use. 只运行我尝试使用的服务。

I assumed the SERVICES environment var might help, but it seems to only specify ports. 我认为SERVICES环境var可能会有所帮助,但它似乎仅指定端口。 If I exclude services from the provided list they run regardless... 如果我从提供的列表中排除服务,它们将运行,无论...

Is there any way I can choose a subset of the services provided in localstack? 有什么办法可以选择localstack中提供的服务的子集?

EDIT 编辑

So after some fiddling, reading, etc... managed to get things started via localstack start --docker 因此,经过一些摆弄,阅读等之后,设法通过localstack start --docker

Previously user didn't have appropriate privilege, and running sudo localstack start --docker apparently ignores environment vars I have set. 以前用户没有适当的特权,因此运行sudo localstack start --docker显然会忽略我设置的环境变量。 But that's remedied now and I'm just starting S3 and SES services. 但是,现在已经补救了,我才刚刚开始S3和SES服务。

So now S3 runs into the same error; 因此,现在S3遇到相同的错误; ERROR:localstack.services.s3.s3_starter:S3 health check failed: Could not connect to the endpoint URL: http://localhost.localdomain:4572/ Even though I can make use of it myself, it's working fine, this check fails. ERROR:localstack.services.s3.s3_starter:S3 health check failed: Could not connect to the endpoint URL: http://localhost.localdomain:4572/即使我自己可以使用它,它也能正常工作,但该检查失败。

MORE EDIT 更多编辑

So I'm just not going to use LocalStack. 所以我只是不打算使用LocalStack。 Not even sure where the issue lies, could be in boto or the config of my VM, but I have better things to do than track that down for little gain... 甚至不知道问题出在哪里,可能是在boto或我的VM的配置中,但是我有更好的事情要做,而不是跟踪它以获取很少的收益...

Might check in again in the future, see what's up then. 以后可以再次检查,然后看看情况如何。

You can use the SERVICES environment variable. 您可以使用SERVICES环境变量。

For example, to start only S3 and DynamoDB: 例如,仅启动S3和DynamoDB:

SERVICES=s3,dynamodb localstack start

Or, to start LocalStack in a Docker container: 或者,要在Docker容器中启动LocalStack:

SERVICES=s3,dynamodb localstack start --docker

(Note: This assumes that you have installed LocalStack via pip install localstack ) (注意:这假设您已经通过pip install localstack

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM