Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Terminal/TMUX not working #342

Open
gallexme opened this issue Aug 12, 2016 · 7 comments
Open

Terminal/TMUX not working #342

gallexme opened this issue Aug 12, 2016 · 7 comments

Comments

@gallexme
Copy link

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
Copy link
Member

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

@gallexme
Copy link
Author

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

@nightwing
Copy link
Member

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
Copy link
Author

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
Copy link

ido4pro commented Sep 1, 2016

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
Copy link

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
Copy link

@drmrbrewer, have you managed to find a solution?

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

No branches or pull requests

5 participants