# Git: fatal: unable to write loose object file: No space left on device

**URL:** <https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605>\
**Category:** General\
**Created:** [August 24, 2024, 7:20pm UTC](https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605 "2024-08-24T19:20:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fred3.0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/fred3.0/32/1241_2.png) [@Fred3.0](https://community.firebasestudio.dev/u/Fred3.0)\
**Post date:** [August 24, 2024, 7:20pm UTC](https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605/1 "2024-08-24T19:20:36Z")

</div>

Which _space on device_ is full? We’re talking about 5 files here. Likely a bug?

---

<div class="post-metadata">

**Author:** ![kirupa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kirupa/32/4_2.png) [@kirupa](https://community.firebasestudio.dev/u/kirupa)\
**Post date:** [August 24, 2024, 7:24pm UTC](https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605/2 "2024-08-24T19:24:50Z")

</div>

@cpp - can you please file a bug: [https://issuetracker.google.com/issues/new?component=1379083&template=1836320](https://issuetracker.google.com/issues/new?component=1379083&template=1836320)

That shouldn’t be happening unless there is something in your dev.nix file that is downloading a lot more dependencies into your project.

---

<div class="post-metadata">

**Author:** ![Fred3.0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/fred3.0/32/1241_2.png) [@Fred3.0](https://community.firebasestudio.dev/u/Fred3.0)\
**Post date:** [August 24, 2024, 7:59pm UTC](https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605/3 "2024-08-24T19:59:13Z")

</div>

```js
# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{ pkgs, ... }: {
  # Which nixpkgs channel to use.
  channel = "stable-23.11"; # or "unstable"
  # Use https://search.nixos.org/packages to find packages
  packages = [pkgs.python3 pkgs.python3Packages.pip];
  idx = {
    # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
    extensions = ["ms-python.python" "rangav.vscode-thunder-client" "ms-python.debugpy" "ritwickdey.LiveServer"];
    # Enable previews and customize configuration
    previews = {
      enable = true;
      previews = {
        web = {
          command = ["python3" "-m" "http.server" "$PORT" "--bind" "0.0.0.0"];
          manager = "web";
        };
      };
    };
    workspace = {
      # Runs when a workspace is first created with this `dev.nix` file
      onCreate = {
        install =
          "python -m venv .venv && curl -sSL https://install.python-poetry.org | python -";
        # Open editors for the following files by default, if they exist:
        default.openFiles = ["src/main.py" "src/crew.py" "src/config/agents.yaml" "src/config/tasks.yaml"];
      };
      # Runs when a workspace is (re)started
      onStart = {
        run-server = "./devserver.sh";
        set-env-vars = ''
          export HUGGINGFACE_ACCESS_TOKEN="hf_buaVAInxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUwd"
          export OPENAI_API_KEY="sk-proj-_yOYxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxtycA"
          export OPENAI_MODEL_NAME="gpt-4o"
          export ANTHROPIC_MODEL="claude-3-5-sonnet-20240620"
          export ANTHROPIC_API_KEY="sk-ant-api03-gRR4RsRf-1XxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxmaM0Q-6QAiZQAA"
          export GITHUB_TOKEN="ghp_yrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrcc"
          export ESLINT_CONFIG_PATH="/home/user/open-noodl/src/config/eslint.config.mjs"
          export ELECTRON_BUILDER_CONFIG_PATH="/home/user/open-noodl/src/electron-builder.json"
          export JEST_CONFIG_PATH="/home/user/open-noodl/src/config/jest.config.js"
        '';
      };
    };
  };
}
```

---

<div class="post-metadata">

**Author:** ![Fred3.0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/fred3.0/32/1241_2.png) [@Fred3.0](https://community.firebasestudio.dev/u/Fred3.0)\
**Post date:** [August 24, 2024, 9:31pm UTC](https://community.firebasestudio.dev/t/git-fatal-unable-to-write-loose-object-file-no-space-left-on-device/1605/4 "2024-08-24T21:31:58Z")

</div>

Bug reported 👍  
Thanks
