GeezerVison is showing github.com — gray screen on android after 48 hours without restart · Issue #70 · zebrunner/mcloud-device
gray screen on android after 48 hours without restart #70
Labels
bugSomething isn't working Description
issue with gray screen was repro again using new 2.0 deployment schema as well: zebrunner/mcloud-agent#44
so we have to inspect stream.js and define why some message like start and on not sent for android
Activity
vdelendik commented on Dec 21, 2021
ContributorAuthor
More actions
problem is pretty old and is repro when subscriber and publisher are on different hosts:
openstf/stf#728
openstf/stf#100
As a fix STF provided an option to register zmq tcp connection vars:
https://github.com/openstf/stf/pull/104/files
recommended settings are:
sub.setsockopt(zmq.ZMQ_TCP_KEEPALIVE, 1)
sub.setsockopt(zmq.ZMQ_TCP_KEEPALIVE_IDLE, 600000)
current codebase has:
module.exports.socket = function() {
var sock = zmq.socket.apply(zmq, arguments)
;['ZMQ_TCP_KEEPALIVE', 'ZMQ_TCP_KEEPALIVE_IDLE', 'ZMQ_IPV6'].forEach(function(opt) {
if (process.env[opt]) {
try {
sock.setsockopt(zmq[opt], Number(process.env[opt]))
}
catch (err) {
log.warn('ZeroMQ library too old, no support for %s', opt)
}
}
})
return sock
}
added a commit that references this issue
on Dec 21, 2021#70: declared customized zmq tcp env vars to fix gray screen
vdelendik commented on Dec 21, 2021
ContributorAuthor
More actions
hopefully fixed by adding such env vars:
ENV ZMQ_TCP_KEEPALIVE=1
ENV ZMQ_TCP_KEEPALIVE_IDLE=600
testing started using zebrunner/device:1.0-beta16 docker image
dhreben commented on Dec 29, 2021
Fixed.
Checked after 48 hours.
Metadata
Metadata
bugSomething isn't working Development
No branches or pull requestsIssue actions