c9 / core

Cloud9 Core - Part of the Cloud9 SDK for Plugin Development https://c9.github.io/core/ https://c9.io
Other
2.56k stars 922 forks source link

Terminal/TMUX not working #342

Open gallexme opened 8 years ago

gallexme commented 8 years ago

Hello my Terminals never load and i get this error in the browser:


default.js:77316 Error creating TMUX session:  Cannot read property 'on' of undefined(anonymous function) @ default.js:77316(anonymous function) @ default.js:77459(anonymous function) @ default.js:103239processCallback @ default.js:166298(anonymous function) @ default.js:166325callbacks.(anonymous function) @ default.js:165646Agent._onMessage @ default.js:165618EventEmitter.emit @ default.js:685onMessage @ default.js:165853EventEmitter.emit @ default.js:685ReliableSocket.onMessage @ default.js:166463EventEmitter.emit @ default.js:685ReconnectSocket.onMessage @ default.js:166800Emitter.emit @ default.js:163505Socket.onPacket @ default.js:162130(anonymous function) @ default.js:161980Emitter.emit @ default.js:163505Transport.onPacket @ default.js:162385Transport.onData @ default.js:162381ws.onmessage @ default.js:163126
2default.js:77316 Error creating TMUX session:  Session was not connecting(anonymous function) @ default.js:77316(anonymous function) @ default.js:77451(anonymous function) @ default.js:103239processCallback @ default.js:166298(anonymous function) @ default.js:166325callbacks.(anonymous function) @ default.js:165646Agent._onMessage @ default.js:165618EventEmitter.emit @ default.js:685onMessage @ default.js:165853EventEmitter.emit @ default.js:685ReliableSocket.onMessage @ default.js:166463EventEmitter.emit @ default.js:685ReconnectSocket.onMessage @ default.js:166800Emitter.emit @ default.js:163505Socket.onPacket @ default.js:162130(anonymous function) @ default.js:161980Emitter.emit @ default.js:163505Transport.onPacket @ default.js:162385Transport.onData @ default.js:162381ws.onmessage @ default.js:163126
default.js:77454 Error connecting to the terminal:  Object {stack: "8: 18: TypeError: Cannot read property 'on' of und…87:13)↵    at ChildProcess.emit (events.js:172:7)", message: "Cannot read property 'on' of undefined"}

im using the c9 docker image to run c9 : https://hub.docker.com/r/kdelfour/cloud9-docker/

but essentialy its just ubuntu which runs the installsdk script

anyone got a idea how i can fix it?

nightwing commented 8 years ago

try running install sdk script again, most likely there was an error while doing npm install pty.js

gallexme commented 8 years ago

k will change the docker file to run it twice on image building, testing

nightwing commented 8 years ago

I mean run it in the container which is broken to see what errors it prints, running it twice should not help unless there are network issues.

gallexme commented 8 years ago

oh its broken in all my c9 containers^^ i just use them for the webinterface files are stored outside

so i just rebuilded all with 2 times running the install sdk out.txt

heres to build log if it maybe helps

ido4pro commented 8 years ago

Add in dockerfile "RUN curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash" fix pty issue for me.

Install Cloud9

RUN git clone https://github.com/c9/core.git /opt/cloud9 WORKDIR /opt/cloud9 RUN scripts/install-sdk.sh

Install all the required dependencies

RUN curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash

drmrbrewer commented 5 years ago

I'm having this issue, and none of the above suggestions works. Running the install sdk script again in the cloud9 container doesn't result in any errors. Any other ideas?

albertoZurini commented 4 years ago

@drmrbrewer, have you managed to find a solution?