!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

199 Members
57 Servers

Load older messages


SenderMessageTime
30 Jan 2024
@hexa:lossy.networkhexaalso relative paths....00:39:48
@hexa:lossy.networkhexano argparser00:40:33
@hexa:lossy.networkhexaa wee bit sad00:40:42
@hexa:lossy.networkhexaso do I patch in an absolute path, like /etc/cryptpad/config.js?00:40:58
@hexa:lossy.networkhexaor maybe something that reads the path from the environment00:41:10
@hexa:lossy.networkhexawith a cute fallback value00:41:15
@lily:lily.flowersLily 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:lossy.networkhexa config.example.js in lib/node_modules/cryptpad/config/config.example.js 00:42:08
@hexa:lossy.networkhexa kinda the directory where they seem to expect the config.js 00:42:23
@hexa:lossy.networkhexa although the server is at lib/node_modules/cryptpad/server.js 00:42:39
@lily:lily.flowersLily 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:lossy.networkhexaoh, silly me00:42:57
@hexa:lossy.networkhexathanks00:42:59
@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.000:43:53
@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:01
@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

Show newer messages


Back to Room ListRoom Version: 6