Hi,
I want to report an issue I ran into last week. I've spent some time trying to fix it, but I don't seem to be getting anywhere. I'd appreciate any thoughts and ideas you have around this. Thanks very much for your time and attention!
Bug Report
-
At what date and time did you most recently experience the problem?
On 2020-10-22T08:32:53.8713496Z (5 days ago)
-
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Azure Web Apps.
-
If your repo is publicly available please share its URL:
The repo is private.
-
What happened?
Following the quick start docs for static web apps, I configured the workflow. Instead of the default plain index.html file, I used a company-internal React template. The pipeline would get to the 'Build and Deploy' step, where it would fail with
npm ERR! Maximum call stack size exceeded
I retriggered the job twice, but the same error kept reappearing.
In an attempt to reproduce this locally, I followed the steps for building apps using the Oryx docker image, but was unable to get the result (that is: the local build succeeded). I noticed that the local build uses npm install and that the CI/CD job uses npm install --unsafe-perm and --production. I couldn't find a way to change what the local build uses, but I could use the CI/CD command as a pre-build command, and that still worked.
- What did you expect or want to happen?
I'd expect the build to go through normally (without getting a call stack error).
This is trickier. I don't know what causes this, but from reading about similar errors, it seems that it might be due to a circular dependency somewhere (though I think it's strange that it works fine using the docker image locally). If you don't have enough information to be able to determine what causes this or have any ideas, I'd be happy to try and get permission to share the repository with you.
- Do you have log output? Please include between the backticks:
This is the log output from the build and deploy job:
2020-10-22T08:31:50.6495778Z ##[section]Starting: Request a runner to run this job
2020-10-22T08:31:51.0561351Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-10-22T08:31:51.0561479Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-10-22T08:31:51.0561939Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-10-22T08:31:51.3450524Z ##[section]Finishing: Request a runner to run this job
2020-10-22T08:32:00.2666223Z Current runner version: '2.273.5'
2020-10-22T08:32:00.2697349Z ##[group]Operating System
2020-10-22T08:32:00.2698135Z Ubuntu
2020-10-22T08:32:00.2698457Z 18.04.5
2020-10-22T08:32:00.2698767Z LTS
2020-10-22T08:32:00.2699160Z ##[endgroup]
2020-10-22T08:32:00.2699597Z ##[group]Virtual Environment
2020-10-22T08:32:00.2700075Z Environment: ubuntu-18.04
2020-10-22T08:32:00.2700430Z Version: 20201015.1
2020-10-22T08:32:00.2701231Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20201015.1/images/linux/Ubuntu1804-README.md
2020-10-22T08:32:00.2702040Z ##[endgroup]
2020-10-22T08:32:00.2703168Z Prepare workflow directory
2020-10-22T08:32:00.2887147Z Prepare all required actions
2020-10-22T08:32:00.2896477Z Getting action download info
2020-10-22T08:32:00.6330999Z Download action repository 'actions/checkout@v2'
2020-10-22T08:32:02.6307629Z Download action repository 'Azure/static-web-apps-deploy@v0.0.1-preview'
2020-10-22T08:32:02.8488669Z ##[group]Build container for action use: '/home/runner/work/_actions/Azure/static-web-apps-deploy/v0.0.1-preview/Dockerfile'.
2020-10-22T08:32:02.8557226Z ##[command]/usr/bin/docker build -t 1e5c35:4c9f4b058df148209cd626e218fb16c4 -f "/home/runner/work/_actions/Azure/static-web-apps-deploy/v0.0.1-preview/Dockerfile" "/home/runner/work/_actions/Azure/static-web-apps-deploy/v0.0.1-preview"
2020-10-22T08:32:03.6575282Z Sending build context to Docker daemon 20.99kB
2020-10-22T08:32:03.6575653Z
2020-10-22T08:32:03.7061480Z Step 1/3 : FROM mcr.microsoft.com/appsvc/staticappsclient:stable
2020-10-22T08:32:03.8565926Z stable: Pulling from appsvc/staticappsclient
2020-10-22T08:32:03.8630215Z 4f250268ed6a: Pulling fs layer
2020-10-22T08:32:03.8632955Z 1b49aa113642: Pulling fs layer
2020-10-22T08:32:03.8635101Z c159512f4cc2: Pulling fs layer
2020-10-22T08:32:03.8636248Z 8439168fd8dc: Pulling fs layer
2020-10-22T08:32:03.8637327Z 55abbc6cc158: Pulling fs layer
2020-10-22T08:32:03.8638476Z 5b18423ff3ff: Pulling fs layer
2020-10-22T08:32:03.8639450Z e880a51f3f36: Pulling fs layer
2020-10-22T08:32:03.8640613Z c47b9b76a97a: Pulling fs layer
2020-10-22T08:32:03.8641535Z 7fb94b5d6720: Pulling fs layer
2020-10-22T08:32:03.8642470Z 48e25a16cad9: Pulling fs layer
2020-10-22T08:32:03.8643360Z 5b18423ff3ff: Waiting
2020-10-22T08:32:03.8644285Z e880a51f3f36: Waiting
2020-10-22T08:32:03.8645190Z c47b9b76a97a: Waiting
2020-10-22T08:32:03.8646365Z 7fb94b5d6720: Waiting
2020-10-22T08:32:03.8646898Z 48e25a16cad9: Waiting
2020-10-22T08:32:03.8647409Z 8439168fd8dc: Waiting
2020-10-22T08:32:03.8647931Z 55abbc6cc158: Waiting
2020-10-22T08:32:04.0054009Z c159512f4cc2: Verifying Checksum
2020-10-22T08:32:04.0054669Z c159512f4cc2: Download complete
2020-10-22T08:32:04.0561923Z 1b49aa113642: Verifying Checksum
2020-10-22T08:32:04.0562775Z 1b49aa113642: Download complete
2020-10-22T08:32:04.3475563Z 4f250268ed6a: Verifying Checksum
2020-10-22T08:32:04.3476305Z 4f250268ed6a: Download complete
2020-10-22T08:32:04.5412397Z 8439168fd8dc: Verifying Checksum
2020-10-22T08:32:04.5414333Z 8439168fd8dc: Download complete
2020-10-22T08:32:04.6045828Z 5b18423ff3ff: Verifying Checksum
2020-10-22T08:32:04.6066710Z 5b18423ff3ff: Download complete
2020-10-22T08:32:04.7089083Z c47b9b76a97a: Verifying Checksum
2020-10-22T08:32:04.7113354Z c47b9b76a97a: Download complete
2020-10-22T08:32:05.1113515Z 7fb94b5d6720: Verifying Checksum
2020-10-22T08:32:05.1226475Z 7fb94b5d6720: Download complete
2020-10-22T08:32:05.1810492Z e880a51f3f36: Verifying Checksum
2020-10-22T08:32:05.1810983Z e880a51f3f36: Download complete
2020-10-22T08:32:05.4940435Z 48e25a16cad9: Verifying Checksum
2020-10-22T08:32:05.4940892Z 48e25a16cad9: Download complete
2020-10-22T08:32:07.0372907Z 55abbc6cc158: Verifying Checksum
2020-10-22T08:32:07.0373413Z 55abbc6cc158: Download complete
2020-10-22T08:32:08.9787087Z 4f250268ed6a: Pull complete
2020-10-22T08:32:11.0943642Z 1b49aa113642: Pull complete
2020-10-22T08:32:11.3482814Z c159512f4cc2: Pull complete
2020-10-22T08:32:14.5776745Z 8439168fd8dc: Pull complete
2020-10-22T08:32:22.5341249Z 55abbc6cc158: Pull complete
2020-10-22T08:32:23.7349869Z 5b18423ff3ff: Pull complete
2020-10-22T08:32:25.4844056Z e880a51f3f36: Pull complete
2020-10-22T08:32:25.6046997Z c47b9b76a97a: Pull complete
2020-10-22T08:32:27.5780005Z 7fb94b5d6720: Pull complete
2020-10-22T08:32:29.6367622Z 48e25a16cad9: Pull complete
2020-10-22T08:32:30.2322308Z Digest: sha256:79759979e67596f099dfe2f4cfcc096736fe094a86dd55ff2a14df9fe21e0915
2020-10-22T08:32:30.4806633Z Status: Downloaded newer image for mcr.microsoft.com/appsvc/staticappsclient:stable
2020-10-22T08:32:30.4815241Z ---> 07267b122bc9
2020-10-22T08:32:30.4816014Z Step 2/3 : COPY entrypoint.sh /entrypoint.sh
2020-10-22T08:32:36.9375022Z ---> 92fdeff3ce94
2020-10-22T08:32:36.9375594Z Step 3/3 : ENTRYPOINT ["sh", "/entrypoint.sh"]
2020-10-22T08:32:36.9645641Z ---> Running in 3e5bfe35ec19
2020-10-22T08:32:38.4161316Z Removing intermediate container 3e5bfe35ec19
2020-10-22T08:32:38.4162103Z ---> 1205bf3a07e6
2020-10-22T08:32:38.4195187Z Successfully built 1205bf3a07e6
2020-10-22T08:32:38.4195813Z Successfully tagged 1e5c35:4c9f4b058df148209cd626e218fb16c4
2020-10-22T08:32:38.4226447Z ##[endgroup]
2020-10-22T08:32:38.4415589Z ##[group]Run actions/checkout@v2
2020-10-22T08:32:38.4416079Z with:
2020-10-22T08:32:38.4416412Z submodules: true
2020-10-22T08:32:38.4416831Z repository: <Username>/<repo>
2020-10-22T08:32:38.4417619Z token: ***
2020-10-22T08:32:38.4417900Z ssh-strict: true
2020-10-22T08:32:38.4418302Z persist-credentials: true
2020-10-22T08:32:38.4418681Z clean: true
2020-10-22T08:32:38.4418975Z fetch-depth: 1
2020-10-22T08:32:38.4419264Z lfs: false
2020-10-22T08:32:38.4419540Z ##[endgroup]
2020-10-22T08:32:38.8536187Z Syncing repository: <Username>/<repo>
2020-10-22T08:32:38.8536971Z ##[group]Getting Git version info
2020-10-22T08:32:38.8537799Z Working directory is '/home/runner/work/<repo>/<repo>'
2020-10-22T08:32:38.8538402Z [command]/usr/bin/git version
2020-10-22T08:32:38.8920136Z git version 2.28.0
2020-10-22T08:32:38.8946001Z ##[endgroup]
2020-10-22T08:32:38.8953093Z Deleting the contents of '/home/runner/work/<repo>/<repo>'
2020-10-22T08:32:38.8958172Z ##[group]Initializing the repository
2020-10-22T08:32:38.8962492Z [command]/usr/bin/git init /home/runner/work/<repo>/<repo>
2020-10-22T08:32:38.9059087Z Initialized empty Git repository in /home/runner/work/<repo>/<repo>/.git/
2020-10-22T08:32:38.9071634Z [command]/usr/bin/git remote add origin https://github.com/<Username>/<repo>
2020-10-22T08:32:38.9122730Z ##[endgroup]
2020-10-22T08:32:38.9123594Z ##[group]Disabling automatic garbage collection
2020-10-22T08:32:38.9127929Z [command]/usr/bin/git config --local gc.auto 0
2020-10-22T08:32:38.9170242Z ##[endgroup]
2020-10-22T08:32:38.9176130Z ##[group]Setting up auth
2020-10-22T08:32:38.9183143Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2020-10-22T08:32:38.9231196Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2020-10-22T08:32:38.9689332Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2020-10-22T08:32:38.9760794Z [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' || :
2020-10-22T08:32:39.0086178Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2020-10-22T08:32:39.0152507Z ##[endgroup]
2020-10-22T08:32:39.0153478Z ##[group]Fetching the repository
2020-10-22T08:32:39.0162609Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +b5e97ba23a392761dc9336a9d38b68fc344b1cc6:refs/remotes/origin/main
2020-10-22T08:32:40.2140827Z remote: Enumerating objects: 37, done.
2020-10-22T08:32:40.2141935Z remote: Counting objects: 2% (1/37)
2020-10-22T08:32:40.2142908Z remote: Counting objects: 5% (2/37)
2020-10-22T08:32:40.2143418Z remote: Counting objects: 8% (3/37)
2020-10-22T08:32:40.2143911Z remote: Counting objects: 10% (4/37)
2020-10-22T08:32:40.2144401Z remote: Counting objects: 13% (5/37)
2020-10-22T08:32:40.2145169Z remote: Counting objects: 16% (6/37)
2020-10-22T08:32:40.2145620Z remote: Counting objects: 18% (7/37)
2020-10-22T08:32:40.2146266Z remote: Counting objects: 21% (8/37)
2020-10-22T08:32:40.2146721Z remote: Counting objects: 24% (9/37)
2020-10-22T08:32:40.2147165Z remote: Counting objects: 27% (10/37)
2020-10-22T08:32:40.2147610Z remote: Counting objects: 29% (11/37)
2020-10-22T08:32:40.2148245Z remote: Counting objects: 32% (12/37)
2020-10-22T08:32:40.2148680Z remote: Counting objects: 35% (13/37)
2020-10-22T08:32:40.2149187Z remote: Counting objects: 37% (14/37)
2020-10-22T08:32:40.2149617Z remote: Counting objects: 40% (15/37)
2020-10-22T08:32:40.2150245Z remote: Counting objects: 43% (16/37)
2020-10-22T08:32:40.2150688Z remote: Counting objects: 45% (17/37)
2020-10-22T08:32:40.2151093Z remote: Counting objects: 48% (18/37)
2020-10-22T08:32:40.2151514Z remote: Counting objects: 51% (19/37)
2020-10-22T08:32:40.2151938Z remote: Counting objects: 54% (20/37)
2020-10-22T08:32:40.2152361Z remote: Counting objects: 56% (21/37)
2020-10-22T08:32:40.2152783Z remote: Counting objects: 59% (22/37)
2020-10-22T08:32:40.2153201Z remote: Counting objects: 62% (23/37)
2020-10-22T08:32:40.2153620Z remote: Counting objects: 64% (24/37)
2020-10-22T08:32:40.2154065Z remote: Counting objects: 67% (25/37)
2020-10-22T08:32:40.2154563Z remote: Counting objects: 70% (26/37)
2020-10-22T08:32:40.2160392Z remote: Counting objects: 72% (27/37)
2020-10-22T08:32:40.2160826Z remote: Counting objects: 75% (28/37)
2020-10-22T08:32:40.2161252Z remote: Counting objects: 78% (29/37)
2020-10-22T08:32:40.2161662Z remote: Counting objects: 81% (30/37)
2020-10-22T08:32:40.2162058Z remote: Counting objects: 83% (31/37)
2020-10-22T08:32:40.2162459Z remote: Counting objects: 86% (32/37)
2020-10-22T08:32:40.2162876Z remote: Counting objects: 89% (33/37)
2020-10-22T08:32:40.2163276Z remote: Counting objects: 91% (34/37)
2020-10-22T08:32:40.2163675Z remote: Counting objects: 94% (35/37)
2020-10-22T08:32:40.2164070Z remote: Counting objects: 97% (36/37)
2020-10-22T08:32:40.2164468Z remote: Counting objects: 100% (37/37)
2020-10-22T08:32:40.2164887Z remote: Counting objects: 100% (37/37), done.
2020-10-22T08:32:40.2165332Z remote: Compressing objects: 2% (1/35)
2020-10-22T08:32:40.2165775Z remote: Compressing objects: 5% (2/35)
2020-10-22T08:32:40.2166211Z remote: Compressing objects: 8% (3/35)
2020-10-22T08:32:40.2166652Z remote: Compressing objects: 11% (4/35)
2020-10-22T08:32:40.2167091Z remote: Compressing objects: 14% (5/35)
2020-10-22T08:32:40.2167527Z remote: Compressing objects: 17% (6/35)
2020-10-22T08:32:40.2167965Z remote: Compressing objects: 20% (7/35)
2020-10-22T08:32:40.2168389Z remote: Compressing objects: 22% (8/35)
2020-10-22T08:32:40.2168826Z remote: Compressing objects: 25% (9/35)
2020-10-22T08:32:40.2169272Z remote: Compressing objects: 28% (10/35)
2020-10-22T08:32:40.2169717Z remote: Compressing objects: 31% (11/35)
2020-10-22T08:32:40.2170158Z remote: Compressing objects: 34% (12/35)
2020-10-22T08:32:40.2170602Z remote: Compressing objects: 37% (13/35)
2020-10-22T08:32:40.2171039Z remote: Compressing objects: 40% (14/35)
2020-10-22T08:32:40.2171479Z remote: Compressing objects: 42% (15/35)
2020-10-22T08:32:40.2171917Z remote: Compressing objects: 45% (16/35)
2020-10-22T08:32:40.2172531Z remote: Compressing objects: 48% (17/35)
2020-10-22T08:32:40.2172973Z remote: Compressing objects: 51% (18/35)
2020-10-22T08:32:40.2173411Z remote: Compressing objects: 54% (19/35)
2020-10-22T08:32:40.2173846Z remote: Compressing objects: 57% (20/35)
2020-10-22T08:32:40.2174282Z remote: Compressing objects: 60% (21/35)
2020-10-22T08:32:40.2174723Z remote: Compressing objects: 62% (22/35)
2020-10-22T08:32:40.2175162Z remote: Compressing objects: 65% (23/35)
2020-10-22T08:32:40.2175600Z remote: Compressing objects: 68% (24/35)
2020-10-22T08:32:40.2176024Z remote: Compressing objects: 71% (25/35)
2020-10-22T08:32:40.2176461Z remote: Compressing objects: 74% (26/35)
2020-10-22T08:32:40.2176903Z remote: Compressing objects: 77% (27/35)
2020-10-22T08:32:40.2177342Z remote: Compressing objects: 80% (28/35)
2020-10-22T08:32:40.2177781Z remote: Compressing objects: 82% (29/35)
2020-10-22T08:32:40.2178228Z remote: Compressing objects: 85% (30/35)
2020-10-22T08:32:40.2178740Z remote: Compressing objects: 88% (31/35)
2020-10-22T08:32:40.2179185Z remote: Compressing objects: 91% (32/35)
2020-10-22T08:32:40.2179623Z remote: Compressing objects: 94% (33/35)
2020-10-22T08:32:40.2180058Z remote: Compressing objects: 97% (34/35)
2020-10-22T08:32:40.2180490Z remote: Compressing objects: 100% (35/35)
2020-10-22T08:32:40.2180954Z remote: Compressing objects: 100% (35/35), done.
2020-10-22T08:32:40.4818974Z remote: Total 37 (delta 0), reused 32 (delta 0), pack-reused 0
2020-10-22T08:32:40.5794824Z From https://github.com/<Username>/<repo>
2020-10-22T08:32:40.5799364Z * [new ref] b5e97ba23a392761dc9336a9d38b68fc344b1cc6 -> origin/main
2020-10-22T08:32:40.5833637Z ##[endgroup]
2020-10-22T08:32:40.5834960Z ##[group]Determining the checkout info
2020-10-22T08:32:40.5837554Z ##[endgroup]
2020-10-22T08:32:40.5838510Z ##[group]Checking out the ref
2020-10-22T08:32:40.5843768Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2020-10-22T08:32:40.5987516Z Switched to a new branch 'main'
2020-10-22T08:32:40.5989201Z Branch 'main' set up to track remote branch 'main' from 'origin'.
2020-10-22T08:32:40.5996306Z ##[endgroup]
2020-10-22T08:32:40.5997174Z ##[group]Setting up auth for fetching submodules
2020-10-22T08:32:40.6009177Z Temporarily overriding HOME='/home/runner/work/_temp/b60ccbd0-93cb-48f3-9b1e-40e35f83f821' before making global git config changes
2020-10-22T08:32:40.6012913Z [command]/usr/bin/git config --global http.https://github.com/.extraheader AUTHORIZATION: basic ***
2020-10-22T08:32:40.6068645Z [command]/usr/bin/git config --global --unset-all url.https://github.com/.insteadOf
2020-10-22T08:32:40.6110933Z [command]/usr/bin/git config --global url.https://github.com/.insteadOf git@github.com:
2020-10-22T08:32:40.6148127Z ##[endgroup]
2020-10-22T08:32:40.6149030Z ##[group]Fetching submodules
2020-10-22T08:32:40.6152567Z [command]/usr/bin/git submodule sync
2020-10-22T08:32:40.6453149Z [command]/usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1
2020-10-22T08:32:40.6829749Z [command]/usr/bin/git submodule foreach git config --local gc.auto 0
2020-10-22T08:32:40.7146273Z ##[endgroup]
2020-10-22T08:32:40.7146874Z ##[group]Persisting credentials for submodules
2020-10-22T08:32:40.7148826Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'url\.https\:\/\/github\.com\/\.insteadOf' && git config --local --unset-all 'url.https://github.com/.insteadOf' || :
2020-10-22T08:32:40.7646881Z [command]/usr/bin/git submodule foreach git config --local 'http.https://github.com/.extraheader' 'AUTHORIZATION: basic ***' && git config --local --show-origin --name-only --get-regexp remote.origin.url
2020-10-22T08:32:40.7954394Z [command]/usr/bin/git submodule foreach git config --local 'url.https://github.com/.insteadOf' 'git@github.com:'
2020-10-22T08:32:40.8254471Z ##[endgroup]
2020-10-22T08:32:40.8345723Z [command]/usr/bin/git log -1 --format='%H'
2020-10-22T08:32:40.8380313Z 'b5e97ba23a392761dc9336a9d38b68fc344b1cc6'
2020-10-22T08:32:40.8525664Z ##[group]Run Azure/static-web-apps-deploy@v0.0.1-preview
2020-10-22T08:32:40.8526155Z with:
2020-10-22T08:32:40.8528264Z azure_static_web_apps_api_token: ***
2020-10-22T08:32:40.8529238Z repo_token: ***
2020-10-22T08:32:40.8529539Z action: upload
2020-10-22T08:32:40.8529839Z app_location: .
2020-10-22T08:32:40.8530139Z api_location: .
2020-10-22T08:32:40.8530485Z app_artifact_location: build
2020-10-22T08:32:40.8530827Z ##[endgroup]
2020-10-22T08:32:40.8569666Z ##[command]/usr/bin/docker run --name e5c354c9f4b058df148209cd626e218fb16c4_768186 --label 1e5c35 --workdir /github/workspace --rm -e INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN -e INPUT_REPO_TOKEN -e INPUT_ACTION -e INPUT_APP_LOCATION -e INPUT_API_LOCATION -e INPUT_APP_ARTIFACT_LOCATION -e INPUT_API_BUILD_COMMAND -e INPUT_APP_BUILD_COMMAND -e INPUT_ROUTES_LOCATION -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_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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -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/<repo>/<repo>":"/github/workspace" 1e5c35:4c9f4b058df148209cd626e218fb16c4
2020-10-22T08:32:41.3522138Z �[37mDeploymentId: 29d65742-e560-456d-99e1-b1dafea55674�[0m
2020-10-22T08:32:41.3522800Z �[37m�[0m
2020-10-22T08:32:41.4637845Z �[37mApp Directory Location: '.' was found.�[0m
2020-10-22T08:32:41.4638565Z �[37mApi Directory Location: '.' was found.�[0m
2020-10-22T08:32:42.9324507Z �[37mStarting to build app with Oryx�[0m
2020-10-22T08:32:42.9326790Z �[33mAzure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx�[0m
2020-10-22T08:32:42.9328624Z �[37m---Oryx build logs---�[0m
2020-10-22T08:32:42.9329348Z �[37m�[0m
2020-10-22T08:32:42.9329959Z �[37m�[0m
2020-10-22T08:32:43.4888282Z �[37mOperation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx�[0m
2020-10-22T08:32:43.4896217Z �[37mYou can report issues at https://github.com/Microsoft/Oryx/issues�[0m
2020-10-22T08:32:43.4896875Z �[37m�[0m
2020-10-22T08:32:43.4897752Z �[37mOryx Version: 0.2.20200929.1, Commit: 0266eb9f094e3f18e2d73c438dcbb2be70841922, ReleaseTagName: 20200929.1�[0m
2020-10-22T08:32:43.4898548Z �[37m�[0m
2020-10-22T08:32:43.4907577Z �[37mBuild Operation ID: |wc1CZEuB1Yo=.cf29b9f1_�[0m
2020-10-22T08:32:43.4916284Z �[37mRepository Commit : b5e97ba23a392761dc9336a9d38b68fc344b1cc6�[0m
2020-10-22T08:32:43.4916976Z �[37m�[0m
2020-10-22T08:32:43.5102968Z �[37mDetecting platforms...�[0m
2020-10-22T08:32:44.3647071Z �[37mDetected following platforms:�[0m
2020-10-22T08:32:44.3661275Z �[37m nodejs: 12.19.0�[0m
2020-10-22T08:32:44.3708792Z �[37mVersion '12.19.0' of platform 'nodejs' is not installed. Generating script to install it...�[0m
2020-10-22T08:32:44.5755324Z �[37m�[0m
2020-10-22T08:32:44.5832174Z �[37m�[0m
2020-10-22T08:32:44.5845043Z �[37mSource directory : /github/workspace�[0m
2020-10-22T08:32:44.5850863Z �[37mDestination directory: /bin/staticsites/ss-oryx/app�[0m
2020-10-22T08:32:44.5851445Z �[37m�[0m
2020-10-22T08:32:44.5856272Z �[37m�[0m
2020-10-22T08:32:44.5863469Z �[37mDownloading and extracting 'nodejs' version '12.19.0' to '/tmp/oryx/platforms/nodejs/12.19.0'...�[0m
2020-10-22T08:32:44.8419073Z �[37mDownloaded in 0 sec(s).�[0m
2020-10-22T08:32:44.8425511Z �[37mVerifying checksum...�[0m
2020-10-22T08:32:44.9509548Z �[37mExtracting contents...�[0m
2020-10-22T08:32:45.7822461Z �[37mDone in 1 sec(s).�[0m
2020-10-22T08:32:45.7828376Z �[37m�[0m
2020-10-22T08:32:45.8398614Z �[37m�[0m
2020-10-22T08:32:45.8404438Z �[37mUsing Node version:�[0m
2020-10-22T08:32:45.8454404Z �[37mv12.19.0�[0m
2020-10-22T08:32:45.8465432Z �[37m�[0m
2020-10-22T08:32:45.8471686Z �[37mUsing Npm version:�[0m
2020-10-22T08:32:46.0335979Z �[37m6.14.8�[0m
2020-10-22T08:32:46.0488903Z �[37m�[0m
2020-10-22T08:32:46.0520080Z �[37mInstalling production dependencies in '/github/workspace/.oryx_prod_node_modules'...�[0m
2020-10-22T08:32:46.0520864Z �[37m�[0m
2020-10-22T08:32:46.0524302Z �[37mRunning 'npm install --unsafe-perm --production'...�[0m
2020-10-22T08:32:46.0527170Z �[37m�[0m
2020-10-22T08:32:53.8713543Z �[31mnpm ERR! Maximum call stack size exceeded�[0m
2020-10-22T08:32:54.9608818Z �[31m�[0m
2020-10-22T08:32:54.9613404Z �[31mnpm ERR! A complete log of this run can be found in:�[0m
2020-10-22T08:32:54.9619067Z �[31mnpm ERR! /github/home/.npm/_logs/2020-10-22T08_32_53_889Z-debug.log�[0m
2020-10-22T08:32:56.5285812Z �[37m�[0m
2020-10-22T08:32:56.5286287Z �[37m�[0m
2020-10-22T08:32:56.5286742Z �[37m---End of Oryx build logs---�[0m
2020-10-22T08:32:56.5291519Z �[31mOryx has failed to build the solution.�[0m
2020-10-22T08:32:56.6228710Z �[37m�[0m
2020-10-22T08:32:56.6230889Z �[33mFor further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/�[0m
2020-10-22T08:32:56.6233747Z �[33mIf you believe this behavior is unexpected, please raise a Github issue at https://github.com/azure/static-web-apps/issues/�[0m
2020-10-22T08:32:56.6235306Z �[33mExiting�[0m
2020-10-22T08:32:58.3074265Z Post job cleanup.
2020-10-22T08:32:58.4170878Z [command]/usr/bin/git version
2020-10-22T08:32:58.4237189Z git version 2.28.0
2020-10-22T08:32:58.4292129Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2020-10-22T08:32:58.4334930Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2020-10-22T08:32:58.4631537Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2020-10-22T08:32:58.4687993Z http.https://github.com/.extraheader
2020-10-22T08:32:58.4689481Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2020-10-22T08:32:58.4728828Z [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' || :
2020-10-22T08:32:58.5111881Z Cleaning up orphan processes
Hi,
I want to report an issue I ran into last week. I've spent some time trying to fix it, but I don't seem to be getting anywhere. I'd appreciate any thoughts and ideas you have around this. Thanks very much for your time and attention!
Bug Report
At what date and time did you most recently experience the problem?
On 2020-10-22T08:32:53.8713496Z (5 days ago)
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Azure Web Apps.
If your repo is publicly available please share its URL:
The repo is private.
What happened?
Following the quick start docs for static web apps, I configured the workflow. Instead of the default plain index.html file, I used a company-internal React template. The pipeline would get to the 'Build and Deploy' step, where it would fail with
I retriggered the job twice, but the same error kept reappearing.
In an attempt to reproduce this locally, I followed the steps for building apps using the Oryx docker image, but was unable to get the result (that is: the local build succeeded). I noticed that the local build uses
npm installand that the CI/CD job usesnpm install --unsafe-perm and --production. I couldn't find a way to change what the local build uses, but I could use the CI/CD command as a pre-build command, and that still worked.I'd expect the build to go through normally (without getting a call stack error).
This is trickier. I don't know what causes this, but from reading about similar errors, it seems that it might be due to a circular dependency somewhere (though I think it's strange that it works fine using the docker image locally). If you don't have enough information to be able to determine what causes this or have any ideas, I'd be happy to try and get permission to share the repository with you.
This is the log output from the build and deploy job: