Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 519911

Summary: [Node]in Setting page, click "JAVASCRIPT VALIDATION", the server has a bunch of "Unhandled rejection Error"
Product: [ECD] Orion Reporter: XinYi Jiang <xinyij>
Component: NodeAssignee: Eric Moffatt <emoffatt>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: remy.suen
Version: 14.0   
Target Milestone: 17.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description XinYi Jiang CLA 2017-07-19 14:34:02 EDT
Unhandled rejection Error: EEXIST: file already exists, open '/Users/xinyijiang/.orion/prefs.json.lock'
    at lock (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/metastore/fs/store.js:38:18)
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/metastore/fs/store.js:98:25
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/mkdirp/index.js:48:26
    at FSReqWrap.oncomplete (fs.js:114:15)
From previous event:
    at FsMetastore.updateUserPreferences (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/metastore/fs/store.js:97:4)
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/controllers/prefs.js:101:10
From previous event:
    at savePrefs (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/controllers/prefs.js:100:10)
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/controllers/prefs.js:70:12
    at runCallback (timers.js:666:20)
    at tryOnImmediate (timers.js:639:5)
    at processImmediate [as _immediateCallback] (timers.js:611:5)
From previous event:
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/lib/controllers/prefs.js:69:5
    at Layer.handle [as handle_request] (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/layer.js:95:5)
    at /Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/index.js:281:22
    at param (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/index.js:354:14)
    at param (/Users/xinyijiang/IBM/openSourceWorkspace/orion.client/modules/orionode/node_modules/express/lib/router/index.js:365:14)
...
Comment 1 Remy Suen CLA 2017-08-22 01:04:21 EDT
You'll see the problem if you try to select the 'CSS Validation' settings page. You can repeat the problem again and again by switching to a safe page and back. However, if you expand all of the sections in either of the two validation pages and then try to reproduce the problem, you won't be able to.
Comment 2 Eric Moffatt CLA 2017-10-06 11:10:19 EDT
OK, Sidney says that the offending file has been removed and we can no longer reproduce this...