!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

You have reached the beginning of time (for this room).


SenderMessageTime
18 Sep 2022
@cw:kernelpanic.cafeChinchilla Optional left the room.19:43:39
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @ronnypfannschmidt:matrix.org
Are there any plans to support deployment of nixosSystem declarations in a flake?
Not officially, but there are wrappers that do that. I've posted a longer explanation here. Luckily, with the latest changes (more on this in a bit), you can either do it the other way (generate nixosConfigurations from Colmena configurations with colmena.lib.makeHive) or replace the evaluation logic in the colmenaHive output.
23:50:00
@zhaofeng:zhaofeng.liZhaofeng Li

A couple updates:

  • More work was done on separating the evaluation logic from the deployment logic, with the new colmenaHive output being the integration point that ties the two halves together. Colmena can now deploy from the colmenaHive output which should be an already-evaluated hive generated by colmena.lib.makeHive (or your own logic!). Example here. cc David Arnold (blaggacao) Yureka (she/her)
  • Flake-enabled deployments now use nix copy and the new SSH store protocol (ssh-ng://) for copying closures to remote hosts.
23:50:17
20 Sep 2022
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name

I'm getting the following error trying to use colmena to deploy to a remote host:

          | Failed: Child process exited with error code: 3
[ERROR] Failed to deploy to <remote host> - Last 9 lines of logs:
[ERROR]  created)
[ERROR]    state) Running
[ERROR]   stderr) activating the configuration...
[ERROR]   stdout) setting up /etc...
[ERROR]   stderr) reloading user units for root...
[ERROR]   stderr) setting up tmpfiles
[ERROR]   stderr) fchownat() of /blockchains/bitcoin failed: Invalid argument
[ERROR]  failure) Child process exited with error code: 3
[ERROR] Failed to complete requested operation - Last 1 lines of logs:
[ERROR]  failure) Child process exited with error code: 3
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 3


is there anything I do with colmena to get more debug output about exactly what is causing the failing fchownat line?

08:08:09
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @rendakuenthusiast:imperishable.name

I'm getting the following error trying to use colmena to deploy to a remote host:

          | Failed: Child process exited with error code: 3
[ERROR] Failed to deploy to <remote host> - Last 9 lines of logs:
[ERROR]  created)
[ERROR]    state) Running
[ERROR]   stderr) activating the configuration...
[ERROR]   stdout) setting up /etc...
[ERROR]   stderr) reloading user units for root...
[ERROR]   stderr) setting up tmpfiles
[ERROR]   stderr) fchownat() of /blockchains/bitcoin failed: Invalid argument
[ERROR]  failure) Child process exited with error code: 3
[ERROR] Failed to complete requested operation - Last 1 lines of logs:
[ERROR]  failure) Child process exited with error code: 3
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 3


is there anything I do with colmena to get more debug output about exactly what is causing the failing fchownat line?

Looks like some systemd-tmpfiles config that you have. You can manually rerun the activation by executing /nix/var/nix/profiles/system/bin/switch-to-configuration switch on the remote host.
09:35:41
@m_algery:leohoo.xyz@m_algery:leohoo.xyz joined the room.15:13:53

Show newer messages


Back to Room ListRoom Version: 6