!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

194 Members
56 Servers

Load older messages


SenderMessageTime
29 Jan 2024
@lily:lily.flowersLily 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:lossy.networkhexalmao22:51:34
@hexa:lossy.networkhexastep 122:51:36
@hexa:lossy.networkhexamy bad 22:51:42
@lily:lily.flowersLily FosterOkay, just making sure 😅22:52:04
@hexa:lossy.networkhexa

cryptpad-5.6.0 (installPhase) ⏱ 7m41s

22:58:36
@hexa:lossy.networkhexaoh right, my laptop just began gc'ing the store 🙈23:00:52
30 Jan 2024
@hexa:lossy.networkhexagrr, its wants the config.js inside the package00:39:04
@hexa:lossy.networkhexahttps://github.com/cryptpad/cryptpad/blob/70d47193596662b2ee7278d6671b56812f11f821/lib/load-config.js#L800:39:45
@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

Show newer messages


Back to Room ListRoom Version: 6