Launch APE , no module loaded

92 views
Skip to first unread message

tUtOo

unread,
Feb 24, 2011, 4:40:18 PM2/24/11
to APE Project
Hi, All!

I successfully used aped on my previous local server, and ape works
well !
Now i must setup it on a dedicated server and i got problems:
- when i launch APE (I installed APE from sources), the only things i
get on outputs is

[root....]# ./aped
_ ___ ___
/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 6969

Version : 1.01dev
Build : Feb 20 2011 21:30:16
Author : Weelya (cont...@weelya.com)

no modules loaded ! :(


and if I do : http://subdomain.domain.fr/ape_jsf/Tools/Check/

I've got this :

Connection etablished but something went wrong. Server response is
[{"time":"1298581306","raw":"ERR","data":
{"code":"003","value":"BAD_CMD"}}]


Can anyone give me advice how solve this problems? which additional
info is needed?

info about new server:

CentOS 5.5 + Plesk 9.5 32 bit

Many thanks !

tUtOo

unread,
Feb 25, 2011, 5:51:50 AM2/25/11
to APE Project
a stupid question :
I called my sub domain : comet.www.[my_domain].fr

Do I have to call it : ape.[my_domain].fr ???

Thnaks for the help !

Nicolas

unread,
Feb 25, 2011, 2:19:12 PM2/25/11
to APE Project
I think you indeed have to use the syntax ape.yourdomain.com

Probably this can be changed somewhere in the code, but keep things
simple and use ape...

Anthony Catel

unread,
Feb 25, 2011, 4:26:20 PM2/25/11
to ape-p...@googlegroups.com
No, you can use *.anything.domain.com


Le 25/02/2011 20:19, Nicolas a �crit :


> I think you indeed have to use the syntax ape.yourdomain.com
>
> Probably this can be changed somewhere in the code, but keep things
> simple and use ape...
>
>
>
> On 25 f�v, 10:51, tUtOo<nico.se...@gmail.com> wrote:
>> a stupid question :
>> I called my sub domain : comet.www.[my_domain].fr
>>
>> Do I have to call it : ape.[my_domain].fr ???
>>
>> Thnaks for the help !
>>

>> On 24 f�v, 22:40, tUtOo<nico.se...@gmail.com> wrote:> Hi, All!

tUtOo

unread,
Feb 26, 2011, 8:18:55 AM2/26/11
to APE Project
Thank you for your replies !
It works, all the modules are loaded when I launched APE ! and I
confirm that we can use an APE's server name like
"*.anything.domain.com" !

But, it seems that my module don't connect to MySQL ! :(

/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 6969

Version : 1.01dev
Build : Feb 26 2011 12:46:49
Author : Weelya (con...@weelya.com)

[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script ../scripts/framework/mootools.js...
[JS] Loading script ../scripts/framework/Http.js...
[JS] Loading script ../scripts/framework/userslist.js...
[JS] Loading script ../scripts/utils/utils.js...
[JS] Loading script ../scripts/commands/proxy.js...
[JS] Loading script ../scripts/commands/inlinepush.js...
[JS] Loading script ../scripts/utils/checkTool.js...
[JS] Loading script ../scripts/Mysql/MySQLDemo.js...

> Here what I have in my MySQLDemo.js and that works in local :

var Ape = new Class({
initialize: function() {
this.sql = new Ape.MySQL("ip_server:3306", "user", "pass",
"name_bd"); // Connexion MySQL.

//onConnect callback
this.sql.onConnect = function() {
Ape.log( 'The server is started and you are now connected to
MySQL server ' );
},

//onError callback
this.sql.onError = function(errorNo) {
Ape.log('Connection error ' + errorNo +' '+
this.errorString());
},

this.sql.query("SELECT 1" , function(result) { }.bind(this));
},
});
var objape = new Ape();


Nothing happen ! No error and no message in the output !
I really don't understand !

Thanks again to help me

tUtOo

unread,
Feb 26, 2011, 8:19:01 AM2/26/11
to APE Project
Thank you for your replies !
It works, all the modules are loaded when I launched APE ! and I
confirm that we can use an APE's server name like
"*.anything.domain.com" !

But, it seems that my module don't connect to MySQL ! :(

/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 6969

Version : 1.01dev
info about new server:
CentOS 5.5 + Plesk 9.5 32 bit





On 25 fév, 22:26, Anthony Catel <a.ca...@weelya.com> wrote:

tUtOo

unread,
Feb 26, 2011, 8:40:48 AM2/26/11
to APE Project
I saw that in my file build.sh the path to mysql was wrong

if [ -e "/usr/include/mysql/mysql.h" ]

when i do locate mysql.h i dont find this file :(

what can i do to fix it ??

thanks

On 26 fév, 14:19, tUtOo <nico.se...@gmail.com> wrote:
> Thank you for your replies !
> It works, all the modules are loaded when I launched APE ! and I
> confirm that we can use an APE's server name like
> "*.anything.domain.com" !
>
> But, it seems that my module don't connect to MySQL ! :(
>
>  /_\ | _ \ __|
>  / _ \|  _/ _|
> /_/ \_\_| |___|
> AJAX Push Engine
>
> Bind on port 6969
>
> Version : 1.01dev
> Build   : Feb 26 2011 12:46:49
> Author  : Weelya (cont...@weelya.com)

a.c...@weelya.com

unread,
Feb 26, 2011, 9:12:57 AM2/26/11
to ape-p...@googlegroups.com
Hi,

You need to install libmysqlclient-dev

On Sat, 26 Feb 2011 05:40:48 -0800 (PST), tUtOo <nico....@gmail.com>
wrote:

tUtOo

unread,
Feb 26, 2011, 1:28:09 PM2/26/11
to APE Project
Hi
If i do yum install libmysqlclient-dev
i have No package libmysqlclient-dev available
Nothing to do

How can i install libmysqlclient-dev on CentOS ?
Thanks a lot for helping me !



On 26 fév, 15:12, <a.ca...@weelya.com> wrote:
> Hi,
>
> You need to install libmysqlclient-dev
>
> On Sat, 26 Feb 2011 05:40:48 -0800 (PST), tUtOo <nico.se...@gmail.com>

tUtOo

unread,
Feb 26, 2011, 4:29:42 PM2/26/11
to APE Project
i tried to install mysql-devel but i get an error when i recompiled
ape_server

thanks

Martin-Zack Mekkaoui

unread,
Feb 26, 2011, 4:28:23 PM2/26/11
to ape-p...@googlegroups.com, tUtOo
Hi,

You can find it in mysql-libs* centos package.

Regards,

2011/2/26 tUtOo <nico....@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

tUtOo

unread,
Feb 27, 2011, 5:00:50 AM2/27/11
to APE Project
Hi
I installed the rpm package mysql-libs by doing this : rpm -ivh
mysql-5.0.82sp1-1.el4_8.src.rpm
but i got these warnings, is that normal ?

attention: mysql-5.0.82sp1-1.el4_8.src.rpm: Entête V3 DSA signature:
NOKEY, key ID 443e1821
1:mysql attention: utilisateur mockbuild
inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
########################################### [100%]
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root

anyway, i re build my ape server and still nothing in the output when
i launched my ape and try to connect to mysql :(
is that normal that i dont have any error messages telling me what
going wrong ?
Don't i have to update my build.sh and makefile for the correct path
to mysql ?

Thanks for helping me !

On 26 fév, 22:28, Martin-Zack Mekkaoui <mar...@mekkaoui.fr> wrote:
> Hi,
>
> You can find it in mysql-libs* centos package.
>
> Regards,
>
> 2011/2/26 tUtOo <nico.se...@gmail.com>

tUtOo

unread,
Feb 27, 2011, 5:25:40 AM2/27/11
to APE Project
i got something :
i installed mysql-devel
and got this error when re build ape server :

gcc -D_GNU_SOURCE -Wall -O2 -shared -fPIC -rdynamic -Wl,-
soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-
spidermonkey.c -I../deps/js/src/dist/include/ -L../deps/js/src/ -
ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac -
lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld a retourné 1 code d'état d'exécution
make: *** [modules] Erreur 1

Thanks again
> ...
>
> plus de détails »

Martin-Zack Mekkaoui

unread,
Feb 27, 2011, 6:10:17 AM2/27/11
to ape-p...@googlegroups.com
Hi,

Did you check the Centos Wiki about repositories ?


I think, in "Les RPM de Remi" you can find your solution.

Bye,

2011/2/27 tUtOo <nico....@gmail.com>

tUtOo

unread,
Feb 27, 2011, 10:47:50 AM2/27/11
to APE Project
it's ok ! Everything works now !

To fix this error :
/usr/bin/ld: cannot find -lmysqlclient_r

i "just" do : ln -s /usr/lib/mysql/libmysqlclient_r*.so* /usr/lib/
and launch build.sh !

Thanks for all !!



On 27 fév, 12:10, Martin-Zack Mekkaoui <mar...@mekkaoui.fr> wrote:
> Hi,
>
> Did you check the Centos Wiki about repositories ?
>
> http://wiki.centos.org/AdditionalResources/Repositories?action=show&r...
>
> <http://wiki.centos.org/AdditionalResources/Repositories?action=show&r...>I
> think, in "Les RPM de Remi" you can find your solution.
>
> Bye,
>
> 2011/2/27 tUtOo <nico.se...@gmail.com>
> ...
>
> plus de détails »
Reply all
Reply to author
Forward
0 new messages