Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
12.93k stars 667 forks source link

Infisical on Openshift throws error for backend #879

Open mrjson79 opened 10 months ago

mrjson79 commented 10 months ago

Describe the bug

Installing infisical on Openshift with helm throws the following error: "> infisical-api@1.0.0 start

node build/index.js npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /.npm npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000730000:0 "/.npm" npm ERR! Log files were not written due to an error writing to the directory: /.npm/_logs"

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

To be installed and working.

Screenshots

If applicable, add screenshots to help explain your problem.

Platform you are having the issue on:

Openshift.

Additional context

Ive tested to change scc for backend but no luck. Here's my helm values file:

frontend: enabled: true name: frontend podAnnotations: {} deploymentAnnotations: {} replicaCount: 4 image: repository: infisical/frontend tag: "v0.1.3" pullPolicy: IfNotPresent kubeSecretRef: null service: annotations: {} type: ClusterIP nodePort: ""

backend: enabled: true name: backend podAnnotations: {} deploymentAnnotations: {} replicaCount: 4 image: repository: infisical/backend tag: "v0.1.3" pullPolicy: IfNotPresent kubeSecretRef: null service: annotations: {} type: ClusterIP nodePort: ""

View all environment variables https://infisical.com/docs/self-hosting/configuration/envars

backendEnvironmentVariables: MONGO_URL: <> HTTPS_ENABLED: <>

Mongo DB persistence

mongodb: enabled: false persistence: enabled: false

ingress: enabled: true hostName: infisical.apps.labb01.gotlab.local frontend: path: / pathType: Prefix backend: path: /api pathType: Prefix

maidul98 commented 10 months ago

The latest version of Infisical is v0.31.0, you were trying to use image tag version v0.1.3. Can you try with the latest tag and let us know? Also is there a reason you wated to use image tag v0.1.3?

maidul98 commented 10 months ago

cc @narindraditantyo

mrjson79 commented 10 months ago

Hi, Changed to the latest image tag same error. I believe i just copied the values from the guide on your homepage.

mrjson79 commented 10 months ago

To clarify i use chart version 0.3.1 which seems to be the latest and image tag v0.31.0, still the same error.

maidul98 commented 10 months ago

Can you point me to the guide that instructs you to use the v0.1.3 image tag? This way we can remove it.

In which container do you see the error in now?

mrjson79 commented 10 months ago

on this page: https://infisical.com/docs/self-hosting/deployment-options/kubernetes-helm Under the headline Example Helm values -> simple-helm-values.yaml

I see the error in the backend - but now its a pull rate error. Ill delete my deployment and do another trial tomorrow.

maidul98 commented 10 months ago

Keep us updated, thanks!

narindraditantyo commented 10 months ago

Describe the bug

Installing infisical on Openshift with helm throws the following error: "> infisical-api@1.0.0 start

node build/index.js npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /.npm npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 1000730000:0 "/.npm" npm ERR! Log files were not written due to an error writing to the directory: /.npm/_logs"

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

To be installed and working.

Screenshots

If applicable, add screenshots to help explain your problem.

Platform you are having the issue on:

Openshift.

Additional context

Ive tested to change scc for backend but no luck. Here's my helm values file:

frontend: enabled: true name: frontend podAnnotations: {} deploymentAnnotations: {} replicaCount: 4 image: repository: infisical/frontend tag: "v0.1.3" pullPolicy: IfNotPresent kubeSecretRef: null service: annotations: {} type: ClusterIP nodePort: ""

backend: enabled: true name: backend podAnnotations: {} deploymentAnnotations: {} replicaCount: 4 image: repository: infisical/backend tag: "v0.1.3" pullPolicy: IfNotPresent kubeSecretRef: null service: annotations: {} type: ClusterIP nodePort: ""

View all environment variables https://infisical.com/docs/self-hosting/configuration/envars

backendEnvironmentVariables: MONGO_URL: <> HTTPS_ENABLED: <>

Mongo DB persistence

mongodb: enabled: false persistence: enabled: false

ingress: enabled: true hostName: infisical.apps.labb01.gotlab.local frontend: path: / pathType: Prefix backend: path: /api pathType: Prefix

Hi @mrjson79, have you tried adding SCC to this user ID on current deployment project/namespace?