GithubHelp home page GithubHelp logo

Problem with installation about core HOT 19 CLOSED

c9 avatar c9 commented on July 30, 2024
Problem with installation

from core.

Comments (19)

jhausladen avatar jhausladen commented on July 30, 2024

Try "node server.js -p 8181 -l 0.0.0.0"

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024

Tried. Same behaviour.

from core.

nightwing avatar nightwing commented on July 30, 2024

That's odd. Which version of node/OS do you use?
Try adding some log calls in https://github.com/c9/core/blob/master/server.js#L77 to see where it gets stuck.

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024

Ubuntu 14.10
nodejs 0.10.25

from core.

javruben avatar javruben commented on July 30, 2024

Questions:

  • Did you run scripts/install-sdk.sh? Was it successful?
  • If you run node server.js --help what do you get?
  • Have you added the log calls as @nightwing suggested? What did you see?

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024
root@2754e204c37e:~/c9sdk# node server.js --help
root@2754e204c37e:~/c9sdk# 

The installation seems to be completed successfully.
Where can I get logs?

from core.

javruben avatar javruben commented on July 30, 2024

Could you run the installation again and paste the last 10 lines of the output.

What happens if you run this:

node -e "console.log('test')"

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024
/bin/mkdir -p /root/.c9/local/share/man/man1
/usr/bin/install -c -m 644 ./tmux.1.mdoc \
        /root/.c9/local/share/man/man1/tmux.1
make[2]: Leaving directory `/root/.c9/tmux-1.9'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/.c9/tmux-1.9'
bash: line 262: python: command not found
bash: line 262: [: -eq: unary operator expected
Installed tmux does not appear to work:
root@2754e204c37e:~/c9sdk# 

re-trying the installation it show me this.
It crashes during compiling maybe

from core.

javruben avatar javruben commented on July 30, 2024

It looks like the installation has failed. If it had worked, you wouldn't see this.

It looks like python is not installed. Could you install python 2.7 and retry?

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024

mmh strange, during first installation I didn't noticed anything

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024
sqlite3/.deps/shell.Po
sqlite3/.deps/sqlite3.Plo

real    1m58.251s
user    0m4.722s
sys 0m1.263s
~/.c9/node_modules/.bin ~/.c9/lib
~/.c9/lib
:Done.
+ c9packages=(`node -e 'console.log(Object.keys(require("./package.json").c9plugins).join(" "))'`)
++ node -e 'console.log(Object.keys(require("./package.json").c9plugins).join(" "))'

root@2754e204c37e:~/c9sdk# node -e "console.log('test')"
root@2754e204c37e:~/c9sdk# node server.js --help
root@2754e204c37e:~/c9sdk# node server.js          
root@2754e204c37e:~/c9sdk#   

Installed python.
Now the output is the same I obtained during first installation :)

from core.

javruben avatar javruben commented on July 30, 2024

That's odd. The script should end with these lines:
https://github.com/c9/core/blob/master/scripts/install-sdk.sh#L80

Anyway, I think I see the problem. The node you have is not the Node.js executable.

Can you try to execute this:

~/.c9/node/bin/node -e "console.log('test')"

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024
root@2754e204c37e:~/c9sdk# ~/.c9/node/bin/node server.js

module.js:340
    throw err;
          ^
Error: Cannot find module '../plugins/c9.ide.run/runners_list'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at module.exports (/root/c9sdk/settings/standalone.js:10:19)
    at start (/root/c9sdk/server.js:87:77)
    at /root/c9sdk/server.js:71:13
    at Array.forEach (native)
    at main (/root/c9sdk/server.js:64:13)
    at /root/c9sdk/server.js:66:20
root@2754e204c37e:~/c9sdk# 

Yep... right, however
I've installed some packages with npm install... amd-loader and other stuff, but it shows to me other errors.
Maybe some error related to missing packages....

from core.

javruben avatar javruben commented on July 30, 2024

Yes, the installation has failed. Please try to restart from scratch. Do this:

rm -Rf ~/.c9
rm -Rf c9sdk

to clean up.

Then make sure tmux is installed. Check via:

which tmux

If that gives no result, install it like so:

sudo apt-get install tmux

Then make sure to install the right version of node:

sudo apt-get remove node
sudo apt-get install nodejs

Then do this again:

git clone https://github.com/c9/core.git c9sdk
cd c9sdk
./scripts/install-sdk.sh

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024
real    0m30.330s
user    0m4.315s
sys 0m1.109s
~/.c9/node_modules/.bin ~/.c9/lib
~/.c9/lib
:Done.
+ c9packages=(`node -e 'console.log(Object.keys(require("./package.json").c9plugins).join(" "))'`)
++ node -e 'console.log(Object.keys(require("./package.json").c9plugins).join(" "))'
./scripts/install-sdk.sh: line 62: node: command not found
root@3ecb7e7d070c:~/c9sdk# ~/.c9/node/bin/node server.js

module.js:340
    throw err;
          ^
Error: Cannot find module 'amd-loader'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/root/c9sdk/server.js:4:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
root@3ecb7e7d070c:~/c9sdk# 

Ok, tried to restart from zero, same error as earlier.

Problem with amd-loader is fixed by installing requirejs module

from core.

javruben avatar javruben commented on July 30, 2024

@alessioguglielmo You must see what I'm seeing:

./scripts/install-sdk.sh: line 62: node: command not found

You cannot expect this to work if the installer doesn't complete successfully.

Did any of the steps I specified fail? They must've because the error says that node is not installed.

Please make sure node is installed and working correctly.

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024

What makes you think that I expect this to work? :)

For node, I followed the steps as you said. Perhaps is related to node version, but I updated with apt-get...

sudo apt-get remove node
sudo apt-get install nodejs

from core.

alessioguglielmo avatar alessioguglielmo commented on July 30, 2024

Ok, found and fixed.
node must be manually installed along with nodejs (... and not removed as you said)
then must be set the path in the env and installed npm to correctly get modules.
Then re-try & go.

apt-get install -y node
export PATH=/usr/local/bin:$PATH
apt-get install npm
./scripts/install-sdk.sh 

[email protected] node_modules/rusha
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
+ echo 'Success!'
Success!
+ echo 'run '\''node server.js -p 8181 -l 0.0.0.0'\'' to launch Cloud9'
run 'node server.js -p 8181 -l 0.0.0.0' to launch Cloud9
root@b430318a0927:~/c9sdk# node server.js -p 8181 -l 0.0.0.0
Connect server listening at http://0.0.0.0:8181
CDN: version standalone initialized /root/c9sdk/build
Started '/root/c9sdk/configs/standalone' with config 'standalone'!

;)

from core.

javruben avatar javruben commented on July 30, 2024

Yay!

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.