Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Debian 9 #13

Closed
siikanen opened this issue Mar 5, 2019 · 4 comments
Closed

Crashes on Debian 9 #13

siikanen opened this issue Mar 5, 2019 · 4 comments

Comments

@siikanen
Copy link

siikanen commented Mar 5, 2019

Running releases on Debian 9 container crashes after 1-2min

  • vscode-remote version: both available releases
  • OS Version: Debian 9

Steps to Reproduce

root@cortana:/tmp/test# code-server $(pwd)
INFO  code-server v1.0.0
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.code-server","working-dir":"/tmp/test","log-dir":"/root/.code-server/logs/20190305212210780"}
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO
INFO  Password: PmH3ge09215X
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Starting shared process [1/5]...
/usr/bin/code-server:340
 */var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",a=0,s=0;for(a=i.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==a&&(o+=n.substring(s,a)),s=a+1,o+=t}return s!==a?o+n.substring(s,a):o}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==t)return function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?e(i,n):n.push(i)}return n}(e,[]);return function e(t,n,r){for(var i=0;i<t.length;i++){var o=t[i];r>0&&Array.isArray(o)?e(o,n,r-1):n.push(o)}return n}(e,[],t)}},function(e,t){e.exports=function(e,t){if(e&&t)for(var n in t)e[n]=t[n];return e}},function(e,t,n){"use strict";const r=n(678),i=n(191),o=n(199),a=n(92),s=Buffer.from([0,0,255,255]),c=Buffer.from([0]),u=Symbol("permessage-deflate"),l=Symbol("write-in-progress"),p=Symbol("pending-close"),d=Symbol("total-length"),f=Symbol("callback

TypeError: Cannot read property 'on' of undefined
    at t.emitLines (/usr/bin/code-server:340:7474)
    at t.async (/usr/bin/code-server:716:35103)
    at e.exports (/usr/bin/code-server:716:34522)
    at e (/usr/bin/code-server:716:33324)
    at Timeout.c [as _onTimeout] (/usr/bin/code-server:716:33617)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)
root@cortana:/tmp/test#
root@cortana:/tmp/test# uname -a
Linux cortana 4.15.18-7-pve #1 SMP PVE 4.15.18-27 (Wed, 10 Oct 2018 10:50:11 +0200) x86_64 GNU/Linux
root@cortana:/tmp/test#
@kylecarbs
Copy link
Member

Interesting. Will look into this.

Thanks for the report!

@zingdle
Copy link

zingdle commented Mar 6, 2019

Same on Ubuntu 18.04 with code-server 1.31.0-20

@sr229
Copy link
Contributor

sr229 commented Mar 6, 2019

1.31.0 and above is confirmed to work on my end. Tested on these targets:

  • Debian Stretch
  • Debian Jessie
  • Fedora 29
  • Container-Optimized OS
  • Ubuntu 18.04
  • Ubuntu 18.10

@kylecarbs
Copy link
Member

Solution seems to be found in #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants