Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61293 - [code] is unable to start, and tries to mkdir in /usr/data

Attached to Project: Community Packages
Opened by hexchain (hexchain) - Sunday, 06 January 2019, 18:33 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 07 January 2019, 04:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
VSCode does not start when launched from either terminal or Plasma runner.

$ code --verbose
[18328:0106/193150.694448:ERROR:sandbox_linux.cc(344)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 7:31:50 PM] Error: EACCES: permission denied, mkdir '/usr/data/extensions'
[main 7:31:50 PM] Lifecycle#kill()

$ code --list-extensions
{ Error: EACCES: permission denied, mkdir '/usr/data/user-data'
at Object.fs.mkdirSync (fs.js:885:18)
at sync (/usr/lib/code/node_modules.asar/mkdirp/index.js:71:13)
at sync (/usr/lib/code/node_modules.asar/mkdirp/index.js:77:24)
at Function.sync (/usr/lib/code/node_modules.asar/mkdirp/index.js:77:24)
at new RotatingLogger (/usr/lib/code/node_modules.asar/spdlog/index.js:13:11)
at Object.t.createSpdLogService (/usr/lib/code/out/vs/code/node/cliProcessMain.js:68:290)
at Object.t.main (/usr/lib/code/out/vs/code/node/cliProcessMain.js:178:365)
at /usr/lib/code/out/vs/code/node/cli.js:125:718
at /usr/lib/code/out/vs/code/node/cli.js:69:439
at Object.next (/usr/lib/code/out/vs/code/node/cli.js:69:544)
at s (/usr/lib/code/out/vs/code/node/cli.js:68:519)
at <anonymous>
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/data/user-data' }
[ { Error: EACCES: permission denied, mkdir '/usr/data/user-data'
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/data/user-data' },
{ Error: EACCES: permission denied, mkdir '/usr/data/extensions'
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/data/extensions' } ]

Additional info:
* package version(s)
* config and/or log files etc.

code 1.30.1-1
electron2 2.0.16-1

Steps to reproduce:
1. try to start code
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 07 January 2019, 04:08 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#60093 
Comment by hexchain (hexchain) - Sunday, 06 January 2019, 19:41 GMT
I've done some digging and found the cause to be an empty `/usr/data` directory (I also have no idea why it's there).

VSCode tries to detect if it's running as a portable instance, see [1]. An existing `/usr/data` effectively makes "isPortable" true.

Maybe we can have a "target" field in product.json? Looking at the code it seems that this field only has something to do with autoupdate, which is win32-only (I haven't tried, though).


[1] https://sourcegraph.com/github.com/Microsoft/vscode@dea8705/-/blob/src/bootstrap.js#L203

Loading...