Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmware: ERROR: cptofs failed. diskSize might be too small for closure #279

Open
Pablo1107 opened this issue Oct 26, 2023 · 4 comments
Open

Comments

@Pablo1107
Copy link

nix run github:nix-community/nixos-generators -- -f vmware -c ~/dotfiles/hosts/vm/nixos.nix

Outputs:

ERROR: cptofs failed. diskSize might be too small for closure.
error: builder for '/nix/store/a4csb9lalv9ii4yzmzi9ihngngpd6bzj-nixos-vmware-23.11pre-git-x86_64-linux.drv' failed with exit code 1;
       last 10 log lines:
       > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers, aborting
       > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs, aborting
       > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos, aborting
       > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git, aborting
       > error processing entry /build/root/nix/store, aborting
       > error processing entry /build/root/nix, aborting
       > [   39.059236] EXT4-fs (vda2): Remounting filesystem read-only
       > [   39.059279] EXT4-fs (vda2): ext4_writepages: jbd2_start: 9223372036854775807 pages, ino 29336; err -30
       > [   39.082975] reboot: Restarting system
       > ERROR: cptofs failed. diskSize might be too small for closure.
       For full logs, run 'nix-store -l /nix/store/a4csb9lalv9ii4yzmzi9ihngngpd6bzj-nixos-vmware-23.11pre-git-x86_64-linux.drv'.
       note: build failure may have been caused by lack of free disk space

Adding

            config = {
              vmware.baseImageSize = 32 * 1024;
            };

Does not make any difference. I have >100GB free disk space on this drive.

Full Log
Automatic disk size...
Closure space use: 5969813504 bytes
fudge: 310430302 bytes
Filesystem size needed: 6280243806 bytes
Additional space: 805323776 bytes
Disk image size: 7086276608 bytes
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done
Creating filesystem with 1667328 4k blocks and 416976 inodes
Filesystem UUID: 3d763003-84e7-4027-8cbd-8b83ccfe11a5
Superblock backups stored on blocks:
      32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

copying staging root to image...
[    0.000000] Linux version 5.15.0 (nixbld@localhost) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40) #1 Sun Sep 17 08:10:20 UTC 2023
[    0.000000] memblock address range: 0x7fffe9c00000 - 0x7ffff0000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00007fffe9c00000-0x00007fffefffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00007fffe9c00000-0x00007fffefffffff]
[    0.000000] Initmem setup node 0 [mem 0x00007fffe9c00000-0x00007fffefffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 25250
[    0.000000] Kernel command line: mem=100M virtio_mmio.device=316@0x1000000:1
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 100768K/102400K available (5436K kernel code, 1100K rwdata, 1302K rodata, 18014398509476637K init, 267K bss, 1632K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 4096
[    0.000000] lkl: irqs initialized
[    0.000000] clocksource: lkl: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.000000] lkl: time and timers initialized (irq2)
[    0.000005] pid_max: default: 4096 minimum: 301
[    0.000029] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.000033] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.007116] random: get_random_bytes called from _etext+0xdb2f/0x16877 with crng_init=0
[    0.007592] printk: console [lkl_console0] enabled
[    0.007636] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007780] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.007889] lkl_pci: probe of lkl_pci failed with error -1
[    0.173627] raid6: int64x8  gen() 14731 MB/s
[    0.347604] raid6: int64x8  xor()  3036 MB/s
[    0.520656] raid6: int64x4  gen()  9317 MB/s
[    0.694147] raid6: int64x4  xor()  2828 MB/s
[    0.867736] raid6: int64x2  gen()  5283 MB/s
[    1.041246] raid6: int64x2  xor()  2981 MB/s
[    1.215048] raid6: int64x1  gen()  4569 MB/s
[    1.389262] raid6: int64x1  xor()  2349 MB/s
[    1.389310] raid6: using algorithm int64x8 gen() 14731 MB/s
[    1.389318] raid6: .... xor() 3036 MB/s, rmw enabled
[    1.389324] raid6: using intx1 recovery algorithm
[    1.389472] vgaarb: loaded
[    1.389884] clocksource: Switched to clocksource lkl
[    1.390685] NET: Registered PF_INET protocol family
[    1.390801] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.390965] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.390978] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.390987] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.390997] TCP: Hash tables configured (established 1024 bind 1024)
[    1.391075] UDP hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.391086] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.391150] PCI: CLS 0 bytes, default 32
[    1.391198] virtio-mmio: Registering device virtio-mmio.0 at 0x1000000-0x100013b, IRQ 1.
[    1.392050] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    1.393171] SGI XFS with ACLs, security attributes, no debug enabled
[    1.394067] xor: automatically using best checksumming function   8regs
[    1.394092] io scheduler mq-deadline registered
[    1.394097] io scheduler kyber registered
[    1.399538] virtio_blk virtio0: [vda] 13840384 512-byte logical blocks (7.09 GB/6.60 GiB)
[    1.401137]  vda: vda1 vda2
[    1.402344] NET: Registered PF_INET6 protocol family
[    1.403216] Segment Routing with IPv6
[    1.403232] In-situ OAM (IOAM) with IPv6
[    1.403259] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.403621] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[    1.403953] Warning: unable to open an initial console.
[    1.403967] This architecture does not have kernel memory protection.
[    1.403977] Run /init as init process
[    1.405786] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: . Quota mode: disabled.
[    1.631882] random: fast init done
[    3.365953] random: crng init done
[   31.361789] blk_update_request: I/O error, dev vda, sector 7074456 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361814] blk_update_request: I/O error, dev vda, sector 7074472 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361820] blk_update_request: I/O error, dev vda, sector 7074488 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361825] blk_update_request: I/O error, dev vda, sector 7074504 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361829] blk_update_request: I/O error, dev vda, sector 7074520 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361833] blk_update_request: I/O error, dev vda, sector 7074536 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361841] blk_update_request: I/O error, dev vda, sector 7074552 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361862] blk_update_request: I/O error, dev vda, sector 7074568 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361865] blk_update_request: I/O error, dev vda, sector 7074584 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.361868] blk_update_request: I/O error, dev vda, sector 7074600 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   31.362342] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176306 starting block 884538)
[   31.362389] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176306 starting block 884549)
[   31.362582] Buffer I/O error on device vda2, logical block 822074
[   31.362591] Buffer I/O error on device vda2, logical block 822075
[   31.362594] Buffer I/O error on device vda2, logical block 822076
[   31.362597] Buffer I/O error on device vda2, logical block 822077
[   31.362600] Buffer I/O error on device vda2, logical block 822078
[   31.362602] Buffer I/O error on device vda2, logical block 822079
[   31.362605] Buffer I/O error on device vda2, logical block 822080
[   31.362607] Buffer I/O error on device vda2, logical block 822081
[   31.362610] Buffer I/O error on device vda2, logical block 822082
[   31.362613] Buffer I/O error on device vda2, logical block 822083
[   31.362900] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176307 starting block 879414)
[   31.362909] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176308 starting block 879676)
[   31.363536] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176309 starting block 880065)
[   31.363783] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176309 starting block 880157)
[   31.364054] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176310 starting block 880158)
[   31.364082] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176312 starting block 880160)
[   31.364102] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176311 starting block 879415)
[   31.364107] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 176313 starting block 879416)
[   36.103870] Buffer I/O error on dev vda2, logical block 831, lost async page write
[   36.103899] Buffer I/O error on dev vda2, logical block 2040, lost async page write
[   36.103921] Buffer I/O error on dev vda2, logical block 2041, lost async page write
[   36.103940] Buffer I/O error on dev vda2, logical block 2042, lost async page write
[   36.104023] Buffer I/O error on dev vda2, logical block 2043, lost async page write
[   36.104056] Buffer I/O error on dev vda2, logical block 2044, lost async page write
[   36.104070] Buffer I/O error on dev vda2, logical block 2045, lost async page write
[   36.104084] Buffer I/O error on dev vda2, logical block 2046, lost async page write
[   36.104097] Buffer I/O error on dev vda2, logical block 2047, lost async page write
[   36.104110] Buffer I/O error on dev vda2, logical block 2048, lost async page write
[   36.111634] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   36.121305] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   36.121539] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   36.158981] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   36.159605] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:0: Error while async write back metadata
[   36.393503] print_req_error: 138829 callbacks suppressed
[   36.393512] blk_update_request: I/O error, dev vda, sector 8350424 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393552] blk_update_request: I/O error, dev vda, sector 8350440 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393564] blk_update_request: I/O error, dev vda, sector 8350456 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393577] blk_update_request: I/O error, dev vda, sector 8350472 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393588] blk_update_request: I/O error, dev vda, sector 8350488 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393599] blk_update_request: I/O error, dev vda, sector 8350504 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393610] blk_update_request: I/O error, dev vda, sector 8350520 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393621] blk_update_request: I/O error, dev vda, sector 8350536 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393631] blk_update_request: I/O error, dev vda, sector 8350552 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393642] blk_update_request: I/O error, dev vda, sector 8350568 op 0x1:(WRITE) flags 0x4000 phys_seg 1 prio class 0
[   36.393898] EXT4-fs warning: 12948 callbacks suppressed
[   36.393905] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191362 starting block 1043840)
[   36.395362] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191362 starting block 1044096)
[   36.395418] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191362 starting block 1044103)
[   36.395526] buffer_io_error: 174911 callbacks suppressed
[   36.395533] Buffer I/O error on device vda2, logical block 981339
[   36.395555] Buffer I/O error on device vda2, logical block 981340
[   36.395561] Buffer I/O error on device vda2, logical block 981341
[   36.395568] Buffer I/O error on device vda2, logical block 981342
[   36.395575] Buffer I/O error on device vda2, logical block 981343
[   36.395581] Buffer I/O error on device vda2, logical block 981344
[   36.395588] Buffer I/O error on device vda2, logical block 981345
[   36.395608] Buffer I/O error on device vda2, logical block 981346
[   36.395615] Buffer I/O error on device vda2, logical block 981347
[   36.395622] Buffer I/O error on device vda2, logical block 981348
[   36.396025] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191363 starting block 1043272)
[   36.396046] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191365 starting block 1043666)
[   36.396093] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191366 starting block 1043671)
[   36.396131] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191364 starting block 1044108)
[   36.396172] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191367 starting block 1043676)
[   36.396480] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191368 starting block 1043680)
[   36.396495] EXT4-fs warning (device vda2): ext4_end_bio:342: I/O error 10 writing to inode 191369 starting block 1044113)
[   38.346875] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:0: Error while async write back metadata
[   38.352737] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   38.352956] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:0: Error while async write back metadata
[   38.369314] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm host1: Error while async write back metadata
[   38.460584] EXT4-fs error (device vda2): ext4_check_bdev_write_error:215: comm kworker/u2:3: Error while async write back metadata
[   39.051984] Aborting journal on device vda2-8.
unable to create directory /mnt/0000fe02///nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers/computing/slurm: Success
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers/computing/slurm, aborting
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers/computing, aborting
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers, aborting
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs, aborting
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos, aborting
error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git, aborting
error processing entry /build/root/nix/store, aborting
error processing entry /build/root/nix, aborting
[   39.059236] EXT4-fs (vda2): Remounting filesystem read-only
[   39.059279] EXT4-fs (vda2): ext4_writepages: jbd2_start: 9223372036854775807 pages, ino 29336; err -30
[   39.082975] reboot: Restarting system
ERROR: cptofs failed. diskSize might be too small for closure.
error: builder for '/nix/store/a4csb9lalv9ii4yzmzi9ihngngpd6bzj-nixos-vmware-23.11pre-git-x86_64-linux.drv' failed with exit code 1;
     last 10 log lines:
     > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs/servers, aborting
     > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos/pkgs, aborting
     > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git/nixos, aborting
     > error processing entry /build/root/nix/store/q7fz2i5z235wjy8ajsf1wh25mmbj5r97-nixos-23.11pre-git, aborting
     > error processing entry /build/root/nix/store, aborting
     > error processing entry /build/root/nix, aborting
     > [   39.059236] EXT4-fs (vda2): Remounting filesystem read-only
     > [   39.059279] EXT4-fs (vda2): ext4_writepages: jbd2_start: 9223372036854775807 pages, ino 29336; err -30
     > [   39.082975] reboot: Restarting system
     > ERROR: cptofs failed. diskSize might be too small for closure.
     For full logs, run 'nix-store -l /nix/store/a4csb9lalv9ii4yzmzi9ihngngpd6bzj-nixos-vmware-23.11pre-git-x86_64-linux.drv'.
     note: build failure may have been caused by lack of free disk space
@Pablo1107
Copy link
Author

The nixos.nix file:

{ config, pkgs, lib, ... }:

{

  networking = {
    hostName = "vm";
    wireless = {
      enable = true;
      networks."xxxx".psk = "xxxx";
      interfaces = [ "wlan0" ];
    };
  };

  environment.systemPackages = with pkgs; [ firefox ];

  services.xserver = {
    enable = true;
    desktopManager = {
      xterm.enable = false;
      xfce.enable = true;
    };
    displayManager.defaultSession = "xfce";
  };

  users = {
    mutableUsers = false;
    users.xxxx = {
      isNormalUser = true;
      extraGroups = [ "wheel" ];
      hashedPassword = xxxx
    };
  };

  nix.settings.trusted-users = [ "root" "xxxx" ];

  # hardware.enableRedistributableFirmware = true;
  system.stateVersion = "23.11";
}

@Pablo1107
Copy link
Author

Upstream issue:
NixOS/nixpkgs#263676 (comment)

@a-h
Copy link
Contributor

a-h commented Feb 15, 2024

This was probably fixed by #292

@Pablo1107
Copy link
Author

This was probably fixed by #292

Thanks for the ping. I'll try to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants