-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue on Ubuntu 10.04 LTS (lucid) #49
Comments
Sorry for the mess on the pasted text. I'll try to make it more clear here: root@ubuntu:/tmp/AjaxIM# node server/app.js node.js:134
TypeError: Object # has no method 'cookieDecoder'
|
All right, I found out about 'cookie.Decoder' method issue at: If someone is getting that same error just search for those methods at SERVER/APP.JS (bodyDecoder, cookieDecoder, staticProvider). Some methods were renamed and you can read more at: Now I'm getting another error message about some missing module (somebody please, help me on that): root@ubuntu:/tmp/endtwist-AjaxIM-053795c# node server/app.js node.js:134
Error: Cannot find module 'connect/utils'
|
Hey everybody, finally I manged to fix this last issue. The problem was on a file of Ajaxim under 'server/dev/app.js' On my testing environment it was like this: The original line was: After doing this last change, the server was started with 'node server/app.js' and another problem arise with my PHP installation. I am able to open PHP scripts under Apache2 or Litespeed on the same test enviroment, but the script for Ajaxim refuses to run (install.php). The browser keeps popping-up a download window to save the 'install.php' file instead of run the PHP script. So right now I'll change the environment and use another machine + older Ubuntu version. I'll post when I get it fix or if another problem arises. Thanks, Focal |
Hi again folks, Today I have changed my environment and managed to get a working Apache + PHP server. By default, when I start the Ajaxim server with 'node server/app.js' a new TCP port 8000 is opened. Express 500 TypeError: Object # has no method 'uid' And on the command line Node.js will dump: root@univasf-netbook:~/endtwist-AjaxIM-053795c# node server/app.js |
Sorry guys, my fault ! The error about 'uid' method was caused by myself (wrong path to the correct library). You should do as I told here before: Now everything is running and the tests: http://localhost:8000/dev/cookie will confirm everything is all right. Now I just need to figure out how to use the included development testing app (client) ! |
hi focal, other point, for my part I have a pb with .npm, this folder is in /home/user_name/ not in '/usr/local/lib/node/ Daemon library not found! Please compile ./libs/daemon/daemon.node if you would like to use it. if you have any idea... |
renoproc, take a look at README of ajaxim to see how to compile daemon: "Compile the daemon add-on if you plan on letting the server daemonize itself: cd server/libs/daemon; node-waf configure build; cp build/default/daemon.node . ; rm -rf build " |
thanks a lot I'll try this. On Tue, Jul 5, 2011 at 7:51 AM, sharjeel <
|
Ok found this readme.md, but not in files I have. here is the interesting part : InstallationInstall Install Node Package Manager ( Install Compile the daemon add-on if you plan on letting the server daemonize itself: Installation for DevelopmentIf you want to test Ajax IM as a standalone app for development, you will need To install Starting up the serverStarting the server in development mode is as simple as: To start the server in production mode: To start the server as a daemon in production mode: Testing it outOnce the server is up and running in development mode, you can test it out To get started, first initialize a session cookie by going to: Then head over to the development page that will initialize the client: That's it! More Information
Node CompatibilityThe ContributingPull requests are being accepted! If you would like to contribute, simply fork Style GuideIf you intend on contributing, please follow this style guide when submitting
No whitespace between keys and values:
Hash formatting:
Chained methods:
Single quotes over double quotes, unless double quotes make sense:
Ternary expressions are fine, but cannot be nested and must be formatted as:
Use braces for conditionals, unless conditionals are single statements:
Closures:
Methods:
|
I recompiled the daemon, but error is the same (less the daemon warning) : node.js:134 |
renoproc, Your issue has already been addresses in the same thread. See above; you need to rename some variable (like cookieDecoder to cookieParser). As focal has pointed out, check http://nodenerd.net/post/3847003578/client-side-monitoring |
Hey, I have cleared up some off the issues. when I try to run node server/app.js it just returns me to the command line no |
Hello folks,
Somebody, please help !
I'm trying to make Ajaxim work under Ubuntu 10 for the last two days without success.
I'm following the guide available at: https://github.com/endtwist/AjaxIM/wiki/Getting-Started
After dealing with openssl + node installation (libssl-dev package is required but not mentioned on that tutorial), I'm still getting error about 'cookieDecoder' method when trying to run Node.js:
root@ubuntu:/tmp/AjaxIM# node server/app.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object # has no method 'cookieDecoder'
at Object. (/tmp/AjaxIM/server/app.js:57:13)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
root@ubuntu:/tmp/AjaxIM# ls -al
total 16
drwxr-xr-x 6 root root 180 2011-04-13 11:59 .
drwxrwxrwt 17 root root 420 2011-04-13 12:39 ..
drwxr-xr-x 2 root root 60 2011-04-13 11:59 build
drwxr-xr-x 4 root root 80 2011-04-13 11:59 client
drwxr-xr-x 8 root root 260 2011-04-13 11:59 .git
-rw-r--r-- 1 root root 136 2011-04-13 11:59 .gitignore
-rw-r--r-- 1 root root 861 2011-04-13 11:59 Makefile
-rw-r--r-- 1 root root 5819 2011-04-13 11:59 README.md
drwxr-xr-x 5 root root 140 2011-04-13 11:59 server
root@ubuntu:/tmp/AjaxIM# ls -al server
total 8
drwxr-xr-x 5 root root 140 2011-04-13 11:59 .
drwxr-xr-x 6 root root 180 2011-04-13 11:59 ..
-rwxr-xr-x 1 root root 3713 2011-04-13 11:59 app.js
drwxr-xr-x 4 root root 100 2011-04-13 11:59 dev
drwxr-xr-x 4 root root 120 2011-04-13 11:59 libs
drwxr-xr-x 3 root root 80 2011-04-13 11:59 middleware
-rw-r--r-- 1 root root 814 2011-04-13 11:59 settings.js
The text was updated successfully, but these errors were encountered: