!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
3 Oct 2023
@jfvillablanca:matrix.orgjfvillablanca hello everyone, i am making a nodejs project and i am using devenv. i have set services.mysql.enable = true; in my flake.nix.
mysql cli seems to be enabled on the environment, however, when I try to run mysql
I get this error
ERROR 2002 (HY000): Can't connect to local server through socket '/link/to/repo/.devenv/state/mysql.sock'
if anyone can shed some light on this, i would very much appreciate it
02:23:23
@spion:mozilla.orgspion set a profile picture.15:31:36
@c0ba1t:matrix.orgCobalt
In reply to @jfvillablanca:matrix.org
hello everyone, i am making a nodejs project and i am using devenv. i have set services.mysql.enable = true; in my flake.nix.
mysql cli seems to be enabled on the environment, however, when I try to run mysql
I get this error
ERROR 2002 (HY000): Can't connect to local server through socket '/link/to/repo/.devenv/state/mysql.sock'
if anyone can shed some light on this, i would very much appreciate it
The mysql server is most likely not running (as indicated by the missing socket).
19:57:13
6 Oct 2023
@fwam:karp.lolfwam joined the room.16:42:44
@marie:marie.cologneMarie joined the room.17:04:21
@lily:lily.flowersLily Foster
In reply to @thiloho:matrix.org

Alright, now after a few hours I am getting the [55] error again, and I can tell you that it does not fail on the same dependency.

Here, the two different errors, the first one is from yesterday and the new one from right now:

error: builder for '/nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv' failed with exit code 1;
       last 10 log lines:
       > node_modules/sade
       > node_modules/to-fast-properties
       > node_modules/p-try
       > node_modules/yallist
       > node_modules/stdin-discarder
       > node_modules/mdast-util-to-string
       > Error: unknown error
       >
       > Caused by:
       >     [55] Failed sending data to the peer
       For full logs, run 'nix log /nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv'.
error: builder for '/nix/store/pqzz7v0d4gqi6smg90c909g542snxp83-build-aurora-blog-npm-deps.drv' failed with exit code 1;
       last 10 log lines:
       > node_modules/server-destroy
       > node_modules/zwitch
       > node_modules/vite/node_modules/@esbuild/linux-arm
       > node_modules/@types/debug
       > node_modules/is-extendable
       > node_modules/ansi-align/node_modules/string-width
       > Error: unknown error
       >
       > Caused by:
       >     [55] Failed sending data to the peer
       For full logs, run 'nix log /nix/store/pqzz7v0d4gqi6smg90c909g542snxp83-build-aurora-blog-npm-deps.drv'.
Okay so here's an interesting one. Curl error 55 (CURLE_SEND_ERROR) should be getting set as an io error which should be retried. But it's errorkind is now Unknown instead of Io which results in the error being considered permanent, as seen in your log
19:54:05
@lily:lily.flowersLily FosterSo what's changed is actually likely something in the rust ffi to libcurl19:54:21
@lily:lily.flowersLily Fosterugh19:54:26
@lily:lily.flowersLily Foster(I still haven't been able to replicate btw.... but it does not actually seem like it's due to rate limiting or anything like that)19:55:52
@lily:lily.flowersLily FosterWould someone who is able to replicate the issue test builds for me if I come up with a fix?19:57:47
@lily:lily.flowersLily FosterI guess I should ask on the gh issue actually19:57:55
@lily:lily.flowersLily FosterI wonder if all that is needed is bumping curl-sys20:01:01
@lily:lily.flowersLily Foster If someone wants to test, try the flake output github:lilystarlight/nixpkgs/upd/prefetch-npm-deps-deps#prefetch-npm-deps 20:01:33
@lily:lily.flowersLily FosterIt would be appreciated 🙏20:01:40
@marie:marie.cologneMariei would like to test, but i get a 404 from github on that :(20:04:58
@lily:lily.flowersLily Fosteruhhhh heck20:05:08
@lily:lily.flowersLily FosterOne sec20:05:10
@lily:lily.flowersLily Fosterheck I misspelled my own name 🤦‍♀️20:05:52
@lily:lily.flowersLily Foster * If someone wants to test, try the flake output github:lilyinstarlight/nixpkgs/upd/prefetch-npm-deps-deps#prefetch-npm-deps 20:05:57
@marie:marie.cologneMarieoh20:06:01
@marie:marie.cologneMariei tried it 2 times got 2 different errors20:09:04
@marie:marie.cologneMarielooking good20:09:07
@marie:marie.cologneMarie
Error: unknown error

Caused by:
    [55] Failed sending data to the peer
Error: unknown error

Caused by:
    [18] Transferred a partial file
20:09:36
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
I wonder if all that is needed is bumping curl-sys
(If all that is needed to fix this issue of the past several weeks is to bump the crate deps on the fetcher, I'm gonna be hella embarrassed)
20:09:47
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
Error: unknown error

Caused by:
    [55] Failed sending data to the peer
Error: unknown error

Caused by:
    [18] Transferred a partial file
Hmmmm those should be network errors, not unknown errors
20:10:04
@lily:lily.flowersLily FosterSo the curl crate is still busted20:10:14
@lily:lily.flowersLily FosterI'll look more later20:10:18
@marie:marie.cologneMariei thought i might have a clue by commenting stuff out, but turns out it's just that when i run prefetch-npm-deps via cargo run (--release) it works fine, only the one built with nix fails20:35:46
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
i thought i might have a clue by commenting stuff out, but turns out it's just that when i run prefetch-npm-deps via cargo run (--release) it works fine, only the one built with nix fails
That makes even less sense... What curl are you linking against? Are you on nixos
20:38:18
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
i thought i might have a clue by commenting stuff out, but turns out it's just that when i run prefetch-npm-deps via cargo run (--release) it works fine, only the one built with nix fails
* That makes even less sense... What curl are you linking against? Are you on nixos?
20:38:21

Show newer messages


Back to Room ListRoom Version: 6