Azure / Azure/static-web-apps

Mount error while deploying SWAPP from release pipeline

Open
#463 16 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi,
I've been trying to do a deployment from a release pipeline by using the preview "Build and deploy an Azure Static Web App" Preview task (v.0.187.1). The app is already built using a build pipeline, so I only want to push it to the azure web app.
I already tried a lot of setting, but I always get the following error:
````
2021-06-06T07:16:02.3098936Z ##[debug]found: '/usr/bin/bash'
2021-06-06T07:16:02.3100454Z ##[debug]which '/usr/bin/bash'
2021-06-06T07:16:02.3101217Z ##[debug]found: '/usr/bin/bash'
2021-06-06T07:16:02.3104325Z ##[debug]testing directory '/home/vsts/work/_tasks/AzureStaticWebApp_18aad896-e191-4720-88d6-8ced4806941a/0.187.1'
2021-06-06T07:16:02.3109454Z ##[debug]/usr/bin/bash arg: /home/vsts/work/_tasks/AzureStaticWebApp_18aad896-e191-4720-88d6-8ced4806941a/0.187.1/launch-docker.sh
2021-06-06T07:16:02.3110679Z ##[debug]args=undefined
2021-06-06T07:16:02.3117260Z ##[debug]app_location=_E-NEXT_Frontend/dist
2021-06-06T07:16:02.3118019Z ##[debug]app_build_command=undefined
2021-06-06T07:16:02.3118655Z ##[debug]output_location=undefined
2021-06-06T07:16:02.3119251Z ##[debug]api_location=undefined
2021-06-06T07:16:02.3119862Z ##[debug]api_build_command=undefined
2021-06-06T07:16:02.3120476Z ##[debug]routes_location=undefined
2021-06-06T07:16:02.3122209Z ##[debug]skip_app_build=true
2021-06-06T07:16:02.3123760Z ##[debug]azure_static_web_apps_api_token=***
2021-06-06T07:16:02.3136217Z ##[debug]exec tool: /usr/bin/bash
2021-06-06T07:16:02.3136939Z ##[debug]arguments:
2021-06-06T07:16:02.3137875Z ##[debug] /home/vsts/work/_tasks/AzureStaticWebApp_18aad896-e191-4720-88d6-8ced4806941a/0.187.1/launch-docker.sh
2021-06-06T07:16:02.3142124Z [command]/usr/bin/bash /home/vsts/work/_tasks/AzureStaticWebApp_18aad896-e191-4720-88d6-8ced4806941a/0.187.1/launch-docker.sh
2021-06-06T07:16:02.5961816Z Unable to find image 'mcr.microsoft.com/appsvc/staticappsclient:stable' locally
2021-06-06T07:16:02.9296499Z stable: Pulling from appsvc/staticappsclient
2021-06-06T07:16:02.9306253Z 1e987daa2432: Pulling fs layer
--- shortened for brevity ---
2021-06-06T07:17:14.0571118Z 6284ff0d4871: Pull complete
2021-06-06T07:17:14.0611873Z Digest: sha256:57b6be4b785eccc666462f284457b72b0c09f6f5e6d067b965750233a417fd0e
2021-06-06T07:17:14.0629706Z Status: Downloaded newer image for mcr.microsoft.com/appsvc/staticappsclient:stable
2021-06-06T07:17:14.2881573Z docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination::/working_dir Type:bind Source:/var/lib/docker/volumes/8d90060c5907d68a281862c7f31dcb71efe24e52511ac78682a1e5e5dd27b0af/_data Options:[rbind]}: mount destination :/working_dir not absolute: unknown.
2021-06-06T07:17:14.2886252Z time="2021-06-06T07:17:14Z" level=error msg="error waiting for container: context canceled"
```
What am I doing wrong?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.