Bug 1020465 - Error: Cannot find module 'express' using node.js cartridge
Summary: Error: Cannot find module 'express' using node.js cartridge
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.0.0
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 17:41 UTC by Jeremy Eder
Modified: 2017-03-08 17:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-16 09:10:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Jason DeTiberus 2013-10-17 22:39:58 UTC
This should be fixed in the latest puddle: http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/2.0/2013-10-17.1/

Comment 3 Johnny Liu 2013-10-22 10:57:33 UTC
Verified this bug with 2.0/2013-10-21.3, and PASS

After create nodejs app, log into gear, its log show that, it is working fine.
> cat nodejs/logs/node.log 
Tue Oct 22 2013 03:45:12 GMT-0700 (MST): Starting application 'nodejsapp' ...

DEBUG: Running node-supervisor with
DEBUG:   program 'server.js'
DEBUG:   --watch '.'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'node'

DEBUG: Starting child process with 'node server.js'
DEBUG: Watching directory '/var/lib/openshift/5266572358560a4c8b000006/app-deployments/2013-10-22_03-44-59.652/repo' for changes.
Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

  var express = require("express");
  var app = express();

Tue Oct 22 2013 03:45:13 GMT-0700 (MST): Node server started on 127.2.17.129:8080 ...

Comment 4 Johnny Liu 2013-10-29 08:46:20 UTC
This issue reproduced with 2.0/2013-10-23.2 puddle, so I move it to "ASSGINED" status.

Comment 5 Gaoyun Pei 2013-11-06 06:52:36 UTC
Found this issue is verified on puddle 2.0/2.0/2013-11-05.1  with openshift-origin-cartridge-nodejs-1.18.0-1.git.60.c69c813.el6op.noarch

Comment 6 Gaoyun Pei 2013-11-07 06:28:53 UTC
This bug is verified on puddle 2.0/2013-11-05.1, after nodejs-0.10 app is created, check its log:
Wed Nov 06 2013 20:24:07 GMT-0700 (MST): Starting application 'app1' ...

DEBUG: Running node-supervisor with
DEBUG:   program 'server.js'
DEBUG:   --watch '.'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'node'

DEBUG: Starting child process with 'node server.js'
DEBUG: Watching directory '/var/lib/openshift/527b07c5ab65461ee400001d/app-root/runtime/repo' for changes.
Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

  var express = require("express");
  var app = express();

Wed Nov 06 2013 20:24:07 GMT-0700 (MST): Node server started on 127.1.249.129:8080 ...

No errors.


Note You need to log in before you can comment on or make changes to this bug.