Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infisical on Openshift throws error for backend #879

Open
mrjson79 opened this issue Aug 21, 2023 · 8 comments
Open

Infisical on Openshift throws error for backend #879

mrjson79 opened this issue Aug 21, 2023 · 8 comments

Comments

@mrjson79
Copy link

Describe the bug

Installing infisical on Openshift with helm throws the following error:
"> [email protected] 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
Copy link
Collaborator

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
Copy link
Collaborator

cc @narindraditantyo

@mrjson79
Copy link
Author

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

@mrjson79
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

Keep us updated, thanks!

@narindraditantyo
Copy link

narindraditantyo commented Aug 22, 2023

Describe the bug

Installing infisical on Openshift with helm throws the following error: "> [email protected] 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants