Antigravity IDE fails to initialize - git credentials file missing #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When using the
antigravityIDE mode, the container fails to initialize the repository with the following error:This causes the container to enter a restart loop, preventing the IDE from starting.
Root Cause
The init-repo script tries to write git credentials to
/config/userdata/.git-credentialsbut:/config/userdatadirectory doesn't exist or has incorrect permissionsapp:appbut the script tries to write as root initiallyCurrent Workaround
Manually create the directory and file with correct permissions:
Proposed Solution
Option 1: Init Container
Add an init container to the Helm chart that sets up the directory structure:
Option 2: Fix init-repo Script
Modify the init-repo script to:
Environment Details
Related Context
cpfarhood/kubernetesrepositoryide: antigravityis set in the Helm valuesAddressed. The
setup-userdatainit container indeployment.yamlnow runsmkdir -p /config/userdatabefore the main container starts, ensuring the directory exists for git credential writes. Theinit-repo.shscript also handles both token-present and token-absent cases.