How to find objects/handles in call stack frame is waiting upon "WaitForMultipleObjects"? - windbg

In Frame 2, kernel32!WaitForMultipleObjects+0x19 , win32 API call is waiting on multiple objects/handles.
In Windbg, how can we determine those handles for this specific frame?
0:012> k
# ChildEBP RetAddr 00 093ffba0 7510285f ntdll!NtWaitForMultipleObjects+0xc
01 093ffd2c 76f89188 KERNELBASE!WaitForMultipleObjectsEx+0xcc
02 093ffd48 61006516 kernel32!WaitForMultipleObjects+0x19
03 093ffd80 610065b0 mshtml!CRenderThread::WaitForWork+0x82
04 093ffdc4 61130503 mshtml!CRenderThread::RenderThread+0x2b0
05 093ffdd4 6d363a31 mshtml!CRenderThread::StaticRenderThreadProc+0x23
06 (Inline) -------- IEShims!NS_CreateThread::ThreadProc+0x86
07 093ffe0c 76f8919f IEShims!NS_CreateThread::DesktopIE_ThreadProc+0x94
08 093ffe18 776ead8f kernel32!BaseThreadInitThunk+0xe
09 093ffe60 776ead5a ntdll!__RtlUserThreadStart+0x2f
0a 093ffe70 00000000 ntdll!_RtlUserThreadStart+0x1b
**//Arguments passed in function call : kernel32!WaitForMultipleObjects+0x19**
0:012> dd 093ffd48
093ffd48 093ffd80 61006516 **00000002 093ffd6c**
093ffd58 **00000000 ffffffff** 00000000 00000000
093ffd68 05ef6078 00000778 000007c8 00000002
093ffd78 ffffffff 093ffdc4 093ffdc4 610065b0
093ffd88 093ffde0 00000000 00000006 61015990
093ffd98 1b541170 00000000 00000000 00000000
093ffda8 00000000 00000000 00000000 1b541170
093ffdb8 00000000 05ef6078 003ffdd4 093ffdd4

output of k
kd> $$ 00adfb88 7755fe39 ntdll!NtWaitForMultipleObjects+0xc (FPO: [5,0,0])
dumping dwords at ebp
kd> dd 00adfb88 l 8
00adfb88 77576a44 7755fe39 00000010 00412ca8
00adfb98 00000001 00000001 00000000 77cc0c57
kd> $$ ebp+8 = first argument = 10
kd> $$ ebp+c = secon argumet = * to handles 412ca8
kd> $$ the handles are
kd> dd 412ca8 l10
00412ca8 000000f4 000000f0 0000069c 00000900
00412cb8 00000464 000007d0 0000081c 00000828
00412cc8 000006d8 00000640 00000634 0000056c
00412cd8 0000037c 00000460 00000654 00000100
a script like this can fetch you all the handle
kd> .foreach /pS 1 /ps 1 (place { dd /c 1 412ca8 l10 } ) { !handle place 2}
output
PROCESS 86f6a6c8 SessionId: 1 Cid: 0b78 Peb: 7ffd8000 ParentCid: 0b6c
DirBase: 7e26c4c0 ObjectTable: b908ef00 HandleCount: 1079.
Image: explorer.exe
Handle table at b908ef00 with 1079 entries in use
00f4: Object: 86945a90 GrantedAccess: 001f0003 Entry: b90951e8
Object: 86945a90 Type: (84eaf350) Timer
ObjectHeader: 86945a78 (new version)
HandleCount: 1 PointerCount: 2
00f0: Object: 869416c0 GrantedAccess: 00100002 Entry: b90951e0
Object: 869416c0 Type: (84eaf350) Timer
ObjectHeader: 869416a8 (new version)
HandleCount: 1 PointerCount: 2
069c: Object: 86a12388 GrantedAccess: 00100004 Entry: b9095d38
Object: 86a12388 Type: (84ed06b8) WmiGuid
ObjectHeader: 86a12370 (new version)
HandleCount: 1 PointerCount: 2
0900: Object: 869b2d38 GrantedAccess: 001f0003 Entry: b8601200
Object: 869b2d38 Type: (84eb0978) Event
ObjectHeader: 869b2d20 (new version)
HandleCount: 1 PointerCount: 2
0464: Object: 85540d00 GrantedAccess: 001f0003 Entry: b90958c8
Object: 85540d00 Type: (84eb0978) Event
ObjectHeader: 85540ce8 (new version)
HandleCount: 1 PointerCount: 3
07d0: Object: 8552a480 GrantedAccess: 001f0003 Entry: b9095fa0
Object: 8552a480 Type: (84eb0978) Event
ObjectHeader: 8552a468 (new version)
HandleCount: 1 PointerCount: 4
081c: Object: 85cdde78 GrantedAccess: 001f0003 Entry: b8601038
Object: 85cdde78 Type: (84eb0978) Event
ObjectHeader: 85cdde60 (new version)
HandleCount: 1 PointerCount: 3
Directory Object: 98a802a8 Name: PRS_EXTERNAL_CHECK_CHANGED_NOTIFY
0828: Object: 86c4c938 GrantedAccess: 001f0003 Entry: b8601050
Object: 86c4c938 Type: (84eb0978) Event
ObjectHeader: 86c4c920 (new version)
HandleCount: 2 PointerCount: 5
Directory Object: 98a802a8 Name: {43a2b8d7-6fed-4c18-bd36-b4630d61afb5}
06d8: Object: 86d014d0 GrantedAccess: 001f0003 Entry: b9095db0
Object: 86d014d0 Type: (84eb0978) Event
ObjectHeader: 86d014b8 (new version)
HandleCount: 1 PointerCount: 2
0640: Object: 85ce4380 GrantedAccess: 001f0003 Entry: b9095c80
Object: 85ce4380 Type: (84eb0978) Event
ObjectHeader: 85ce4368 (new version)
HandleCount: 1 PointerCount: 2
0634: Object: 86f17e20 GrantedAccess: 001f0003 Entry: b9095c68
Object: 86f17e20 Type: (84eb0978) Event
ObjectHeader: 86f17e08 (new version)
HandleCount: 1 PointerCount: 2
056c: Object: 85ce7750 GrantedAccess: 001f0003 Entry: b9095ad8
Object: 85ce7750 Type: (84eb0978) Event
ObjectHeader: 85ce7738 (new version)
HandleCount: 1 PointerCount: 2
037c: Object: 86bbcae8 GrantedAccess: 001f0003 Entry: b90956f8
Object: 86bbcae8 Type: (84eb0978) Event
ObjectHeader: 86bbcad0 (new version)
HandleCount: 2 PointerCount: 3
0460: Object: 86cdab88 GrantedAccess: 001f0003 Entry: b90958c0
Object: 86cdab88 Type: (84eb0978) Event
ObjectHeader: 86cdab70 (new version)
HandleCount: 1 PointerCount: 2
0654: Object: 85ce6838 GrantedAccess: 001f0003 Entry: b9095ca8
Object: 85ce6838 Type: (84eb0978) Event
ObjectHeader: 85ce6820 (new version)
HandleCount: 1 PointerCount: 2
0100: Object: 865bb170 GrantedAccess: 00100002 Entry: b9095200
Object: 865bb170 Type: (84eaf350) Timer
ObjectHeader: 865bb158 (new version)
HandleCount: 1 PointerCount: 2
kd>

Related

Failed to start the Kernel ubuntu 22.04 LTS

i have a problem with vs code jupyter kernel which is "Failed to start the Kernel.
Kernel myenv (Python 3.10.6) is not usable. Check the Jupyter output tab for more information.
View Jupyter log for further details."
and here is the log file
info 11:18:50.709: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a./home/gouda/myenv/bin/python3./home/gouda/myenv/bin/python3.-m#ipykernel_launcher (Python Path: /home/gouda/myenv, EnvType: Venv, EnvName: 'myenv', Version: 3.10.6) for '/home/gouda/x.ipynb' (disableUI=false)
[I 11:18:50.726 NotebookApp] Creating new notebook in
info 11:18:50.745: installMissingDependencies /home/gouda/myenv/bin/python3, ui.disabled=false for resource '/home/gouda/x.ipynb'
info 11:18:50.746: Got env vars with python /home/gouda/myenv/bin/python3, with env var count 97 and custom env var count 0 in 1ms
info 11:18:50.746: Got env vars ourselves faster /home/gouda/myenv/bin/python3 with env var count 97 in 1ms
info 11:18:50.754: Process Execution: > ~/myenv/bin/python3 -c "import ipykernel"
> ~/myenv/bin/python3 -c "import ipykernel"
error 11:18:50.878: Failed to change kernel [SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at k.updateKernelEnvironment (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1976545)
at async k.ensureKernelIsUsable (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:1974541)
at async k.createSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2080032)
at async k.createNewKernelSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2077500)
at async k.connect (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2076271)
at async u.startNew (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2084916)
at async s (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014143)
at async _.createNotebookInstance (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014306)
at async _.createNotebook (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2015245)
at async t.Kernel.createJupyterSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2100804)
at async t.Kernel.start (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2095530)
at async D.wrapKernelMethodImpl (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2349214)]
warn 11:18:50.881: Error occurred while trying to start the kernel, options.disableUI=false [a [Error]: Kernel myenv (Python 3.10.6) is not usable. Check the Jupyter output tab for more information.
at k.createNewKernelSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2077784)
at async k.connect (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2076271)
at async u.startNew (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2084916)
at async s (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014143)
at async _.createNotebookInstance (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014306)
at async _.createNotebook (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2015245)
at async t.Kernel.createJupyterSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2100804)
at async t.Kernel.start (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2095530)
at async D.wrapKernelMethodImpl (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2349214)] {
category: 'invalidkernel',
kernelConnectionMetadata: {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: '/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/temp/jupyter/kernels/python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a/kernel.json',
interpreterPath: '/home/gouda/myenv/bin/python3',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a',
argv: [Array],
language: 'python',
executable: 'python',
display_name: "Python 3.10.6 ('myenv')",
metadata: [Object],
env: {}
},
interpreter: {
id: '/home/gouda/myenv/bin/python3',
sysPrefix: '/home/gouda/myenv',
envType: 'Venv',
envName: 'myenv',
envPath: [h],
architecture: 3,
sysVersion: '3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]',
version: [Object],
displayName: "Python 3.10.6 ('myenv')",
detailedDisplayName: "Python 3.10.6 ('myenv': venv)",
uri: [h]
},
id: '.jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a./home/gouda/myenv/bin/python3./home/gouda/myenv/bin/python3.-m#ipykernel_launcher'
}
}
warn 11:18:50.881: Kernel Error, context = start [a [Error]: Kernel myenv (Python 3.10.6) is not usable. Check the Jupyter output tab for more information.
at k.createNewKernelSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2077784)
at async k.connect (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2076271)
at async u.startNew (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2084916)
at async s (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014143)
at async _.createNotebookInstance (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014306)
at async _.createNotebook (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2015245)
at async t.Kernel.createJupyterSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2100804)
at async t.Kernel.start (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2095530)
at async D.wrapKernelMethodImpl (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2349214)] {
category: 'invalidkernel',
kernelConnectionMetadata: {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: '/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/temp/jupyter/kernels/python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a/kernel.json',
interpreterPath: '/home/gouda/myenv/bin/python3',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a',
argv: [Array],
language: 'python',
executable: 'python',
display_name: "Python 3.10.6 ('myenv')",
metadata: [Object],
env: {}
},
interpreter: {
id: '/home/gouda/myenv/bin/python3',
sysPrefix: '/home/gouda/myenv',
envType: 'Venv',
envName: 'myenv',
envPath: [h],
architecture: 3,
sysVersion: '3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]',
version: [Object],
displayName: "Python 3.10.6 ('myenv')",
detailedDisplayName: "Python 3.10.6 ('myenv': venv)",
uri: [h]
},
id: '.jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a./home/gouda/myenv/bin/python3./home/gouda/myenv/bin/python3.-m#ipykernel_launcher'
}
}
info 11:18:50.882: Got env vars with python /home/gouda/myenv/bin/python3, with env var count 97 and custom env var count 0 in 1ms
info 11:18:50.882: Got env vars ourselves faster /home/gouda/myenv/bin/python3 with env var count 97 in 1ms
info 11:18:50.887: Process Execution: > ~/myenv/bin/python3 -c "import ipykernel"
> ~/myenv/bin/python3 -c "import ipykernel"
[W 11:18:50.888 NotebookApp] delete /x-jvsc-f62a5d52-5b3b-4dab-9191-d8bfbfc13aef698d48c7-5c43-4cd4-869d-35e004105e73.ipynb
info 11:18:51.000: Dispose Kernel '/home/gouda/x.ipynb' associated with '/home/gouda/x.ipynb'
error 11:18:51.002: Error in execution [a [Error]: Kernel myenv (Python 3.10.6) is not usable. Check the Jupyter output tab for more information.
at k.createNewKernelSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2077784)
at async k.connect (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2076271)
at async u.startNew (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2084916)
at async s (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014143)
at async _.createNotebookInstance (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014306)
at async _.createNotebook (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2015245)
at async t.Kernel.createJupyterSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2100804)
at async t.Kernel.start (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2095530)
at async D.wrapKernelMethodImpl (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2349214)] {
category: 'invalidkernel',
kernelConnectionMetadata: {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: '/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/temp/jupyter/kernels/python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a/kernel.json',
interpreterPath: '/home/gouda/myenv/bin/python3',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a',
argv: [Array],
language: 'python',
executable: 'python',
display_name: "Python 3.10.6 ('myenv')",
metadata: [Object],
env: {}
},
interpreter: {
id: '/home/gouda/myenv/bin/python3',
sysPrefix: '/home/gouda/myenv',
envType: 'Venv',
envName: 'myenv',
envPath: [h],
architecture: 3,
sysVersion: '3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]',
version: [Object],
displayName: "Python 3.10.6 ('myenv')",
detailedDisplayName: "Python 3.10.6 ('myenv': venv)",
uri: [h]
},
id: '.jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a./home/gouda/myenv/bin/python3./home/gouda/myenv/bin/python3.-m#ipykernel_launcher'
}
}
error 11:18:51.002: Error in execution (get message for cell) [a [Error]: Kernel myenv (Python 3.10.6) is not usable. Check the Jupyter output tab for more information.
at k.createNewKernelSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2077784)
at async k.connect (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2076271)
at async u.startNew (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2084916)
at async s (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014143)
at async _.createNotebookInstance (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2014306)
at async _.createNotebook (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2015245)
at async t.Kernel.createJupyterSession (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2100804)
at async t.Kernel.start (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2095530)
at async D.wrapKernelMethodImpl (/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2349214)] {
category: 'invalidkernel',
kernelConnectionMetadata: {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: '/home/gouda/.vscode/extensions/ms-toolsai.jupyter-2022.9.1303220346/temp/jupyter/kernels/python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a/kernel.json',
interpreterPath: '/home/gouda/myenv/bin/python3',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'python3106jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a',
argv: [Array],
language: 'python',
executable: 'python',
display_name: "Python 3.10.6 ('myenv')",
metadata: [Object],
env: {}
},
interpreter: {
id: '/home/gouda/myenv/bin/python3',
sysPrefix: '/home/gouda/myenv',
envType: 'Venv',
envName: 'myenv',
envPath: [h],
architecture: 3,
sysVersion: '3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]',
version: [Object],
displayName: "Python 3.10.6 ('myenv')",
detailedDisplayName: "Python 3.10.6 ('myenv': venv)",
uri: [h]
},
id: '.jvsc74a57bd040addd079262761b1b840a83485a994a53c13135457a868359c8a32f257df68a./home/gouda/myenv/bin/python3./home/gouda/myenv/bin/python3.-m#ipykernel_launcher'
}
}
when i try to run a cell , this error appears to me , what should i do ?

Converting a Storm 1 Kafka Topology to Heron, have a few questions

Been experimenting with switching a Storm 1.0.6 topology to Heron. Taking a baby step by removing all but the Kafka spout to see how things go. Have a main method as follows (modified from the original Flux version):
import org.apache.heron.eco.Eco;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class KafkaTopology {
public static void main(String[] args) throws Exception {
List<String> argList = new ArrayList<String>(Arrays.asList(args));
String file = KafkaTopology.class.getClassLoader().getResource("topology.yaml").getFile();
argList.add("local");
argList.add("--eco-config-file");
argList.add(file);
file = KafkaTopology.class.getClassLoader().getResource("dev.properties").getFile();
argList.add("--props");
argList.add(file);
argList.add("--sleep");
argList.add("36000000");
String[] ecoArgs = argList.toArray(new String[argList.size()]);
Eco.main(ecoArgs);
}
}
YAML is this:
name: "kafkaTopology-XXX_topologyVersion_XXX"
type: "storm"
config:
topology.workers: ${workers.config}
topology.max.spout.pending: ${max.spout.pending}
topology.message.timeout.secs: 120
topology.testing.always.try.serialize: true
storm.zookeeper.session.timeout: 30000
storm.zookeeper.connection.timeout: 30000
storm.zookeeper.retry.times: 5
storm.zookeeper.retry.interval: 2000
properties:
kafka.mapper.zkServers: ${kafka.mapper.zkServers}
kafka.mapper.zkPort: ${kafka.mapper.zkPort}
bootstrap.servers: ${bootstrap.servers}
kafka.mapper.brokerZkStr: ${kafka.mapper.brokerZkStr}
kafka.topic.name: ${kafka.topic.name}
components:
- id: "zkHosts"
className: "org.apache.storm.kafka.ZkHosts"
constructorArgs:
- ${kafka.mapper.brokerZkStr}
- id: "rawMessageAndMetadataScheme"
className: "org.acme.storm.spout.RawMessageAndMetadataScheme"
- id: "messageMetadataSchemeAsMultiScheme"
className: "org.apache.storm.kafka.MessageMetadataSchemeAsMultiScheme"
constructorArgs:
- ref: "rawMessageAndMetadataScheme"
- id: "kafkaSpoutConfig"
className: "org.apache.storm.kafka.SpoutConfig"
constructorArgs:
# brokerHosts
- ref: "zkHosts"
# topic
- ${kafka.topic.name}
# zkRoot
- "/zkRootKafka.kafkaSpout.builder"
# id
- ${kafka.topic.name}
properties:
- name: "scheme"
ref: "messageMetadataSchemeAsMultiScheme"
- name: zkServers
value: ${kafka.mapper.zkServers}
- name: zkPort
value: ${kafka.mapper.zkPort}
# Retry Properties
- name: "retryInitialDelayMs"
value: 60000
- name: "retryDelayMultiplier"
value: 1.5
- name: "retryDelayMaxMs"
value: 14400000
- name: "retryLimit"
value: 0
# spout definitions
spouts:
- id: "kafka-spout"
className: "org.apache.storm.kafka.KafkaSpout"
parallelism: ${kafka.spout.parallelism}
constructorArgs:
- ref: "kafkaSpoutConfig"
Relevant POM entries:
<dependency>
<groupId>org.apache.heron</groupId>
<artifactId>heron-api</artifactId>
<version>0.20.3-incubating</version>
</dependency>
<dependency>
<groupId>org.apache.heron</groupId>
<artifactId>heron-storm</artifactId>
<version>0.20.3-incubating</version>
</dependency>
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-kafka</artifactId>
<version>1.0.6</version>
</dependency>
Main method seems to run fine:
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.parser.EcoParser loadTopologyFromYaml
INFO: Parsing eco config file
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.parser.EcoParser loadTopologyFromYaml
INFO: Performing property substitution.
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.parser.EcoParser loadTopologyFromYaml
INFO: Performing environment variable substitution.
topology type is Storm
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.builder.storm.EcoBuilder buildConfig
INFO: Building topology config
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: ---------- TOPOLOGY DETAILS ----------
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: Topology Name: kafkaTopology-XXX_topologyVersion_XXX
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: --------------- SPOUTS ---------------
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: kafka-spout [1] (org.apache.storm.kafka.KafkaSpout)
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: ---------------- BOLTS ---------------
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: --------------- STREAMS ---------------
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.Eco printTopologyInfo
INFO: --------------------------------------
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.builder.storm.EcoBuilder buildTopologyBuilder
INFO: Building components
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.builder.storm.EcoBuilder buildTopologyBuilder
INFO: Building spouts
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.builder.storm.EcoBuilder buildTopologyBuilder
INFO: Building bolts
Apr 30, 2021 4:38:49 PM org.apache.heron.eco.builder.storm.EcoBuilder buildTopologyBuilder
INFO: Building streams
Process finished with exit code 0
Question 1: The topology exits immediately, is there an Eco flag equivalent to Flux '--sleep' to keep it running for a while (to debug, etc.)?
Question 2: Was a little surprised that I needed to pull storm-kafka in (thought there would be a Heron equivalent) - is this correct (or some other artifact?) and if so, is 1.0.6 an OK version to use or does Heron work better with another version?
Question 3: The above was with type: "storm" in the YAML, trying type: "heron" gives the following error:
INFO: Building spouts
Exception in thread "main" java.lang.ClassCastException: class org.apache.storm.kafka.KafkaSpout cannot be cast to class org.apache.heron.api.spout.IRichSpout (org.apache.storm.kafka.KafkaSpout and org.apache.heron.api.spout.IRichSpout are in unnamed module of loader 'app')
at org.apache.heron.eco.builder.heron.SpoutBuilder.buildSpouts(SpoutBuilder.java:42)
at org.apache.heron.eco.builder.heron.EcoBuilder.buildTopologyBuilder(EcoBuilder.java:70)
at org.apache.heron.eco.Eco.submit(Eco.java:125)
at org.apache.heron.eco.Eco.main(Eco.java:161)
at KafkaTopology.main(KafkaTopology.java:26)
Process finished with exit code 1
Is this just the way it is using Kafka, type needs to be storm and not heron, or is there some workaround here?
Question 1: I'm not sure why the topology would shut down on you. Try to run your submit with the --verbose flag. At this time the functionality of the --sleep argument does not exist. It could be a feature added if you need.
Question 2: There is a Heron equivalent. After Heron was donated to Apache quite a lot of work had to be done to get binary releases out. Most of that work has been done. With the next release I would hope that all binary artifacts will be distributed appropriately.
Question 3:This issue occurs because based on the type specified it looks for bolts/spouts in a certain package. When "storm" is input it expects the classes it implements or extends to be of "org.apache.storm". When "heron" is input it expects the classes it implements or extends to be of "org.apache.heron". If you use the dependency storm-kafka the type will need to be "storm". The heron equivalents can be found here. https://search.maven.org/search?q=heron-kafka
https://search.maven.org/search?q=heron-kafka
There are several Kafka Spouts for Heron. I use Storm(storm-kafka-client-2.1) clone and use it in Production.
https://search.maven.org/artifact/com.github.thinker0.heron/heron-kafka-client/1.0.4.1/jar

How to make Iot Edge message routing between modules work on arm32 (Raspberry Pi)

I created an Iot Edge solution using Visual Studio Code via View -> Command Palette... -> AzureIotEdge:NewIoTEdgeSolution using the C# Module Module Template. This generates an Iot Edge solution with two Modules: tempSensor creates messages with dummy telemetry-data and SampleModule is supposed to receive those messages, print them and then pass them on to IotHub.
I build the solution for arm32 and deployed it to a Rasperry Pi (running latest Raspbian). The modules are then displayed as running on the device but if I monitor d2c-messages there are none arriving in IoT Hub.
If I run sudo iotedge logs tempSensor -f on the device, I can see messages are being generated.
If I run sudo iotedge logs SampleModule -f I only see IoT Hub module client initialized. Which is logged in the Init() Method. There is no logging from the PipeMessage Method which seems not to be reached at all.
If I build the solution for amd64 and deploy it to a virtual machine, everything is working as expected.
Is there a way to get it working on a Raspberry Pi running Raspian?
By the way: I tried the Azure Functions C# Module Template as well. Same result: On amd64 it works but on arm32 it does not.
UPDATE:
Here is the logging of edgeAgent:
█████╗ ███████╗██╗ ██╗██████╗ ███████╗
██╔══██╗╚══███╔╝██║ ██║██╔══██╗██╔════╝
███████║ ███╔╝ ██║ ██║██████╔╝█████╗
██╔══██║ ███╔╝ ██║ ██║██╔══██╗██╔══╝
██║ ██║███████╗╚██████╔╝██║ ██║███████╗
╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
██╗ ██████╗ ████████╗ ███████╗██████╗ ██████╗ ███████╗
██║██╔═══██╗╚══██╔══╝ ██╔════╝██╔══██╗██╔════╝ ██╔════╝
██║██║ ██║ ██║ █████╗ ██║ ██║██║ ███╗█████╗
██║██║ ██║ ██║ ██╔══╝ ██║ ██║██║ ██║██╔══╝
██║╚██████╔╝ ██║ ███████╗██████╔╝╚██████╔╝███████╗
╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝ ╚══════╝
2018-12-21 07:08:27.323 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only...
2018-12-21 07:08:31.986 +00:00 [INF] - Created persistent store at /tmp/edgeAgent
2018-12-21 07:08:34.193 +00:00 [INF] - Edge agent connected to IoT Hub via Amqp_Tcp_Only.
2018-12-21 07:08:37.624 +00:00 [INF] - Plan execution started for deployment 8
2018-12-21 07:08:37.654 +00:00 [INF] - Executing command: "Stop module SampleModule"
2018-12-21 07:08:37.766 +00:00 [INF] - Executing command: "Remove module SampleModule"
2018-12-21 07:08:37.964 +00:00 [INF] - Executing command: "Saving SampleModule to store"
2018-12-21 07:08:38.141 +00:00 [INF] - Executing command: "Command Group: (
[Create module SampleModule2]
[Start module SampleModule2]
)"
2018-12-21 07:08:38.152 +00:00 [INF] - Executing command: "Create module SampleModule2"
2018-12-21 07:08:42.678 +00:00 [INF] - Executing command: "Start module SampleModule2"
2018-12-21 07:08:45.749 +00:00 [INF] - Executing command: "Command Group: (
[Stop module tempSensor]
[Start module tempSensor]
[Saving tempSensor to store]
)"
2018-12-21 07:08:45.750 +00:00 [INF] - Executing command: "Stop module tempSensor"
2018-12-21 07:08:45.759 +00:00 [INF] - Executing command: "Start module tempSensor"
2018-12-21 07:08:48.423 +00:00 [INF] - Executing command: "Saving tempSensor to store"
2018-12-21 07:08:48.491 +00:00 [INF] - Executing command: "Command Group: (
[Stop module edgeHub]
[Start module edgeHub]
[Saving edgeHub to store]
)"
2018-12-21 07:08:48.491 +00:00 [INF] - Executing command: "Stop module edgeHub"
2018-12-21 07:08:48.501 +00:00 [INF] - Executing command: "Start module edgeHub"
2018-12-21 07:08:51.895 +00:00 [INF] - Executing command: "Saving edgeHub to store"
2018-12-21 07:08:51.900 +00:00 [INF] - Plan execution ended for deployment 8
2018-12-21 07:08:52.743 +00:00 [INF] - Updated reported properties
2018-12-21 07:08:57.811 +00:00 [INF] - HealthRestartPlanner is clearing restart stats for module 'tempSensor' as it has been running healthy for 00:10:00.
2018-12-21 07:08:57.814 +00:00 [INF] - HealthRestartPlanner is clearing restart stats for module 'edgeHub' as it has been running healthy for 00:10:00.
2018-12-21 07:08:57.815 +00:00 [INF] - Plan execution started for deployment 8
2018-12-21 07:08:57.818 +00:00 [INF] - Executing command: "Saving tempSensor to store"
2018-12-21 07:08:57.819 +00:00 [INF] - Executing command: "Saving edgeHub to store"
2018-12-21 07:08:57.820 +00:00 [INF] - Plan execution ended for deployment 8
2018-12-21 07:08:58.038 +00:00 [INF] - Updated reported properties
2018-12-21 07:09:03.239 +00:00 [INF] - Updated reported properties
And here some of the logging of edgeHub (there is lots more but seems to be all the same Exceptions):
2018-12-21 07:28:23.450 +00:00 [WRN] - Error sending messages to module bewaPi1/SampleModule2
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:28.517 +00:00 [WRN] - Non retryable exception occurred while sending message.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:28.521 +00:00 [WRN] - Error sending messages to module bewaPi1/SampleModule2
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:33.666 +00:00 [WRN] - Non retryable exception occurred while sending message.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:33.669 +00:00 [WRN] - Error sending messages to module bewaPi1/SampleModule2
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:39.012 +00:00 [WRN] - Non retryable exception occurred while sending message.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
2018-12-21 07:28:39.015 +00:00 [WRN] - Error sending messages to module bewaPi1/SampleModule2
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at DotNetty.Buffers.HeapArena.NewChunk(Int32 pageSize, Int32 maxOrder, Int32 pageShifts, Int32 chunkSize)
at DotNetty.Buffers.PoolArena`1.AllocateNormal(PooledByteBuffer`1 buf, Int32 reqCapacity, Int32 normCapacity)
at DotNetty.Buffers.PoolArena`1.Allocate(PoolThreadCache`1 cache, PooledByteBuffer`1 buf, Int32 reqCapacity)
at DotNetty.Buffers.PooledByteBufferAllocator.NewHeapBuffer(Int32 initialCapacity, Int32 maxCapacity)
at DotNetty.Buffers.AbstractByteBufferAllocator.Buffer(Int32 initialCapacity, Int32 maxCapacity)
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ByteBufferConverter.ToByteBuffer(Byte[] bytes) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ByteBufferConverter.cs:line 39
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.ProtocolGatewayMessageConverter.FromMessage(IMessage message) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/ProtocolGatewayMessageConverter.cs:line 101
at Microsoft.Azure.Devices.Edge.Hub.Mqtt.DeviceProxy.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/DeviceProxy.cs:line 73
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 256
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.<>c__DisplayClass5_2.<<ProcessAsync>b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 98
So the problem is caused by System.OutOfMemoryExceptions. But what is causing those exceptions?
Update2: This seems to be a known problem (see here) and can be solved by Setting OptimizeForPerformance to false. I will try this and see if it works.
The message routing between modules does not work because of System.OutOfMemoryExceptions in the edgeHub module. The problem is described and discussed here.
Microsoft has implemented a solution which is described here.
In short: If running IotEdge Solutions on Raspberry Pi the environment variable OptimizeForPerformance has to be set to false.
Seems the issue related to
https://learn.microsoft.com/en-us/azure/iot-edge/troubleshoot#stability-issues-on-resource-constrained-devices
Please refer the link and turn off OptimizeForPerformance in deployment manifest.

How to setup NativeScript Angular with Karma, karma-typescript, Jasmine, Mocha, Chai

I'm trying to configure karma.config.js to run with NativeScript Angular project following the official doc:
https://docs.nativescript.org/angular/tooling/testing
The problem is the tests always failed and always running node_modules/ and platforms/ too but I mentioned them in excludeFiles property.
I created a github repo to reproduce it
I'm using a separated branches to reproduce it with jasmine and mocha
https://github.com/francisrod01/native-script-angular2-karma-demo
Scenario 1: karma-typescript + jasmine
dependencies:
nativescript-angular: ~5.3.0
nativescript-theme-core: ~1.0.4
nativescript-unit-test-runner: ^0.3.4
reflect-metadata: ~0.1.8
tns-core-modules: ~4.0.0
devDependencies:
#types/node: ^10.1.4
babel-traverse: 6.26.0
babel-types: 6.26.0
babylon: 6.18.0
jasmine-core: ^3.1.0
karma: ^2.0.2
karma-jasmine: ^1.1.2
karma-nativescript-launcher: ^0.4.0
karma-typescript: ^3.0.12
lazy: 1.0.11
nativescript: ^4.0.2
nativescript-dev-typescript: ~0.7.0
typescript: ~2.7.2
The karma.conf.js file:
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'karma-typescript'],
// list of files / patterns to load in the browser
files: [
{ pattern: 'app/**/*.ts' },
{ pattern: 'app/tests/*.ts' }
],
// list of files to exclude
exclude: [
'node_modules',
'platforms'
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'app/**/*.ts': ['karma-typescript', 'coverage'],
'app/tests/*.ts': ['karma-typescript']
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'coverage', 'karma-typescript'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
customLaunchers: {
android: {
base: 'NS',
platform: 'android'
},
ios: {
base: 'NS',
platform: 'ios'
},
ios_simulator: {
base: 'NS',
platform: 'ios',
arguments: ['--emulator']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
})
}
Bellow follow the compile error output:
29 05 2018 17:00:32.699:WARN [watcher]: All files matched by "/home/paneladm/my-ns-app/app/tests/*.ts" were excluded or matched by prior matchers.
29 05 2018 17:00:32.965:INFO [compiler.karma-typescript]: Compiling project using Typescript 2.6.2
29 05 2018 17:00:35.600:ERROR [compiler.karma-typescript]: app/utils/file-reader.ts(10,16): error TS2693: 'Promise' only refers to a type, but is being used as a value here.
29 05 2018 17:00:35.601:ERROR [compiler.karma-typescript]: node_modules/#angular/common/src/directives/ng_class.d.ts(48,34): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.601:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/change_detection/differs/default_iterable_differ.d.ts(12,32): error TS2304: Cannot find name 'Iterable'.
29 05 2018 17:00:35.601:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,16): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.601:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(32,16): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.601:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/change_detection/differs/iterable_differs.d.ts(14,48): error TS2304: Cannot find name 'Iterable'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/change_detection/differs/keyvalue_differs.d.ts(22,18): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/di/reflective_provider.d.ts(87,123): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/core/src/di/reflective_provider.d.ts(87,165): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/platform-browser/src/browser/browser_adapter.d.ts(79,33): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/platform-browser/src/dom/dom_adapter.d.ts(97,42): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/platform-browser/src/dom/shared_styles_host.d.ts(11,30): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.602:ERROR [compiler.karma-typescript]: node_modules/#angular/platform-browser/src/dom/shared_styles_host.d.ts(22,30): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/nativescript-angular/dom-adapter.d.ts(79,34): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/nativescript-drop-down/drop-down.d.ts(16,33): error TS2307: Cannot find module 'data/observable-array'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/nativescript-drop-down/drop-down.d.ts(17,62): error TS2307: Cannot find module 'ui/core/view'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/nativescript-drop-down/drop-down.d.ts(18,30): error TS2307: Cannot find module 'ui/gestures/gestures'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/nativescript-drop-down/drop-down.d.ts(19,29): error TS2307: Cannot find module 'ui/list-picker'.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/rxjs/Observable.d.ts(58,60): error TS2693: 'Promise' only refers to a type, but is being used as a value here.
29 05 2018 17:00:35.603:ERROR [compiler.karma-typescript]: node_modules/rxjs/Observable.d.ts(74,59): error TS2693: 'Promise' only refers to a type, but is being used as a value here.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/core/view-base/view-base.d.ts(243,24): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/core/view-base/view-base.d.ts(244,30): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/core/view/view.d.ts(352,17): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/core/view/view.d.ts(353,23): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/styling/css-selector/css-selector.d.ts(16,18): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/styling/css-selector/css-selector.d.ts(17,24): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/styling/css-selector/css-selector.d.ts(57,41): error TS2304: Cannot find name 'Map'.
29 05 2018 17:00:35.604:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/styling/css-selector/css-selector.d.ts(60,18): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.605:ERROR [compiler.karma-typescript]: node_modules/tns-core-modules/ui/styling/css-selector/css-selector.d.ts(61,21): error TS2304: Cannot find name 'Set'.
29 05 2018 17:00:35.708:INFO [compiler.karma-typescript]: Compiled 17 files in 2717 ms.
29 05 2018 17:00:35.723:WARN [karma]: Port 9876 in use
29 05 2018 17:00:35.724:INFO [karma]: Karma v2.0.2 server started at http://0.0.0.0:9877/
29 05 2018 17:00:35.724:INFO [launcher]: Launching browser android with unlimited concurrency
29 05 2018 17:00:35.752:INFO [launcher]: Starting browser NativeScript Unit Test Runner
Copying template files...
⠙ Installing tns-android
⠸ 29 05 2018 17:00:36.854:ERROR [karma]: Error: Unable to resolve module [./src/localize] from [/home/paneladm/my-ns-app/node_modules/nativescript-localize/angular.js]
{
"basedir": "/home/paneladm/my-ns-app",
"extensions": [
".js",
".json",
".ts",
".tsx"
],
"moduleDirectory": [
"node_modules"
],
"modules": {
"assert": "/home/paneladm/my-ns-app/node_modules/assert/assert.js",
"buffer": "/home/paneladm/my-ns-app/node_modules/buffer/index.js",
"child_process": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"cluster": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"console": "/home/paneladm/my-ns-app/node_modules/console-browserify/index.js",
"constants": "/home/paneladm/my-ns-app/node_modules/constants-browserify/constants.json",
"crypto": "/home/paneladm/my-ns-app/node_modules/crypto-browserify/index.js",
"dgram": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"dns": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"domain": "/home/paneladm/my-ns-app/node_modules/domain-browser/source/index.js",
"events": "/home/paneladm/my-ns-app/node_modules/events/events.js",
"fs": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"http": "/home/paneladm/my-ns-app/node_modules/stream-http/index.js",
"https": "/home/paneladm/my-ns-app/node_modules/https-browserify/index.js",
"module": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"net": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"os": "/home/paneladm/my-ns-app/node_modules/os-browserify/browser.js",
"path": "/home/paneladm/my-ns-app/node_modules/path-browserify/index.js",
"punycode": "/home/paneladm/my-ns-app/node_modules/punycode/punycode.js",
"querystring": "/home/paneladm/my-ns-app/node_modules/querystring-es3/index.js",
"readline": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"repl": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"stream": "/home/paneladm/my-ns-app/node_modules/stream-browserify/index.js",
"_stream_duplex": "/home/paneladm/my-ns-app/node_modules/readable-stream/duplex.js",
"_stream_passthrough": "/home/paneladm/my-ns-app/node_modules/readable-stream/passthrough.js",
"_stream_readable": "/home/paneladm/my-ns-app/node_modules/readable-stream/readable.js",
"_stream_transform": "/home/paneladm/my-ns-app/node_modules/readable-stream/transform.js",
"_stream_writable": "/home/paneladm/my-ns-app/node_modules/readable-stream/writable.js",
"string_decoder": "/home/paneladm/my-ns-app/node_modules/string_decoder/lib/string_decoder.js",
"sys": "/home/paneladm/my-ns-app/node_modules/util/util.js",
"timers": "/home/paneladm/my-ns-app/node_modules/timers-browserify/main.js",
"tls": "/home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/empty.js",
"tty": "/home/paneladm/my-ns-app/node_modules/tty-browserify/index.js",
"url": "/home/paneladm/my-ns-app/node_modules/url/url.js",
"util": "/home/paneladm/my-ns-app/node_modules/util/util.js",
"vm": "/home/paneladm/my-ns-app/node_modules/vm-browserify/index.js",
"zlib": "/home/paneladm/my-ns-app/node_modules/browserify-zlib/lib/index.js",
"_process": "/home/paneladm/my-ns-app/node_modules/process/browser.js"
},
"filename": "",
"paths": []
}
Error: Cannot find module './src/localize' from '/home/paneladm/my-ns-app/node_modules/nativescript-localize'
at /home/paneladm/my-ns-app/node_modules/karma-typescript/dist/bundler/resolve/resolver.js:163:27
at /home/paneladm/my-ns-app/node_modules/browser-resolve/index.js:265:24
at /home/paneladm/my-ns-app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:18
at load (/home/paneladm/my-ns-app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/home/paneladm/my-ns-app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /home/paneladm/my-ns-app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:170:21)
Test run failed.
Scenario 2: Using karma + mocha, chai
Scenario 2: Dependencies version to karma + mocha:
dependencies:
nativescript-angular: ~5.3.0
nativescript-theme-core: ~1.0.4
nativescript-unit-test-runner: ^0.3.4
reflect-metadata: ~0.1.8
tns-core-modules: ~4.0.0
devDependencies:
babel-traverse: 6.26.0
babel-types: 6.26.0
babylon: 6.18.0
chai: ^4.1.2
karma: ^2.0.2
karma-chai: ^0.1.0
karma-mocha: ^1.3.0
karma-nativescript-launcher: ^0.4.0
lazy: 1.0.11
mocha: ^5.2.0
nativescript: ^4.0.2
nativescript-dev-typescript: ~0.7.0
typescript: ~2.7.2
The karma.conf.js file:
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai'],
// list of files / patterns to load in the browser
files: [
'app/**/*.js',
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
customLaunchers: {
android: {
base: 'NS',
platform: 'android'
},
ios: {
base: 'NS',
platform: 'ios'
},
ios_simulator: {
base: 'NS',
platform: 'ios',
arguments: ['--emulator']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
})
}
The error on console:
30 05 2018 12:58:56.816:INFO [watcher]: Changed file ".../app/tests/example.js".
Chrome 66.0.3359 (Linux 0.0.0) ERROR
{
"message": "An error was thrown in afterAll\nUncaught ReferenceError: exports is not defined
On http://localhost:9876/debug.html the Chrome browser, the Karma DEBUG RUNNER shows it:
Uncaught ReferenceError: exports is not defined
at app.component.js:2
The app.component.js compiled file:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("#angular/core");
var AppComponent = /** #class */ (function () {
function AppComponent() {
}
AppComponent = __decorate([
core_1.Component({
selector: "ns-app",
templateUrl: "app.component.html",
})
], AppComponent);
return AppComponent;
}());
exports.AppComponent = AppComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFwcC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBMEM7QUFPMUM7SUFBQTtJQUE0QixDQUFDO0lBQWhCLFlBQVk7UUFMeEIsZ0JBQVMsQ0FBQztZQUNQLFFBQVEsRUFBRSxRQUFRO1lBQ2xCLFdBQVcsRUFBRSxvQkFBb0I7U0FDcEMsQ0FBQztPQUVXLFlBQVksQ0FBSTtJQUFELG1CQUFDO0NBQUEsQUFBN0IsSUFBNkI7QUFBaEIsb0NBQVkiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogXCJucy1hcHBcIixcbiAgICB0ZW1wbGF0ZVVybDogXCJhcHAuY29tcG9uZW50Lmh0bWxcIixcbn0pXG5cbmV4cG9ydCBjbGFzcyBBcHBDb21wb25lbnQgeyB9XG4iXX0=
References
github - karma-typescript - Could it be used in a Nativescript-Angular2 App?
NS discourse - My question about it

.plaso to elasticsearch using psort.py: authentication error

I have been trying to load .plaso file to elk engine using psort.py. But i am getting the Authentication Error.
Error:
elasticsearch.exceptions.AuthenticationException: TransportError(401, u'')
also I have disabled xpath security
Other info:
2017-02-25 17:28:27,720 [INFO] (MainProcess) PID:13544 <elastic> Server address:
127.0.0.1
2017-02-25 17:28:27,727 [INFO] (MainProcess) PID:13544 <elastic> Server port: 92
00
2017-02-25 17:28:27,732 [INFO] (MainProcess) PID:13544 <elastic> Index name: c8b
d7007962e40ae8bc2360da5661706
2017-02-25 17:28:27,737 [INFO] (MainProcess) PID:13544 <elastic> Document type:
plaso_event
2017-02-25 17:28:27,743 [INFO] (MainProcess) PID:13544 <elastic> Flush interval:
1000
2017-02-25 17:28:27,747 [INFO] (MainProcess) PID:13544 <elastic> Add non analyze
d string fields: False
Traceback (most recent call last):
File "C:\Python27\Scripts\psort.py", line 880, in <module>
if not Main():
File "C:\Python27\Scripts\psort.py", line 866, in Main
tool.ProcessStorage()
File "C:\Python27\Scripts\psort.py", line 810, in ProcessStorage
Thanks for the help