| 29 Jan 2024 |
hexa | * this looks an issue avocadoom solved by exporting HOME | 22:37:19 |
hexa | * fetchNpmDeps chokes on cryptpad things 😄 | 22:37:43 |
hexa | * buildNpmPackage chokes on cryptpad things 😄 | 22:37:49 |
hexa | but doing that doesn't help 🙂 | 22:44:13 |
hexa | cryptpad> Installing dependencies
cryptpad> ++ npm ci --ignore-scripts --loglevel=verbose
cryptpad> npm verb cli /nix/store/d6lkbndr98lcn8spbqxfq52f2ldvqhks-nodejs-20.11.0/bin/node /nix/store/d6lkbndr98lcn8spbqxfq52f2ldvqhks-nodejs-20.11.0/bin/npm
cryptpad> npm info using npm@10.2.4
cryptpad> npm info using node@v20.11.0
cryptpad> npm verb logfile could not create logs-dir: Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs'
cryptpad> npm verb title npm ci
cryptpad> npm verb argv "ci" "--ignore-scripts" "--loglevel" "verbose"
cryptpad> npm verb logfile logs-max:10 dir:/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs/2024-01-29T22_44_13_405Z-
cryptpad> npm verb logfile could not be created: Error: ENOENT: no such file or directory, open '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs/2024-01-29T22_44_13_405Z-debug-0.log'
cryptpad> npm verb logfile no logfile created
cryptpad> npm WARN EBADENGINE Unsupported engine {
cryptpad> npm WARN EBADENGINE package: 'json.sortify@2.2.2',
cryptpad> npm WARN EBADENGINE required: { node: '>=4.0.0', npm: '~1.0.20' },
cryptpad> npm WARN EBADENGINE current: { node: 'v20.11.0', npm: '10.2.4' }
cryptpad> npm WARN EBADENGINE }
cryptpad> npm WARN deprecated debuglog@0.0.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
cryptpad> npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
cryptpad> npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
cryptpad> npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
cryptpad> npm WARN deprecated lex@1.7.9: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
cryptpad> npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
cryptpad> npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
cryptpad> npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
cryptpad> npm verb stack Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp'
cryptpad> npm verb cwd /build/source
cryptpad> npm verb Linux 6.1.69
cryptpad> npm verb node v20.11.0
cryptpad> npm verb npm v10.2.4
cryptpad> npm ERR! code EACCES
cryptpad> npm ERR! syscall mkdir
cryptpad> npm ERR! path /nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp
cryptpad> npm ERR! errno -13
cryptpad> npm verb Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp'
cryptpad> npm ERR!
cryptpad> npm ERR! Your cache folder contains root-owned files, due to a bug in
cryptpad> npm ERR! previous versions of npm which has since been addressed.
cryptpad> npm ERR!
cryptpad> npm ERR! To permanently fix this problem, please run:
cryptpad> npm ERR! sudo chown -R 1000:100 "/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps"
cryptpad> npm verb exit -13
cryptpad> npm verb unfinished npm timer reify 1706568253643
cryptpad> npm verb unfinished npm timer reify:unpack 1706568253668
cryptpad> npm verb unfinished npm timer reifyNode:node_modules/drawio 1706568253673
cryptpad> npm verb code -13
cryptpad>
cryptpad> npm ERR! Log files were not written due to an error writing to the directory: /nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs
cryptpad> npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
cryptpad> ++ echo
| 22:44:44 |
Lily Foster | In reply to @hexa:lossy.network
cryptpad> Installing dependencies
cryptpad> ++ npm ci --ignore-scripts --loglevel=verbose
cryptpad> npm verb cli /nix/store/d6lkbndr98lcn8spbqxfq52f2ldvqhks-nodejs-20.11.0/bin/node /nix/store/d6lkbndr98lcn8spbqxfq52f2ldvqhks-nodejs-20.11.0/bin/npm
cryptpad> npm info using npm@10.2.4
cryptpad> npm info using node@v20.11.0
cryptpad> npm verb logfile could not create logs-dir: Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs'
cryptpad> npm verb title npm ci
cryptpad> npm verb argv "ci" "--ignore-scripts" "--loglevel" "verbose"
cryptpad> npm verb logfile logs-max:10 dir:/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs/2024-01-29T22_44_13_405Z-
cryptpad> npm verb logfile could not be created: Error: ENOENT: no such file or directory, open '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs/2024-01-29T22_44_13_405Z-debug-0.log'
cryptpad> npm verb logfile no logfile created
cryptpad> npm WARN EBADENGINE Unsupported engine {
cryptpad> npm WARN EBADENGINE package: 'json.sortify@2.2.2',
cryptpad> npm WARN EBADENGINE required: { node: '>=4.0.0', npm: '~1.0.20' },
cryptpad> npm WARN EBADENGINE current: { node: 'v20.11.0', npm: '10.2.4' }
cryptpad> npm WARN EBADENGINE }
cryptpad> npm WARN deprecated debuglog@0.0.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
cryptpad> npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
cryptpad> npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
cryptpad> npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
cryptpad> npm WARN deprecated lex@1.7.9: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
cryptpad> npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
cryptpad> npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
cryptpad> npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
cryptpad> npm verb stack Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp'
cryptpad> npm verb cwd /build/source
cryptpad> npm verb Linux 6.1.69
cryptpad> npm verb node v20.11.0
cryptpad> npm verb npm v10.2.4
cryptpad> npm ERR! code EACCES
cryptpad> npm ERR! syscall mkdir
cryptpad> npm ERR! path /nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp
cryptpad> npm ERR! errno -13
cryptpad> npm verb Error: EACCES: permission denied, mkdir '/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_cacache/tmp'
cryptpad> npm ERR!
cryptpad> npm ERR! Your cache folder contains root-owned files, due to a bug in
cryptpad> npm ERR! previous versions of npm which has since been addressed.
cryptpad> npm ERR!
cryptpad> npm ERR! To permanently fix this problem, please run:
cryptpad> npm ERR! sudo chown -R 1000:100 "/nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps"
cryptpad> npm verb exit -13
cryptpad> npm verb unfinished npm timer reify 1706568253643
cryptpad> npm verb unfinished npm timer reify:unpack 1706568253668
cryptpad> npm verb unfinished npm timer reifyNode:node_modules/drawio 1706568253673
cryptpad> npm verb code -13
cryptpad>
cryptpad> npm ERR! Log files were not written due to an error writing to the directory: /nix/store/48frifr851cd9xz2siwzz1dsqnlz757w-cryptpad-5.6.0-npm-deps/_logs
cryptpad> npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
cryptpad> ++ echo
Does makeCacheWritable = true help? | 22:47:00 |
hexa | indeed it does | 22:51:02 |
Lily Foster | In reply to @hexa:lossy.network indeed it does Does the diagnostic output say that? I'll add it if it does not | 22:51:19 |
hexa | lmao | 22:51:34 |
hexa | step 1 | 22:51:36 |
hexa | my bad | 22:51:42 |
Lily Foster | Okay, just making sure 😅 | 22:52:04 |
hexa |
cryptpad-5.6.0 (installPhase) ⏱ 7m41s
| 22:58:36 |
hexa | oh right, my laptop just began gc'ing the store 🙈 | 23:00:52 |
| 30 Jan 2024 |
hexa | grr, its wants the config.js inside the package | 00:39:04 |
hexa | https://github.com/cryptpad/cryptpad/blob/70d47193596662b2ee7278d6671b56812f11f821/lib/load-config.js#L8 | 00:39:45 |
hexa | also relative paths.... | 00:39:48 |
hexa | no argparser | 00:40:33 |
hexa | a wee bit sad | 00:40:42 |
hexa | so do I patch in an absolute path, like /etc/cryptpad/config.js? | 00:40:58 |
hexa | or maybe something that reads the path from the environment | 00:41:10 |
hexa | with a cute fallback value | 00:41:15 |
Lily Foster | In reply to @hexa:lossy.network so do I patch in an absolute path, like /etc/cryptpad/config.js? i mean there is an env var you can override. do they provide the config.js as a default or something? | 00:41:51 |
hexa | config.example.js in lib/node_modules/cryptpad/config/config.example.js | 00:42:08 |
hexa | kinda the directory where they seem to expect the config.js | 00:42:23 |
hexa | although the server is at lib/node_modules/cryptpad/server.js | 00:42:39 |
Lily Foster | In reply to @hexa:lossy.network or maybe something that reads the path from the environment isn't that what $CRYPTPAD_CONFIG does? | 00:42:47 |
hexa | oh, silly me | 00:42:57 |
hexa | thanks | 00:42:59 |
hexa | $ CRYPTPAD_CONFIG=./config/config.js ./result/bin/cryptpad-server
Config not found, loading the example config. You can customize the configuration by copying config/config.example.js to ./config/config.js
/nix/store/h0iylf7szzwl1yvpcxgs350w5ribv12a-cryptpad-5.6.0/lib/node_modules/cryptpad/lib/log.js:102
throw err;
^
[Error: EROFS: read-only file system, mkdir '/nix/store/h0iylf7szzwl1yvpcxgs350w5ribv12a-cryptpad-5.6.0/lib/node_modules/cryptpad/data'] {
errno: -30,
code: 'EROFS',
syscall: 'mkdir',
path: '/nix/store/h0iylf7szzwl1yvpcxgs350w5ribv12a-cryptpad-5.6.0/lib/node_modules/cryptpad/data'
}
Node.js v20.11.0 | 00:43:53 |