You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to run the operator-service in my kubernetes environment but get the following error logs in container:
"/operator-service/docker-entrypoint.sh: line 4: can't create /operator-service/config.ini: Permission denied"
"TypeError: argument of type 'NoneType' is not iterable"
You can see the error in the attached screenshot. My container doesn't have root privileges so any suggestion would be appreciated to fix both errors. Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I just discussed this with the team and got more info. Your problem is mainly caused by the fact that you don't have root permissions. This is something we have on the roadmap but it's for the beginning of the next year. Thanks for opening this and let us know if we can support with anything else
I managed to resolve this issue by dowing the following:
Modifying the Dockerfile: First, I updated the Dockerfile to include commands for creating a dedicated user and group for the service and set them as the owners of the /operator-service directory. RUN groupadd -r operatorgroup && \ useradd -r -g operatorgroup operatoruser && \ chown -R operatoruser:operatorgroup /operator-service
Updating the Kubernetes Deployment YAML: I added a security context. securityContext: runAsUser: <UID_of_operatoruser> runAsGroup: <GID_of_operatorgroup>
Now my operator api container logs look as follow:
I was able to initiliaze the database using this endpoint "/api/v1/operator/pgsqlinit".
Hello,
I am trying to run the operator-service in my kubernetes environment but get the following error logs in container:
"/operator-service/docker-entrypoint.sh: line 4: can't create /operator-service/config.ini: Permission denied"
"TypeError: argument of type 'NoneType' is not iterable"
You can see the error in the attached screenshot. My container doesn't have root privileges so any suggestion would be appreciated to fix both errors. Thanks!
The text was updated successfully, but these errors were encountered: