w9jds / firebase-action

GitHub Action for interacting with Firebase
MIT License
922 stars 198 forks source link

Error: An unexpected error has occurred. #130

Open chenly opened 2 years ago

chenly commented 2 years ago

Storing GCP_SA_KEY in /opt/gcp_key.json Exporting GOOGLE_APPLICATION_CREDENTIALS=/opt/gcp_key.json

=== Deploying to 'envo-proj'...

i deploying functions, hosting i functions: ensuring required API cloudfunctions.googleapis.com is enabled... i functions: ensuring required API cloudbuild.googleapis.com is enabled... ✔ functions: required API cloudfunctions.googleapis.com is enabled ✔ functions: required API cloudbuild.googleapis.com is enabled i functions: preparing codebase default for deployment

Error: An unexpected error has occurred.

chenly commented 2 years ago

jobs: build: runs-on: ubuntu-latest steps:

chenly commented 2 years ago

firebase.json

{ "functions": { "source": ".output/server" }, "hosting": [ { "site": "nitro-deployment", "public": ".output/public", "cleanUrls": true, "rewrites": [ { "source": "**", "function": "server" } ] } ] }

jkklapp commented 2 years ago

@chenly try running the deploy command with --debug

chenly commented 2 years ago

2022-05-31T11:41:09.8506839Z remote: Compressing objects: 92% (39/42)
2022-05-31T11:41:09.8507294Z remote: Compressing objects: 95% (40/42)
2022-05-31T11:41:09.8507748Z remote: Compressing objects: 97% (41/42)
2022-05-31T11:41:09.8508197Z remote: Compressing objects: 100% (42/42)
2022-05-31T11:41:09.8508677Z remote: Compressing objects: 100% (42/42), done.
2022-05-31T11:41:09.8571255Z remote: Total 54 (delta 3), reused 32 (delta 2), pack-reused 0
2022-05-31T11:41:09.8683536Z From https://github.com/e123-dev/e123-web 2022-05-31T11:41:09.8685008Z * [new ref] 91b8dbe8a6f1277b44e1b834f1c9b4e7cdfe9cc0 -> origin/main 2022-05-31T11:41:09.8717137Z ##[endgroup] 2022-05-31T11:41:09.8717912Z ##[group]Determining the checkout info 2022-05-31T11:41:09.8719211Z ##[endgroup] 2022-05-31T11:41:09.8719826Z ##[group]Checking out the ref 2022-05-31T11:41:09.8760693Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main 2022-05-31T11:41:09.8816794Z Switched to a new branch 'main' 2022-05-31T11:41:09.8817798Z branch 'main' set up to track 'origin/main'. 2022-05-31T11:41:09.8824593Z ##[endgroup] 2022-05-31T11:41:09.8870286Z [command]/usr/bin/git log -1 --format='%H' 2022-05-31T11:41:09.8899129Z '91b8dbe8a6f1277b44e1b834f1c9b4e7cdfe9cc0' 2022-05-31T11:41:09.9109882Z ##[group]Run npm install 2022-05-31T11:41:09.9110337Z npm install 2022-05-31T11:41:09.9169287Z shell: /usr/bin/bash -e 0 2022-05-31T11:41:09.9169729Z ##[endgroup] 2022-05-31T11:41:35.9996096Z npm WARN deprecated node-pre-gyp@0.13.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future 2022-05-31T11:41:42.5469715Z 2022-05-31T11:41:42.5470941Z added 972 packages, and audited 973 packages in 32s 2022-05-31T11:41:42.5474953Z 2022-05-31T11:41:42.5477116Z 101 packages are looking for funding 2022-05-31T11:41:42.5478891Z run npm fund for details 2022-05-31T11:41:42.5519444Z 2022-05-31T11:41:42.5520109Z 3 high severity vulnerabilities 2022-05-31T11:41:42.5520695Z 2022-05-31T11:41:42.5521307Z To address all issues (including breaking changes), run: 2022-05-31T11:41:42.5524501Z npm audit fix --force 2022-05-31T11:41:42.5526957Z 2022-05-31T11:41:42.5527867Z Run npm audit for details. 2022-05-31T11:41:42.5865540Z ##[group]Run npm run build 2022-05-31T11:41:42.5865979Z npm run build 2022-05-31T11:41:42.5921020Z shell: /usr/bin/bash -e 0 2022-05-31T11:41:42.5921384Z env: 2022-05-31T11:41:42.5921689Z NITRO_PRESET: firebase 2022-05-31T11:41:42.5922200Z ##[endgroup] 2022-05-31T11:41:42.9207755Z 2022-05-31T11:41:42.9208662Z > build 2022-05-31T11:41:42.9209239Z > nuxt build 2022-05-31T11:41:42.9209687Z 2022-05-31T11:41:42.9948835Z [log] Nuxt CLI v3.0.0-rc.3 2022-05-31T11:41:46.3021713Z [info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css 2022-05-31T11:41:46.3163318Z [info] [nuxt:tailwindcss] Merging Tailwind config from ~/tailwind.config.js 2022-05-31T11:41:51.3134138Z [info] Vite client warmed up in 4105ms 2022-05-31T11:41:53.4673767Z [info] Client built in 6257ms 2022-05-31T11:41:53.5108156Z [info] Building server... 2022-05-31T11:41:55.7649533Z [success] Server built in 2256ms 2022-05-31T11:41:55.7885191Z [success] [nitro] Generated public .output/public 2022-05-31T11:41:55.8049033Z [start] [nitro] Building server... 2022-05-31T11:42:05.0382066Z [warn] Multiple major versions of package jws are being externalized. Picking latest version. 2022-05-31T11:42:05.0383266Z - /home/runner/work/e123-web/e123-web/node_modules/jsonwebtoken/node_modules/jws@3.2.2 2022-05-31T11:42:05.0446767Z - /home/runner/work/e123-web/e123-web/node_modules/jws@4.0.0 2022-05-31T11:42:05.0447641Z [warn] Multiple major versions of package semver are being externalized. Picking latest version. 2022-05-31T11:42:05.0448403Z - /home/runner/work/e123-web/e123-web/node_modules/jsonwebtoken/node_modules/semver@5.7.1 2022-05-31T11:42:05.0449121Z - /home/runner/work/e123-web/e123-web/node_modules/make-dir/node_modules/semver@6.3.0 2022-05-31T11:42:05.0458025Z [warn] Multiple major versions of package jwa are being externalized. Picking latest version. 2022-05-31T11:42:05.0459087Z - /home/runner/work/e123-web/e123-web/node_modules/jsonwebtoken/node_modules/jwa@1.4.1 2022-05-31T11:42:05.0460473Z - /home/runner/work/e123-web/e123-web/node_modules/jwa@2.0.0 2022-05-31T11:42:05.2427994Z [start] [nitro] Writing server bundle... 2022-05-31T11:42:06.0408878Z [success] [nitro] Server built 2022-05-31T11:42:07.9508929Z ├─ .output/server/package.json (2.91 kB) (1.05 kB gzip) 2022-05-31T11:42:07.9654781Z ├─ .output/server/index.mjs (409 B) (248 B gzip) 2022-05-31T11:42:07.9657367Z ├─ .output/server/chunks/test.mjs.map (524 B) (237 B gzip) 2022-05-31T11:42:07.9659484Z ├─ .output/server/chunks/test.mjs (369 B) (255 B gzip) 2022-05-31T11:42:07.9661672Z ├─ .output/server/chunks/nitro/firebase.mjs.map (14.7 kB) (2.76 kB gzip) 2022-05-31T11:42:07.9663842Z ├─ .output/server/chunks/nitro/firebase.mjs (12.5 kB) (4.02 kB gzip) 2022-05-31T11:42:07.9666004Z ├─ .output/server/chunks/hello.mjs.map (193 B) (153 B gzip) 2022-05-31T11:42:07.9678119Z ├─ .output/server/chunks/hello.mjs (163 B) (147 B gzip) 2022-05-31T11:42:07.9681100Z ├─ .output/server/chunks/handlers/renderer.mjs.map (1.91 MB) (90.5 kB gzip) 2022-05-31T11:42:07.9683477Z ├─ .output/server/chunks/handlers/renderer.mjs (428 kB) (98.3 kB gzip) 2022-05-31T11:42:07.9686052Z ├─ .output/server/chunks/app/server.mjs.map (442 kB) (51.8 kB gzip) 2022-05-31T11:42:07.9688183Z ├─ .output/server/chunks/app/server.mjs (458 kB) (85.7 kB gzip) 2022-05-31T11:42:07.9690292Z ├─ .output/server/chunks/app/client.manifest.mjs.map (2.99 kB) (513 B gzip) 2022-05-31T11:42:07.9698594Z └─ .output/server/chunks/app/client.manifest.mjs (3.54 kB) (661 B gzip) 2022-05-31T11:42:07.9701369Z Σ Total size: 19.7 MB (3.08 MB gzip) 2022-05-31T11:42:08.0107241Z [success] [nitro] You can deploy this build using npx firebase deploy 2022-05-31T11:42:08.0600692Z ##[group]Run w9jds/firebase-action@master 2022-05-31T11:42:08.0601143Z with: 2022-05-31T11:42:08.0601562Z args: deploy --project e123-proj 2022-05-31T11:42:08.0601971Z env: 2022-05-31T11:42:08.0620010Z GCP_SA_KEY: *** 2022-05-31T11:42:08.0620335Z ##[endgroup] 2022-05-31T11:42:08.0855732Z ##[command]/usr/bin/docker run --name w9jdsfirebaseactionv212_08eb1a --label 08450d --workdir /github/workspace --rm -e GCP_SA_KEY -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/e123-web/e123-web":"/github/workspace" w9jds/firebase-action:v2.1.2 deploy --project e123-proj 2022-05-31T11:42:09.4635184Z Storing GCP_SA_KEY in /opt/gcp_key.json 2022-05-31T11:42:09.4636119Z Exporting GOOGLE_APPLICATION_CREDENTIALS=/opt/gcp_key.json 2022-05-31T11:42:14.3463083Z Post job cleanup. 2022-05-31T11:42:14.4899310Z [command]/usr/bin/git version 2022-05-31T11:42:14.4948692Z git version 2.36.1 2022-05-31T11:42:14.4990809Z Temporarily overriding HOME='/home/runner/work/_temp/bb2e9a85-35a7-45f5-bd39-7e7e8f468141' before making global git config changes 2022-05-31T11:42:14.4992202Z Adding repository directory to the temporary git global config as a safe directory 2022-05-31T11:42:14.4996561Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/e123-web/e123-web 2022-05-31T11:42:14.5042631Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand 2022-05-31T11:42:14.5083334Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2022-05-31T11:42:14.5459725Z [command]/usr/bin/git config --local --name-only --get-regexp http.https\:\/\/github.com\/.extraheader 2022-05-31T11:42:14.5503399Z http.https://github.com/.extraheader 2022-05-31T11:42:14.5515036Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2022-05-31T11:42:14.5634534Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http.https\:\/\/github.com\/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2022-05-31T11:42:14.6266321Z Cleaning up orphan processes