virt-install aarch64 vm on amd64 host failed - qemu

background
I was going to install a aarch64-ubuntu VM on my centos 7.5 Host.
Installation of qemu-aarch64 and virt is cool.
Also config default pool by CMD virsh pool-define-as --name default --type dir --target /data/qemu/guest_images
When I type this virt-install --name ubuntu--aarch64 --ram 4096 --arch aarch64 --boot uefi --disk size=20 --cdrom /data/qemu/ubuntu-20.04.3-live-server-arm64.iso and follow TUI, an error came out:
The crash log is /var/crash/1631687637.154057503.block_probe_fail.crash, then I typed cat /var/crash/1631687637.154057503.block_probe_fail.crash | grep 'ERROR' -A 10 -B 10, got this:
2021-09-15 06:33:36,648 DEBUG root:39 start: subiquity/Refresh/configure_snapd:
2021-09-15 06:33:36,650 DEBUG root:39 start: subiquity/Refresh/configure_snapd/get_details:
2021-09-15 06:33:36,720 DEBUG root:39 start: subiquity/Refresh/check_for_update:
2021-09-15 06:33:37,626 DEBUG root:39 start: subiquity/Install/install:
2021-09-15 06:33:37,761 DEBUG subiquity.server.controllers.snaplist:59 loading list of snaps
2021-09-15 06:33:37,818 DEBUG root:39 start: subiquity/Filesystem/_probe:
2021-09-15 06:33:37,947 DEBUG root:39 start: subiquity/Refresh/check_for_update:
2021-09-15 06:33:37,977 DEBUG root:39 start: subiquity/SnapList/loader:
2021-09-15 06:33:37,988 DEBUG root:39 start: subiquity/Filesystem/_probe/probe_once: restricted=False
2021-09-15 06:33:38,054 DEBUG urllib3.connectionpool:826 Starting new HTTPS connection (1): geoip.ubuntu.com
2021-09-15 06:33:38,767 ERROR root:39 finish: subiquity/Refresh/check_for_update: FAIL: cancelled
2021-09-15 06:33:38,913 DEBUG root:39 start: subiquity/SnapList/loader/list:
2021-09-15 06:33:39,795 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:40,153 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:41,258 INFO aiohttp.access:206 [15/Sep/2021:06:33:38 +0000] "GET /meta/status?cur=null HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:41,544 DEBUG urllib3.connectionpool:396 http://localhost:None "GET /v2/snaps/subiquity HTTP/1.1" 200 975
2021-09-15 06:33:42,030 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:42,209 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:42,290 INFO aiohttp.access:206 [15/Sep/2021:06:33:38 +0000] "GET /meta/status?cur=null HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:42,467 DEBUG root:39 finish: subiquity/Refresh/configure_snapd/get_details: SUCCESS: current version of snap is: '21.08.2'
2021-09-15 06:33:42,537 DEBUG root:39 start: subiquity/Refresh/configure_snapd/switching: switching subiquity to stable/ubuntu-20.04.3
--
2021-09-15 06:33:54,649 DEBUG subiquitycore.utils:48 run_command called: ['ssh-keygen', '-lf', '/etc/ssh/ssh_host_ed25519_key']
2021-09-15 06:33:55,604 DEBUG urllib3.connectionpool:396 https://geoip.ubuntu.com:443 "GET /lookup HTTP/1.1" 200 None
2021-09-15 06:33:56,263 DEBUG subiquitycore.utils:61 run_command ['ssh-keygen', '-lf', '/etc/ssh/ssh_host_ed25519_key'] exited with code 0
2021-09-15 06:33:56,477 INFO root:39 finish: subiquity/Meta/ssh_info_GET: SUCCESS: 200 {"username": "installer", "password_kind": "KNOWN", "password": "FRbjgB3iY7r7...
2021-09-15 06:33:56,549 INFO aiohttp.access:206 [15/Sep/2021:06:33:49 +0000] "GET /meta/ssh_info HTTP/1.1" 200 642 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:56,611 DEBUG root:39 start: subiquity/Locale/GET:
2021-09-15 06:33:56,631 DEBUG root:39 finish: subiquity/Locale/GET: SUCCESS: 200 "C.UTF-8"
2021-09-15 06:33:56,682 INFO aiohttp.access:206 [15/Sep/2021:06:33:49 +0000] "GET /locale HTTP/1.1" 200 200 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:56,807 DEBUG root:39 finish: subiquity/Refresh/configure_snapd/switching: SUCCESS: switched to stable/ubuntu-20.04.3
2021-09-15 06:33:56,830 DEBUG root:39 finish: subiquity/Refresh/configure_snapd: SUCCESS:
2021-09-15 06:33:56,968 ERROR block-discover:332 block probing failed restricted=False
Traceback (most recent call last):
File "/snap/subiquity/2654/lib/python3.6/site-packages/subiquity/server/controllers/filesystem.py", line 325, in _probe
await asyncio.wait_for(self._probe_once_task.task, 15.0)
File "/snap/subiquity/2654/usr/lib/python3.6/asyncio/tasks.py", line 362, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
2021-09-15 06:33:57,130 DEBUG subiquitycore.common.errorreport:384 generating crash report
2021-09-15 06:33:57,249 INFO subiquitycore.common.errorreport:407 saving crash report 'block probing crashed with TimeoutError' to /var/crash/1631687637.154057503.block_probe_fail.crash
2021-09-15 06:33:57,329 ERROR root:39 finish: subiquity/Filesystem/_probe/probe_once: FAIL: cancelled
2021-09-15 06:33:57,354 INFO root:39 start: subiquity/ErrorReporter/1631687637.154057503.block_probe_fail/add_info:
2021-09-15 06:33:57,391 DEBUG root:39 start: subiquity/Filesystem/_probe/probe_once: restricted=True
InstallerServerLogInfo:
2021-09-15 06:33:02,970 INFO subiquity:102 Starting Subiquity server revision 2654
2021-09-15 06:33:02,990 INFO subiquity:103 Arguments passed: ['/snap/subiquity/2654/usr/bin/subiquity-server']
2021-09-15 06:33:04,266 INFO aiohttp.access:206 [15/Sep/2021:06:33:04 +0000] "GET /meta/status HTTP/1.1" 200 425 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:04,358 INFO aiohttp.access:206 [15/Sep/2021:06:33:04 +0000] "GET /meta/status HTTP/1.1" 200 425 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:36,114 INFO root:39 start: subiquity/apply_autoinstall_config:
2021-09-15 06:33:36,565 INFO root:39 finish: subiquity/apply_autoinstall_config: SUCCESS:
2021-09-15 06:33:36,579 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:36,601 INFO aiohttp.access:206 [15/Sep/2021:06:33:04 +0000] "GET /meta/status?cur=%22CLOUD_INIT_WAIT%22 HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:36,611 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:36,633 INFO aiohttp.access:206 [15/Sep/2021:06:33:04 +0000] "GET /meta/status?cur=%22CLOUD_INIT_WAIT%22 HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:38,767 ERROR root:39 finish: subiquity/Refresh/check_for_update: FAIL: cancelled
2021-09-15 06:33:39,795 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:40,153 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:41,258 INFO aiohttp.access:206 [15/Sep/2021:06:33:38 +0000] "GET /meta/status?cur=null HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:42,030 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:42,209 INFO root:39 finish: subiquity/Meta/status_GET: SUCCESS: 200 {"state": "WAITING", "confirming_tty": "", "error": null, "cloud_init_ok": tr...
2021-09-15 06:33:42,290 INFO aiohttp.access:206 [15/Sep/2021:06:33:38 +0000] "GET /meta/status?cur=null HTTP/1.1" 200 417 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:43,310 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:43,578 INFO root:39 start: subiquity/Meta/client_variant_POST:
2021-09-15 06:33:43,841 INFO root:39 finish: subiquity/Meta/client_variant_POST: SUCCESS: 200 null
2021-09-15 06:33:44,116 INFO aiohttp.access:206 [15/Sep/2021:06:33:43 +0000] "POST /meta/client_variant?variant=%22server%22 HTTP/1.1" 200 195 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:44,282 INFO root:39 start: subiquity/Meta/client_variant_POST:
2021-09-15 06:33:44,512 INFO root:39 finish: subiquity/Meta/client_variant_POST: SUCCESS: 200 null
2021-09-15 06:33:45,115 INFO aiohttp.access:206 [15/Sep/2021:06:33:43 +0000] "POST /meta/client_variant?variant=%22server%22 HTTP/1.1" 200 195 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:45,339 INFO root:39 start: subiquity/Meta/status_GET:
2021-09-15 06:33:49,797 INFO root:39 start: subiquity/Meta/ssh_info_GET:
2021-09-15 06:33:56,477 INFO root:39 finish: subiquity/Meta/ssh_info_GET: SUCCESS: 200 {"username": "installer", "password_kind": "KNOWN", "password": "FRbjgB3iY7r7...
2021-09-15 06:33:56,549 INFO aiohttp.access:206 [15/Sep/2021:06:33:49 +0000] "GET /meta/ssh_info HTTP/1.1" 200 642 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:56,682 INFO aiohttp.access:206 [15/Sep/2021:06:33:49 +0000] "GET /locale HTTP/1.1" 200 200 "-" "Python/3.6 aiohttp/3.7.4.post0"
2021-09-15 06:33:56,968 ERROR block-discover:332 block probing failed restricted=False
Traceback (most recent call last):
File "/snap/subiquity/2654/lib/python3.6/site-packages/subiquity/server/controllers/filesystem.py", line 325, in _probe
await asyncio.wait_for(self._probe_once_task.task, 15.0)
File "/snap/subiquity/2654/usr/lib/python3.6/asyncio/tasks.py", line 362, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
2021-09-15 06:33:57,249 INFO subiquitycore.common.errorreport:407 saving crash report 'block probing crashed with TimeoutError' to /var/crash/1631687637.154057503.block_probe_fail.crash
2021-09-15 06:33:57,329 ERROR root:39 finish: subiquity/Filesystem/_probe/probe_once: FAIL: cancelled
2021-09-15 06:33:57,354 INFO root:39 start: subiquity/ErrorReporter/1631687637.154057503.block_probe_fail/add_info:
InterpreterPath: /snap/subiquity/2654/usr/bin/python3.6
LiveMediaBuild: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release arm64 (20210824)
Lspci:
00:00.0 Host bridge [0600]: Red Hat, Inc. QEMU PCIe Host bridge [1b36:0008]
Subsystem: Red Hat, Inc. QEMU PCIe Host bridge [1af4:1100]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
00:01.0 PCI bridge [0604]: Red Hat, Inc. QEMU PCIe Root port [1b36:000c] (prog-if 00 [Normal decode])
environment
qemu:
qemu-system-aarch64 --version
QEMU emulator version 4.2.0
host:
centos7.5.1804
vm:
ubuntu-20.04.3-live-server-arm64.iso
virsh:
virsh -v
4.5.0
question
what's wrong with my installation?
1.1. (solved) considering crash log contains string "boot process crash at '0.000000'", I highly suspect that aarch64 simulation is wrong. How can I verify it?
1.2. (solved) considering crash log contains string "on physical CPU 0x000000000", I suspect that CPU option I used is wrong. How should I do?
1.3 Crash log contains string "block probing failed restricted=False", does that means disk of vm has some problem?
Should I use qemu-system-arm to create some resource before I install my VM?

Related

Ansible: json filtering

ill have a role playbook which get json from gitlab
---
- name: Make an API call
uri:
method: GET
url: "https://gitlab.example.com/api/v4/projects/***/repository/files/Dev/raw?ref=master"
headers:
PRIVATE-TOKEN: **************
register: json_var
- name: show json
debug:
msg: "{{json_var}}"
- name: test
debug:
var: json_var.json.plannedrelease
register: release
- name: debug
debug:
msg: "{{ release }}"
but cant get json value to variable, i need only version "1.0" in variable release (from "plannedrelease" : "1.0"), how can i filter it?
Playbook output is:
PLAY [127.0.0.1] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [127.0.0.1]
TASK [get_contour_version : Make an API call] **********************************
ok: [127.0.0.1]
TASK [get_contour_version : show json] *****************************************
ok: [127.0.0.1] => {
"msg": {
"cache_control": "max-age=0, private, must-revalidate, no-store, no-cache",
"changed": false,
"connection": "close",
"content_disposition": "inline; filename=\"Dev\"; filename*=UTF-8''Dev",
"content_length": "402",
"content_type": "text/plain; charset=utf-8",
"cookies": {},
"cookies_string": "",
"date": "Tue, 19 Jan 2021 19:42:33 GMT",
"elapsed": 0,
"expires": "Fri, 01 Jan 1990 00:00:00 GMT",
"failed": false,
"json": {
"Created": "12/06/2020 10:11",
"Key": "123",
"Updated": "01/12/2020 11:51",
"contour": "Dev",
"plannedrelease": "1.0",
"…
TASK [get_contour_version : test] **********************************************
ok: [127.0.0.1] => {
"json_var.json.plannedrelease": "1.0"
}
TASK [get_contour_version : debug] *********************************************
ok: [127.0.0.1] => {
"msg": {
"changed": false,
"failed": false,
"json_var.json.plannedrelease": "1.0"
}
}
PLAY RECAP *********************************************************************
127.0.0.1 : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
probably i used wrong method for filtering
Have you tried https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_fact_module.html ? Reading the documentation the following might work:
- name: Save release var
set_fact:
release: "{{ json_var.json.plannedrelease }}"

Path Not Found Exception is getting when running Revit addin on server.Running successfully on local machine

I am working on design automation Addin for Revit 2019.Actually I have gotten stucked at one point.It is working fine when I am debugging it locally, but when I am running it through server, it gives me following response which I have attached below.Please take a look and suggest me where I can be possibly wrong.
[06/09/2020 10:07:33] Job information:
"CommandLine":[
"$(engine.path)\\\\revitcoreconsole.exe /i $(args[inputFile].path) /al $(appbundles[RevisedContentAddin].path)"
]
"Settings":{
"dasreportfailedlimits": {
"value": "true",
"isEnvironmentVariable": true
}
}
"Id":"29aae4d6d5224f469560682dc901d976"
"ActivityId":"mytestapp21022020.RevisedContentAddin+test"
"Engine.Id":"Autodesk.Revit!34"
"Apps": [
"App.Id":"mytestapp21022020.RevisedContentAddin!1"
]
"BoundArguments":{
"inputFile": {
"localName": "$(inputFile)",
"url": "https://content.dropboxapi.com/Masked:6GSQvBCqbc0I7MDGYfRVsnTuAfg=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Dropbox-API-Arg": "{ \"path\":\"/adsk-forge/Test.rvt\" }"
}
},
"inputZip": {
"zip": true,
"localName": "$(inputZip)",
"url": "https://content.dropboxapi.com/Masked:6GSQvBCqbc0I7MDGYfRVsnTuAfg=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Dropbox-API-Arg": "{ \"path\":\"/adsk-forge/RFA_FOLDER.zip\" }"
}
},
"inputJson": {
"localName": "params.json",
"url": "https://content.dropboxapi.com/Masked:6GSQvBCqbc0I7MDGYfRVsnTuAfg=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Dropbox-API-Arg": "{ \"path\":\"/adsk-forge/params.json\" }"
}
},
"inputError": {
"localName": "Error.json",
"url": "https://content.dropboxapi.com/Masked:6GSQvBCqbc0I7MDGYfRVsnTuAfg=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Dropbox-API-Arg": "{ \"path\":\"/adsk-forge/Error.json\" }"
}
},
"outputFile": {
"localName": "outputFile.rvt",
"url": "https://content.dropboxapi.com/Masked:Ue5D6a5K1qggFCNLUJsXlCpkJ+E=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Content-Type": "application/octet-stream",
"Dropbox-API-Arg": "{\"path\":\"/adsk-forge/outputFile.rvt\", \"mode\":\"add\"}"
},
"verb": "post"
},
"outputJson": {
"localName": "params.json",
"url": "https://content.dropboxapi.com/Masked:Ue5D6a5K1qggFCNLUJsXlCpkJ+E=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Content-Type": "application/octet-stream",
"Dropbox-API-Arg": "{\"path\":\"/adsk-forge/params.json\", \"mode\":\"add\"}"
},
"verb": "post"
},
"outputError": {
"localName": "Error.json",
"url": "https://content.dropboxapi.com/Masked:Ue5D6a5K1qggFCNLUJsXlCpkJ+E=",
"headers": {
"Authorization": "Masked:O6vUSYao0e4t3D7v89SRtj616Lk=",
"Content-Type": "application/octet-stream",
"Dropbox-API-Arg": "{\"path\":\"/adsk-forge/Error.json\", \"mode\":\"add\"}"
},
"verb": "post"
},
"onProgress": {
"ondemand": true,
"url": "https://wlnr5sjl3a.execute-api.us-east-1.amazonaws.com/Masked:UK/Z3b5X3xUWxXiH6C9r9i9UlRU=",
"headers": {
"Content-Type": "application/json",
"x-das-authorize": "awssigv4(us-east-1)",
"x-ads-token-data": "{\"access_token\":{\"client_id\":\"IxoKacMvZAUVe4Gk9vVhDWGYJI49fAGj\"},\"scope\":\"data:read data:write data:create data:search bucket:create bucket:read bucket:update bucket:delete account:read account:write code:all\",\"expires_in\":2247,\"client_id\":\"IxoKacMvZAUVe4Gk9vVhDWGYJI49fAGj\"}"
},
"verb": "put"
}
}
"Quotas":{
"limitDownloads": 200,
"limitUploads": 200,
"limitDownloadSizeMB": 2000,
"limitUploadSizeMB": 2000,
"limitProcessingTimeSec": 10800,
"limitTotalUncompressedAppsSizeInMB": 5000
}
[06/09/2020 10:07:33] Starting work item 29aae4d6d5224f469560682dc901d976
[06/09/2020 10:07:33] Start download phase.
[06/09/2020 10:07:33] Start preparing AppPackage RevisedContentAddin.
[06/09/2020 10:07:33] Start downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:33] Reuse previously downloaded app '0b56d13f0db62fef7a4dceaaba9f2c32.mytestapp21022020.RevisedContentAddin[1]' from local cache.
[06/09/2020 10:07:33] Start downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:33] Start downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:33] Start downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:33] Error: Failed - 409 (path/not_found/...)
Request: GET https://content.dropboxapi.com/2/files/download
Request Headers:
Authorization: Bearer Pa0NeErce7AAAAAAAAAA2AOczAx9QihaGl48RtCHQdGlxOEOc8X8y53ntPqqcRzO
Dropbox-API-Arg: { "path":"/adsk-forge/params.json" }
Response Headers:
Server: nginx
Date: Tue, 09 Jun 2020 10:07:33 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Dropbox-API-Arg
X-Content-Type-Options: nosniff
Content-Security-Policy: sandbox
X-WebKit-CSP: sandbox
X-Content-Security-Policy: sandbox
X-Dropbox-Request-Id: 110f316a5fec33eccb1bbbc4dacb4753
X-Robots-Tag: noindex, nofollow, noimageindex
Response Content Headers:
Content-Type: application/json
Content-Disposition: attachment; filename=unspecified
Response Body:
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
[06/09/2020 10:07:33] Error: Unable to download file https://content.dropboxapi.com/2/files/download: System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
at CoreEngineRunner.DownloadItem.HttpDownloadStreamAsync(String url, Dictionary`2 headers, IReport log, Action`1 onContentFileName, CancellationToken ct, Int64 clientTimeoutSec)
at CoreEngineRunner.DownloadItem.DownloadAsync(TraceSource logger).
[06/09/2020 10:07:33] Error: Failed - 409 (path/not_found/...)
Request: GET https://content.dropboxapi.com/2/files/download
Request Headers:
Authorization: Bearer Pa0NeErce7AAAAAAAAAA2AOczAx9QihaGl48RtCHQdGlxOEOc8X8y53ntPqqcRzO
Dropbox-API-Arg: { "path":"/adsk-forge/Error.json" }
Response Headers:
Server: nginx
Date: Tue, 09 Jun 2020 10:07:33 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Dropbox-API-Arg
X-Content-Type-Options: nosniff
Content-Security-Policy: sandbox
X-WebKit-CSP: sandbox
X-Content-Security-Policy: sandbox
X-Dropbox-Request-Id: 70effff9759f8d429c701fef7ffe3e3c
X-Robots-Tag: noindex, nofollow, noimageindex
Response Content Headers:
Content-Type: application/json
Content-Disposition: attachment; filename=unspecified
Response Body:
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
[06/09/2020 10:07:33] Error: Unable to download file https://content.dropboxapi.com/2/files/download: System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
at CoreEngineRunner.DownloadItem.HttpDownloadStreamAsync(String url, Dictionary`2 headers, IReport log, Action`1 onContentFileName, CancellationToken ct, Int64 clientTimeoutSec)
at CoreEngineRunner.DownloadItem.DownloadAsync(TraceSource logger).
[06/09/2020 10:07:34] '352256' bytes have been written to T:\Aces\Jobs\29aae4d6d5224f469560682dc901d976\54dc126271a24adf92016eba8de1275b.rvt.
[06/09/2020 10:07:34] End downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:38] '182077067' bytes have been written to T:\Aces\Jobs\29aae4d6d5224f469560682dc901d976\zip_1.zip.
[06/09/2020 10:07:38] End downloading file https://content.dropboxapi.com/2/files/download.
[06/09/2020 10:07:39] T:\Aces\Jobs\29aae4d6d5224f469560682dc901d976\zip_1.zip has been unpacked to folder T:\Aces\Jobs\29aae4d6d5224f469560682dc901d976\$(inputZip).
[06/09/2020 10:07:39] Error: Download failed, reason: path/not_found/... (409).
[06/09/2020 10:07:39] Error: An unexpected error happened during phase Downloading of job.
[06/09/2020 10:07:39] Job finished with result FailedDownload
[06/09/2020 10:07:39] Job Status:
{
"status": "failedDownload",
"reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/mytestapp21022020/29aae4d6d5224f469560682dc901d976/report.txt?AWSAccessKeyId=ASIATGVJZKM3AB4IGHG3&Expires=1591711653&x-amz-security-token=IQoJb3JpZ2luX2VjEJr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIALGa5UPgdrN%2BedJ9kQDj0WmtzopvtJ8pP3Vj1JzVGTaAiAuI24FSrbbm2b6aIoiv2M7NInggIh03w8HbrrxRrAEjyrVAQgSEAEaDDIyMDQ3MzE1MjMxMCIMTeYqBAUSs6Yr2CK3KrIBqyKbz5RQXfefggrtBbtzaWOHzWiYYKeS94SrYAS21YvkVaiRWjiO5oNQ5Ge%2Bj5kUD6Ebo5MWzmeGOdTvs78Pmv5wA%2Bd799bkLiBlqtHVF3xRfW5rU%2F1hFVAmMoXy%2B%2BaVm%2BMeVBskVzEgOb%2BiTl5OIuEpRxbdkh0UseiSQwiOgYiPAkGCnN%2FyCdGT%2BBIZpeI9zeJMSg57qAItA33UK%2BQDN%2FXbnQCoI8VKRie0jeTLKr3ebzCUov32BTrhAQ4G2riZ1YJOZGskxw47jFFaE4P33DoLL0Poq0r9zAZSeThOMhgor0NourIHiP%2BaUfhMYjXgnLoxxPAyb%2BWTC5TA10WCcNkROwu%2FpA6wmh2DLdMdyokzSYoj7Kt%2FSdzj%2FuuY5dqGZv9y5z4uUjKU903Zzsjg6yf4IK29hiTh8Z0gBqB9FIULzqI9LxQznkDmlphPSk%2FYkePdvT887Cn23jTj%2FYEbzBOpmDE0LEIWkDl3SnfCCAEfqvE%2B2vQPUiPIaBZH8q9xJqb94pEv5evcf6umkc3pkRiYicOPWrHCDxDHxw%3D%3D&Signature=dm6HpnFiICbCH%2BijWtZlpuA2AIE%3D",
"stats": {
"timeQueued": "2020-06-09T10:07:33.1476295Z",
"timeDownloadStarted": "2020-06-09T10:07:33.3824128Z"
},
"id": "29aae4d6d5224f469560682dc901d976"
}
I wasn't aware of a "path/not_found" error on Design Automation (found at the bottom of your report) so I checked out the Dropbox API to see if it was a download problem from Dropbox.
Looks like there are many cases of "not_found" errors in the DropBox API docs, so I believe the issue lies with the Dropbox download definition.
I encourage you to re-check the definition of your input arguments to make sure there are no issues there. Let us know how it goes!

PhpStorm / SFTP Connection "auth fails"

I'm having a problem connecting to one specific SFTP Server. Auth is user & pwd. Can somebody make something out of the log files?
I'm new to PhpStorm - its pretty cool, but if it's not working, I would need to change back to my old stuff
2017-01-09 09:46:33,147 [ 30133] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://www.mysftpserver.at:22/ in #77287eb7
2017-01-09 09:46:33,158 [ 30144] DEBUG - ins.plugins.webDeployment.sftp - Connecting to www.mysftpserver.at port 22
2017-01-09 09:46:33,213 [ 30199] DEBUG - ins.plugins.webDeployment.sftp - Connection established
2017-01-09 09:46:33,278 [ 30264] DEBUG - ins.plugins.webDeployment.sftp - Remote version string: SSH-2.0-mod_sftp/0.9.9
2017-01-09 09:46:33,278 [ 30264] DEBUG - ins.plugins.webDeployment.sftp - Local version string: SSH-2.0-JSCH-0.1.54
2017-01-09 09:46:33,278 [ 30264] DEBUG - ins.plugins.webDeployment.sftp - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2017-01-09 09:46:33,280 [ 30266] DEBUG - ins.plugins.webDeployment.sftp - aes256-ctr is not available.
2017-01-09 09:46:33,280 [ 30266] DEBUG - ins.plugins.webDeployment.sftp - aes192-ctr is not available.
2017-01-09 09:46:33,280 [ 30266] DEBUG - ins.plugins.webDeployment.sftp - aes256-cbc is not available.
2017-01-09 09:46:33,280 [ 30266] DEBUG - ins.plugins.webDeployment.sftp - aes192-cbc is not available.
2017-01-09 09:46:33,280 [ 30266] DEBUG - ins.plugins.webDeployment.sftp - CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2017-01-09 09:46:33,308 [ 30294] DEBUG - ins.plugins.webDeployment.sftp - CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT received
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: ssh-rsa,ssh-dss
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,umac-64#openssh.com
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,umac-64#openssh.com
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: zlib#openssh.com,zlib,none
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server: zlib#openssh.com,zlib,none
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server:
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: server:
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2017-01-09 09:46:33,309 [ 30295] DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2017-01-09 09:46:33,310 [ 30296] DEBUG - ins.plugins.webDeployment.sftp - kex: client:
2017-01-09 09:46:33,310 [ 30296] DEBUG - ins.plugins.webDeployment.sftp - kex: client:
2017-01-09 09:46:33,310 [ 30296] DEBUG - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-md5 none
2017-01-09 09:46:33,310 [ 30296] DEBUG - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-md5 none
2017-01-09 09:46:33,313 [ 30299] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_ECDH_INIT sent
2017-01-09 09:46:33,314 [ 30300] DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_ECDH_REPLY
2017-01-09 09:46:33,368 [ 30354] DEBUG - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2017-01-09 09:46:33,368 [ 30354] DEBUG - ins.plugins.webDeployment.sftp - Host 'www.mysftpserver.at' is known and matches the RSA host key
2017-01-09 09:46:33,368 [ 30354] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2017-01-09 09:46:33,373 [ 30359] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS received
2017-01-09 09:46:33,375 [ 30361] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_REQUEST sent
2017-01-09 09:46:33,417 [ 30403] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_ACCEPT received
2017-01-09 09:46:33,462 [ 30448] DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: keyboard-interactive,password
2017-01-09 09:46:33,462 [ 30448] DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: keyboard-interactive
2017-01-09 09:46:33,518 [ 30504] WARN - Deployment.config.SftpUserInfo - Unsupported keyboard interactive request: destination="myusername#www.mysftpserver.at", name="", instruction="", prompt=["Passwort: "]
2017-01-09 09:46:35,687 [ 32673] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2017-01-09 09:46:35,756 [ 32742] DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: password
2017-01-09 09:46:35,756 [ 32742] DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: password
2017-01-09 09:46:35,757 [ 32743] DEBUG - ins.plugins.webDeployment.sftp - Login trials exceeds 1
2017-01-09 09:46:35,757 [ 32743] DEBUG - ins.plugins.webDeployment.sftp - Disconnecting from www.mysftpserver.at port 22
2017-01-09 09:46:35,760 [ 32746] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://www.mysftpserver.at:22/ in #77287eb7: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://www.mysftpserver.at/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:115)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:88)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:274)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.createChildren(ServerTreeNode.java:179)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.loadChildren(ServerTreeNode.java:164)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.lambda$getChildren$0(ServerTreeNode.java:155)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "www.mysftpserver.at".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 18 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:182)
... 19 more
2017-01-09 09:46:35,764 [ 32750] WARN - i.remotebrowser.ServerTreeNode - Could not connect to SFTP server at "sftp://www.mysftpserver.at/".
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://www.mysftpserver.at/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:115)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:88)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:274)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.createChildren(ServerTreeNode.java:179)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.loadChildren(ServerTreeNode.java:164)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.lambda$getChildren$0(ServerTreeNode.java:155)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "www.mysftpserver.at".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 18 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:182)
... 19 more
PHPStorm already answered my and the fixed the bug. See their reply:
https://youtrack.jetbrains.com/issue/WI-34664 is fixed, fix can be expected in next EAP

POST from nodemcu to orion, 411 error but Content-Length exists in headers

I send a POST this 2 values (temp & humi) in a json object to my orion server but it fails with an orion error message:
<orionError>
<code>411</code>
<reasonPhrase>Length Required</reasonPhrase>
<details>Zero/No Content-Length in PUT/POST/PATCH request</details>
</orionError>
Although a "Content-Length: " header is included (see below in code).
I´m lost now...
My code (executed in ESPlorer v0.2.0rc2) is:
humi=10
temp=20
function postValores(level)
connout = nil
connout = net.createConnection(net.TCP, 0)
connout:on("receive", function(connout, payloadout)
print (payloadout);
if (string.find(payloadout, "400 Bad Request") ~= nil) then
print("BAD POST");
end
if (string.find(payloadout, "411 Bad Request") ~= nil) then
print("BAD POST");
end
if (string.find(payloadout, "200 OK") ~= nil) then
print("GOOD POST");
end
end)
connout:on("connection", function(connout, payloadout)
print ("Posting...")
local var = '{"id": "Sala1", "type": "Sala", "attributes": [{"name": "temperature", "type": "float","value": "'..temp..'" },{"name": "humidity", "type": "float", "value": "'..humi..'"}]}'
local num = string.len(var)
local postval = "POST /v1/contextEntities/ HTTP/1.1\r\n"
.." Host: 130.206.124.50\r\n"
.." Content-Length: "
..num.."\r\n"
.." Content-Type: application/json\r\n"
.." Accept: application/json\r\n"
.."\r\n"
..var.."\r\n"
print (postval)
connout:send(postval)
end)
connout:on("disconnection", function(connout, payloadout)
connout:close()
collectgarbage()
end)
connout:connect(1026,'130.206.124.50')
end
tmr.alarm(2, 16000, 1, function() postValores(0) end)
I send:
Posting...
POST /v1/contextEntities/ HTTP/1.1
Host: 130.206.124.50
Content-Length: 157
Content-Type: application/json
Accept: application/json
{"id": "Sala1", "type": "Sala", "attributes": [{"name": "temperature", "type": "float","value": "20" },{"name": "humidity", "type": "float", "value": "10"}]}
And the response is:
HTTP/1.1 411 Length Required
Content-Length: 163
Content-Type: application/xml
Date: Tue, 16 Feb 2016 13:43:12 GMT
<orionError>
<code>411</code>
<reasonPhrase>Length Required</reasonPhrase>
<details>Zero/No Content-Length in PUT/POST/PATCH request</details>
</orionError>
Sorted!.
I was adding a blank before every header.
This is the right code for the payload:
local postval = "POST /v1/contextEntities HTTP/1.1\r\n"
.."Host: 130.206.124.50\r\n"
.."Accept: application/json\r\n"
.."Content-Type: application/json\r\n"
.."Content-Length: "
..num.."\r\n"
.."\r\n"
..var.."\r\n"

Version error in AWS Elastic beanstalk for Multicontainer Docker Configuration

Trying to link mysql with phabricator in Elastic beanstalk with
help of dockerrun.aws.json file as shown below.
But it sows error as
[Instance: i-cdbaf100 Module: AWSEBAutoScalingGroup ConfigSet: null]
Command failed on instance.
Return code: 1
Output: Invalid Dockerrun.aws.json version, abort deployment.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh failed.
For more detail, check /var/log/eb-activity.log using console or EB CLI.
Can someone please help in resolving this?
Here is the Dockerfile.aws.json file:
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "mysql-database",
"image": "mysql",
"essential": true,
"memory": 400
},
{
"name": "phabricator-only",
"image": "yesnault/docker-phabricator-alone",
"essential": true,
"memory": 400,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": [
"mysql-database"
]
}
]
}
Here is activity log file
[2015-05-09T08:12:17.546Z] INFO [24016] - [CMD-AppDeploy] : Starting activity...
[2015-05-09T08:12:17.820Z] INFO [24016] - [CMD-AppDeploy/AddonsBefore] : Starting activity...
[2015-05-09T08:12:17.820Z] INFO [24016] - [CMD-AppDeploy/AddonsBefore] : Completed activity.
[2015-05-09T08:12:18.086Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0] : Starting activity...
[2015-05-09T08:12:18.086Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteConfig] : Starting activity...
[2015-05-09T08:12:18.089Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteConfig] : Completed activity. Result:
Recreated directory /opt/elasticbeanstalk/deploy/configuration/.
Generate appsource url file at /opt/elasticbeanstalk/deploy/configuration/appsourceurl.
Generate container config file at /opt/elasticbeanstalk/deploy/configuration/containerconfiguration.
[2015-05-09T08:12:18.089Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp1] : Starting activity...
[2015-05-09T08:12:18.089Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp1] : Completed activity. Result:
Recreated directory /opt/elasticbeanstalk/deploy/appsource.
[2015-05-09T08:12:18.089Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2] : Starting activity...
[2015-05-09T08:12:18.332Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2] : Starting activity...
[2015-05-09T08:12:18.333Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2/Infra-WriteApplication2] : Starting activity...
[2015-05-09T08:12:18.333Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2/Infra-WriteApplication2/Command 01downloadVersion] : Starting activity...
[2015-05-09T08:12:18.385Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2/Infra-WriteApplication2/Command 01downloadVersion] : Completed activity.
[2015-05-09T08:12:18.385Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2/Infra-WriteApplication2] : Completed activity.
[2015-05-09T08:12:18.385Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2/Infra-WriteApplication2] : Completed activity.
[2015-05-09T08:12:18.407Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/InfraWriteApp2] : Completed activity.
[2015-05-09T08:12:18.407Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild] : Starting activity...
[2015-05-09T08:12:18.646Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild] : Starting activity...
[2015-05-09T08:12:18.647Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild] : Completed activity.
[2015-05-09T08:12:18.663Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild] : Completed activity.
[2015-05-09T08:12:18.663Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook] : Starting activity...
[2015-05-09T08:12:18.663Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/00clean_dir.sh] : Starting activity...
[2015-05-09T08:12:18.843Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/00clean_dir.sh] : Completed activity.
[2015-05-09T08:12:18.843Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/01unzip.sh] : Starting activity...
[2015-05-09T08:12:19.121Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/01unzip.sh] : Completed activity. Result:
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "mysql-database",
"image": "mysql",
"essential": true,
"memory": 400
},
{
"name": "phabricator-only",
"image": "yesnault/docker-phabricator-alone",
"essential": true,
"memory": 400,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": [
"mysql-database"
]
}
]
}
[2015-05-09T08:12:19.121Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/02docker_db_check.sh] : Starting activity...
[2015-05-09T08:12:19.124Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/02docker_db_check.sh] : Completed activity. Result:
0||/
[2015-05-09T08:12:19.125Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/03build.sh] : Starting activity...
[2015-05-09T08:12:19.426Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/03build.sh] : Activity execution failed, because: Invalid Dockerrun.aws.json version, abort deployment (ElasticBeanstalk::ExternalInvocationError)
caused by: Invalid Dockerrun.aws.json version, abort deployment (Executor::NonZeroExitStatus)
[2015-05-09T08:12:19.426Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/03build.sh] : Activity failed.
[2015-05-09T08:12:19.427Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook] : Activity failed.
[2015-05-09T08:12:19.427Z] INFO [24016] - [CMD-AppDeploy/AppDeployStage0] : Activity failed.
[2015-05-09T08:12:19.427Z] INFO [24016] - [CMD-AppDeploy] : Completed activity. Result:
Command CMD-AppDeploy failed.
If you get the error "Invalid Dockerrun.aws.json version, abort deployment. " it's also possible that you're not using the correct Solution Stack.
In my case I was using the Single Container Solution Stack and I should have been using the Multicontainer Solution Stack. Once I configured my environment to use the Multicontainer Solution Stack this error went away.
A list of Solution Stacks can be found here:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html#concepts.platforms.docker
You have to select multi-container type when creating your environment. May require deleting and creating new environment as upgrading from single-container is not available right now.
Make sure it says "running Multi-container Docker" on Dashboard under Configuration.
The OP javvaji kiran adds in the comments:
The service was not available for the location which I selected.
But service are available in other locations
Original answer:
It depends on the error message you have, but note that all values of a Dockerrun.aws.json are normally in double quotes.
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "janedoe/image",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "1234"
}
],
....
Check if the error persists after adding double-quotes in your own Dockerrun.aws.json
That said, the exact error message is:
Activity execution failed, because: Invalid Dockerrun.aws.json version
See this source:
# Dockerrun.aws.json verson checking
# right now only one valid version "1"
if [ -f Dockerrun.aws.json ]; then
[ "`cat Dockerrun.aws.json | jq -r .AWSEBDockerrunVersion`" = "1" ] || error_exit "Invalid Dockerrun.aws.json version, abort deployment" 1
fi
So try with "AWSEBDockerrunVersion": "1",
Also, I don't see "links" in the Valid keys and values for the Dockerrun.aws.json file.