server installation problems

222 views
Skip to first unread message

Sreelaj John

unread,
Dec 9, 2009, 4:14:29 AM12/9/09
to APE Project
Hi,

I am now trying with a debian server. Extracted the binary file and
launched the process 'aped', getting the following error

Bind on port 6969

Version : 1.00
Build : Dec 7 2009 23:10:09
Author : Weelya (con...@weelya.com)

[Module] Failed to load ../modules/libmod_spidermonkey.so [Invalid
library] (libstdc++.so.6: cannot open shared object file: No such file
or directory)



Help ?

Anthony Catel

unread,
Dec 9, 2009, 4:17:10 AM12/9/09
to ape-p...@googlegroups.com
Hi,

Thanks for the reporting.

Try : apt-get install libstdc++6
(Or something like that)

I guess we forgot to add it as dependency.

Anthony

Sreelaj John a �crit :

Sreelaj John

unread,
Dec 9, 2009, 5:44:00 AM12/9/09
to APE Project
I have compiled the server from the source[there were many errors
though] and now running the aped process. No error on the console
now.
How do i check that the server has been set up correctly ? How can i
debug ?

I have installed the JSF part, and while testing that, i get the
following error

ng test : Contacting APE Server
Can't contact APE Server. Please check the your APE Server is running
and the folowing url is pointing to your APE server : http://ape.vpscustomer.com:6969


Inputs?


On Dec 9, 2:17 pm, Anthony Catel <a.ca...@weelya.com> wrote:
> Hi,
>
> Thanks for the reporting.
>
> Try : apt-get install libstdc++6
> (Or something like that)
>
> I guess we forgot to add it as dependency.
>
> Anthony
>
> Sreelaj John a crit :
>
>
>
> > Hi,
>
> > I am now trying with a debian server. Extracted the binary file and
> > launched the process 'aped', getting the following error
>
> > Bind on port 6969
>
> > Version : 1.00
> > Build   : Dec  7 2009 23:10:09
> > Author  : Weelya (cont...@weelya.com)

Anthony Catel

unread,
Dec 9, 2009, 5:52:25 AM12/9/09
to ape-p...@googlegroups.com
What errors do you get at compile time?

It seems that you forgot to create *.ape.vpscustomer.com :

** server can't find 0.ape.vpscustomer.com: NXDOMAIN

Does spidermonkey is running? (should output [Module] [spidermonkey]
Loading module : Javascript embeded (0.01) - Anthony Catel)

Anthony Catel

Le 09/12/09 11:44, Sreelaj John a �crit :

Sreelaj John

unread,
Dec 9, 2009, 6:35:03 AM12/9/09
to APE Project
I am not sure if the installation was right:I got the following at the
console: All the errors are from spider monkey.

_________________________________________________________________________


rm -f udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o
udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o
udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o
rm -f udns_dn.lo udns_dntosp.lo udns_parse.lo udns_resolver.lo
udns_init.lo udns_misc.lo udns_XtoX.lo udns_rr_a.lo udns_rr_ptr.lo
udns_rr_mx.lo udns_rr_txt.lo udns_bl.lo udns_rr_srv.lo
udns_rr_naptr.lo udns_codes.lo
rm -f dnsget.o rblcheck.o ex-rdns.o
rm -f build-stamp config.log
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for inet_pton() && inet_ntop()... yes
checking for socklen_t... yes
checking for libraries needed for socket and connect... ok (none
needed)
checking for IPv6... yes
checking for poll()... yes
creating config.h... unchanged
creating Makefile... ok
creating config.status... ok
all done.
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dn.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_dntosp.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_parse.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_resolver.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_init.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_misc.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_XtoX.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_a.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_ptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_mx.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_txt.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_bl.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_srv.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_rr_naptr.c
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c udns_codes.c
rm -f libudns.a
ar rv libudns.a udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o
udns_init.o udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o
udns_rr_mx.o udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o
udns_codes.o
ar: creating libudns.a
a - udns_dn.o
a - udns_dntosp.o
a - udns_parse.o
a - udns_resolver.o
a - udns_init.o
a - udns_misc.o
a - udns_XtoX.o
a - udns_rr_a.o
a - udns_rr_ptr.o
a - udns_rr_mx.o
a - udns_rr_txt.o
a - udns_bl.o
a - udns_rr_srv.o
a - udns_rr_naptr.o
a - udns_codes.o
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c dnsget.c
dnsget.c: In function 'dbgcb':
dnsget.c:404: warning: unused parameter 'unused_q'
dnsget.c:404: warning: unused parameter 'unused_data'
gcc -Wall -W -O2 -pipe -o dnsget dnsget.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c rblcheck.c
gcc -Wall -W -O2 -pipe -o rblcheck rblcheck.o -L. -ludns
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c ex-rdns.c
gcc -Wall -W -O2 -pipe -o ex-rdns ex-rdns.o -L. -ludns
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... no
checking for gawk... gawk
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.
gcc -D_GNU_SOURCE -Wall -O2 -minline-all-stringops -rdynamic -I ./deps/
udns-0.0.9/ src/entry.c src/sock.c src/hash.c src/handle_http.c src/
cmd.c src/users.c src/channel.c src/config.c src/json.c src/
json_parser.c src/plugins.c src/http.c src/extend.c src/utils.c src/
ticks.c src/proxy.c src/base64.c src/pipe.c src/raw.c src/events.c src/
event_kqueue.c src/event_epoll.c src/transports.c src/servers.c src/
dns.c src/sha1.c src/log.c src/log.h -o bin/aped -ldl -lm ./deps/
udns-0.0.9/libudns.a -I ./deps/udns-0.0.9/
In file included from src/../modules/plugins.h:42,
from src/plugins.h:27,
from src/entry.c:22:
src/../modules/../src/log.h:37:7: warning: no newline at end of file
In file included from src/entry.c:41:
src/servers.h:29:7: warning: no newline at end of file
In file included from src/entry.c:43:
src/log.h:37:7: warning: no newline at end of file
In file included from src/sock.c:40:
src/log.h:37:7: warning: no newline at end of file
In file included from src/../modules/plugins.h:42,
from src/plugins.h:27,
from src/users.c:35:
src/../modules/../src/log.h:37:7: warning: no newline at end of file
In file included from src/users.c:41:
src/log.h:37:7: warning: no newline at end of file
In file included from src/../modules/plugins.h:42,
from src/plugins.h:27,
from src/channel.c:28:
src/../modules/../src/log.h:37:7: warning: no newline at end of file
In file included from src/../modules/plugins.h:42,
from src/plugins.h:27,
from src/plugins.c:22:
src/../modules/../src/log.h:37:7: warning: no newline at end of file
src/http.c:425:2: warning: no newline at end of file
In file included from src/utils.c:27:
src/log.h:37:7: warning: no newline at end of file
In file included from src/../modules/plugins.h:42,
from src/plugins.h:27,
from src/raw.c:27:
src/../modules/../src/log.h:37:7: warning: no newline at end of file
In file included from src/servers.c:22:
src/servers.h:29:7: warning: no newline at end of file
src/dns.c:221:2: warning: no newline at end of file
In file included from src/log.c:29:
src/log.h:37:7: warning: no newline at end of file
src/log.c: In function 'ape_log':
src/log.c:71: warning: format '%i' expects type 'int', but argument 4
has type 'long unsigned int'
src/log.c:80:2: warning: no newline at end of file
src/log.h:37:7: warning: no newline at end of file
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++
libape-spidermonkey.c:29:19: error: jsapi.h: No such file or directory
In file included from plugins.h:42,
from libape-spidermonkey.c:32:
../src/log.h:37:7: warning: no newline at end of file
libape-spidermonkey.c:49: error: expected declaration specifiers or
'...' before 'JSObject'
libape-spidermonkey.c:49: error: expected declaration specifiers or
'...' before 'JSObject'
libape-spidermonkey.c:51: error: expected ')' before '*' token
libape-spidermonkey.c:67: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ape_sm_stub'
libape-spidermonkey.c:83: error: expected specifier-qualifier-list
before 'jsval'
libape-spidermonkey.c:88: error: expected declaration specifiers or
'...' before 'JSObject'
libape-spidermonkey.c:88: error: expected declaration specifiers or
'...' before 'JSObject'
libape-spidermonkey.c:94: error: expected specifier-qualifier-list
before 'JSScript'
libape-spidermonkey.c:111: error: expected specifier-qualifier-list
before 'JSRuntime'

_________________________________________________________________________

Anthony Catel

unread,
Dec 9, 2009, 6:44:54 AM12/9/09
to ape-p...@googlegroups.com
I see, go to ./deps/js/src/ => run a ./configure and check packages are
missing.

Anthony

Le 09/12/09 12:35, Sreelaj John a �crit :
> I am not sure if the installation was right:I got the following at the
> console: All the errors are from spider monkey.
>
> _________________________________________________________________________
>
>
> rm -f udns_dn.o udns_dntosp.o udns_parse.o udns_resolver.o udns_init.o
> udns_misc.o udns_XtoX.o udns_rr_a.o udns_rr_ptr.o udns_rr_mx.o
> udns_rr_txt.o udns_bl.o udns_rr_srv.o udns_rr_naptr.o udns_codes.o
> rm -f udns_dn.lo udns_dntosp.lo udns_parse.lo udns_resolver.lo
> udns_init.lo udns_misc.lo udns_XtoX.lo udns_rr_a.lo udns_rr_ptr.lo
> udns_rr_mx.lo udns_rr_txt.lo udns_bl.lo udns_rr_srv.lo
> udns_rr_naptr.lo udns_codes.lo
> rm -f dnsget.o rblcheck.o ex-rdns.o
> rm -f build-stamp config.log
> configure... udns package
> checking for C compiler... gcc
> checking whenever C compiler (gcc) is GNU CC... yes
> checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
> can produce executables... yes
> checking for ranlib... ranlib
> checking for getopt()... yes
> checking for inet_pton()&& inet_ntop()... yes

Sreelaj John

unread,
Dec 9, 2009, 7:00:06 AM12/9/09
to APE Project
got the problem. there was no C++ compiler. Now I have built it again.
Seems okay, with a few warnings here and there.

I have this much on console now:

Bind on port 6969

Version : 1.00
Build : Dec 9 2009 06:55:45
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/examples/nickname.js
[JS] Loading script ../scripts/examples/move.js
[JS] Loading script ../scripts/utils/checkTool.js




Does it look good ?



I still have the problem with the virtual hosts.
> ...
>
> read more »

Sreelaj John

unread,
Dec 9, 2009, 7:11:10 AM12/9/09
to APE Project
Hi,

Could you help with the virtual host problem


on the config file, i have the following entry:

APE.Config.baseUrl = 'http://www.sreelaj.com/apache2-default/ape-
jsf'; //APE JSF
APE.Config.domain = 'auto';
APE.Config.server = 'ape.sreelaj.com:6969'; //APE server URL


and the virtual host definition is like this:


<VirtualHost *>
Servername sreelaj.com
ServerAlias ape.sreelaj.com
ServerAlias *.ape.sreelaj.com

DocumentRoot "/var/www/apache2-default/"
</VirtualHost>



??

On Dec 9, 5:00 pm, Sreelaj John <sreelaj.j...@gmail.com> wrote:
> got the problem. there was no C++ compiler. Now I have built it again.
> Seems okay, with a few warnings here and there.
>
> I have this much on console now:
>
> Bind on port 6969
>
> Version : 1.00
> Build   : Dec  9 2009 06:55:45
> Author  : Weelya (cont...@weelya.com)
> ...
>
> read more »

Nicolas Trani

unread,
Dec 9, 2009, 7:16:38 AM12/9/09
to ape-p...@googlegroups.com
Hi,

it appear that ape.sreelaj.com and *.ape..sreelaj.com is not poiting to
your APE Server, can you check your dns configuration?

Regards.
>> read more �
>>
>


--
Nicolas Trani - Web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
Tel: 04 67 169 778 - Fax: 09 57 91 99 91
http://www.weelya.com
http://www.ape-project.org
=
Nicolas Trani - Web engineer<br/>
Weelya - Improve the web<br/>
32 rue du faubourg boutonnet<br/>
34090 Montpellier<br/>
Tel: 04 67 169 778 - Fax: 09 57 91 99 91<br/>
http://www.weelya.com<br/>
http://www.ape-project.org<br/>

Sreelaj John

unread,
Dec 9, 2009, 8:19:01 AM12/9/09
to ape-p...@googlegroups.com
Hi Nicolas,

ape.sreelaj.com  is now pointing to sreelaj.com.  But no luck.

one question. the APE server is running at 6969 , that must mean sreelaj.com:6969 should give me some output, right ?




--
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/



--
Regards As Always
Sreelaj John

Sreelaj John

unread,
Dec 9, 2009, 10:02:34 AM12/9/09
to APE Project
Is there any way to check if the server set up is correct ?
> ...
>
> read more »

Nicolas Trani

unread,
Dec 9, 2009, 1:01:31 PM12/9/09
to ape-p...@googlegroups.com
The page sreelaj.com:6969 should give you an ouput, but instead the page load constantly. Are you sure your APE Server is running? Do you have any firewall or something that can block 6969 port?

Nicolas Trani

unread,
Dec 9, 2009, 1:02:47 PM12/9/09
to ape-p...@googlegroups.com
To check this, just look when you load APE server you have no error. Te
be sure can you post full ouput of APE?
>> read more �

Sreelaj John

unread,
Dec 9, 2009, 1:11:26 PM12/9/09
to ape-p...@googlegroups.com
Hi Nicolas,

The complete output:


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

Bind on port 6969

Version : 1.00
Build   : Dec  9 2009 09:16:53
Author  : Weelya (con...@weelya.com)

[Module] [spidermonkey] Loading module : Javascript embeded (0.01) - Anthony Cael
--
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/

Sreelaj John

unread,
Dec 9, 2009, 2:09:34 PM12/9/09
to ape-p...@googlegroups.com
I changed the port number to 3939, now the APE server can be seen.
Virtual host issue is still there. I changed the APE server URL on config.js to www.sreelaj.com:3939 and it was able to connect to the server but with some error. 

Trying to solve the dns issue.

Sreelaj John

unread,
Dec 10, 2009, 12:35:19 AM12/10/09
to APE Project
Connection to the APE server is established, but getting the following
error :

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


Help ?


On Dec 10, 12:09 am, Sreelaj John <sreelaj.j...@gmail.com> wrote:
> I changed the port number to 3939, now the APE server can be seen.
> Virtual host issue is still there. I changed the APE server URL on config.js
> towww.sreelaj.com:3939and it was able to connect to the server but with
> some error.
>
> Trying to solve the dns issue.
>
>
>
> On Wed, Dec 9, 2009 at 11:31 PM, Nicolas Trani <n.tr...@weelya.com> wrote:
> >  The page sreelaj.com:6969 should give you an ouput, but instead the page
> > load constantly. Are you sure your APE Server is running? Do you have any
> > firewall or something that can block 6969 port?
>
> > On 09/12/2009 14:19, Sreelaj John wrote:
>
> > Hi Nicolas,
>
> >  ape.sreelaj.com  is now pointing to sreelaj.com.  But no luck.
>
> >  one question. the APE server is running at 6969 , that must mean
> > sreelaj.com:6969 should give me some output, right ?
>
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages