dysnix / charts

Dysnix Helm charts
Other
36 stars 43 forks source link

[NiFi Registry] Permission error for `auth-conf` on initial startup #284

Open jrebmann opened 6 months ago

jrebmann commented 6 months ago

When deploying the NiFi Registry, a permission error may occur on the auth-conf folder.

This is due to a bug in helm chart which omits the setting of permissions on this folder.

Either the permissions on this folder have to be set manually once, or the folder has to be added to the initContainers script.

saxcorp commented 4 months ago

I have the same issue and un try to create the folder on the initContainers, but. it's not work. Someone could provide a example?

jrebmann commented 4 months ago

Hi @saxcorp,

it's not about the creation of the folder, but about the permissions.

Just add the folder path to the chmod statement:

          command:
            - chown
            - -R
            - 1000:1000
            - /opt/nifi-registry/nifi-registry-current/database
            - /opt/nifi-registry/nifi-registry-current/flow_storage
            - /opt/nifi-registry/nifi-registry-current/auth-conf

This worked for me. Hopefully it will for you too.