Change:
Describe the bug I'm not able to start any (freshly created) container in lxd. To Reproduce Steps to reproduce the behavior: Expected behavior Container starts without issues. Additional context Log gathered via Regarding the not enough space, I'm quiet sure that the report is wrong: Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(wucke13): nixpkgs: Maintainer information:
Maybe updating helps? I started working on a PR, though I depend on a which fails to build.
tested with merged on top inside a nogui VM
Wrong commit?
yip

Discussion:
<del> { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libuv, sqlite-replication }: </del> <ins> { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file, libco-canonical , libuv, raft-canonical, sqlite-replication }: </ins> with stdenv.lib; stdenv.mkDerivation rec { pname = "dqlite"; <del> version = "0.2.6"; </del> <ins> version = "1.0.0"; </ins> src = fetchFromGitHub { <del> owner = "CanonicalLtd"; </del> <ins> owner = "canonical"; </ins> repo = pname; rev = "v${version}"; <del> sha256 = "13l7na5858v2ah1vim6lafmzajgkymfi5rd6bk14cm4vcnxc40wb"; </del> <ins> sha256 = "0670c1c84lcf5vl3h6mlff00fz2fnm766bzlk526sjjzysx3zjya"; </ins> }; <del> nativeBuildInputs = [ autoreconfHook pkgconfig ]; </del> <ins> nativeBuildInputs = [ autoreconfHook file pkgconfig ]; buildInputs = [ libco-canonical.dev libuv raft-canonical.dev sqlite-replication ]; </ins> <del> buildInputs = [ libuv sqlite-replication ]; </del> <ins> preConfigure= '' substituteInPlace configure --replace /usr/bin/ " " ''; doCheck = true; outputs = [ "dev" "out" ]; </ins> meta = { <del> description = "Expose a SQLite database over the network and replicate it across a cluster of peers"; </del> <ins> description = '' Expose a SQLite database over the network and replicate it across a cluster of peers ''; </ins> homepage = https://github.com/CanonicalLtd/dqlite/; license = licenses.asl20; maintainers = with maintainers; [ joko ];

<ins> { stdenv, fetchFromGitHub, pkgconfig }: with stdenv.lib; stdenv.mkDerivation rec { pname = "libco-canonical"; version = "19.1"; src = fetchFromGitHub { owner = "canonical"; repo = "libco"; rev = "v${version}"; sha256 = "03a0fq8f8gc4hjzcf0zsjib4mzag47rxrrg9b5r6bx53vj5rhj78"; }; nativeBuildInputs = [ pkgconfig ]; makeFlags = [ "PREFIX=${placeholder "out"}" ]; outputs = [ "dev" "out" ]; meta = { description = "A cooperative multithreading library written in C89"; homepage = "https://github.com/canonical/libco"; license = licenses.isc; maintainers = with maintainers; [ wucke13 ]; }; } </ins>

<ins> { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file, libuv }: stdenv.mkDerivation rec { pname = "raft-canonical"; version = "0.9.6"; src = fetchFromGitHub { owner = "canonical"; repo = "raft"; rev = "v${version}"; sha256 = "083il7b5kw3pc7m5p9xjpb9dlvfarc51sni92mkgm9ckc32x9vpp"; }; nativeBuildInputs = [ autoreconfHook file pkgconfig ]; buildInputs = [ libuv ]; preConfigure = '' substituteInPlace configure --replace /usr/bin/ " " ''; doCheck = false; # Due to #io_uv_recv/success/first                                    [ ERROR ] #Error: test/lib/dir.c:97: No such file or directory #Error: child killed by signal 6 (Aborted) outputs = [ "dev" "out" ]; meta = with stdenv.lib; { description = '' Fully asynchronous C implementation of the Raft consensus protocol ''; longDescription = '' The library has modular design: its core part implements only the core Raft algorithm logic, in a fully platform independent way. On top of that, a pluggable interface defines the I/O implementation for networking (send/receive RPC messages) and disk persistence (store log entries and snapshots). ''; homepage = "https://github.com/canonical/raft"; license = licenses.asl20; maintainers = [ maintainers.wucke13 ]; }; } </ins>

{ stdenv, pkgconfig, lxc, buildGoPackage, fetchurl , makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq <del> , squashfsTools, iproute, iptables, ebtables, libcap, dqlite , sqlite-replication </del> <ins> , squashfsTools, iproute, iptables, ebtables, libcap, libco-canonical, dqlite , raft-canonical, sqlite-replication </ins> , writeShellScriptBin, apparmor-profiles, apparmor-parser , criu , bash

buildGoPackage rec { pname = "lxd"; <del> version = "3.13"; </del> <ins> version = "3.18"; </ins> goPackagePath = "github.com/lxc/lxd"; src = fetchurl { url = "https://github.com/lxc/lxd/releases/download/${pname}-${version}/${pname}-${version}.tar.gz"; <del> sha256 = "1kasnzd8hw9biyx8avbjmpfax1pdbp9g543g8hs6xpksmk93hl82"; </del> <ins> sha256 = "1p8g2gbwgn3kln5rxddpc2fxk8bvf026wjiqip2b0vvpi7h3955h"; </ins> }; preBuild = '' # unpack vendor pushd go/src/github.com/lxc/lxd <del> rm dist/src/github.com/lxc/lxd cp -r dist/src/* ../../.. rm -r dist </del> <ins> rm _dist/src/github.com/lxc/lxd cp -r _dist/src/* ../../.. </ins> popd '';

''; nativeBuildInputs = [ pkgconfig makeWrapper ]; <del> buildInputs = [ lxc acl libcap dqlite sqlite-replication ]; </del> <ins> buildInputs = [ lxc acl libcap libco-canonical.dev dqlite.dev raft-canonical.dev sqlite-replication ]; </ins> meta = with stdenv.lib; { description = "Daemon based on liblxc offering a REST API to manage containers"; homepage = https://linuxcontainers.org/lxd/; license = licenses.asl20; <del> maintainers = with maintainers; [ fpletz ]; </del> <ins> maintainers = with maintainers; [ fpletz wucke13 ]; </ins> platforms = platforms.linux; }; }

libclxclient = callPackage ../development/libraries/libclxclient  { }; <ins> libco-canonical = callPackage ../development/libraries/libco-canonical { }; </ins> libconfuse = callPackage ../development/libraries/libconfuse { }; libcangjie = callPackage ../development/libraries/libcangjie { };

rabbitmq-c = callPackage ../development/libraries/rabbitmq-c {}; <ins> raft-canonical = callPackage ../development/libraries/raft-canonical { }; </ins> range-v3 = callPackage ../development/libraries/range-v3 {}; rabbitmq-java-client = callPackage ../development/libraries/rabbitmq-java-client {};