Open jbboehr opened 6 years ago
Here's the relevant section from journalctl
May 15 00:18:44 consul2 systemd[1]: dev-mapper-n\x2d66990d33557011e8bcd10242c01b154d\x2dconsul2\x2dconsul.device: Job dev-mapper-n\x2d66990d33557011e8bcd10242c01b15>
May 15 00:18:44 consul2 systemd[1]: Timed out waiting for device dev-mapper-n\x2d66990d33557011e8bcd10242c01b154d\x2dconsul2\x2dconsul.device.
May 15 00:18:44 consul2 systemd[1]: Dependency failed for Initialisation of Filesystem /dev/mapper/n-66990d33557011e8bcd10242c01b154d-consul2-consul.
May 15 00:18:44 consul2 systemd[1]: mkfs-dev-mapper-n\x2d66990d33557011e8bcd10242c01b154d\x2dconsul2\x2dconsul.service: Job mkfs-dev-mapper-n\x2d66990d33557011e8bcd>
May 15 00:18:44 consul2 systemd[1]: Dependency failed for /var/lib/consul.
May 15 00:18:44 consul2 systemd[1]: Dependency failed for Local File Systems.
May 15 00:18:44 consul2 systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.
May 15 00:18:44 consul2 systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
May 15 00:18:44 consul2 systemd[1]: local-fs.target: Failed to enqueue OnFailure= job: No such file or directory
May 15 00:18:44 consul2 systemd[1]: Dependency failed for consul.service.
May 15 00:18:44 consul2 systemd[1]: consul.service: Job consul.service/start failed with result 'dependency'.
May 15 00:18:44 consul2 systemd[1]: var-lib-consul.mount: Job var-lib-consul.mount/start failed with result 'dependency'.
May 15 00:18:44 consul2 systemd[1]: dev-mapper-n\x2d66990d33557011e8bcd10242c01b154d\x2dconsul2\x2dconsul.device: Job dev-mapper-n\x2d66990d33557011e8bcd10242c01b15
~I changed up some things, and now I'm getting an ominous:~ (edit: it was caused by a typo)
May 15 04:28:32 consul1 systemd[1]: cryptsetup-data.service: Dependency Before=dev-mapper-data.device ignored (.device units cannot be delayed)
I've added this and it seems to be working now:
{
systemd.services.cryptsetup-data.serviceConfig.RemainAfterExit = "yes";
systemd.services.cryptsetup-data.serviceConfig.KillMode = "none";
systemd.services.cryptsetup-data.postStart = ''
udevadm control --reload-rules
udevadm trigger
'';
}
I'm trying to use GCE with autoLuks but the
local-fs.target
keeps timing out. I'm using a bootstrap image built off of 18.03 commitef74caf
: https://github.com/BitKitchen/nixpkgs-channels/commit/664e4ee15bf543cc2213da2412beda43fdcd6962 with this patch applied: https://github.com/NixOS/nixpkgs/pull/39654The relevant part of my GCE config is:
It fails about 75% percent of the time with, in nixops output:
Is there some kind of timeout on the formatting perhaps?