Attempting to build release 2024090400 for my Pixel 6a. I've done this a number of times with past releases, however I'm now getting an error towards the end of the build process.

The error message:

Out of space? Out of inodes? The tree size of out/target/product/bluejay/tmpdg8bqkp1 is 4096 bytes (0 MB), with reserved space of 0 bytes (0 MB).
The max image size for filesystem files is 11796480000 bytes (11250 MB), out of a total partition size of 11796480000 bytes (11250 MB).
15:15:16 ninja failed with: exit status 1

I did a clean Ubuntu Jammy install, and I have a 1TB 64GB of RAM system with 30% of disk storage used, I don't think I'm either out of space or out of inodes.

Curious if anyone else is getting this error, and any help is appreciated!

  • de0u replied to this.

    Sebastian3000 I don't think I'm either out of space or out of inodes.

    What does df -i show for the relevant file system?

    https://imgur.com/a/zahA8hx
    IUse% is at 5% for the whole system (assuming I'm reading the output right, hopefully the image I tried to link shows up).

    Trying to remember if I erased the disk and installed Ubuntu, or chose to "replace" the previous install in the setup wizard. Both were given as options, and the previous installation was close to being out of nodes from all the different Android versions I was working with, which is why I went with a fresh install.

    Build on my Arch machine just fine, so I'll just roll with that for now. Curious if anyone else has run into the issue

    7 days later

    Yep exact same issue. Can't build 2024091900 for bluejay (Pixel6a) on Debian 12 bookworm. This used to work fine but it's been a busy few months so my previous build was 2024051200.

    sload_f2fs -S -f /home/aosp-build/grapheneos-stable/out/soong/.temp/tmpg748qy2f -s /home/aosp-build/grapheneos-stable/out/target/product/bluejay/obj/PACKAGING/target_files_inter
    mediates/bluejay-target_files/META/file_contexts.bin -t /data -T 1230768000 /home/aosp-build/grapheneos-stable/out/target/product/bluejay/obj/PACKAGING/target_files_intermediate
    s/bluejay-target_files/IMAGES/userdata.img
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/home/aosp-build/grapheneos-stable/out/host/linux-x86/bin/add_img_to_target_files/__main__.py", line 12, in <module>
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "add_img_to_target_files.py", line 1261, in <module>
      File "add_img_to_target_files.py", line 1253, in main
      File "add_img_to_target_files.py", line 1066, in AddImagesToTargetFiles
      File "add_img_to_target_files.py", line 652, in AddUserdata
      File "build_image.py", line 649, in BuildImage   
      File "build_image.py", line 447, in BuildImageMkfs
      File "common.py", line 328, in RunAndCheckOutput 
    common.ExternalError: Failed to run command '['mkf2fsuserimg', '/home/aosp-build/grapheneos-stable/out/target/product/bluejay/obj/PACKAGING/target_files_intermediates/bluejay-ta
    rget_files/IMAGES/userdata.img', '11796480000', '-S', '-f', '/home/aosp-build/grapheneos-stable/out/soong/.temp/tmpg748qy2f', '-s', '/home/aosp-build/grapheneos-stable/out/targe
    t/product/bluejay/obj/PACKAGING/target_files_intermediates/bluejay-target_files/META/file_contexts.bin', '-t', 'data', '-T', '1230768000', '-L', 'data', '--prjquota', '--casefol
    d', '--compression', '-b', '4096']' (exit code 4): 
    in mkf2fsuserimg.sh PATH=out/host/linux-x86/bin:out/host/linux-x86/bin/:system/extras/ext4_utils/:/home/aosp-build/grapheneos-stable/prebuilts/build-tools/path/linux-x86:/home/a
    osp-build/grapheneos-stable/out/.path
    make_f2fs -g android -S 11796480000 -l data -O project_quota,extra_attr -O casefold -C utf8 -O compression,extra_attr -b 4096 -w 4096 /home/aosp-build/grapheneos-stable/out/targ
    et/product/bluejay/obj/PACKAGING/target_files_intermediates/bluejay-target_files/IMAGES/userdata.img
    
        F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11) 
    Info: Disable heap-based policy
    Info: Debug level = 1
    Info: Label = data
    Info: Trim is disabled
    Info: Set conf for android
    Info: Enable utf8 with casefolding
    Info: Enable Project quota
    Info: Enable Compression
    Info: not exist /proc/version!
    Info: Segments per section = 1
    Info: Sections per zone = 1
    Info: sector size = 512
    Info: total sectors = 23040000 (11250 MB)
    Info: zone aligned segment0 blkaddr: 512
    Info: add quota type = 0 => 4
    Info: add quota type = 1 => 5
    Info: add quota type = 2 => 6
    Info: format version with
      "6.1.0-25-amd64"
    [f2fs_init_sit_area: 648]       Filling sit area at offset 0x00600000
    [f2fs_init_nat_area: 682]       Filling nat area at offset 0x00a00000
    [f2fs_add_default_dentry_root:1265]     Writing default dentry root, at offset 0x5a00
    [f2fs_write_root_inode:1310]    Writing root inode (hot node), offset 0x5400
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a01 (1/2)
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a02 (2/2)
    [f2fs_write_qf_inode:1448]      Writing quota inode (hot node), offset 0x5401
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a03 (1/2)
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a04 (2/2)
    [f2fs_write_qf_inode:1448]      Writing quota inode (hot node), offset 0x5402
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a05 (1/2)
    [f2fs_write_default_quota:1397]         Writing quota data, at offset 00005a06 (2/2)
    [f2fs_write_qf_inode:1448]      Writing quota inode (hot node), offset 0x5403
    [f2fs_update_nat_default:1485]  Writing nat root, at offset 0x00000a00
    Info: Overprovision ratio = 1.410%
    Info: Overprovision segments = 79 (GC reserved = 77)
    [f2fs_write_check_point_pack: 864]      Writing main segments, cp at offset 0x00000200
    [f2fs_write_check_point_pack: 952]      Writing Segment summary for HOT/WARM/COLD_DATA, at offset 0x00000201
    [f2fs_write_check_point_pack: 966]      Writing Segment summary for HOT_NODE, at offset 0x00000202
    [f2fs_write_check_point_pack: 978]      Writing Segment summary for WARM_NODE, at offset 0x00000203
    [f2fs_write_check_point_pack: 989]      Writing Segment summary for COLD_NODE, at offset 0x00000204
    [f2fs_write_check_point_pack: 997]      Writing cp page2, at offset 0x00000205
    [f2fs_write_check_point_pack:1017]      Writing NAT bits pages, at offset 0x000003ff
    [f2fs_write_check_point_pack:1038]      Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
    [f2fs_write_check_point_pack:1057]      Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
    [f2fs_write_super_block:1090]   Writing super block, at offset 0x00000000
    Info: format successful
    sload_f2fs -S -f /home/aosp-build/grapheneos-stable/out/soong/.temp/tmpg748qy2f -s /home/aosp-build/grapheneos-stable/out/target/product/bluejay/obj/PACKAGING/target_files_intermediates/bluejay-target_files/META/file_contexts.bin -t /data -T 1230768000 /home/aosp-build/grapheneos-stable/out/target/product/bluejay/obj/PACKAGING/target_files_intermediates/bluejay-target_files/IMAGES/userdata.img
    
    Out of space? Out of inodes? The tree size of /home/aosp-build/grapheneos-stable/out/soong/.temp/tmpg748qy2f is 4096 bytes (0 MB), with reserved space of 0 bytes (0 MB).
    The max image size for filesystem files is 11796480000 bytes (11250 MB), out of a total partition size of 11796480000 bytes (11250 MB).
    16:29:29 ninja failed with: exit status 1
    
    #### failed to build some targets (10:56:25 (hh:mm:ss)) ####

    Build steps:

    export TAG_NAME=2024091900
    export BUILD_NUMBER=2024092500
    export OFFICIAL_BUILD=true
    
    mkdir -p /home/aosp-build/tmp
    export TMPDIR=/home/aosp-build/tmp
    cd grapheneos-stable
    source build/envsetup.sh
    lunch bluejay-cur-user
    rm -rf out
    m vendorbootimage target-files-package

    Build system:

    aosp-build@aospbuild:~/grapheneos-stable$ cat /etc/os-release 
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
    
    aosp-build@aospbuild:~/grapheneos-stable$ uname -a
    Linux aospbuild 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
    
    aosp-build@aospbuild:~/grapheneos-stable$ free -m
                   total        used        free      shared  buff/cache   available
    Mem:           40110         892       25251           0       14485       39218
    Swap:           8191          10        8181
    
    aosp-build@aospbuild:~/grapheneos-stable$ df -h .
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda1       688G  303G  351G  47% /home
    
    aosp-build@aospbuild:~/grapheneos-stable$ df -i .
    Filesystem       Inodes   IUsed    IFree IUse% Mounted on
    /dev/sda1      45875200 2303510 43571690    6% /home
    15 days later
    • Edited

    Same problem here on Ubuntu 22.04. Same setup worked with a few images before. Anyway, I was able to build inside a simple Docker container:

    FROM ubuntu:23.04 AS base
    RUN apt update && apt install -y curl
    RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
    RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
    RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
    RUN apt update && apt install -y repo yarn zip rsync
    RUN echo 'export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin' >> ~/.bashrc
    RUN PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin

    Just save this as Dockerfile in an empty directory and build it: docker build -t sn00x/grapheneos .
    Then open a shell inside the container: docker run -it --mount type=bind,source=/path/to/your/grapheneos/directory,target=/grapheneos sn00x/grapheneos /bin/bash
    Cd to /grapheneos and have fun :)