{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/3546","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/3546/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/3546/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/3546/events","html_url":"https://github.com/eclipse/che/issues/3546","id":197825444,"number":3546,"title":"Make CLI show che-server start logs in dev mode ","user":{"login":"garagatyi","id":1851863,"avatar_url":"https://avatars.githubusercontent.com/u/1851863?v=3","gravatar_id":"","url":"https://api.github.com/users/garagatyi","html_url":"https://github.com/garagatyi","followers_url":"https://api.github.com/users/garagatyi/followers","following_url":"https://api.github.com/users/garagatyi/following{/other_user}","gists_url":"https://api.github.com/users/garagatyi/gists{/gist_id}","starred_url":"https://api.github.com/users/garagatyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garagatyi/subscriptions","organizations_url":"https://api.github.com/users/garagatyi/orgs","repos_url":"https://api.github.com/users/garagatyi/repos","events_url":"https://api.github.com/users/garagatyi/events{/privacy}","received_events_url":"https://api.github.com/users/garagatyi/received_events","type":"User","site_admin":false},"labels":[{"id":192367928,"url":"https://api.github.com/repos/eclipse/che/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-28T09:47:50Z","updated_at":"2016-12-29T08:33:17Z","closed_at":null,"body":"Sometimes in development che-server doesn't start. It can happen if developer did mistake in configuration, etc.\r\nIn that case CLI waits che-server too long. It would improve Che developers experience if these logs were shown by default, so developer identify problem immediately after looking at errors in logs.\r\n\r\n**Che version:**    5.0.0-Snapshot\r\n**OS and version:** Ubuntu 16.04\r\n**Docker version:** 12.04\r\n**Che install:**    Docker container"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/269597746","html_url":"https://github.com/eclipse/che/issues/3546#issuecomment-269597746","issue_url":"https://api.github.com/repos/eclipse/che/issues/3546","id":269597746,"user":{"login":"garagatyi","id":1851863,"avatar_url":"https://avatars.githubusercontent.com/u/1851863?v=3","gravatar_id":"","url":"https://api.github.com/users/garagatyi","html_url":"https://github.com/garagatyi","followers_url":"https://api.github.com/users/garagatyi/followers","following_url":"https://api.github.com/users/garagatyi/following{/other_user}","gists_url":"https://api.github.com/users/garagatyi/gists{/gist_id}","starred_url":"https://api.github.com/users/garagatyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garagatyi/subscriptions","organizations_url":"https://api.github.com/users/garagatyi/orgs","repos_url":"https://api.github.com/users/garagatyi/repos","events_url":"https://api.github.com/users/garagatyi/events{/privacy}","received_events_url":"https://api.github.com/users/garagatyi/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T08:33:17Z","updated_at":"2016-12-29T08:33:17Z","body":"As far as I understand current logic is:\r\n - run compose start \r\n - wait until container is running\r\n - wait until `curl <che_ip>:<che_port>/api/` responds 200 or 302\r\n\r\nSo we can get logs between curl calls. We don't have to follow logs, just get logs using time stamp of last logs fetch.\r\nBut It may be easier to implement and support if we do that in a way you suggest.\r\n - run compose start \r\n - wait until container is running\r\n - run 'docker logs -f che-server &' and put id of that process into variable\r\n - wait until `curl <che_ip>:<che_port>/api/` responds 200 or 302\r\n - kill job with ID saved in variable"}}
{"actor":{"display_login":"garagatyi"}}