| 17 Jul 2022 |
Winter (she/her) | like if you revert the renaming of the vhost it works completely fine? | 04:38:37 |
Winter (she/her) | and if you do it again it segfaults consistently? | 04:38:47 |
@rendakuenthusiast:imperishable.name | let me try reverting the rename | 04:40:12 |
@rendakuenthusiast:imperishable.name | ok that seems to work fine | 04:40:27 |
@rendakuenthusiast:imperishable.name | so it's just getting rid of the block that fails | 04:40:35 |
@rendakuenthusiast:imperishable.name | this is a block in services.nginx.virtualHosts | 04:41:22 |
Winter (she/her) | god that's so weird, nix should never segfault, and this isn't even some complex or weird change or anything, it's just a key name... | 04:42:13 |
@rendakuenthusiast:imperishable.name | when colmena applies config to a host, it's not touching /etc/nixos on that host right? | 04:42:52 |
@rendakuenthusiast:imperishable.name | I seem to have some kind of config there, but that might date back from before I started using colmena for this host | 04:43:04 |
Winter (she/her) | this isn't even getting to the apple stage | 04:43:51 |
Winter (she/her) | it's only evaluating the configuration | 04:44:00 |
Winter (she/her) | * (null) | 04:44:09 |
@rendakuenthusiast:imperishable.name | hm | 04:48:13 |
@rendakuenthusiast:imperishable.name | if I move the block around in the file, that seems to still work | 04:48:25 |
@rendakuenthusiast:imperishable.name | I'm using a kinda-complicated helper function to actually create the block | 04:48:37 |
@rendakuenthusiast:imperishable.name | nginx configs have a lot of options | 04:48:45 |
@rendakuenthusiast:imperishable.name | but I'm still just deleting the whole thing | 04:48:50 |
Winter (she/her) | hmm
can you share that function? | 04:49:02 |
Winter (she/her) | and does the key name have any implication into its result? | 04:49:28 |
Winter (she/her) | * (null) | 04:49:35 |
Winter (she/her) | * (null) | 04:49:41 |
@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 | and then the actual line is "mydomain.example.com" = vHostLocal { localPort = 3333; }; | 04:50:45 |
@rendakuenthusiast:imperishable.name | so deleting that line causes the segfault | 04:51:12 |
@rendakuenthusiast:imperishable.name | if I replace the function with that block of code, it builds | 04:52:56 |
@rendakuenthusiast:imperishable.name | but then if I delete teh whole thing it segfaults again | 04:53:02 |
@rendakuenthusiast:imperishable.name | hm, it seems like if I delete teh forceSSL and enableACME lines simultaneously, then some kind of error happens | 04:55:09 |
@rendakuenthusiast:imperishable.name | and then if I delete the enableACME line, I get teh same error | 04:55:51 |
@rendakuenthusiast:imperishable.name | the segfault | 04:55:54 |
Winter (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 |