# Ansible-builder throws "value too large for defined data type" when rebuilding an EE image

**URL:** <https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295>\
**Category:** Get Help\
**Tags:** windows, ansible-builder, galaxy-ng, ee\
**Created:** [August 14, 2025, 8:15am UTC](https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295 "2025-08-14T08:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasD](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/andreasd/32/8907_2.png) [@AndreasD](https://forum.ansible.com/u/AndreasD)\
**Post date:** [August 14, 2025, 8:15am UTC](https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295/1 "2025-08-14T08:15:17Z")

</div>

Hi

I’m trying to rebuild an EE, and this is the same build file I built once before, but now it throws an error that I really can’t make head or tails out of. Why did it stop working? What does it even mean?!?

ansible-builder 3.1.0  
podman 4.9.3

This is the error I get:

> **…showing last 20 lines of output…**  
> **[1/4] STEP 5/12: ARG PYCMD**  
> **→ Using cache 51a9aa5f52687438d013824d372599ce9c0abd9bacb4683a813d80a0ff22956b**  
> **→ 51a9aa5f5268**  
> **[1/4] STEP 6/12: ARG PKGMGR\_PRESERVE\_CACHE**  
> **→ Using cache d8696784da27017f5d5cd0a5524f44d6467562bd8acba131cc89c63a82d26a94**  
> **→ d8696784da27**  
> **[1/4] STEP 7/12: ARG ANSIBLE\_GALAXY\_CLI\_COLLECTION\_OPTS**  
> **→ Using cache b702f681539d0e98bca9267275f52985e6caa2a918c8ab17b352b2bf16142457**  
> **→ b702f681539d**  
> **[1/4] STEP 8/12: ARG ANSIBLE\_GALAXY\_CLI\_ROLE\_OPTS**  
> **→ Using cache 782acca889f914a1e3a1cda498fc677b90522b2beaf169ed7dae654a835b1f8f**  
> **→ 782acca889f9**  
> **[1/4] STEP 9/12: ARG PKGMGR**  
> **→ Using cache 56dddd789080c73387b95ae7574d6816599e0c483c62f1178f9a7cb099759741**  
> **→ 56dddd789080**  
> **[1/4] STEP 10/12: COPY \_build/scripts/ /output/scripts/**  
> **→ Using cache 8649c43233f0fe9e30393474730689634626c05fcf412982879e15ee98096d9a**  
> **→ 8649c43233f0**  
> **[1/4] STEP 11/12: COPY \_build/scripts/entrypoint /opt/builder/bin/entrypoint**  
> **Error: building at STEP “COPY \_build/scripts/entrypoint /opt/builder/bin/entrypoint”: ensuring target directory exists: copier: mkdir: error checking directory “/opt/builder”: mkdir /opt/bu**  
> ilder: value too large for defined data type
> 
> **An error occurred (rc=125), see output line(s) above for details.**

This is my build file:

> -–  
> version: 3  
> dependencies:  
> python:  
> - pywinrm  
> - pykerberos\>=1.2.4  
> system:  
> - iputils [platform:rpm]  
> - gcc  
> - systemd-devel  
> - python3.11-devel  
> galaxy:  
> collections:  
> - name: community.windows  
> - name: ansible.utils  
> version: 2.10.1  
> images:  
> base\_image:  
> name: [registry.redhat.io/ansible-automation-platform-25/ee-supported-rhel8:latest](http://registry.redhat.io/ansible-automation-platform-25/ee-supported-rhel8:latest)
> 
> additional\_build\_files:  
> - src: ansible.cfg  
> dest: configs
> 
> options:  
> package\_manager\_path: /usr/bin/microdnf
> 
> additional\_build\_steps:  
> prepend\_galaxy:  
> - ADD \_build/configs/ansible.cfg ~/.ansible.cfg

---

<div class="post-metadata">

**Author:** ![AndreasD](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/andreasd/32/8907_2.png) [@AndreasD](https://forum.ansible.com/u/AndreasD)\
**Post date:** [August 14, 2025, 2:06pm UTC](https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295/2 "2025-08-14T14:06:59Z")

</div>

I couldn’t figure it out so I just removed and reinstalled all the tools, and then it works. Yeah, version issues probably. Hate it.

Well it works in the end…

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [August 20, 2025, 6:25pm UTC](https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295/3 "2025-08-20T18:25:22Z")

</div>

The error `Value too large for defined data type` apparently happened while building the container image when executing `mkdir` in the container.

Searching for that error message leads to [GNU Core Utilities Frequently Asked Questions](https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type) , and there are several other results that relate to containers. It doesn’t seem clear where this comes from, but it seems to be definitely unrelated to ansible-builder.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [September 19, 2025, 6:26pm UTC](https://forum.ansible.com/t/ansible-builder-throws-value-too-large-for-defined-data-type-when-rebuilding-an-ee-image/44295/4 "2025-09-19T18:26:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
