I am trying to deploy a django project in azure from GitHub repository but I am getting error during the deployment. I am getting this error:
Failed to deploy web package to App Service.
2022-01-02T15:32:52.2053869Z ##[error]Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
How can I resolve it?
2022-01-02T15:07:42.4101966Z with:
2022-01-02T15:07:42.4102399Z app-name: stockprojection
2022-01-02T15:07:42.4102889Z slot-name: Production
2022-01-02T15:07:42.4115035Z publish-profile: ***
2022-01-02T15:07:42.4115476Z package: .
2022-01-02T15:07:42.4116058Z ##[endgroup]
2022-01-02T15:07:43.9633760Z Package deployment using ZIP Deploy initiated.
2022-01-02T15:32:51.1581899Z Updating submodules.
2022-01-02T15:32:51.1583435Z Preparing deployment for commit id 'f47d703f2a'.
2022-01-02T15:32:51.1584587Z Repository path is /tmp/zipdeploy/extracted
2022-01-02T15:32:51.1585520Z Running oryx build...
2022-01-02T15:32:52.1954843Z Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.9 -i /tmp/8d9ce01a48e2911 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log
2022-01-02T15:32:52.1957351Z Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
2022-01-02T15:32:52.1958337Z You can report issues at https://github.com/Microsoft/Oryx/issues
2022-01-02T15:32:52.1992563Z
2022-01-02T15:32:52.1993572Z Oryx Version: 0.2.20210826.1, Commit: f8651349d0c78259bb199593b526450568c2f94a, ReleaseTagName: 20210826.1
2022-01-02T15:32:52.1994721Z
2022-01-02T15:32:52.1995241Z Build Operation ID: |da22zDrMO/Q=.cac2beba_
2022-01-02T15:32:52.1996043Z Repository Commit : f47d703f2a594452a83ae4301b5d6ce8
2022-01-02T15:32:52.1996497Z
2022-01-02T15:32:52.1997051Z Detecting platforms...
2022-01-02T15:32:52.1997609Z Detected following platforms:
2022-01-02T15:32:52.1998100Z python: 3.9.7
2022-01-02T15:32:52.1999279Z Version '3.9.7' of platform 'python' is not installed. Generating script to install it...
2022-01-02T15:32:52.1999807Z
2022-01-02T15:32:52.2000549Z Using intermediate directory '/tmp/8d9ce01a48e2911'.
2022-01-02T15:32:52.2001012Z
2022-01-02T15:32:52.2001533Z Copying files to the intermediate directory...
2022-01-02T15:32:52.2002087Z Done in 0 sec(s).
2022-01-02T15:32:52.2002345Z
2022-01-02T15:32:52.2002782Z Source directory : /tmp/8d9ce01a48e2911
2022-01-02T15:32:52.2003367Z Destination directory: /home/site/wwwroot
2022-01-02T15:32:52.2003726Z
2022-01-02T15:32:52.2003938Z
2022-01-02T15:32:52.2004699Z Downloading and extracting 'python' version '3.9.7' to '/tmp/oryx/platforms/python/3.9.7'...
2022-01-02T15:32:52.2005361Z Downloaded in 1 sec(s).
2022-01-02T15:32:52.2005817Z Verifying checksum...
2022-01-02T15:32:52.2006290Z Extracting contents...
2022-01-02T15:32:52.2006715Z Done in 24 sec(s).
2022-01-02T15:32:52.2006959Z
2022-01-02T15:32:52.2007462Z Python Version: /tmp/oryx/platforms/python/3.9.7/bin/python3.9
2022-01-02T15:32:52.2008171Z Creating directory for command manifest file if it doesnot exist
2022-01-02T15:32:52.2008806Z Removing existing manifest file
2022-01-02T15:32:52.2009356Z Python Virtual Environment: antenv
2022-01-02T15:32:52.2009917Z Creating virtual environment...
2022-01-02T15:32:52.2010491Z Activating virtual environment...
2022-01-02T15:32:52.2011006Z Running pip install...
2022-01-02T15:32:52.2011541Z [15:08:42+0000] Collecting beautifulsoup4==4.10.0
2022-01-02T15:32:52.2012658Z [15:08:42+0000] Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
2022-01-02T15:32:52.2013461Z [15:08:43+0000] Collecting Django==3.2.7
2022-01-02T15:32:52.2014278Z [15:08:43+0000] Downloading Django-3.2.7-py3-none-any.whl (7.9 MB)
2022-01-02T15:32:52.2015027Z [15:08:45+0000] Collecting djangorestframework==3.13.0
2022-01-02T15:32:52.2016199Z [15:08:45+0000] Downloading djangorestframework-3.13.0-py3-none-any.whl (958 kB)
2022-01-02T15:32:52.2018261Z [15:08:46+0000] Collecting matplotlib==3.4.2
2022-01-02T15:32:52.2019288Z [15:08:48+0000] Downloading matplotlib-3.4.2-cp39-cp39-manylinux1_x86_64.whl (10.3 MB)
2022-01-02T15:32:52.2020051Z [15:08:49+0000] Collecting nltk==3.6.2
2022-01-02T15:32:52.2020817Z [15:08:49+0000] Downloading nltk-3.6.2-py3-none-any.whl (1.5 MB)
2022-01-02T15:32:52.2021432Z [15:08:50+0000] Collecting nsepy==0.8
2022-01-02T15:32:52.2022116Z [15:08:50+0000] Downloading nsepy-0.8.tar.gz (33 kB)
2022-01-02T15:32:52.2022924Z [15:08:53+0000] Collecting numpy==1.19.5
2022-01-02T15:32:52.2023827Z [15:08:54+0000] Downloading numpy-1.19.5-cp39-cp39-manylinux2010_x86_64.whl (14.9 MB)
2022-01-02T15:32:52.2024538Z [15:08:57+0000] Collecting pandas==1.3.1
2022-01-02T15:32:52.2025512Z [15:08:57+0000] Downloading pandas-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB)
2022-01-02T15:32:52.2026293Z [15:08:59+0000] Collecting requests==2.26.0
2022-01-02T15:32:52.2027195Z [15:08:59+0000] Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
2022-01-02T15:32:52.2027944Z [15:09:01+0000] Collecting scikit_learn==1.0.1
2022-01-02T15:32:52.2028928Z [15:09:01+0000] Downloading scikit_learn-1.0.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (24.7 MB)
2022-01-02T15:32:52.2029713Z [15:09:07+0000] Collecting tensorflow==2.5.0
2022-01-02T15:32:52.2032336Z WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/dc/0e/72070fe6d5774bfc6b73e857f1747ba99b95cb808c46b709ab7c9ec757eb/tensorflow-2.5.0-cp39-cp39-manylinux2010_x86_64.whl
2022-01-02T15:32:52.2034884Z [15:09:23+0000] Downloading tensorflow-2.5.0-cp39-cp39-manylinux2010_x86_64.whl (454.4 MB)
2022-01-02T15:32:52.2035989Z An unknown error has occurred. Check the diagnostic log for details.
2022-01-02T15:32:52.2040696Z ##[error]Failed to deploy web package to App Service.
2022-01-02T15:32:52.2053869Z ##[error]Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
2022-01-02T15:32:52.2056058Z App Service Application URL: http://stockprojection.azurewebsites.net```
Related
I am really suffering right now.. and I need to know why..
Somefiles (Excutable file like .exe) are not working if I do deploy with my commands. (And auto deploying with IntelliJ working perfectly after deploy)
and I really want to do same deploy like InteliJ does.
and here is the deploy code. above one is I did myself
and below one is IntelliJ did
I really want to do same with IntelliJ Auto Deploy
See code please
---- DO IT MANUALLY WITH COMMANDS
In short, I used this
gcloud builds submit --tag gcr.io/<PROJECT-ID>
gcloud run deploy --image gcr.io/<PROJECT-ID> --platform managed
In Long, Full Code
PS C:\go\abc-origin> gcloud builds submit --tag gcr.io/abc-b13a0/abc-origin
Creating temporary tarball archive of 82 file(s) totalling 9.3 MiB before compression.
Some files were not included in the source upload.
Check the gcloud log [C:\Users\abc\AppData\Roaming\gcloud\logs\2022.03.28\11.34.38.416229.log] to see which files and the contents of the
default gcloudignore file used (see `$ gcloud topic gcloudignore` to learn
more).
Uploading tarball of [.] to [gs://abc-b13a0_cloudbuild/source/1648434878.494229-ae5063c025314197813db4b93ec85691.tgz]
Created [https://cloudbuild.googleapis.com/v1/projects/abc-b13a0/locations/global/builds/313435fd-8c72-4230-9777-c9eb12b739fa].
Logs are available at [https://console.cloud.google.com/cloud-build/builds/313435fd-8c72-4230-9777-c9eb12b739fa?project=291094557957].
----------------------------------------------------------------------------------------- REMOTE BUILD OUTPUT ------------------------------------------------------------------------------------------
starting build "313435fd-8c72-4230-9777-c9eb12b739fa"
FETCHSOURCE
Fetching storage object: gs://abc-b13a0_cloudbuild/source/1648434878.494229-ae5063c025314197813db4b93ec85691.tgz#1648434880757751
Copying gs://abc-b13a0_cloudbuild/source/1648434878.494229-ae5063c025314197813db4b93ec85691.tgz#1648434880757751...
/ [1 files][ 8.6 MiB/ 8.6 MiB]
Operation completed over 1 objects/8.6 MiB.
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
Sending build context to Docker daemon 899.1kB
Step 1/7 : FROM node:17-slim
17-slim: Pulling from library/node
ae13dd578326: Pulling fs layer
a0bc29d3bc64: Pulling fs layer
d0e0f1a959b4: Pulling fs layer
fe23f6dccded: Pulling fs layer
f23aa4f1504d: Pulling fs layer
fe23f6dccded: Waiting
f23aa4f1504d: Waiting
a0bc29d3bc64: Download complete
fe23f6dccded: Verifying Checksum
fe23f6dccded: Download complete
ae13dd578326: Verifying Checksum
ae13dd578326: Download complete
f23aa4f1504d: Verifying Checksum
f23aa4f1504d: Download complete
d0e0f1a959b4: Verifying Checksum
d0e0f1a959b4: Download complete
ae13dd578326: Pull complete
a0bc29d3bc64: Pull complete
d0e0f1a959b4: Pull complete
fe23f6dccded: Pull complete
f23aa4f1504d: Pull complete
Digest: sha256:3894373926629c8e2c437314fb253b5d261efa6bddb2c947474406470fee2890
Status: Downloaded newer image for node:17-slim
---> 83d5dcf3f6f6
Step 2/7 : WORKDIR /usr/src/app
---> Running in addca1bcb85e
Removing intermediate container addca1bcb85e
---> e0568396db62
Step 3/7 : COPY . .
---> ff239f669d09
Step 4/7 : COPY . ./
---> 78544462e12c
Step 5/7 : RUN npm install
---> Running in 2e558015a5d5
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated sane#4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated #types/mongoose#5.11.97: Mongoose publishes its own types, so you do not need to install this package.
npm WARN deprecated #types/helmet#4.0.0: This is a stub types definition. helmet provides its own type definitions, so you do not need this installed.
npm WARN deprecated #types/iconv-lite#0.0.1: This is a stub types definition for iconv-lite (https://github.com/ashtuchkin/iconv-lite). iconv-lite provides its own type definitions, so you don\'t need
#types/iconv-lite installed!
npm WARN deprecated #hapi/pinpoint#2.0.0: Moved to 'npm install #sideway/pinpoint'
npm WARN deprecated #hapi/formula#2.0.0: Moved to 'npm install #sideway/formula'
npm WARN deprecated #hapi/address#4.1.0: Moved to 'npm install #sideway/address'
npm WARN deprecated #hapi/joi#17.1.1: Switch to 'npm install joi'
npm WARN deprecated tslint#6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
added 1011 packages, and audited 1012 packages in 55s
77 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Removing intermediate container 2e558015a5d5
---> 5d7ff12b8075
Step 6/7 : RUN npm run build
---> Running in a2c0d89306c7
> nodejs-cloud-run-hello-world#0.0.1 build
> tsc --build
Removing intermediate container a2c0d89306c7
---> 96d13c4da119
Step 7/7 : CMD ["npm","start"]
---> Running in 3aaafeaa519c
Removing intermediate container 3aaafeaa519c
---> 0ffe22dfcae7
Successfully built 0ffe22dfcae7
Successfully tagged gcr.io/abc-b13a0/abc-origin:latest
PUSH
Pushing gcr.io/abc-b13a0/abc-origin
The push refers to repository [gcr.io/abc-b13a0/abc-origin]
1536374452a8: Preparing
6b04bb227785: Preparing
e86eb4a3c682: Preparing
5f8624a6a2ac: Preparing
05d059f19b02: Preparing
40ed0919f5f8: Preparing
016b2cae399b: Preparing
fd91c8bc8266: Preparing
009cb98a6eb1: Preparing
3a626bb08c24: Preparing
40ed0919f5f8: Waiting
016b2cae399b: Waiting
fd91c8bc8266: Waiting
009cb98a6eb1: Waiting
3a626bb08c24: Waiting
5f8624a6a2ac: Pushed
e86eb4a3c682: Pushed
05d059f19b02: Pushed
1536374452a8: Pushed
40ed0919f5f8: Layer already exists
009cb98a6eb1: Layer already exists
fd91c8bc8266: Layer already exists
016b2cae399b: Layer already exists
3a626bb08c24: Layer already exists
6b04bb227785: Pushed
latest: digest: sha256:926c748640d78c396863bdf6fa8c246247bf0619e5a2764e87827f605349f6bc size: 2415
DONE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ID CREATE_TIME DURATION SOURCE IMAGES
STATUS
313435fd-8c72-4230-9777-c9eb12b739fa 2022-03-28T02:34:41+00:00 1M49S gs://abc-b13a0_cloudbuild/source/1648434878.494229-ae5063c025314197813db4b93ec85691.tgz gcr.io/abc-b13a0/abc-origin
(+1 more) SUCCESS
PS C:\go\abc-origin> gcloud run deploy --image gcr.io/abc-b13a0/abc-origin --platform managed
---- INTELLIJ AUTO CLOUD RUN DEPLOYING DEFAULT
C:\Users\Abc\AppData\Local\google\ct4j-cloud-sdk\LATEST\google-cloud-sdk\bin\gcloud.cmd run deploy abc-origin --quiet --image gcr.io/abc-b13a0/abc-origin --platform managed --project abc-b13a0 --memory 256Mi --timeout 300 --concurrency 80 --max-instances 1000 --cpu 1 --clear-env-vars --clear-cloudsql-instances --client-name "Cloud Code for IntelliJ" --client-version 22.2.1-213 --region asia-northeast1 --allow-unauthenticated --clear-vpc-connector
Preparing Google Cloud SDK (this may take several minutes for first time setup)...
Creating skaffold file: C:\Users\Abc\AppData\Local\Temp\skaffold5770358230968925998.tmp...
Configuring image push settings in C:\Users\Abc\AppData\Local\Temp\skaffold5770358230968925998.tmp...
C:\Users\Abc\AppData\Local\cloud-code\bin\versions\06e58efc4201989233a521d3211c1a2558e7db7b947e23aa203e5d2e46c990d3\skaffold.exe build --filename C:\Users\Abc\AppData\Local\Temp\skaffold5770358230968925998.tmp --tag latest --skip-tests=true
Generating tags...
- gcr.io/abc-b13a0/abc-origin -> gcr.io/abc-b13a0/abc-origin:latest
Checking cache...
- gcr.io/abc-b13a0/abc-origin: Not found. Building
Starting build...
Building [gcr.io/abc-b13a0/abc-origin]...
Pushing code to gs://abc-b13a0_cloudbuild/source/abc-b13a0-5556f485-72cc-4ccf-967d-bfdd1d0d5329.tar.gz
Logs are available at
https://console.cloud.google.com/m/cloudstorage/b/abc-b13a0_cloudbuild/o/log-99f843b0-8ff0-4e4e-99d8-7abdc7bf30e4.txt
starting build "99f843b0-8ff0-4e4e-99d8-7abdc7bf30e4"
FETCHSOURCE
Fetching storage object: gs://abc-b13a0_cloudbuild/source/abc-b13a0-5556f485-72cc-4ccf-967d-bfdd1d0d5329.tar.gz#1648433508081094
Copying gs://abc-b13a0_cloudbuild/source/abc-b13a0-5556f485-72cc-4ccf-967d-bfdd1d0d5329.tar.gz#1648433508081094...
/ [1 files][ 9.2 MiB/ 9.2 MiB]
Operation completed over 1 objects/9.2 MiB.
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
Sending build context to Docker daemon 10.54MB
Step 1/7 : FROM node:17-slim
17-slim: Pulling from library/node
ae13dd578326: Pulling fs layer
a0bc29d3bc64: Pulling fs layer
d0e0f1a959b4: Pulling fs layer
fe23f6dccded: Pulling fs layer
f23aa4f1504d: Pulling fs layer
fe23f6dccded: Waiting
f23aa4f1504d: Waiting
a0bc29d3bc64: Verifying Checksum
a0bc29d3bc64: Download complete
fe23f6dccded: Verifying Checksum
fe23f6dccded: Download complete
ae13dd578326: Verifying Checksum
ae13dd578326: Download complete
f23aa4f1504d: Verifying Checksum
f23aa4f1504d: Download complete
d0e0f1a959b4: Verifying Checksum
d0e0f1a959b4: Download complete
ae13dd578326: Pull complete
a0bc29d3bc64: Pull complete
d0e0f1a959b4: Pull complete
fe23f6dccded: Pull complete
f23aa4f1504d: Pull complete
Digest: sha256:3894373926629c8e2c437314fb253b5d261efa6bddb2c947474406470fee2890
Status: Downloaded newer image for node:17-slim
---> 83d5dcf3f6f6
Step 2/7 : WORKDIR /usr/src/app
---> Running in 5c7029771a25
Removing intermediate container 5c7029771a25
---> 7b2ba07f192a
Step 3/7 : COPY . .
---> 8e1720a22a0a
Step 4/7 : COPY . ./
---> 3437788621d6
Step 5/7 : RUN npm install
---> Running in 77bc58474b9a
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sane#4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated #types/helmet#4.0.0: This is a stub types definition. helmet provides its own type definitions, so you do not need this installed.
npm WARN deprecated #types/mongoose#5.11.97: Mongoose publishes its own types, so you do not need to install this package.
npm WARN deprecated #types/iconv-lite#0.0.1: This is a stub types definition for iconv-lite (https://github.com/ashtuchkin/iconv-lite). iconv-lite provides its own type definitions, so you don\'t need #types/iconv-lite installed!
npm WARN deprecated #hapi/formula#2.0.0: Moved to 'npm install #sideway/formula'
npm WARN deprecated #hapi/pinpoint#2.0.0: Moved to 'npm install #sideway/pinpoint'
npm WARN deprecated #hapi/address#4.1.0: Moved to 'npm install #sideway/address'
npm WARN deprecated #hapi/joi#17.1.1: Switch to 'npm install joi'
npm WARN deprecated tslint#6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
added 1011 packages, and audited 1012 packages in 58s
77 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Removing intermediate container 77bc58474b9a
---> 716aa89b15ed
Step 6/7 : RUN npm run build
---> Running in 88daa40576c1
> nodejs-cloud-run-hello-world#0.0.1 build
> tsc --build
Removing intermediate container 88daa40576c1
---> f06d20cb4695
Step 7/7 : CMD ["npm","start"]
---> Running in 114dccd18b7b
Removing intermediate container 114dccd18b7b
---> 44eae9ff6f01
Successfully built 44eae9ff6f01
Successfully tagged gcr.io/abc-b13a0/abc-origin:latest
PUSH
Pushing gcr.io/abc-b13a0/abc-origin:latest
The push refers to repository [gcr.io/abc-b13a0/abc-origin]
5ca13cc3b48f: Preparing
7e236c8bde4e: Preparing
da179f551c57: Preparing
bf4615d388ff: Preparing
c349e402c854: Preparing
40ed0919f5f8: Preparing
016b2cae399b: Preparing
fd91c8bc8266: Preparing
009cb98a6eb1: Preparing
3a626bb08c24: Preparing
40ed0919f5f8: Waiting
016b2cae399b: Waiting
fd91c8bc8266: Waiting
009cb98a6eb1: Waiting
3a626bb08c24: Waiting
c349e402c854: Pushed
40ed0919f5f8: Layer already exists
5ca13cc3b48f: Pushed
fd91c8bc8266: Layer already exists
016b2cae399b: Layer already exists
009cb98a6eb1: Layer already exists
3a626bb08c24: Layer already exists
bf4615d388ff: Pushed
da179f551c57: Pushed
7e236c8bde4e: Pushed
latest: digest: sha256:efe017d86ad7a5f43a800b3acdb9519f1a0cf6aefc80d0291ba2f84fc32c08fa size: 2417
DONE
C:\Users\Abc\AppData\Local\google\ct4j-cloud-sdk\LATEST\google-cloud-sdk\bin\gcloud.cmd run deploy abc-origin --quiet --image gcr.io/abc-b13a0/abc-origin --platform managed --project abc-b13a0 --memory 256Mi --timeout 300 --concurrency 80 --max-instances 1000 --cpu 1 --clear-env-vars --clear-cloudsql-instances --client-name "Cloud Code for IntelliJ" --client-version 22.2.1-213 --region asia-northeast1 --allow-unauthenticated --clear-vpc-connector
Deploying container to Cloud Run service [abc-origin] in project [abc-b13a0]
If IntelliJ does, it also declares a strange skaffold build statement. I want to follow IntelliJ for everything. How exactly should I run the command? I cannot rely on AUTO DEPLOY every time.
DOCKERFILE
FROM node:17-slim
WORKDIR /usr/src/app
COPY . .
COPY . ./
RUN npm install
RUN npm run build
CMD ["npm","start"]
A .tar.gz file is always a simple archive of files, very much like a standard WinZip file. In the general UNIX world, a .tgz file is actually the same as a .tar.gz file. You can freely switch the extensions of these two without affecting the uncompression of the file. For more on this, you may refer to the link.
Now, coming to the deployment issue, as mentioned in the documentation,
To submit a build with local source source.tgz asynchronously:
gcloud builds submit "source.tgz" --tag=gcr.io/my-project/image --async
Also, have a look at this Stackoverflow case.
I realized that the Cloud Code provided by GCP is a bit more futuristic than what can be solved with commands in the terminal. (more compatible in various ways) I've decided that intellij, vscode, or a shell editor is the best choice and there is no alternative for now.
--ADD
I just checked cloud shell editor cloud run deploy using cloud code. and it is not working too (can`t excute some program like I said in this question) I cloned from cloud source repository so, it is same code. (I checked)
What makes IntelliJ cloud code special exactly? I wonder
Why only this works..
I am trying to deploy my web app built with flask in python to elastic beanstalk. This is the first time I use this service and I am trying to upload it from the console of AWDS. However, the log file displays errors with the file requirements.txt, which I created from my local computer by typing "pip freeze > requirements.txt". This created me a 360 lines requirements file (is it not too much?) and the log displays errors like this one all the time like:
--------------------------------------------------------
2020/11/10 09:22:02.505005 [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt failed with error exit status 1. Stderr:ERROR: Could not find a version that satisfies the requirement anaconda-client==1.7.2 (from -r requirements.txt (line 5)) (from versions: 1.1.1, 1.2.2)
ERROR: No matching distribution found for anaconda-client==1.7.2 (from -r requirements.txt (line 5))
2020/11/10 09:22:02.505022 [INFO] Executing cleanup logic
2020/11/10 09:22:02.505119 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp":1605000122,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1605000122,"severity":"ERROR"}]}]}
---------------------------------------------------------
I deleted the entry "anaconda-client==1.7.2" and still does not work. Same problem as well with anaconda-navigator==1.9.12, anaconda-project==0.8.3, Automat==20.2.0... I erased them all but there is always a new wrong requirement.
I guess the requirements.txt file is just wrong... any ideas to solve the problem? Did I
create the requirements.txt correctly? Might it be any kind of problem with the enviroments?
thanks a lot
I have a Jenkins/Conan build that has been working for a year. All of a sudden, it is failing to upload the binary package when "conan upload" is executed. However, it still uploads the recipe.
New output:
NetworkKernel/1.0.0#XXX/testing: Package 'cc8b57af37a13f1b22ee796d76b2fcf820a31cb8' created
conan upload NetworkKernel/1.0.0#XXX/testing -r=XXX--all --force --confirm --retry 20 --retry-wait 30
Uploading NetworkKernel/1.0.0#XXX/testing to remote 'XXX'
Uploading conanmanifest.txt
Uploading conanfile.py
Uploading conan_sources.tgz
Uploaded conan recipe 'NetworkKernel/1.0.0#XXX/testing' to 'XXX': https://example.com/artifactory/api/conan/XXX-CONAN
Old output:
Uploading NetworkKernel/1.1.0#XXX/testing to remote 'XXX'
Compressing recipe sources...
Uploading conanmanifest.txt
Uploading conanfile.py
Uploading conan_sources.tgz
Uploaded conan recipe 'NetworkKernel/1.1.0#XXX/testing' to 'xxx': https://example.com/artifactory/api/conan/XXX-CONAN
Uploading package 1/1: cc8b57af37a13f1b22ee796d76b2fcf820a31cb8
Compressing package...
Requesting upload permissions...
Requesting upload permissions...Done!
Uploading conanmanifest.txt
Uploading conaninfo.txt
Uploading conan_package.tgz
Windows OS
Artifactory version: 5.9.7
Conan version: 1.0.0
As you can see, it is only uploading the recipe even thought --all is specified (and the package is successfully created). I think someone messed with the build machine, but I can't figure out what has changed. Thanks for your help
When I am trying to deploy my shiny app at shinyapps.io I get below error :
> deployApp()
Preparing to deploy application...DONE
Uploading bundle for application: 187055...DONE
Deploying bundle: 857060 for application: 187055 ...
Waiting for task: 416072120
building: Processing bundle: 857060
building: Parsing manifest
building: Building image: 849457
building: Installing system dependencies
################################ Begin Task Log ################################
[2017-06-07T17:28:40.200495546+0000] Execute script: packages/build/nloptr.sh
+ set -e
+ VERSION=2.4.2
+ cd /tmp
+ curl -O http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0################################# End Task Log #################################
Error: Unhandled Exception: Child Task 416072122 failed: Error building image: Build exited with non-zero status: 56
Has anyone come across this error. Appreciate if someone help me on how to resolve this. I am using R version 3.4.0
Thanks,
It looks like your app require NLopt, but shinyapps.io failed to install the package. The package installation seemed to be some shell script which may not work in the shinyapps.io server(because of permission etc).
Basically the deployment process scan your file and environment, then try to duplicate the dependency packages in the server. If you used CRAN version the server will also install CRAN version, which should not need build from source or running some shell script. If you used github version server will also try to use github version or build from source, which could have more dependency requirement.
Another possibility is the R package is just the interface and you need to install the actual library, which failed to be installed in server.
R packages will often rely on operating system packages to be
installed on the server. If your application happens to use an R
package that requires a system library that is not installed by
default, please let us know by filing an issue, or a pull request, at
shinyapps-package-dependencies
I'm able to use pysftp on kivy, but I can't package my app using this requirement. Using buildozer, in the message says I'm using pip 8.1.1 and there is another version, 8.1.2. But I checked my version and my one already is 8.1.2. And, of course, I can install pysftp using pip install pysftp. My log file is this:
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Programa de gerenciamento de pacotes Debian 'dpkg' versão 1.17.5 (amd64).
Isto é software livre; veja a GNU General Public License versão 2 ou
posterior para condições de cópia. Não existe NENHUMA garantia.
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool
# Install platform
# Apache ANT found at /home/awulll/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/awulll/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/awulll/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/awulll/dapapp/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph click cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer ffpyplayer_tito flask freetype gevent greenlet harfbuzz hostpython igraph itsdangerous jinja2 jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto markupsafe midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws werkzeug wokkel zeroconf zope
# Remove directory and subdirectory /home/awulll/dapapp/.buildozer/applibs
# Create directory /home/awulll/dapapp/.buildozer/applibs
# Run 'bash -c "source venv/bin/activate && env"'
# Cwd /home/awulll/dapapp/.buildozer
XDG_VTNR=8
XDG_SESSION_ID=c1
SSH_AGENT_PID=2191
GPG_AGENT_INFO=/run/user/1000/keyring-JXgOZD/gpg:0:1
VTE_VERSION=3409
SHELL=/bin/bash
TERM=xterm
XDG_SESSION_COOKIE=9cf5cdba17a429f4e3205d8a54ac9c66-1463226321.499664-1491359051
GJS_DEBUG_OUTPUT=stderr
WINDOWID=39845895
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-JXgOZD
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
USER=awulll
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SSH_AUTH_SOCK=/run/user/1000/keyring-JXgOZD/ssh
SESSION_MANAGER=local/awulll-mint:#/tmp/.ICE-unix/2054,unix/awulll-mint:/tmp/.ICE-unix/2054
USERNAME=awulll
DEFAULTS_PATH=/usr/share/gconf/default.default.path
VIRTUAL_ENV=/home/awulll/dapapp/.buildozer/venv
XDG_CONFIG_DIRS=/etc/xdg/xdg-default:/etc/xdg
PATH=/home/awulll/dapapp/.buildozer/venv/bin:/home/awulll/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/awulll/bin:/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin://usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
DESKTOP_SESSION=default
ANDROIDAPI=19
GDM_XSERVER_LOCATION=local
PWD=/home/awulll/dapapp/.buildozer
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
LANG=pt_BR.UTF-8
GNOME_KEYRING_PID=1978
MANDATORY_PATH=/usr/share/gconf/default.mandatory.path
ANDROIDNDK=/home/awulll/.buildozer/android/platform/android-ndk-r9c
PS1=(venv)
MDM_XSERVER_LOCATION=local
GDMSESSION=default
PACKAGES_PATH=/home/awulll/.buildozer/android/packages
CINNAMON_VERSION=2.4.8
HOME=/home/awulll
SHLVL=2
XDG_SEAT=seat0
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XDG_SESSION_DESKTOP=default
ANDROIDSDK=/home/awulll/.buildozer/android/platform/android-sdk-20
LOGNAME=awulll
XDG_DATA_DIRS=/usr/share/default:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-fdxlKZ9y2o,guid=226dcf0498f8da9740aa1f9157370fd2
MDMSESSION=default
ANDROIDNDKVER=r9c
WINDOWPATH=8
TEXTDOMAIN=im-config
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/1000
MDM_LANG=pt_BR.UTF-8
XDG_CURRENT_DESKTOP=X-Cinnamon
TEXTDOMAINDIR=/usr/share/locale/
XAUTHORITY=/home/awulll/.Xauthority
COLORTERM=gnome-terminal
_=/usr/bin/env
# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd /home/awulll/dapapp/.buildozer
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
# Install requirement datetime in virtualenv
# Run 'pip install --target=/home/awulll/dapapp/.buildozer/applibs datetime'
# Cwd /home/awulll/dapapp/.buildozer
Collecting datetime
/home/awulll/dapapp/.buildozer/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/awulll/dapapp/.buildozer/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting zope.interface (from datetime)
Collecting pytz (from datetime)
Using cached pytz-2016.4-py2.py3-none-any.whl
Collecting setuptools (from zope.interface->datetime)
Using cached setuptools-21.0.0-py2.py3-none-any.whl
Installing collected packages: setuptools, zope.interface, pytz, datetime
Successfully installed datetime pytz setuptools-20.9.0 zope.interface
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd /home/awulll/dapapp/.buildozer
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
# Install requirement pysftp in virtualenv
# Run 'pip install --target=/home/awulll/dapapp/.buildozer/applibs pysftp'
# Cwd /home/awulll/dapapp/.buildozer
Collecting pysftp
/home/awulll/dapapp/.buildozer/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/awulll/dapapp/.buildozer/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached pysftp-0.2.8.tar.gz
Collecting paramiko>=1.7.7 (from pysftp)
Using cached paramiko-2.0.0-py2.py3-none-any.whl
Collecting pyasn1>=0.1.7 (from paramiko>=1.7.7->pysftp)
Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting cryptography>=1.1 (from paramiko>=1.7.7->pysftp)
Using cached cryptography-1.3.2.tar.gz
Collecting idna>=2.0 (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached idna-2.1-py2.py3-none-any.whl
Collecting six>=1.4.1 (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting setuptools>=11.3 (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached setuptools-21.0.0-py2.py3-none-any.whl
Collecting enum34 (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached enum34-1.1.5-py2.py3-none-any.whl
Collecting ipaddress (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.1->paramiko>=1.7.7->pysftp)
Using cached cffi-1.6.0.tar.gz
Complete output from command python setup.py egg_info:
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eC7Zv8/cffi/
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# Command failed: pip install --target=/home/awulll/dapapp/.buildozer/applibs pysftp
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
real 0m5.286s
user 0m3.188s
sys 0m0.357s
I already tried check the link suggested in th log, but it doesn't help me too.
It looks like one of the pysftp dependencies is pulling in cffi as a further dependency, which needs compilation and therefore can't be built by python-for-android without a recipe. p4a already has a cffi recipe so it will work - maybe the easiest option is to add a pysftp recipe.
You could also try getting the newest buildozer release and running buildozer android_new debug instead. Changes to dependency resolution might mean it work, but it also might not help - especially if buildozer itself is managing this part.