!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

321 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena109 Servers

Load older messages


SenderMessageTime
17 Jul 2022
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name
        vhostLocal = { localPort, addlLocationConfig ? {} }: {
          forceSSL = true;
          enableACME = true;
          listen =  [ {addr = "localhost"; port = customPorts.nginxHttp; ssl = false; }
          { addr = "localhost"; port = customPorts.nginxHttps; ssl = true; }
        ];
        locations = {
          "/" = {
            proxyPass = "http://localhost:${(toString localPort)}";
            extraConfig = ''
              proxy_set_header Host $host;
            '';
          };
        } // addlLocationConfig;
      };

04:50:16
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name and then the actual line is "mydomain.example.com" = vHostLocal { localPort = 3333; }; 04:50:45
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameso deleting that line causes the segfault04:51:12
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameif I replace the function with that block of code, it builds04:52:56
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namebut then if I delete teh whole thing it segfaults again04:53:02
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namehm, it seems like if I delete teh forceSSL and enableACME lines simultaneously, then some kind of error happens04:55:09
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name and then if I delete the enableACME line, I get teh same error 04:55:51
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namethe segfault04:55:54
@winterqt:nixos.devWinter (she/her)
In reply to @rendakuenthusiast:imperishable.name
so deleting that line causes the segfault
huh, not having my domain... as a key makes it segfault?
04:55:56
@winterqt:nixos.devWinter (she/her)

oh huh what

what Nixpkgs revision and Nix version are you using?

04:56:10
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namealso setting it to false04:56:14
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI'm never sure quite how to figure that out04:56:31
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name in the hive file I have nixpkgs = <nixpkgs>. so that says, use the nixpkgs version on my local system, right? 04:56:49
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namebut I'm not sure how ot figure out what I have running locally04:57:00
@winterqt:nixos.devWinter (she/her)
In reply to @rendakuenthusiast:imperishable.name
in the hive file I have nixpkgs = <nixpkgs>. so that says, use the nixpkgs version on my local system, right?
correct
04:57:07
@winterqt:nixos.devWinter (she/her)
In reply to @rendakuenthusiast:imperishable.name
also setting it to false
wait so enableACME = true -> no segfault, but false -> segfault??
04:57:42
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI used to have a complicated thing there that I think was pinning the version of nixpkgs deployed to the remote host to a specific git commit, but I had to get rid of that04:57:43
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name
In reply to @winterqt:nixos.dev
wait so enableACME = true -> no segfault, but false -> segfault??
yes
04:57:56
@winterqt:nixos.devWinter (she/her)what the hell04:58:00
@winterqt:nixos.devWinter (she/her) can younix-shell -p nix-info --run "nix-info -m" and post the output? 04:59:17
@winterqt:nixos.devWinter (she/her) * can you nix-shell -p nix-info --run "nix-info -m" and post the output? 04:59:40
@winterqt:nixos.devWinter (she/her) * can you nix-shell -p nix-info --run "nix-info -m" and post the output? 04:59:52
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.11-arch1-1, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.10.1`
 - channels(root): `""`
 - channels(myusername): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/myusername/channels/nixpkgs`


05:00:41
@winterqt:nixos.devWinter (she/her)

:( no version info

okay, can you try just directly using the output of the function? like, do "..." = { enableACME = false; locations = ...; } to see if it's the function invocation that's causing it for whatever reason?

05:02:34
@winterqt:nixos.devWinter (she/her) oh also can you run nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion' 05:03:20
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI already did that, it's not just the function invocation, it's having the full block there too05:04:57
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name

that command gets me:

trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
"22.11pre388097.9a17f325397"
05:05:30
@winterqt:nixos.devWinter (she/her)can you switch your nixpkgs channel temporarily to nixos-unstable-small, update it, and try to apply again? (i'm not sure what that process looks like on non-NixOS)05:13:27
@winterqt:nixos.devWinter (she/her)it has a newer Nix version05:13:57
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namehow do I do that?05:25:05

Show newer messages


Back to Room ListRoom Version: 6