A startup of an application failed ... The command "cf crashlogs <appname>" shows that there are logs .... But I'm not able to find the logs. Where can I see detailed logs?
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CADf97R0T%3D17eR%2BkYyb_CY9kN4ZBu%3Dx6eZU_fv06XsET_rpPu1A%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
Hi,Dan is right,Still the cf logs —recent will give you the crash log of the app failing to start only if the app instance started at least one and the container exist.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/DF554A74-0F58-4937-A37B-113409DB4EAB%40altoros.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+unsubscribe@cloudfoundry.org.
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/DF554A74-0F58-4937-A37B-113409DB4EAB%40altoros.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+unsubscribe@cloudfoundry.org.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/d4b6ab3d-9345-490c-a7f3-cc0cbcbb5f93%40cloudfoundry.org.To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
Hi Everyone,Nobody have found a better way to do this? it is annoying for me to ssh the DEA to get those crashlogs. When the app never succeed to start its impossible to see those logs. Is there a story on the runtime team to address this issue?
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/DC77DF4F-B06C-4CB1-8FD4-3676F2E7B0CD%40altoros.com.
1.) What version of CF runtime & CF client are your running when you need to do this?
2.) How could I replicate this issue? Do you have a test app or will any broken app work? What is the exact set of cf commands that I should execute?
$ git clone https://github.com/bonzofenix/vanilla-node$ cd vanilla-node$ cf push crash-app -c ‘BUM’
$ cf logs crash-app
3.) What is not showing up in the output of "cf logs" versus what you get when you ssh to the DEA? For example, do you see any of the logs, are they truncated or just missing some statements?
5.0, negot...@0.3.0, multi...@2.2.0)2014-07-02T01:24:20.35+0000 [STG] OUT -----> Caching node_modules directory for future builds2014-07-02T01:24:20.42+0000 [STG] OUT -----> Cleaning up node-gyp and npm artifacts2014-07-02T01:24:20.43+0000 [STG] OUT -----> No Procfile found; Adding npm start to new Procfile2014-07-02T01:24:20.43+0000 [STG] OUT -----> Building runtime environment2014-07-02T01:24:20.44+0000 [STG] ERR2014-07-02T01:24:22.64+0000 [STG] OUT -----> Uploading droplet (8.8M)2014-07-02T01:24:28.94+0000 [DEA] OUT Starting app instance (index 0) with guid e1d04000-9e70-4a9c-a58f-4928875438942014-07-02T01:24:30.75+0000 [DEA] OUT Instance (index 0) failed to start accepting connections2014-07-02T01:24:30.76+0000 [API] OUT App instance exited with guid e1d04000-9e70-4a9c-a58f-492887543894 payload: {"cc_partition"=>"default", "droplet"=>"e1d04000-9e70-4a9c-a58f-492887543894", "version"=>"4c01dc53-8ad0-48de-9153-14c635e6f335", "instance"=>"3911c8d8da42477ea1db4519ae31281a", "index"=>0, "reason"=>"CRASHED", "exit_status"=>127, "exit_description"=>"app instance exited", "crash_timestamp"=>1404264270}
4.) What steps are you using to get the logs when you're ssh'd to the dea?
On Wed, Jun 25, 2014 at 11:50 AM, Alan Morán <alan....@altoros.com> wrote:Hi Everyone,Nobody have found a better way to do this? it is annoying for me to ssh the DEA to get those crashlogs. When the app never succeed to start its impossible to see those logs. Is there a story on the runtime team to address this issue?I do quite a bit of app troubleshooting with various Pivotal customers and I can't recall the last time I had to do this. The output of "cf logs" has been reliable for me. Perhaps you can explain this a little more.Some questions...
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CADf97R36YtsggPSyc9EWwm0%3DTxyrLs2fTyRKNX6T%3Dh_8KTz-uQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/871DE91A-8763-438E-97E3-B4A191CE2123%40altoros.com.
Hi Dan,Thanks for the help, and sorry for the delay in my answer.Let me explain you what is happening so you can you maybe try to reproduce it:1.) What version of CF runtime & CF client are your running when you need to do this?CF: cf-173 on openstackCLI: 6.1.2-6a013ca2.) How could I replicate this issue? Do you have a test app or will any broken app work? What is the exact set of cf commands that I should execute?you can reproduce it like this:$ git clone https://github.com/bonzofenix/vanilla-node$ cd vanilla-node$ cf push crash-app -c ‘BUM’
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/871DE91A-8763-438E-97E3-B4A191CE2123%40altoros.com.
Some suggestions off the top of my head. Not sure if these will help or not.1.) Use "sleep 1 && <cmd>". Perhaps this will give loggregator more time to connect.
2.) Have you tried a Procfile? Is that any better?3.) What about "scripts.start"? Is that the same?
Thanks for the response Dan! See comments inline:Some suggestions off the top of my head. Not sure if these will help or not.1.) Use "sleep 1 && <cmd>". Perhaps this will give loggregator more time to connect.I was thinking the same thing.
Though it assumes you're already aware of the loggregator connect time problem. This is a bigger problem for beginners. Who's apps fails to start and loggregator logs aren't helping them.
Would it be possible for the DEA to inject a sleep into app startup? Giving Loggregator time to connect?2.) Have you tried a Procfile? Is that any better?3.) What about "scripts.start"? Is that the same?I'm not sure what you mean by these options? I know an invalid "start_command" from the buildpack has the same problem. Is there a particular hope that these other start options might yield a different result? Regardless I think the core problem is a beginner's experience not the actual logistics once you're aware of the problem.
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CADf97R15K%2BkdNejLwQeZNq3GninopG6X7AEvxw8qtQEWe0YYbA%40mail.gmail.com.