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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰] JuiceShop Docker Image Crashing on OpenShift since 9.1.0 #1233

Closed
J12934 opened this issue Oct 14, 2019 · 4 comments
Closed

[馃悰] JuiceShop Docker Image Crashing on OpenShift since 9.1.0 #1233

J12934 opened this issue Oct 14, 2019 · 4 comments
Assignees

Comments

@J12934
Copy link
Member

J12934 commented Oct 14, 2019

馃悰 Bug report

Description

When running JuiceShop on OpenShift the Container crashes directly.

Is this a regression?

Yes, the previous version in which this bug was not present was: 9.0.1

馃敩 Minimal Reproduction

OpenShift with default security context setup.

oc

oc run juice-shop-test --image bkimminich/juice-shop:v9.1.0
oc logs deploymentconfigs/juice-shop-test

馃敟 Exception or Error

> juice-shop@9.1.0 start /juice-shop
> node app

info: All dependencies in ./package.json are satisfied (OK)
info: Detected Node.js version v12.11.1 (OK)
info: Detected OS linux (OK)
info: Detected CPU x64 (OK)
info: Required file index.html is present (OK)
info: Required file styles.css is present (OK)
info: Required file main-es2015.js is present (OK)
info: Required file polyfills-es2015.js is present (OK)
info: Required file runtime-es2015.js is present (OK)
info: Required file vendor-es2015.js is present (OK)
info: Required file main-es5.js is present (OK)
info: Required file polyfills-es5.js is present (OK)
info: Required file runtime-es5.js is present (OK)
info: Required file vendor-es5.js is present (OK)
info: Configuration default validated (OK)
fs.js:130
    throw err;
    ^

Error: EACCES: permission denied, copyfile '/juice-shop/data/static/i18n/ar_SA.json' -> '/juice-shop/i18n/ar_SA.json'
    at Object.copyFileSync (fs.js:1801:3)
    at /juice-shop/lib/startup/restoreOverwrittenFilesWithOriginals.js:14:12
    at Array.forEach (<anonymous>)
    at /juice-shop/lib/startup/restoreOverwrittenFilesWithOriginals.js:13:13
    at f (/juice-shop/node_modules/once/once.js:25:25)
    at Glob.<anonymous> (/juice-shop/node_modules/glob/glob.js:151:7)
    at Glob.emit (events.js:210:5)
    at Glob._finish (/juice-shop/node_modules/glob/glob.js:197:8)
    at done (/juice-shop/node_modules/glob/glob.js:182:14)
    at Glob._processReaddir2 (/juice-shop/node_modules/glob/glob.js:434:12)
    at /juice-shop/node_modules/glob/glob.js:371:17
    at RES (/juice-shop/node_modules/inflight/inflight.js:31:16)
    at f (/juice-shop/node_modules/once/once.js:25:25)
    at Glob._readdirEntries (/juice-shop/node_modules/glob/glob.js:578:10)
    at /juice-shop/node_modules/glob/glob.js:555:12
    at FSReqCallback.oncomplete (fs.js:157:23) {
  errno: -13,
  syscall: 'copyfile',
  code: 'EACCES',
  path: '/juice-shop/data/static/i18n/ar_SA.json',
  dest: '/juice-shop/i18n/ar_SA.json'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! juice-shop@9.1.0 start: `node app`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the juice-shop@9.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

馃尦 Your Environment

OpenShift v3.11.0
Juice Shop v9.1.0

@J12934 J12934 added the bug label Oct 14, 2019
@J12934
Copy link
Member Author

J12934 commented Oct 14, 2019

Looks to me that the language files are now copied into a different directory.
We probably have to change the rights for that dir in the dockerfile.

@J12934 J12934 self-assigned this Oct 14, 2019
@bkimminich
Copy link
Member

Yeah, there are additional language files being copied from ./data/static/i18n into ./i18n now.

@J12934
Copy link
Member Author

J12934 commented Oct 14, 2019

Okay 馃憤
I'll try fix the dockerfile

J12934 added a commit that referenced this issue Oct 14, 2019
Add rights to `i18n/` folder.
Closes #1233
@github-actions
Copy link

This thread has been automatically locked because it has not had recent activity after it was closed. 馃敀 Please open a new issue for regressions or related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants