Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. #7389

Closed
jong-circuit opened this issue Jun 26, 2024 · 4 comments

Comments

@jong-circuit
Copy link

jong-circuit commented Jun 26, 2024

[REQUIRED] Environment info

  1. firebase-tools: 13.11.4
  2. Platform: Windows
  3. I am using the webframeworks integration to use Next.js.

[REQUIRED] Test case

Run firebase deploy command.

[REQUIRED] Steps to reproduce

N/A

[REQUIRED] Expected behavior

After a successful build the functions for next.js, the image created for the build should be automatically removed, but it always fails.
This causes the following error message to be displayed continuously.

Additionally, even after attempting redeployment, the build image deletion still fails.
However, the overall project deployment is completed successfully.

[REQUIRED] Actual behavior

unhandled-error-message

gcf-repositories

Related issues

  1. "Unhandled error cleaning up build images." - deploying from same GCP project #4757
@jong-circuit
Copy link
Author

My package.json that in functions folder is:

{
    "name": "functions",
    "description": "Cloud Functions for Firebase",
    "scripts": {
        "serve": "firebase emulators:start --only functions",
        "shell": "firebase functions:shell",
        "start": "npm run shell",
        "deploy": "firebase deploy --only functions",
        "logs": "firebase functions:log"
    },
    "engines": {
        "node": "20"
    },
    "main": "index.js",
    "dependencies": {
        "firebase-admin": "^12.2.0",
        "firebase-functions": "^5.0.1"
    },
    "devDependencies": {
        "firebase-functions-test": "^3.3.0"
    },
    "private": true
}

@jong-circuit
Copy link
Author

My package.json that in hosting folder is:

{
    "name": "hosting",
    "version": "0.1.0",
    "private": true,
    "scripts": {
        "dev": "next dev",
        "build": "next build",
        "start": "next start",
        "lint": "next lint"
    },
    "dependencies": {
        "@heroicons/react": "^2.1.4",
        "@nextui-org/react": "^2.4.2",
        "framer-motion": "^11.2.12",
        "next": "^14.2.4",
        "next-intl": "^3.15.2",
        "next-themes": "^0.3.0",
        "react": "^18.3.1",
        "react-device-detect": "^2.2.3",
        "react-dom": "^18.3.1",
        "zustand": "^4.5.4"
    },
    "devDependencies": {
        "@types/node": "^20.14.9",
        "@types/react": "^18.3.3",
        "@types/react-dom": "^18.3.0",
        "autoprefixer": "^10.4.19",
        "eslint": "^8.57.0",
        "eslint-config-next": "^14.2.4",
        "eslint-plugin-local-rules": "^3.0.2",
        "eslint-plugin-perfectionist": "^2.11.0",
        "postcss": "^8.4.38",
        "prettier": "^3.3.2",
        "prettier-plugin-tailwindcss": "^0.6.5",
        "tailwindcss": "^3.4.4",
        "typescript": "^5.5.2"
    }
}

@jong-circuit
Copy link
Author

My firebase.json is:

{
    "firestore": {
        "rules": "firestore.rules",
        "indexes": "firestore.indexes.json"
    },

    "functions": [
        {
            "source": "functions",
            "codebase": "default",

            "ignore": [
                "node_modules",
                ".git",
                "firebase-debug.log",
                "firebase-debug.*.log"
            ]
        }
    ],

    "hosting": {
        "source": "hosting",
        "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],

        "frameworksBackend": {
            "region": "asia-northeast3"
        }
    },

    "storage": {
        "rules": "storage.rules"
    },

    "emulators": {
        "functions": {
            "port": 5001
        },

        "firestore": {
            "port": 8080
        },

        "hosting": {
            "port": 5000
        },

        "storage": {
            "port": 9199
        },

        "ui": {
            "enabled": true
        },

        "singleProjectMode": true
    }
}

@aalej
Copy link
Contributor

aalej commented Jun 26, 2024

Hey @busanTeddyBear, thanks for reaching out. I think this could be marked as a duplicate of #4757. In order to keep a single line of communication, please refer to the other ticket for any updates. Feel free to leave a comment on the issue to share your observations.

Also, I noticed that you’re using firebase-tools v13.11.4 on a Windows machine. Just wanted to let you know that there are currently issues(#7378 and #7363) related to deployments to Firebase Hosting which affects v13.11.4 and v13.11.3. We have a fix that should be available in our next release. In the meantime, you might want to use v13.11.2 to avoid issues.

@aalej aalej closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants