I am a new user to the APE project and I am enjoying it's power. I
built something really nice, where I combine multithreading
(multi_curl_*) in PHP with ajax push using APE's inlinepush.
Everything worked fine. Then I launched the new version of my website,
had it run overnight and lost about 40% of my customers. When I woke
up, the APE server did not respond at all. Usually, when I type the
URL of my ape server, I get this:
---------
APE Server
No command given.
http://www.ape-project.org/ - Server 1.00 (Build Dec 10 2009 20:26:31)
---------
This morning though, any request to this URL timed out. When I checked
the logs though, I could see some activity...
............
2010-03-25 10:30:22 - src/users.c:180 - New user - (ip :
212.170.112.70)
2010-03-25 10:30:47 - src/users.c:180 - New user - (ip : 88.0.141.195)
2010-03-25 10:31:06 - src/users.c:180 - New user - (ip :
90.224.176.40)
2010-03-25 10:31:09 - src/users.c:180 - New user - (ip :
82.59.174.183)
2010-03-25 10:31:09 - src/users.c:180 - New user - (ip :
80.153.61.249)
..........
etc.
Is it possible that there is a maximum of users that can access the
server at the same time? If so, how do I increase this limit?
Do you also need to close anything on the clientside, by using core
quit?
http://www.ape-project.org/docs/client/core/quit.html
Tjeerd
Do you also need to close anything on the clientside, by using core
quit?
http://www.ape-project.org/docs/client/core/quit.html
Tjeerd
--
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/
To unsubscribe from this group, send email to ape-project+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
On 26 mrt, 02:51, ma liang <bigmali...@gmail.com> wrote:
> 2010/3/25 tjeerdkramer <tjeerdkra...@gmail.com>
>
>
>
> > Hi,
>
> > I am a new user to the APE project and I am enjoying it's power. I
> > built something really nice, where I combine multithreading
> > (multi_curl_*) in PHP with ajax push using APE's inlinepush.
>
> > Everything worked fine. Then I launched the new version of my website,
> > had it run overnight and lost about 40% of my customers. When I woke
> > up, the APE server did not respond at all. Usually, when I type the
> > URL of my ape server, I get this:
>
> > ---------
> > APE Server
>
> > No command given.
> >http://www.ape-project.org/- Server 1.00 (Build Dec 10 2009 20:26:31)
> > ape-project...@googlegroups.com<ape-project%2Bunsu...@googlegroups.com>
the issue you are experiencing is a know bug of APE 1.0. You have two options to solve it :
- Update to APE git version (http://github.com/APE-Project/APE_Server)
Or
- Edit scripts/commands/inlinepush.js and replace at line 2
Ape.config("inlinepush.conf", "password") by your password
Regards.
--
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
To unsubscribe from this group, send email to ape-project+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
I sent you yesterday two debian packages. You didn't get it?
The function Ape.config have a bug, when it open the config file the
file descriptor is not closed, so each time you receive an inlinepush a
new file descriptor is open and never closed. When you reach the r_limit
(max number of file descriptor open) the APE server will hang as he
can't open new socket. Replacing it by your password will avoid this.
Regards.
Tjeerd Kramer wrote:
> Dear Nicolas,
>
> Thanks for your assistance. I have replaced the password by my own
> password, as my system admin can't seem to compile a new version - he
> keeps getting errors. Can you send it to me by email, like you said
> you would on IRC?
>
> What I don't understand though, is how modifying this line would
> help... If the password check fails, it should fail at all times, not
> after running for a while, should it?
>
> Thanks,
>
> Tjeerd
>
> 2010/3/27 Nicolas Trani <n.t...@weelya.com <mailto:n.t...@weelya.com>>
>
> Hi,
>
> the issue you are experiencing is a know bug of APE 1.0. You have
> two options to solve it :
>
> - Update to APE git version (http://github.com/APE-Project/APE_Server)
> Or
> - Edit scripts/commands/inlinepush.js and replace at line 2
> Ape.config("inlinepush.conf", "password") by your password
>
> Regards.
>
>
> tjeerdkramer wrote:
> > Thanks for the help - what's the JS code to modify this limit?
> >
> > On 26 mrt, 02:51, ma liang <bigmali...@gmail.com
> <mailto:bigmali...@gmail.com>> wrote:
> >
> >> 2010/3/25 tjeerdkramer <tjeerdkra...@gmail.com
> <mailto:tjeerdkra...@gmail.com>>
> ape-p...@googlegroups.com <mailto:ape-p...@googlegroups.com>
> >>> To unsubscribe from this group, send email to
> >>> ape-project...@googlegroups.com
> <mailto:ape-project%2Bunsu...@googlegroups.com><ape-project%2Bunsu...@googlegroups.com
> <mailto:ape-project%252Buns...@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/
> >>>
> >>> To unsubscribe from this group, send email to ape-project+
> >>> unsubscribegooglegroups.com
> <http://unsubscribegooglegroups.com> or reply to this email with
> the words "REMOVE
> >>> ME" as the subject.
> >>>
> >
> >
>
>
> --
> 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
>
> --
> 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
> <mailto:ape-p...@googlegroups.com>
> To unsubscribe from this group, send email to
> ape-project...@googlegroups.com
> <mailto:ape-project%2Bunsu...@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/
>
> To unsubscribe from this group, send email to
> ape-project+unsubscribegooglegroups.com
> <http://unsubscribegooglegroups.com> or reply to this email with
> the words "REMOVE ME" as the subject.
>
>
> --
> 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/
>
> To unsubscribe from this group, send email to
> ape-project+unsubscribegooglegroups.com or reply to this email with
> the words "REMOVE ME" as the subject.
http://www.ape-project.org/ - Server 1.01dev (Build Mar 27 2010
12:05:40
Now, when I run the controller test from the Demos directory
(inlinepush), it returns:
[{"time":"1269953864","raw":"ERR","data":
{"code":"400","value":"BAD_PASSWORD"}}]
The following passwords all match:
- test.php (the demo script)
- ape/commands/inlinepush.js (line 2)
- inlinepush.conf
What's wrong?
On Mar 28, 3:38 pm, Tjeerd Kramer <tjeerdkra...@wakr.nl> wrote:
> No, I am afraid I didn't get those. Thanks for explaining me about the
> config bug, I understand and sincerely hope this will fix our issues, as I
> really like APE! I was already looking at alternatives (orbited), but if
> this works, I think I'll stick with APE!
>
> Which makes me wonder, what are the pros & cons according to you of using
> APE vs. Orbited?
>
> Tjeerd
>
> 2010/3/28 Nicolas Trani <n.tr...@weelya.com>
>
> > Hi,
>
> > I sent you yesterday two debian packages. You didn't get it?
>
> > The function Ape.config have a bug, when it open the config file the
> > file descriptor is not closed, so each time you receive an inlinepush a
> > new file descriptor is open and never closed. When you reach the r_limit
> > (max number of file descriptor open) the APE server will hang as he
> > can't open new socket. Replacing it by your password will avoid this.
>
> > Regards.
> > Tjeerd Kramer wrote:
> > > Dear Nicolas,
>
> > > Thanks for your assistance. I have replaced the password by my own
> > > password, as my system admin can't seem to compile a new version - he
> > > keeps getting errors. Can you send it to me by email, like you said
> > > you would on IRC?
>
> > > What I don't understand though, is how modifying this line would
> > > help... If the password check fails, it should fail at all times, not
> > > after running for a while, should it?
>
> > > Thanks,
>
> > > Tjeerd
>
> > > 2010/3/27 Nicolas Trani <n.tr...@weelya.com <mailto:n.tr...@weelya.com>>
> > > >>>http://www.ape-project.org/-Server 1.00 (Build Dec 10 2009
> > > >>> ape-project...@googlegroups.com<ape-project%2Bunsu...@googlegroups.com>
> > > <mailto:ape-project%2Bunsu...@googlegroups.com<ape-project%252Buns...@googlegroups.com>
> > ><ape-project%2Bunsu...@googlegroups.com<ape-project%252Buns...@googlegroups.com>
> > > <mailto:ape-project%252Buns...@googlegroups.com<ape-project%25252Bun...@googlegroups.com>
> > > ape-project...@googlegroups.com<ape-project%2Bunsu...@googlegroups.com>
> > > <mailto:ape-project%2Bunsu...@googlegroups.com<ape-project%252Buns...@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/
>
> > > To unsubscribe from this group, send email to
> > > ape-project+unsubscribegooglegroups.com
> > > <http://unsubscribegooglegroups.com> or reply to this email with
> > > the words "REMOVE ME" as the subject.
>
> > > --
> > > 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<ape-project%2Bunsu...@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/
>
> > > To unsubscribe from this group, send email to
> > > ape-project+unsubscribegooglegroups.com or reply to this email with
> > > the words "REMOVE ME" as the subject.
>
> > --
> > 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
>
> > --
> > 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<ape-project%2Bunsu...@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/
>
> > To unsubscribe from this group, send email to ape-project+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
On Mar 30, 3:02 pm, tjeerdkramer <tjeerdkra...@gmail.com> wrote:
> Apparantly, I did get them. I've succesfully installed the new
> version:
>
> http://www.ape-project.org/- Server 1.01dev (Build Mar 27 2010
> > > > >>>http://www.ape-project.org/-Server1.00 (Build Dec 10 2009