GithubHelp home page GithubHelp logo

Comments (3)

yi avatar yi commented on July 20, 2024

Hi macatadobe

short answer: try run node lib/server.js on openshift.com

I haven't used openshift, but from your debug log, I guess the problem might caused by Running node-supervisor with.

Here is the content of npm start: https://github.com/yi/node-ticket-manager/blob/master/package.json#L30

The npm start use nodemon to monitor code change and restart the app everytime code changed. nodemon seems to have same function as node-supervisor, so I guess there might be some conflicts.

And we use npm start only for development. When you deploy to production enviorment, there is no point to use the dev mode. So just run the app by call node lib/server.js

from node-ticket-manager.

macatadobe avatar macatadobe commented on July 20, 2024

HI yi ,

The openshift requests users to NOT run commands on the server as it violates its authorization etc . Anything which is written in package.json 's main and start tags etc would be run automatically . Users of openshift are allowed to give it a git path from where it can download code and openshift uses the downloaded code and run its package .json

What is the use of "main": "lib/index" ?

When i ran the command you suggested i get the following error

[rd-feedbk.rhcloud.com repo]> node lib/server.js
Failed to load c++ bson extension, using pure JS version

Failed to load c++ bson extension, using pure JS version

[express::main] pathToView:/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/views
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1020:19)
at listen (net.js:1061:10)
at Server.listen (net.js:1135:5)
at Function.app.listen (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/node_modules/express/lib/application.js:533:24)
at Object. (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/lib/server.js:73:7)
at Object. (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/lib/server.js:79:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

from node-ticket-manager.

yi avatar yi commented on July 20, 2024

hi macatadobe

The openshift requests users to NOT run commands on the server as it violates its authorization etc . Anything which is written in package.json 's main and start tags etc would be run automatically .

fork the ticketman repo, and change package.json (line 30):

"start": "node lib/server.js",

[rd-feedbk.rhcloud.com repo]> node lib/server.js
Failed to load c++ bson extension, using pure JS version

bson is the default data format used by mongodb. It seems binary compilation of bson extension failed on your server

Error: listen EACCES

It error is casued by either "port is used" or "lack of access right"

from node-ticket-manager.

Related Issues (11)

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.