!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

206 Members
58 Servers

Load older messages


SenderMessageTime
30 Jan 2024
@hexa:lossy.networkhexa *
$ 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:44:07
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
$ 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
eww it stores data on the node_modules folder
00:44:20
@hexa:lossy.networkhexa
-r--r--r-- 1 hexa users 12593 30. Jan 01:37 ./config/config.js
00:44:20
@hexa:lossy.networkhexaexactly00:44:24
@hexa:lossy.networkhexamore env vars to find00:44:32
@hexa:lossy.networkhexabut also the message, that it did not find the config00:44:42
@hexa:lossy.networkhexaabsolute paths in the env var work00:45:10
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
more env vars to find
looks like it gets those dirs all from the config.js
00:45:42
@lily:lily.flowersLily Fosterohh yeah it did fail to load config00:46:03
@lily:lily.flowersLily Fosteri can't read. am tired00:46:08
@hexa:lossy.networkhexa
❯ CRYPTPAD_CONFIG=$(pwd)/config/config.js ./result/bin/cryptpad-server
/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:46:14
@hexa:lossy.networkhexait uses relative paths through the example config00:46:47
@hexa:lossy.networkhexaand relative always mean relative to the package, not to my cwd00:47:01
@hexa:lossy.networkhexaand no common base path o_O00:47:45
@lily:lily.flowersLily Fosterwhat's in your config.js?00:48:00
@hexa:lossy.networkhexahttps://github.com/cryptpad/cryptpad/blob/5.6.0/config/config.example.js00:48:21
@hexa:lossy.networkhexaall default for now00:48:24
@lily:lily.flowersLily Fosterohhhh i see what you're saying00:48:25
@lily:lily.flowersLily Fosteryeah00:48:32
@lily:lily.flowersLily Fosterthat, uh, does sound silly00:48:40
@hexa:lossy.networkhexaok, it is up, doesn't even log startup things00:52:05
@hexa:lossy.networkhexawild.00:52:13
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/251687 hmm00:53:34
@hexa:lossy.networkhexaI think I am now uniquely qualified to review that existing PR00:53:46
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
and relative always mean relative to the package, not to my cwd
i can't tell how or why this would be the case, by some quick looking through the code on mobile 👀
00:55:41
@hexa:lossy.networkhexaugh, mobile 😄00:55:54
@hexa:lossy.networkhexadon'00:55:55
@hexa:lossy.networkhexa * don't do that00:55:57
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
don'
(it is, uh, hurting to use gh's search for this on mobile, yeah...)
00:56:41
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/251687/files#diff-0484e02777f32406a41a22e3f48f96f437ec183b1d3d3f9533d67370e6fb0620R49-R6300:57:30

Show newer messages


Back to Room ListRoom Version: 6