0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MacでAnsibleのprometheusコレクション実行時にエラーが起きる場合の対処方法

Posted at

Ansibleのprometheusコレクションを使おうとしたときにエラーでちょっと詰まったのでメモ。

roleを実行しようとしたところ以下の部分で、Pythonがクラッシュしてしまう。

TASK [prometheus.prometheus.node_exporter : Get checksum list from github] ************************************************************************************************************************************
objc[69554]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[69554]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
ERROR! A worker was found in a dead state

解決方法

実行時に環境変数を設定

$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

これでクラッシュしなくなる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?