GithubHelp home page GithubHelp logo

Collab asks for c9.api about core HOT 23 CLOSED

c9 avatar c9 commented on September 5, 2024
Collab asks for c9.api

from core.

Comments (23)

isc30 avatar isc30 commented on September 5, 2024

Maybe compiler failed for that file.
With node version of 0.10.36 it works fine

from core.

nightwing avatar nightwing commented on September 5, 2024

Seems like there are still some files missing to run collab?

this time there are unnecessary files instead, it should work if you delete
https://github.com/c9/core/blob/master/configs/api.standalone.js

from core.

ClashTheBunny avatar ClashTheBunny commented on September 5, 2024

@nightwing, that works for me. Thanks!

Is this going to get merged any time soon?

from core.

Program3r avatar Program3r commented on September 5, 2024

running node v0.10.36 Without removing api.standalone.js I get

{ [Error: Can't find './c9.api/ping.js' relative to '/root/c9sdk/plugins'] code: 'ENOENT' }   

after removing I get this after loading the UI

[vfs-collab] Missing dependencies - NODE_PATH: /.nvm/v0.10.36/lib/node_modules; node v0.10.36

Cloud9 detected you are missing one or more collab dependencies. Would you like to open the installer to update to the latest version?

After pressing NO, I try to set it to PUBLIC and I get a prompt saying

The server returned an error

Please try again later.

from core.

ClashTheBunny avatar ClashTheBunny commented on September 5, 2024

I just share the link to the page I'm on. It's "public" as the page you are viewing when collab is enabled.

If I'm on localhost:8181, and I go to hydra:8181 from another computer on the same network, we're collaborating. Since PUBLIC is about authentication, and the SDK lacks the same authentication that c9.io has, it's moot.

from core.

nightwing avatar nightwing commented on September 5, 2024

@ClashTheBunny it is merged in a822db7
@Program3r this can happen if installation of sqlite3 fails. Did you see any errors while running install-sdk.sh, if no try running cloud9 with ~/.c9/node/bin/node server.js ...

from core.

Program3r avatar Program3r commented on September 5, 2024

I noticed sqlite3 gave me the error

version `GLIBC_2.14' not found

It compiled, but I wasn't happy with that so I upgraded libc6 and the error went away.
I'm always getting this error no matter what

Shuting down a faulty collab server - reason:  { [Error: [vfs-collab] Missing dependencies

What OS are you installing on? or should it matter? - Debian Wheezy for me. Node 0.10.38

from core.

nightwing avatar nightwing commented on September 5, 2024

Strange it should have worked, do you have node_modules/pty.js and node_modules/sqlite3?
If no try running cloud9 with the node 0.12 installed by c9/install in ~/.c9 directory
something like

C9DIR="$HOME/.c9";
NODE_PATH="$C9DIR/node_modules";
"$C9DIR/node/bin/node" server.js -p 8181 -l 0.0.0.0 --collab -a :

from core.

lijianying10 avatar lijianying10 commented on September 5, 2024

I can not use collaborate, the IDE tell me that

[vfs-collab] Missing dependencies - NODE_PATH: /root/.c9; node v0.12.0

Cloud9 detected you are missing one or more collab dependencies. Would you like to open the installer to update to the latest version?

choose yes or no always do nothing .

I cheeked sqlite3 and pty.js is installed correctly.

NEED HELP!

from core.

master5227 avatar master5227 commented on September 5, 2024

I also am having problems.

[vfs-collab] Missing dependencies - NODE_PATH: /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript; node v0.10.38

Running on Ubuntu 14.10

EDIT:
I checked /usr/lib/node_modules and pty didn't exist. I ran a sudo npm install pty, and but it's still giving me the same error.

EDIT 2:
Solved. Using the install script puts node, and it's modules into ~/.c9/node and ~/.c9.node_modules respectively. I was able to get collaboration working with export NODE_PATH="/home/john/.c9/node_modules" and ~/.c9/node/bin/node server.js --listen 0.0.0.0 -p 8181 -a admin:admin --collab

from core.

romanman avatar romanman commented on September 5, 2024

image

@master5227 : thanks I have tried your advise and the ide started
but I got some missing plugin

from core.

romanman avatar romanman commented on September 5, 2024

@master5227 : have you succeeded with the --collab to work ?

from core.

lijianying10 avatar lijianying10 commented on September 5, 2024

@master5227 I hv solved this problem, then how can I manager account on C9 local ?

from core.

romanman avatar romanman commented on September 5, 2024

@lijianying10 : you see some members on the collab panel , right ?

from core.

lijianying10 avatar lijianying10 commented on September 5, 2024

@romanman Not some member , Just ME....

from core.

romanman avatar romanman commented on September 5, 2024

so what server have you installed to manage this?@lijianying10

from core.

lijianying10 avatar lijianying10 commented on September 5, 2024

Ubuntu server 14.04

from core.

romanman avatar romanman commented on September 5, 2024

@lijianying10 : sorry, I mean what have you installed except the c9 sdk , what service
actually manage the members panel?

from core.

lijianying10 avatar lijianying10 commented on September 5, 2024

@romanman no other service, just Env value error.
do you know how to manage user ? add a new user on local c9 IDE?

from core.

fusspawn avatar fusspawn commented on September 5, 2024

Note. the missing depencies issue still seems to be happening. I tried both the bundled node 10.37 and the latest build of node v12. both have the same issue.

Tried manually installing sqllite globally via npm. to be told it was already installed via c9.io Im at a loss :/ Has anyone successfully got collab working on Ubuntu?

from core.

nightwing avatar nightwing commented on September 5, 2024

The issues were caused by mismatch between version of node used to install binary modules and to run sdk. Latest update fixes this by always using node from ~/.c9.
Please try again and let us know if it works.

from core.

Program3r avatar Program3r commented on September 5, 2024

Alright! I got the new code cloned in and whatnot. Looks like I still have to export the node path:

export NODE_PATH="$HOME/.c9/node_modules"

and I still have to remove this file

/configs/api.standalone.js

then I run it like stated above

~/.c9/node/bin/node server.js --listen 0.0.0.0 -p 80 -a admin:admin --collab

If I don't specify an auth method it seems to listen on 127.0.0.1, I'm not sure why. After that it looks like it works!

I will release a docker container with these fixes soon! Next thing we need to do is figure out how to hook it up to an auth system but that's kind of a different issue. Thanks for the help everyone!

from core.

nightwing avatar nightwing commented on September 5, 2024

@Program3r maybe something went wrong when updating, and you were testing old branch. there is no api.standalone.js file in https://github.com/c9/core/tree/master/configs

If I don't specify an auth method it seems to listen on 127.0.0.1, I'm not sure why. After that it looks like it works!

It is a security measure. If you don't want a password use -a :.

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.