Skip to content

The Ansible process crashed while fetching secrets from the 'infisical' instance. #1

@ku9nov

Description

@ku9nov

On a MacBook with an ARM architecture, I can't fetch secrets from the 'infisical' instance.

Example code:

- name: Fetch secrets
  hosts: localhost
  gather_facts: true
  vars:
    read_all_secrets_within_scope: "{{ lookup('infisical.vault.read_secrets', token='<token_here>', path='/', env_slug='dev', url='https://ifc.self.managed') }}"

  tasks:
    - debug:
        var: read_all_secrets_within_scope

Actual output:

TASK [debug] **************************************************************************************************************
objc[54912]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[54912]: +[__NSCFConstantString 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

How to fix it

Run this command in the current terminal session:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Now it's working:

TASK [debug] **************************************************************************************************************
ok: [localhost] => {
    "read_all_secrets_within_scope": [
        {
            "key": "POSTGRES_PORT",
            "value": "5432"
        },
    ]
}

This issue is reported here because I have never encountered this problem with other Ansible collections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions