Build is crashing due to permissions in a volume

mannyyang
HOBBY

5 months ago

Trying to create a librechat instance with a volume pointed at the '/app/client/public/images/' but am getting the error message below:

node:fs:1507
const result = binding.readdir(
^
Error: EACCES: permission denied, scandir '/app/client/public/images/lost+found'
at Object.readdirSync (node:fs:1507:26)
at findCompressedFilesInDirectory (/app/nodemodules/express-static-gzip/index.js:110:31) at findCompressedFilesInDirectory (/app/nodemodules/express-static-gzip/index.js:115:9)
at parseRootDirForCompressedFiles (/app/nodemodules/express-static-gzip/index.js:103:7) at expressStaticGzipMiddleware (/app/nodemodules/express-static-gzip/index.js:24:3)
at staticCache (/app/api/server/utils/staticCache.js:9:3)
at Object. (/app/api/server/routes/static.js:6:12)
at Module.compile (node:internal/modules/cjs/loader:1469:14) at Module.extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/app/client/public/images/lost+found'
}

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

3 Replies

5 months ago

Hello,

Try setting a service variable RAILWAY_RUN_UID to 0


brody

Hello,Try setting a service variable RAILWAY_RUN_UID to 0

mannyyang
HOBBY

5 months ago

sweet, that worked. thanks!


5 months ago

Awsome!


Status changed to Solved brody 5 months ago


Build is crashing due to permissions in a volume - Railway Help Station