Comments (9)
hmm... I just re-tested a fresh clone on a new ubuntu server and it all works OK. If you want to dig into this deeper, change the logging level (./config/logger.js
) for the test env to debug
. Perhaps we'll learn more.
from actionhero-tutorial.
I also can not get enough info when logging level is debug:
actionhero Tests
1) "before all" hook
integration
starting test server...
2) "before all" hook
integration
restarting test server...
3) "before all" hook
integration
restarting test server...
4) "before all" hook
0 passing (21s)
4 failing
1) actionhero Tests "before all" hook:
Error: timeout of 5000ms exceeded
at null.<anonymous> (/home/stevenfrog/temp/actionhero-tutorial/node_modules/mocha/lib/runnable.js:158:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
2) integration "before all" hook:
Error: timeout of 5000ms exceeded
at null.<anonymous> (/home/stevenfrog/temp/actionhero-tutorial/node_modules/mocha/lib/runnable.js:158:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
3) integration "before all" hook:
Error: timeout of 5000ms exceeded
at null.<anonymous> (/home/stevenfrog/temp/actionhero-tutorial/node_modules/mocha/lib/runnable.js:158:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
4) integration "before all" hook:
Error: timeout of 5000ms exceeded
at null.<anonymous> (/home/stevenfrog/temp/actionhero-tutorial/node_modules/mocha/lib/runnable.js:158:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
I think the server is not started correctly.
from actionhero-tutorial.
Sorry... you need to:
- comment out the overrides in for the test environment [link]
- change the default logging level to "debug"
from actionhero-tutorial.
I can show some part of them:
actionhero Tests
2014-12-09 15:51:56 - notice: *** starting actionhero ***
2014-12-09 15:51:56 - debug: Logger loaded. Possible levels include: 0=emerg, 1=alert, 2=crit, 3=error, 4=warning, 5=notice, 6=info, 7=debug
2014-12-09 15:51:56 - warning: running with fakeredis
2014-12-09 15:51:56 - debug: action loaded: postAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: postView @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: postsList @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: postEdit @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: postDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: commentAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: commentsView @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: commentDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:51:56 - debug: action loaded: showDocumentation @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/showDocumentation.js
2014-12-09 15:51:56 - debug: action loaded: status @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/status.js
2014-12-09 15:51:56 - debug: action loaded: userAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:51:56 - debug: action loaded: userDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:51:56 - debug: action loaded: usersList @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:51:56 - debug: action loaded: authenticate @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:51:56 - debug: task loaded: stats, /home/stevenfrog/temp/actionhero-tutorial/tasks/stats.js
2014-12-09 15:51:56 - debug: 11 routes loaded from undefined
2014-12-09 15:51:56 - debug: 14 simple routes loaded from action names
2014-12-09 15:51:56 - debug: routes: get=[path=/users, action=usersList, path=/comments/:userName/:title, action=commentsView, path=/post/:userName/:title, action=postView, path=/posts/:userName/, action=postsList, path=/postAdd, action=postAdd, path=/postView, action=postView, path=/postsList, action=postsList, path=/postEdit, action=postEdit, path=/postDelete, action=postDelete, path=/commentAdd,
...
tion=userAdd, path=/userDelete, action=userDelete, path=/usersList, action=usersList, path=/authenticate, action=authenticate]
2014-12-09 15:51:56 - debug: initialized server: socket
2014-12-09 15:51:56 - debug: initialized server: web
2014-12-09 15:51:56 - debug: initialized server: websocket
2014-12-09 15:51:56 - debug: initialized server: twitter
2014-12-09 15:51:56 - info: running custom initializer: blog
2014-12-09 15:51:56 - info: running custom initializer: middleware
2014-12-09 15:51:56 - info: running custom initializer: users
2014-12-09 15:51:56 - info: environment: test
2014-12-09 15:51:56 - notice: pid: 572
2014-12-09 15:51:56 - info: ensuring the existence of the chatRoom: defaultRoom
2014-12-09 15:51:56 - info: ensuring the existence of the chatRoom: otherRoom
2014-12-09 15:51:56 - info: ensuring the existence of the chatRoom: secureRoom
2014-12-09 15:51:56 - info: ensuring the existence of the chatRoom: twitter
2014-12-09 15:51:56 - notice: starting server: socket
2014-12-09 15:51:56 - notice: starting server: web
2014-12-09 15:51:56 - notice: starting server: websocket
2014-12-09 15:51:56 - notice: webSockets bound to 0.0.0.0:8081
2014-12-09 15:51:56 - debug: wrote /home/stevenfrog/temp/actionhero-tutorial/public/javascript/actionheroClient.js
2014-12-09 15:51:56 - debug: wrote /home/stevenfrog/temp/actionhero-tutorial/public/javascript/actionheroClient.min.js
2014-12-09 15:51:56 - notice: starting server: twitter
2014-12-09 15:51:56 - warning: loading the testServer
2014-12-09 15:51:56 - debug: > start: configLoader
2014-12-09 15:51:56 - debug: > start: pids
2014-12-09 15:51:56 - debug: > start: stats
2014-12-09 15:51:56 - debug: > start: redis
2014-12-09 15:51:56 - debug: > start: connections
2014-12-09 15:51:56 - debug: > start: chatRoom
2014-12-09 15:51:56 - debug: > start: tasks
2014-12-09 15:51:56 - debug: > start: specHelper
2014-12-09 15:51:56 - debug: > start: resque
2014-12-09 15:51:56 - debug: connected to the cache with 0 existing objects
2014-12-09 15:51:56 - info: actionhero member test-server has joined the cluster
2014-12-09 15:51:56 - debug: > start: cache
1) "before all" hook
2014-12-09 15:52:01 - alert: Shutting down open servers and stopping task processing
2014-12-09 15:52:01 - debug: > stop: resque
2014-12-09 15:52:01 - debug: > stop: stats
2014-12-09 15:52:01 - debug: > stop: redis
2014-12-09 15:52:01 - debug: > stop: connections
2014-12-09 15:52:01 - debug: > stop: chatRoom
2014-12-09 15:52:01 - debug: > stop: servers
2014-12-09 15:52:01 - notice: stopping server: socket
2014-12-09 15:52:01 - notice: stopping server: web
2014-12-09 15:52:01 - notice: stopping server: websocket
2014-12-09 15:52:01 - notice: stopping server: twitter
2014-12-09 15:52:01 - notice: stopping server: testServer
2014-12-09 15:52:01 - debug: server stopped: socket
2014-12-09 15:52:01 - debug: server stopped: twitter
2014-12-09 15:52:01 - debug: server stopped: testServer
2014-12-09 15:52:01 - debug: server stopped: web
2014-12-09 15:52:01 - debug: server stopped: websocket
2014-12-09 15:52:01 - info: actionhero member test-server has left the cluster
2014-12-09 15:52:01 - alert: The actionhero has been stopped
2014-12-09 15:52:01 - debug: ***
integration
starting test server...
2014-12-09 15:52:01 - notice: *** starting actionhero ***
2014-12-09 15:52:01 - debug: Logger loaded. Possible levels include: 0=emerg, 1=alert, 2=crit, 3=error, 4=warning, 5=notice, 6=info, 7=debug
2014-12-09 15:52:01 - warning: running with fakeredis
2014-12-09 15:52:01 - debug: action loaded: postAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: postView @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: postsList @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: postEdit @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: postDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: commentAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: commentsView @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: commentDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/blog.js
2014-12-09 15:52:01 - debug: action loaded: showDocumentation @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/showDocumentation.js
2014-12-09 15:52:01 - debug: action loaded: status @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/status.js
2014-12-09 15:52:01 - debug: action loaded: userAdd @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:52:01 - debug: action loaded: userDelete @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:52:01 - debug: action loaded: usersList @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:52:01 - debug: action loaded: authenticate @ v1, /home/stevenfrog/temp/actionhero-tutorial/actions/users.js
2014-12-09 15:52:01 - debug: task loaded: stats, /home/stevenfrog/temp/actionhero-tutorial/tasks/stats.js
2014-12-09 15:52:01 - debug: 11 routes loaded from undefined
2014-12-09 15:52:01 - debug: 14 simple routes loaded from action names
There is some warning:
2014-12-09 15:51:56 - warning: running with fakeredis
2014-12-09 15:51:56 - warning: loading the testServer
from actionhero-tutorial.
These lines are expected:
2014-12-09 15:51:56 - warning: running with fakeredis
2014-12-09 15:51:56 - warning: loading the testServer
It looks like there is an initializer that isn't booting... can you share your node and npm versions?
evan@ubuntu:~/PROJECTS/actionhero-tutorial$ node --version
v0.10.25
evan@ubuntu:~/PROJECTS/actionhero-tutorial$ npm --version
1.3.10
from actionhero-tutorial.
This is my version:
stevenfrog@frog-Z87P:~/temp/actionhero-tutorial$ node --version
v0.10.33
stevenfrog@frog-Z87P:~/temp/actionhero-tutorial$ npm --version
1.4.28
from actionhero-tutorial.
huh... I'm sorry, but I can't reproduce this to help you out.
from actionhero-tutorial.
I'm not 100% sure but I think when this happened to me I had an initializer that wasn't properly calling next()
due to a silently failing error. I would root around in your initializers and make sure that they're all completing properly.
from actionhero-tutorial.
good idea @jtmarmon. However, a number of others have confirmed that this project works OK when cloned.
Sadly, I'm going to close this out as "cannot replicate"
from actionhero-tutorial.
Related Issues (20)
- blockedConnectionTypes is not working HOT 2
- Npm remove doesn't work HOT 1
- Error: Cannot find module 'winston' HOT 2
- Parameter by payload than by URL HOT 4
- TypeError: actionhero.Process is not a constructor HOT 1
- Error 426 during websocket connection
- npm start fails HOT 1
- Middleware is not invoked in test
- Action required: Greenkeeper could not be activated 🚨
- Task not run. HOT 1
- getting started: ActionheroClient is undefined HOT 2
- Generated Initializer syntax HOT 3
- Update to Typescript HOT 1
- Relative URLs of config files are incorrect in tutorial
- DevelopmentMode configuration incorrect
- 404 on module files in tutorial.
- Setting up of rootEndPointType is unnecessary in first tutorial
- No topic for "Creating Initializers"
- 404 error on Middlware.ts and Actionhero tutorial docs of Middleware
- Need actionhero v14 documentation for migrating a project to v22. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionhero-tutorial.