Skip to main content

Installer fails looking for join_local_rooms_only

Issue

  • When updating my existing Element On-Premise instance, the installer fails with:

    2022-10-05 10:44:11,992 p=48974 u=user n=ansible | [WARNING]: Unable to find '/home/user/.element-onprem-config/certs//ca.pem' in expected paths (use -vvvvv to see paths)
    
    2022-10-05 10:44:11,993 p=48974 u=user n=ansible | An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleError'>, original message: could not locate file in lookup: /home/user/.element-onprem-config/certs//ca.pem
    2022-10-05 10:44:12,077 p=42819 u=user n=ansible | fatal: [localhost]: FAILED! => {
      "msg": "The task includes an option with an undefined variable. The error was: {{ lookup('template', item) | split_regex('^---$') | map('from_yaml') | list | select }}: 'dict object' has no attribute 'join_local_rooms_only'\n\nThe error appears to be in '/home/user/element-enterprise-installer-2022-09.06/ansible/roles/matrix_components/tasks/setup_component.yml': line 15, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"{{ component_type }}: Load manifests\"\n  ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"
    }
    
    

Environment

  • Element Enterprise Installer 2022-09.06

Resolution

If you have previously installed adminbot, please add the following line to your CONFIG_DIR/adminbot/adminbot.yml:

join_local_rooms_only: true

If you have previously installed auditbot, please add the following line to your CONFIG_DIR/auditbot/auditbot.yml:

join_local_rooms_only: true

and re-run the installer. Afterwards, you should not hit this error message.

Root Cause

We added a required variable join_local_rooms_only to the adminbot and auditbot configuration that must be set for the installer to complete successfully.