Build problems with Jenkins / Build inside a linux container

Hey everyone, i'm currently facing an error in my build pipeline on jenkins. My app is a Spring Boot Maven project with a refine frontend. Everything works great on our local dev laptops. But on Jenkins insider a Docker-Build-Container running Linux i'm getting the following error: "permission denied, mkdir '/.config/refine-update-notifier-nodejs" For me it's clear that the root "/" is forbidden to write in. So I need your help to find a solution to give "refine build" another path for its config file.
Running 'npm run build' in /opt/jenkins/workspace/gipo-assistant/src/main/frontend
[INFO]
[INFO] > gipo-assistant@0.3.0 build
[INFO] > tsc && refine build
[INFO]
[INFO] node:internal/fs/utils:353
[INFO] throw err;
[INFO] ^
[INFO]
[INFO] Error: EACCES: permission denied, mkdir '/.config/refine-update-notifier-nodejs'
[INFO] at Object.mkdirSync (node:fs:1379:3)
[INFO] at Conf._ensureDirectory (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:358:12)
[INFO] at get store [as store] (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:284:22)
[INFO] at new Conf (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:131:32)
[INFO] at Object.<anonymous> (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/@refinedev/cli/dist/cli.cjs:3:9360)
[INFO] at Module._compile (node:internal/modules/cjs/loader:1241:14)
[INFO] at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
[INFO] at Module.load (node:internal/modules/cjs/loader:1091:32)
[INFO] at Module._load (node:internal/modules/cjs/loader:938:12)
[INFO] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
[INFO] errno: -13,
[INFO] syscall: 'mkdir',
[INFO] code: 'EACCES',
[INFO] path: '/.config/refine-update-notifier-nodejs'
[INFO] }
[INFO]
[INFO] Node.js v20.9.0
Running 'npm run build' in /opt/jenkins/workspace/gipo-assistant/src/main/frontend
[INFO]
[INFO] > gipo-assistant@0.3.0 build
[INFO] > tsc && refine build
[INFO]
[INFO] node:internal/fs/utils:353
[INFO] throw err;
[INFO] ^
[INFO]
[INFO] Error: EACCES: permission denied, mkdir '/.config/refine-update-notifier-nodejs'
[INFO] at Object.mkdirSync (node:fs:1379:3)
[INFO] at Conf._ensureDirectory (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:358:12)
[INFO] at get store [as store] (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:284:22)
[INFO] at new Conf (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:131:32)
[INFO] at Object.<anonymous> (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/@refinedev/cli/dist/cli.cjs:3:9360)
[INFO] at Module._compile (node:internal/modules/cjs/loader:1241:14)
[INFO] at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
[INFO] at Module.load (node:internal/modules/cjs/loader:1091:32)
[INFO] at Module._load (node:internal/modules/cjs/loader:938:12)
[INFO] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
[INFO] errno: -13,
[INFO] syscall: 'mkdir',
[INFO] code: 'EACCES',
[INFO] path: '/.config/refine-update-notifier-nodejs'
[INFO] }
[INFO]
[INFO] Node.js v20.9.0
5 Replies
kapa.ai
kapa.ai4mo ago
Hi @akaden_gds. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, it seems like a permission issue with the directory where refine is trying to write its config file. You might need to configure your environment to allow refine to write to a different directory. For more detailed information, you can refer to the official Refine documentation (https://refine.dev/docs/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4mo ago
<@1228251765607235645> kapa.ai is still learning and improving, please let us know how it did by reacting below
fascinating-indigo
fascinating-indigo4mo ago
Hey @kapa.ai how can I configure refine to write its config files to a different directory
kapa.ai
kapa.ai4mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm sorry, but the provided knowledge sources do not contain information on how to configure Refine to write its config files to a different directory. I recommend checking the official Refine documentation (https://refine.dev/docs/) or reaching out to the Refine community for more specific guidance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4mo ago
<@1228251765607235645> kapa.ai is still learning and improving, please let us know how it did by reacting below