In the new version of nodejs (v7.2.1) V8 inspector has been integrated. (experimental feature)
It opens a websocket make it possible to debug source code from remote client.
usage:
node --inspect=8080 start.js
On OpenShift I get this error:
Unable to open socket: permission denied
I tried scaled (HAProxy) and not scaled mode of "node latest" cartridge and got the same error.
Openshift origin (nextGen) may support this?
Could anyone help me to solve this issue?
Thanks
Related
I am trying to make the example neo4j javascript project run in my work machine. npm install completed fine and I am able to run the webpack dev using npm run dev.
When I navigate to the test page, http://localhost:8080/webpack-dev-server, the page renders fine but does not connect to the running Neo4j instance. There are no passwords, etc in the file. The error message is:
WebSocket connection to 'ws://localhost:7687/' failed: Error in
connection establishment: net::ERR_CONNECTION_REFUSED
org.neo4j.server.webserver.address=0.0.0.0 in the neo4j-server.conf and
dbms.connector.bolt.address=0.0.0.0:7687 in neo4j.conf
Neo4j version: 2.3.8
Please advise if some other settings are needed.
Note: This project works fine in a less-locked machine so it is an issue with local security settings
Solved: The issue was resolved by switching to the latest version of Neo4j - it appears anything above 3.0.1 works fine. The BOLT drivers/connection protocols may have changed.
To summarize, the BOLT JavaScript Neo4j example project works only with Neo4j 3.0.1 and higher.
I have a NodeJs app running on a docker container on a remote server. I can access the app on the browser. I'm also able to deploy to my app using PhpStorm and its remote server connection.
However, I tried to use the remote NodeJs debug tool of PhpStorm and it doesn't work. I always get connection refused.
I know the debug port is open because I check the docker containers and the 5858 is open. This port is also oppened on the host. And this is also the port I set for the debug.
package.json:
"scripts": {
"start": "nodemon --debug=5858 index.js myApp"
}
I don't know if PhpStorm is the best solution to debug this kind of app. So if someone has a better idea please let me know.
Thanks!
After further searching I found this great repository:
https://github.com/seelio/node-inspector-docker
It seems to me the easier way to make the app running and debug it.
Definitely node-inspector,
I had to do the same for an app in microservices and clusters/workers
just in case you need it: clustered apps with node-inspector
You can use intelij IDEA as IDE
It support running app directly from docker and allows you to debug apps easily.
once configured with your docker image its done.
next time just click run and it will start quickly nodejs inside your docker and show logs etc all just like we do with local node instance
https://www.jetbrains.com/help/idea/2016.3/running-and-debugging-node-js.html#node_docker_run_debug
Its EAP and communitiy editions are always is free
I am getting following error when i am trying to push my application to Openshift server. I have updated only package.json and trying to upload it on server then it showing this error.
So i have written couple of command to find out this error. So i found the following error but i am not getting what should i do now to fix this error.
My package.json is following below. If you think that there is some error in this package.json, please inform me. It is running fine on localhost but i do not know it is not able to find out package.json.
it's possible that the existing running application is not getting stopped correctly. Try using the rhc app stop command to completely stop your application, and then ssh to your gear (rhc ssh) and use the "ps -ef" command to make sure nothing else is running that would be taking up that port.
I am going to take over an existing project developed in node.js with looback framework. I have installed and configured the frameworks correctly and tested by creating a demo application also.
But when I try to run the existing application it is showing an error,
I tried this command to run the project
from the root directory : slc start
Error is
Error: connect ECONNREFUSED 127.0.0.1:8701
Any body have knowledge to solve this issue ?
Can any one help me with deploying a SailsJS app on Openshift?
I followed How you get Sail.js running on Openshift
After making my changes and pushing it to the repo I get the status as successful but when I go to my link it says
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.15 (Red Hat) Server at kittylogintest-kittygame.rhcloud.com Port 80
I finally managed to deploy my sails application on openshift
Most of the steps mentioned in the link mentioned in my question will help
After following the steps i was getting an error stating permission denied for grunt-cli
I solved it by SSHing in to my app and then doing the npm install in app-root/runtime/repo
Hope this helps if some one stumbles on the same stair.