Hey all who have tried cryptpad on NixOS/with nix!
I tried it out today, and neither the nixos module, the module with the pkg from nixos-unstable, nor a manual start with the default config worked. It showed only a 404 error page, containing the cryptpad logo, so fetching this stuff works.
Disabling most of the security stuff and enabling verbose silly logging does not help and also provides no helpful information:
You can configure the administrator email (adminEmail) in your config/config.js file
FRESH MODE ENABLED
m m mm mmmmm mm m mmmmm mm m mmm m
# # # ## # "# #"m # # #"m # m" " #
" #"# # # # #mmmm" # #m # # # #m # # mm #
## ##" #mm# # "m # # # # # # # # #
# # # # # " # ## mm#mm # ## "mmm" #
No 'httpSafeOrigin' provided.
Your configuration probably isn't taking advantage of all of CryptPad's security features!
This is acceptable for development, otherwise your users may be at risk.
Serving sandboxed content via port 3001.
This is probably not what you want for a production instance!
Cryptpad is customizable, see customize.dist/readme.md for details
[2020-09-22T13:44:21.646Z] server available http://[::]:3000
["SILLY","2020-09-22T13:44:21.712Z","HK_LOADING","LOADING HISTORY_KEEPER MODULE"]
["VERBOSE","2020-09-22T13:44:21.713Z","HK_ID","History keeper ID: fea9bfabfd9d9d21"]
Running strace cryptpad
, the only possibly interesting lines similar to
accept4(18, NULL, NULL, SOCK_CLOEXEC|SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
…
futex(0x7ffda497e438, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=17563, tv_nsec=405242000}, FUTEX_BITSET_MATCH_ANY) = -1 EAGAIN (Resource temporarily unavailable)
Does anyone have a suggestion what could be the problem? I didn’t file a bug report immediately, because according to the relevant issues/prs, cryptpad on NixOS was tested. Am I only missing something out?