| 30 Jan 2024 |
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 |
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:44:01 |
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:44:07 |
Lily 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 | -r--r--r-- 1 hexa users 12593 30. Jan 01:37 ./config/config.js
| 00:44:20 |
hexa | exactly | 00:44:24 |
hexa | more env vars to find | 00:44:32 |
hexa | but also the message, that it did not find the config | 00:44:42 |
hexa | absolute paths in the env var work | 00:45:10 |
Lily 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 Foster | ohh yeah it did fail to load config | 00:46:03 |
Lily Foster | i can't read. am tired | 00:46:08 |
hexa | ❯ 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 | it uses relative paths through the example config | 00:46:47 |
hexa | and relative always mean relative to the package, not to my cwd | 00:47:01 |
hexa | and no common base path o_O | 00:47:45 |
Lily Foster | what's in your config.js? | 00:48:00 |