This repository was archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
Can't deploy to Cloudflare Workers #2
Copy link
Copy link
Open
Description
On deploying (why the link on the readme lead to non-existent repo?), I got
Creating the secret for script name serverless-dns
Worker serverless-dns doesn't exist in the API yet. Creating a draft Worker so we can create new secret.
Error: No such file or directory (os error 2)
Full log as follows :
> 2021-05-11T14:40:52.8562976Z ##[section]Starting: Request a runner to run this job
> 2021-05-11T14:40:53.1014581Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
> 2021-05-11T14:40:53.1014694Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
> 2021-05-11T14:40:53.1015085Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
> 2021-05-11T14:40:53.2557244Z ##[section]Finishing: Request a runner to run this job
> 2021-05-11T14:41:02.4901561Z Current runner version: '2.278.0'
> 2021-05-11T14:41:02.4935160Z ##[group]Operating System
> 2021-05-11T14:41:02.4936110Z Ubuntu
> 2021-05-11T14:41:02.4936530Z 20.04.2
> 2021-05-11T14:41:02.4936962Z LTS
> 2021-05-11T14:41:02.4937470Z ##[endgroup]
> 2021-05-11T14:41:02.4937954Z ##[group]Virtual Environment
> 2021-05-11T14:41:02.4938563Z Environment: ubuntu-20.04
> 2021-05-11T14:41:02.4939094Z Version: 20210504.1
> 2021-05-11T14:41:02.4939967Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210504.1/images/linux/Ubuntu2004-README.md
> 2021-05-11T14:41:02.4941208Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210504.1
> 2021-05-11T14:41:02.4942000Z ##[endgroup]
> 2021-05-11T14:41:02.4943718Z ##[group]GITHUB_TOKEN Permissions
> 2021-05-11T14:41:02.4945317Z Actions: write
> 2021-05-11T14:41:02.4945782Z Checks: write
> 2021-05-11T14:41:02.4946250Z Contents: write
> 2021-05-11T14:41:02.4946747Z Deployments: write
> 2021-05-11T14:41:02.4947350Z Issues: write
> 2021-05-11T14:41:02.4947902Z Metadata: read
> 2021-05-11T14:41:02.4948382Z Packages: write
> 2021-05-11T14:41:02.4948859Z PullRequests: write
> 2021-05-11T14:41:02.4949447Z RepositoryProjects: write
> 2021-05-11T14:41:02.4949981Z SecurityEvents: write
> 2021-05-11T14:41:02.4950532Z Statuses: write
> 2021-05-11T14:41:02.4951159Z ##[endgroup]
> 2021-05-11T14:41:02.4954357Z Prepare workflow directory
> 2021-05-11T14:41:02.5632497Z Prepare all required actions
> 2021-05-11T14:41:02.5644538Z Getting action download info
> 2021-05-11T14:41:03.0193725Z Download action repository 'actions/checkout@v2'
> 2021-05-11T14:41:04.9289594Z Download action repository 'cloudflare/[email protected]'
> 2021-05-11T14:41:05.4926985Z ##[group]Build container for action use: '/home/runner/work/_actions/cloudflare/wrangler-action/1.3.0/Dockerfile'.
> 2021-05-11T14:41:05.5001131Z ##[command]/usr/bin/docker build -t 8a33c1:ab209c92f6d544e1838939f8a399c6f2 -f "/home/runner/work/_actions/cloudflare/wrangler-action/1.3.0/Dockerfile" "/home/runner/work/_actions/cloudflare/wrangler-action/1.3.0"
> 2021-05-11T14:41:05.7888586Z Sending build context to Docker daemon 45.57kB
> 2021-05-11T14:41:05.7889345Z
> 2021-05-11T14:41:05.8418172Z Step 1/5 : FROM node:12
> 2021-05-11T14:41:05.8422879Z ---> 29be39bd6917
> 2021-05-11T14:41:05.8424068Z Step 2/5 : ENV XDG_CONFIG_HOME /github/workspace
> 2021-05-11T14:41:06.2504599Z ---> Running in 1e9f844d4919
> 2021-05-11T14:41:18.1162663Z Removing intermediate container 1e9f844d4919
> 2021-05-11T14:41:18.1163769Z ---> f60f73710951
> 2021-05-11T14:41:18.1164879Z Step 3/5 : ENV WRANGLER_HOME /github/workspace
> 2021-05-11T14:41:18.1599020Z ---> Running in 20f1e02784c6
> 2021-05-11T14:41:19.5626758Z Removing intermediate container 20f1e02784c6
> 2021-05-11T14:41:19.5627658Z ---> f113c7261f17
> 2021-05-11T14:41:19.5628645Z Step 4/5 : COPY entrypoint.sh /entrypoint.sh
> 2021-05-11T14:41:21.0700561Z ---> ca561bd8e100
> 2021-05-11T14:41:21.0701418Z Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
> 2021-05-11T14:41:21.1003099Z ---> Running in 6b6cb0993be2
> 2021-05-11T14:41:22.5066748Z Removing intermediate container 6b6cb0993be2
> 2021-05-11T14:41:22.5068044Z ---> 1559599d683f
> 2021-05-11T14:41:22.5068882Z Successfully built 1559599d683f
> 2021-05-11T14:41:22.5282816Z Successfully tagged 8a33c1:ab209c92f6d544e1838939f8a399c6f2
> 2021-05-11T14:41:22.5301246Z ##[endgroup]
> 2021-05-11T14:41:22.5585348Z ##[group]Run actions/checkout@v2
> 2021-05-11T14:41:22.5585962Z with:
> 2021-05-11T14:41:22.5586461Z repository: tina-hello/serverless-dns
> 2021-05-11T14:41:22.5587779Z token: ***
> 2021-05-11T14:41:22.5588235Z ssh-strict: true
> 2021-05-11T14:41:22.5588697Z persist-credentials: true
> 2021-05-11T14:41:22.5589181Z clean: true
> 2021-05-11T14:41:22.5589613Z fetch-depth: 1
> 2021-05-11T14:41:22.5589978Z lfs: false
> 2021-05-11T14:41:22.5590494Z submodules: false
> 2021-05-11T14:41:22.5590876Z ##[endgroup]
> 2021-05-11T14:41:22.8108159Z Syncing repository: tina-hello/serverless-dns
> 2021-05-11T14:41:22.8108933Z ##[group]Getting Git version info
> 2021-05-11T14:41:22.8109762Z Working directory is '/home/runner/work/serverless-dns/serverless-dns'
> 2021-05-11T14:41:22.8129973Z [command]/usr/bin/git version
> 2021-05-11T14:41:22.8195902Z git version 2.31.1
> 2021-05-11T14:41:22.8221531Z ##[endgroup]
> 2021-05-11T14:41:22.8228971Z Deleting the contents of '/home/runner/work/serverless-dns/serverless-dns'
> 2021-05-11T14:41:22.8231830Z ##[group]Initializing the repository
> 2021-05-11T14:41:22.8236628Z [command]/usr/bin/git init /home/runner/work/serverless-dns/serverless-dns
> 2021-05-11T14:41:22.8305308Z hint: Using 'master' as the name for the initial branch. This default branch name
> 2021-05-11T14:41:22.8306230Z hint: is subject to change. To configure the initial branch name to use in all
> 2021-05-11T14:41:22.8307005Z hint: of your new repositories, which will suppress this warning, call:
> 2021-05-11T14:41:22.8307776Z hint:
> 2021-05-11T14:41:22.8308557Z hint: git config --global init.defaultBranch <name>
> 2021-05-11T14:41:22.8309175Z hint:
> 2021-05-11T14:41:22.8309939Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
> 2021-05-11T14:41:22.8310972Z hint: 'development'. The just-created branch can be renamed via this command:
> 2021-05-11T14:41:22.8311807Z hint:
> 2021-05-11T14:41:22.8312395Z hint: git branch -m <name>
> 2021-05-11T14:41:22.8320871Z Initialized empty Git repository in /home/runner/work/serverless-dns/serverless-dns/.git/
> 2021-05-11T14:41:22.8334046Z [command]/usr/bin/git remote add origin https://github.com/tina-hello/serverless-dns
> 2021-05-11T14:41:22.8370541Z ##[endgroup]
> 2021-05-11T14:41:22.8371254Z ##[group]Disabling automatic garbage collection
> 2021-05-11T14:41:22.8377793Z [command]/usr/bin/git config --local gc.auto 0
> 2021-05-11T14:41:22.8432455Z ##[endgroup]
> 2021-05-11T14:41:22.8440519Z ##[group]Setting up auth
> 2021-05-11T14:41:22.8459025Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
> 2021-05-11T14:41:22.8495747Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
> 2021-05-11T14:41:22.8935521Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
> 2021-05-11T14:41:22.8979878Z [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' || :
> 2021-05-11T14:41:22.9227089Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
> 2021-05-11T14:41:22.9268644Z ##[endgroup]
> 2021-05-11T14:41:22.9269780Z ##[group]Fetching the repository
> 2021-05-11T14:41:22.9279979Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +a775f7453f4706ebe9968f0b2be37919a3bf5970:refs/remotes/origin/main
> 2021-05-11T14:41:23.2581768Z remote: Enumerating objects: 11, done.
> 2021-05-11T14:41:23.2582452Z remote: Counting objects: 9% (1/11)
> 2021-05-11T14:41:23.2583044Z remote: Counting objects: 18% (2/11)
> 2021-05-11T14:41:23.2583591Z remote: Counting objects: 27% (3/11)
> 2021-05-11T14:41:23.2584132Z remote: Counting objects: 36% (4/11)
> 2021-05-11T14:41:23.2584666Z remote: Counting objects: 45% (5/11)
> 2021-05-11T14:41:23.2585388Z remote: Counting objects: 54% (6/11)
> 2021-05-11T14:41:23.2585948Z remote: Counting objects: 63% (7/11)
> 2021-05-11T14:41:23.2586459Z remote: Counting objects: 72% (8/11)
> 2021-05-11T14:41:23.2586991Z remote: Counting objects: 81% (9/11)
> 2021-05-11T14:41:23.2587523Z remote: Counting objects: 90% (10/11)
> 2021-05-11T14:41:23.2587987Z remote: Counting objects: 100% (11/11)
> 2021-05-11T14:41:23.2588500Z remote: Counting objects: 100% (11/11), done.
> 2021-05-11T14:41:23.2590524Z remote: Compressing objects: 11% (1/9)
> 2021-05-11T14:41:23.2591069Z remote: Compressing objects: 22% (2/9)
> 2021-05-11T14:41:23.2606960Z remote: Compressing objects: 33% (3/9)
> 2021-05-11T14:41:23.2607736Z remote: Compressing objects: 44% (4/9)
> 2021-05-11T14:41:23.2608252Z remote: Compressing objects: 55% (5/9)
> 2021-05-11T14:41:23.2608743Z remote: Compressing objects: 66% (6/9)
> 2021-05-11T14:41:23.2609255Z remote: Compressing objects: 77% (7/9)
> 2021-05-11T14:41:23.2609764Z remote: Compressing objects: 88% (8/9)
> 2021-05-11T14:41:23.2610253Z remote: Compressing objects: 100% (9/9)
> 2021-05-11T14:41:23.2610919Z remote: Compressing objects: 100% (9/9), done.
> 2021-05-11T14:41:23.2626599Z remote: Total 11 (delta 0), reused 9 (delta 0), pack-reused 0
> 2021-05-11T14:41:23.2742573Z From https://github.com/tina-hello/serverless-dns
> 2021-05-11T14:41:23.2744768Z * [new ref] a775f7453f4706ebe9968f0b2be37919a3bf5970 -> origin/main
> 2021-05-11T14:41:23.2784553Z ##[endgroup]
> 2021-05-11T14:41:23.2844820Z ##[group]Determining the checkout info
> 2021-05-11T14:41:23.2845482Z ##[endgroup]
> 2021-05-11T14:41:23.2846183Z ##[group]Checking out the ref
> 2021-05-11T14:41:23.2847295Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
> 2021-05-11T14:41:23.2903902Z Switched to a new branch 'main'
> 2021-05-11T14:41:23.2921033Z Branch 'main' set up to track remote branch 'main' from 'origin'.
> 2021-05-11T14:41:23.2922061Z ##[endgroup]
> 2021-05-11T14:41:23.2964922Z [command]/usr/bin/git log -1 --format='%H'
> 2021-05-11T14:41:23.2986562Z 'a775f7453f4706ebe9968f0b2be37919a3bf5970'
> 2021-05-11T14:41:23.3162491Z ##[group]Run npm install
> 2021-05-11T14:41:23.3163051Z �[36;1mnpm install�[0m
> 2021-05-11T14:41:23.3208501Z shell: /usr/bin/bash -e {0}
> 2021-05-11T14:41:23.3208891Z ##[endgroup]
> 2021-05-11T14:41:25.0841415Z added 15 packages from 3 contributors and audited 15 packages in 1.017s
> 2021-05-11T14:41:25.0939648Z found 0 vulnerabilities
> 2021-05-11T14:41:25.1044458Z
> 2021-05-11T14:41:25.1206503Z ##[group]Run cloudflare/[email protected]
> 2021-05-11T14:41:25.1207178Z with:
> 2021-05-11T14:41:25.1208296Z apiToken: ***
> 2021-05-11T14:41:25.1208700Z wranglerVersion: 1.10.0
> 2021-05-11T14:41:25.1210387Z preCommands: echo "**PreCommands Start**"
> if [ -z $(echo "" | xargs) ]; then echo "0" | wrangler secret put CF_AWS_ACCESSID; else echo "" | wrangler secret put CF_AWS_ACCESSID; fi;
> if [ -z $(echo "" | xargs) ]; then echo "0" | wrangler secret put CF_AWS_SECRET_KEY; else echo "" | wrangler secret put CF_AWS_SECRET_KEY; fi;
> if [ -z $(echo "" | xargs) ]; then echo "0" | wrangler secret put CF_AWS_REGION; else echo "" | wrangler secret put CF_AWS_REGION; fi;
> echo "**PreCommands End**"
>
> 2021-05-11T14:41:25.1212001Z env:
> 2021-05-11T14:41:25.1212823Z CF_ACCOUNT_ID: ***
> 2021-05-11T14:41:25.1213208Z ##[endgroup]
> 2021-05-11T14:41:25.1256229Z ##[command]/usr/bin/docker run --name a33c1ab209c92f6d544e1838939f8a399c6f2_4b97e8 --label 8a33c1 --workdir /github/workspace --rm -e CF_ACCOUNT_ID -e INPUT_APITOKEN -e INPUT_WRANGLERVERSION -e INPUT_PRECOMMANDS -e INPUT_APIKEY -e INPUT_EMAIL -e INPUT_ENVIRONMENT -e INPUT_WORKINGDIRECTORY -e INPUT_SECRETS -e INPUT_POSTCOMMANDS -e INPUT_PUBLISH -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_ACTION_REPOSITORY -e GITHUB_ACTION_REF -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/serverless-dns/serverless-dns":"/github/workspace" 8a33c1:ab209c92f6d544e1838939f8a399c6f2
> 2021-05-11T14:41:26.0776146Z Using API Token authentication
> 2021-05-11T14:41:33.3406443Z /usr/local/bin/wrangler -> /usr/local/lib/node_modules/@cloudflare/wrangler/run-wrangler.js
> 2021-05-11T14:41:33.3602999Z
> 2021-05-11T14:41:33.3603814Z > @cloudflare/[email protected] postinstall /usr/local/lib/node_modules/@cloudflare/wrangler
> 2021-05-11T14:41:33.3605562Z > node ./install-wrangler.js
> 2021-05-11T14:41:33.3606074Z
> 2021-05-11T14:41:33.5746874Z Downloading release https://workers.cloudflare.com/get-npm-wrangler-binary/1.10.0/x86_64-unknown-linux-musl
> 2021-05-11T14:41:34.2555822Z wrangler has been installed!
> 2021-05-11T14:41:34.5978404Z + @cloudflare/[email protected]
> 2021-05-11T14:41:34.5979004Z added 34 packages from 21 contributors in 2.527s
> 2021-05-11T14:41:34.6211436Z **PreCommands Start**
> 2021-05-11T14:41:34.7446218Z Enter the secret text you'd like assigned to the variable CF_AWS_ACCESSID on the script named serverless-dns:
> 2021-05-11T14:41:34.7454489Z Creating the secret for script name serverless-dns
> 2021-05-11T14:41:35.0231103Z Worker serverless-dns doesn't exist in the API yet. Creating a draft Worker so we can create new secret.
> 2021-05-11T14:41:35.0361952Z Error: No such file or directory (os error 2)
> 2021-05-11T14:41:35.2978090Z Post job cleanup.
> 2021-05-11T14:41:35.4082767Z [command]/usr/bin/git version
> 2021-05-11T14:41:35.4127767Z git version 2.31.1
> 2021-05-11T14:41:35.4167374Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
> 2021-05-11T14:41:35.4202174Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
> 2021-05-11T14:41:35.4429422Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
> 2021-05-11T14:41:35.4480954Z http.https://github.com/.extraheader
> 2021-05-11T14:41:35.4489680Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
> 2021-05-11T14:41:35.4523922Z [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' || :
> 2021-05-11T14:41:35.4833811Z Cleaning up orphan processes
ignoramous
Metadata
Metadata
Assignees
Labels
No labels