DAPR 1.2.0 extension not work with TYE 0.7
See original GitHub issueDescribe the bug
If I run this project: https://github.com/andreatosato/dapr-mosquito There was an error.
mqttsubscriber_73e7593e-e running on process id 16624 bound to http://localhost:59467, https://localhost:59468
[23:13:01 ERR] Failed to launch process for service mqttsubscriber-dapr_b99d7a08-3
System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary`2 environmentVariables, Action`1 outputDataReceived, Action`1 errorDataReceived, Action`1 onStart, Action`1 onStop, CancellationToken cancellationToken) in /_/src/Microsoft.Tye.Core/ProcessUtil.cs:line 138
at Microsoft.Tye.Hosting.ProcessRunner.<>c__DisplayClass8_0.<<LaunchService>g__RunApplicationAsync|0>d.MoveNext() in /_/src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 397
This is .NET 5 project with MQTT mosquitto.
name: Mqtt
extensions:
- name: dapr
log-level: debug
components-path: "./Components/"
services:
- name: MqttSubscriber
project: DaprMqttCS.csproj
- name: mosquitto
image: eclipse-mosquitto
bindings:
- port: 1883
volumes:
- source: ./mqtt/
target: /mosquitto/config/
Same application with docker-compose work fine!
To Reproduce
tye run --debug Open Swagger, send event and see console that write info
Further technical details
tye --version
0.7.0-alpha.21279.2+b675b189125d4a3c824de65e987aa808e38ec269- If possible rerun the command with
-v debug
and include the output - The platform (Windows)
Log complete
tye run -v debug
Loading Application Details...
Restoring and evaluating projects
Resolved metadata for service mqttsubscriber at C:\Users\Andrea Tosato\source\repos\andreatosato\dapr-mosquito\obj\Debug\net5.0\MicrosoftTye.ProjectMetadata.txt
Restore and project evaluation took: 2058.6178ms
Found application version: 1.0.0
RunCommand=C:\Users\Andrea Tosato\source\repos\andreatosato\dapr-mosquito\bin\Debug\net5.0\DaprMqttCS.exe
RunArguments=
TargetPath=C:\Users\Andrea Tosato\source\repos\andreatosato\dapr-mosquito\bin\Debug\net5.0\DaprMqttCS.dll
PublishDir=bin\Debug\net5.0\publish\
AssemblyName=DaprMqttCS
IntermediateOutputPath=obj\Debug\net5.0\
Found target framework: net5.0
Parsed target framework name: net
Parsed target framework version: 5.0
Found shared frameworks: Microsoft.NETCore.App, Microsoft.AspNetCore.App
IsAspNet=True
Evaluation Took: 6.8606ms
A 'placement-port' has not been defined. So the 'exclude-placement-container' will default to 'false'.
Injecting Dapr placement service...
Launching Tye Host...
[23:20:02 INF] Executing application from C:\Users\Andrea Tosato\source\repos\andreatosato\dapr-mosquito\tye.yaml
[23:20:02 INF] Dashboard running on http://127.0.0.1:8000
[23:20:03 INF] Docker image eclipse-mosquitto already installed
[23:20:03 INF] Docker image daprio/dapr already installed
[23:20:03 INF] Creating docker network tye_network_82da1c17-0
[23:20:03 INF] Running docker command network create --driver bridge tye_network_82da1c17-0
[23:20:04 INF] Running image eclipse-mosquitto for mosquitto_609de28b-0
[23:20:04 INF] Running image daprio/dapr for placement_3cb64bc7-0
[23:20:04 DBG] Running proxy image mcr.microsoft.com/dotnet/core/sdk:3.1 for mqttsubscriber-proxy_287b1162-b
[23:20:04 DBG] Running proxy image mcr.microsoft.com/dotnet/core/sdk:3.1 for mqttsubscriber-dapr-proxy_1534893f-c
[23:20:04 INF] Building projects
[23:20:07 INF] Launching service mqttsubscriber_98c33a08-4: C:\Users\Andrea Tosato\source\repos\andreatosato\dapr-mosquito\bin\Debug\net5.0\DaprMqttCS.exe
[23:20:07 INF] Launching service mqttsubscriber-dapr_635df27c-d: daprd -app-id mqttsubscriber -app-port 63554 -dapr-grpc-port 63556 --dapr-http-port 63557 --metrics-port 63558 --placement-host-address localhost:63553 -log-level debug -components-path ./Components/
[23:20:07 INF] mqttsubscriber_98c33a08-4 running on process id 22700 bound to http://localhost:63554, https://localhost:63555
[23:20:07 ERR] Failed to launch process for service mqttsubscriber-dapr_635df27c-d
System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary`2 environmentVariables, Action`1 outputDataReceived, Action`1 errorDataReceived, Action`1 onStart, Action`1 onStop, CancellationToken cancellationToken) in /_/src/Microsoft.Tye.Core/ProcessUtil.cs:line 138
at Microsoft.Tye.Hosting.ProcessRunner.<>c__DisplayClass8_0.<<LaunchService>g__RunApplicationAsync|0>d.MoveNext() in /_/src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 397
[23:20:07 INF] Replica mqttsubscriber_98c33a08-4 is moving to a ready state
[23:20:07 INF] Selected process 22700.
[23:20:08 INF] Listening for event pipe events for mqttsubscriber_98c33a08-4 on process id 22700
[23:20:11 INF] Running container mqttsubscriber-dapr-proxy_1534893f-c with ID 6e5cc924474f
[23:20:11 INF] Collecting docker logs for mqttsubscriber-dapr-proxy_1534893f-c.
[23:20:12 INF] Running container placement_3cb64bc7-0 with ID deb93e3566dc
[23:20:12 INF] Replica placement_3cb64bc7-0 is moving to a ready state
[23:20:12 INF] Collecting docker logs for placement_3cb64bc7-0.
[23:20:16 INF] Running container mosquitto_609de28b-0 with ID f67f1228c0fa
[23:20:16 INF] Running container mqttsubscriber-proxy_287b1162-b with ID bc5775decfe3
[23:20:16 INF] Replica mosquitto_609de28b-0 is moving to a ready state
[23:20:16 INF] Collecting docker logs for mqttsubscriber-proxy_287b1162-b.
[23:20:16 INF] Collecting docker logs for mosquitto_609de28b-0.
[23:20:17 INF] Launching service mqttsubscriber-dapr_ee42ad7b-c: daprd -app-id mqttsubscriber -app-port 63554 -dapr-grpc-port 63556 --dapr-http-port 63557 --metrics-port 63558 --placement-host-address localhost:63553 -log-level debug -components-path ./Components/
[23:20:17 ERR] Failed to launch process for service mqttsubscriber-dapr_ee42ad7b-c
System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary`2 environmentVariables, Action`1 outputDataReceived, Action`1 errorDataReceived, Action`1 onStart, Action`1 onStop, CancellationToken cancellationToken) in /_/src/Microsoft.Tye.Core/ProcessUtil.cs:line 138
at Microsoft.Tye.Hosting.ProcessRunner.<>c__DisplayClass8_0.<<LaunchService>g__RunApplicationAsync|0>d.MoveNext() in /_/src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 397
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Supported runtime and SDK releases
This topic details the supported versions of Dapr releases, the upgrade policies and how deprecations and breaking changes are communicated in all Dapr...
Read more >Common issues when running Dapr
There are some known cases where this might not properly work: If your pod spec template is annotated correctly, and you still don't...
Read more >Troubleshoot Dapr extension installation errors - Azure
Scenario 1: Installation fails but doesn't show an error message · Solution 1: Restart the cluster, register the service provider, or delete and ......
Read more >dapr-ext-grpc
This is the gRPC extension for Dapr. Dapr is a portable, serverless, event-driven runtime that makes it easy for developers to build resilient, ......
Read more >Dapr.Client 1.9.0
This package contains the reference assemblies for developing services using Dapr. ... Versions Compatible and additional computed target framework versions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have tye version ‘0.8.0-alpha.21311.3+e34a9c57e24a0ebaf7f3d8aad2d7bc6bf636e0aa’, you might want update the version.
@philliphoff Work! Yuppy!