title: Firebase Hosting Deploy Error: Task 5fc... failed: retries exhausted after 6 attempts
body: <p>I am trying to setup a 2 brand new Firebase projects with Firestore, Functions, Storage, and Hosting for both Production and Development environments. I started with deleting the references to the old firebase project: both <code>firebase.json</code> &amp; <code>.firebaserc</code>.  I then ran <code>$ firebase init</code> to setup Hosting, Functions, Storage, and Firestore using the <code>test</code> Firebase project. I then setup Firebase aliases with <code>$ firebase use --add</code>  to switch between the two projects within one React.js project. I npm built and am attempting to deploy with: <code>$ firebase deploy --project:test</code>, but the hosting keeps trying the same last file and fails with: <code>Error: Task 5fcd... failed: retries exhausted after 6 attempts.</code>. </p>
  
  <p>I've seen some Stackoverflow answers that relate to the servers being down temporarily, but I do not see any server problems on their side (<a href="https://status.firebase.google.com/" rel="noreferrer">https://status.firebase.google.com/</a>) and this has persisted before. On another project I have worked on, I was trying to deploy to 2 hosting targets on the same Firebase project, but one was failing and the other was working fine, and I was getting this same error (I never found a solution to that other than not using multiple targets.) </p>
  
  <p>What else can I test to get this working? Is it something inside my React.js code base? (I recently deployed to my past project) Maybe it has to do with my Firebase setup process? Or there is still a connection to the old Firebase project? I don't know what to look at next to fix this. Any direction would be great, thanks!</p>
  
  <p>Ps: Something weird that might not be connected is that if I run just <code>$ firebase deploy</code>, it doesn't deploy the default test env defined in firebaserc, but the live test env?</p>
  
  <p><strong>.firebaserc:</strong></p>
  
  <pre><code>{
    "projects": {
      "default": "test-app-tech",
      "test": "test-app-tech",
      "live": "live-app-tech"
    }
  }
  </code></pre>
  
  <p><strong>firebase.json:</strong></p>
  
  <pre><code>{
    "firestore": {
      "rules": "firestore.rules",
      "indexes": "firestore.indexes.json"
    },
    "functions": {
      "predeploy": "npm --prefix \"$RESOURCE_DIR\" run build"
    },
    "hosting": {
      "public": "build",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ],
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    },
    "storage": {
      "rules": "storage.rules"
    }
  }
  
  </code></pre>
  
  <p><strong>Full console log:</strong>
  (not sure where a longer log file is than just the console)</p>
  
  <pre><code>   === Deploying to 'test-app-tech'...
  
  i  deploying storage, firestore, functions, hosting
  Running command: npm --prefix "$RESOURCE_DIR" run build
  
  &gt; functions@ build C:\Users\me\Documents\GitHub\react.app.tech\functions
  &gt; tsc
  
  +  functions: Finished running predeploy script.
  i  firebase.storage: checking storage.rules for compilation errors...
  +  firebase.storage: rules file storage.rules compiled successfully
  i  firestore: reading indexes from firestore.indexes.json...
  i  cloud.firestore: checking firestore.rules for compilation errors...
  +  cloud.firestore: rules file firestore.rules compiled successfully
  i  functions: ensuring necessary APIs are enabled...
  +  functions: all necessary APIs are enabled
  i  storage: latest version of storage.rules already up to date, skipping upload...
  i  firestore: uploading rules firestore.rules...
  +  firestore: deployed indexes in firestore.indexes.json successfully
  i  functions: preparing functions directory for uploading...
  i  functions: packaged functions (80.39 KB) for uploading
  +  functions: functions folder uploaded successfully
  i  hosting[test-app-tech]: beginning deploy...
  i  hosting[test-app-tech]: found 32 files in build
  ⠸  hosting: uploading new files [0/1] (0%)
  Error: Task 5fcd5c559ded0c02b3ed7840ca3ee77e95b798730af98d9f18bc627ac898071e failed: retries exhausted after 6 attempts
  </code></pre>