New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 642492 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Jan 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug-Regression



Sign in to add a comment

Cpanel reports "Kiosk App Info" for device when no kiosk app is active.

Project Member Reported by mlight@google.com, Aug 30 2016

Issue description

Version: build 8743.4.0   chromeos 54.0.2840.6
OS: ChromeOS, M54 Dev channel.

What steps will reproduce the problem?
(1) Enroll a device into a domain (mine is crosprqa4.com)
(2) Use Cpanel to assign the device to an OU which auto-launches a kiosk app (Chrome Sign builder in my case).
(3) Reboot the device but cancel the auto-launch (<ctrl>-<alt>-s).
(4) In Cpanel, locate the device by id (mine is E5MSCX027759, a panther)
(5) Navigate to its System Activity and Troubleshooting info.

The "Kiosk App Info" should not show CSB as the active app (eventually).

What is the expected output?
The "Kiosk App Info" should not show CSB as the active app (eventually).
It should eiher be blank, or not reported at all.

What do you see instead?
Kiosk App Info continues to show "Chrome Sign Builder 1.0.4", even when a different app is manually selected to run.  I waited about a half hour when no kiosk app was active, and another half hour when a different app was launched.

Please use labels and text to provide additional information.

 

Comment 1 by mlight@google.com, Aug 30 2016

Owner: xiy...@chromium.org
Hello Xi Yuan,

Scott referred me to you as a good person to start with for triaging this problem.  It isn't clear if this is due to chromeos not reporting its active kiosk status, or cpanel not reporting it properly, or maybe something with my panther device itself.  I will be trying the same test on a rikku later this afternoon and will update this issue then.

Thanks!
-- Mike

Comment 2 by xiy...@chromium.org, Aug 30 2016

Cc: jinzhang@chromium.org
+jinzhang

Have you configured device_status_frequency in device policy? If not, default status report frequency is 3 hours [1]. I suspect this is why CSB is still showing up in the report.

Jin, is there a way to see the timestamp of a device status report, i.e. when the report is received?

[1]: https://cs.chromium.org/chromium/src/chrome/browser/chromeos/policy/proto/chrome_device_policy.proto?rcl=0&l=106

Comment 3 by mlight@google.com, Aug 30 2016

I have not changed the device status report frequency.  Is that a cpanel attribute?  Under Device Management -> Chrome Management -> Device Settings I do have these enabled: User & Device Reporting: "Enable device state reporting", and under Kiosk Settings: "Enable device health monitoring" and "Enable device system log upload".

Comment 4 by mlight@google.com, Aug 30 2016

Ah, I found a chrome browser policy called "Report Upload Frequency" which is currently "900000". I assume that's milliseconds?  which would be 15 minutes. I'll try to tweak that.
Xiyuan, for kiosk devices (has auto launched app configured in policy), devices upload status every 15 minutes instead of 3 hours. Note that this frequency policy is not exposed in CPanel. However, the frequency is not the issue here.

I think the issue is when no more kiosk session status is being reported, DMServer didn't actually clear the old session status information, causing stale information being displayed.

Let me get the last status report time to confirm.

Last status report time was 2016-08-30 16:15:06 PST, with the active app as "Mike Kiosk Printtest". Mike, did you update the auto-launched Kiosk app via CPanel?

Comment 7 by mlight@google.com, Aug 30 2016

Yes, I was in the midst of M54-dev testing and needed to move on to the next of 28 tests. 
Filed a server-side bug to track this issue.
Labels: M-54

Comment 10 by mlight@google.com, Aug 31 2016

The same test on a rikku device has slightly different results.  Enrolled the device, moved it to Operations -> Facilities, rebooted, interrupted the auto-launch of Chrome Sign Builder, and after a half hour Cpanel is still showing the gray circle (Device online/offline status is unknown).  It is definitely alive and sitting at the home screen waiting for something to be clicked. (serial number D9Z0BPW0015180EE8F7600, IP 100.107.2.226).

I'll let it sit overnight and see what Cpanel shows in the morning.
Project Member

Comment 11 by sheriffbot@chromium.org, Aug 31 2016

Labels: Hotlist-Google

Comment 12 by mlight@google.com, Aug 31 2016

As of 9:45am today (8/31), the Cpanel status for my rikku is:

   Red circle:  "Device is offline."  [It is alive and well, albeit idle]
   Kiosk App info:  "Chrome Sign Builder 1.0.4"  [No kiosk app is running]
 

Can you please verify on the rikku device the policy |heartbeat_enabled| policy is true?

Wait, I saw the device was back online again. Did you do anything?
Cc: -scunning...@chromium.org xiy...@chromium.org
Owner: jinzhang@chromium.org
Cc: scunning...@chromium.org

Comment 16 by mlight@google.com, Aug 31 2016

I moved the mouse, but didn't execute anything.  My Cpanel still shows the red-circle "device is offline" status.

Chrome Policy "HeartbeatEnabled" is "true".

Comment 17 by mlight@google.com, Aug 31 2016

I entered a Public Session to check the chrome browser policies, and now Cpanel is showing the green "Device is online" status.

Cc: -scunning...@chromium.org atwilson@chromium.org
I suspect when device escapes auto-launch and sits on the home screen, the heartbeat scheduler may not be initialized, hence no heartbeat sent via GCM. However, I'm not the client expert here.

Drew, do you know if this is the case?
Cc: scunning...@chromium.org

Comment 20 by mlight@google.com, Aug 31 2016

I have taken the rikku off-line for now.  I will resume M54-dev testing later this afternoon (8/31).

Comment 21 by mlight@google.com, Aug 31 2016

The rikku is online again.  At approximately 3:30pm (8/31) I assigned the device to Operations -> Facilities, rebooted, let it play Chrome Sign Builder for a couple of minutes, then rebooted again and aborted the auto-launch of CSB.

It has been sitting on the home screen doing nothing for a little over a half hour.  Cpanel shows the "Device is online" fine, but is still showing CSB as the Kiosk App info.  I'll refresh the device status page every half hour or so until 6pm tonight, and let it sit idle overnight.

Comment 22 by mlight@google.com, Aug 31 2016

Just checked the rikku status, and it showed the red circle (Device is offline).
Looking at the box, I saw its blue power button flashing, which I'm betting means it has automatically decided to go to sleep when it has been idle for awhile.

Clicking the mouse wakes the rikku up.  

Back on Cpanel, the heartbeat is green (online) again.
The Kiosk App info is still showing CSB, though.

I'll see if there is a way to prevent the rikku from auto-sleeping.

Comment 23 by mlight@google.com, Sep 1 2016

I located an extension called "keep-awake" (webstore id: bijihlabcfdnabacffofojgmehjdielb).  Hopefully that will keep the rikku alert through the night.


Comment 24 by mlight@google.com, Sep 1 2016

The keep-awake extension did its job; the guado did not go into sleep mode overnight.

The cpanel system activity info shows:  
   heartbeat:  gray circle (device online/offline status unknown)
   Kiosk app info:  Chrome Sign Builder 1.04  [definitely no kiosk app running]

Status: Assigned (was: Untriaged)
Cc: -scunning...@chromium.org
Status: Fixed (was: Assigned)
This is fixed server-side and the fix will be in production in about a week from now.
Status: Verified (was: Fixed)
kiosk app info not being reported if application is not currently running

Sign in to add a comment