Build is crashing due to permissions in a volume
mannyyang
HOBBYOP

a year 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/node_modules/express-static-gzip/index.js:110:31)

at findCompressedFilesInDirectory (/app/node_modules/express-static-gzip/index.js:115:9)

at parseRootDirForCompressedFiles (/app/node_modules/express-static-gzip/index.js:103:7)

at expressStaticGzipMiddleware (/app/node_modules/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

a year 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
HOBBYOP

a year ago

sweet, that worked. thanks!


a year ago

Awsome!


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...