Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
82 stars 12 forks source link

No Content in Mesh Code Container Logs #271

Closed johnnyhuy closed 5 years ago

johnnyhuy commented 6 years ago

Greetings,

I've followed this Set up your Windows development environment guide to deploy a generic application to my local cluster.

Using the template from the Visual Studio plugin, the app properly launches in my browser. However, I can't seem to find container logs other than the debug output from the IDE. I would assume logs are present in the SF cluster manager or sfctl commands (as mentioned here).

Logs are shown in the debug output

image

Missing container logs from both sfctl and SF cluster manager

image

image

I've also launched a Mesh App to Azure Portal and I seem to get the same "content": "" JSON response with the following command:

az mesh code-package-log get --debug --resource-group <some resource group> --application-name TestWebApp --service-name TestWebAppService --replica-name 0 --code-package-name TestWebAppCode

I'm wondering if this is the expected behavior of the containers not showing anything their logs 🤔

Further adding to the question, if I were to just use Powershell scripts to deploy my Mesh app how do I view diagnostic logs of the running container?

Update 03/09/18

I was able to deploy my application locally and found out that code package logs appear for a short period of time before disappearing. I would assume that logs get flushed after a container terminates on an error.

mikkelhegn commented 5 years ago

Fro dead containers logs - see here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-containers-view-logs#access-the-logs-of-a-dead-or-crashed-container

Based on your update, I'm not clear if you are still not seeing the logs from a consistent running container either locally or in Mesh? Can you please clarify - thanks :-)

@srrengar to comment on availability of dead container logs in Mesh in Azure.

srrengar commented 5 years ago

Currently we don't offer a way to grab crash dumps or dead container logs. This is forthcoming.

johnnyhuy commented 5 years ago

Hey guys,

I was always able to view logs from a running container, both in a local cluster and Mesh. Though it’s fairly tricky to catch dead container logs.

I’ve come to the conclusion to use a cluster instead. However I’m guessing we’ll be using something similar to the Service Fabric explorer to diagnose container logs?

srrengar commented 5 years ago

Yes there will be an experience in the portal for this