I uses proxypass before and I had to restart Apache every time I restarted Ape 
or Apache would failed to proxy the request. I use HaProxy now (article about 
it on the wiki) and it works better. Plus HaProxy support websocket. The error 
may comes from Apache proxy then. 

Envoyé de mon iPad

> Le 2014-10-01 à 04:35, Nicolas <[email protected]> a écrit :
> 
> Oops, I copied-pasted the wrong outdated config. This is the local one:
> 
> <VirtualHost *:80> 
> 
>     ServerName ape.local.ape-project.org
>     ServerAlias *.ape.local.ape-project.orgwith
> 
>       # Everything expires after 10 months except php files that are not 
> cached
>       ExpiresActive On
>       ExpiresDefault A2592000
>       #10 months
>       ExpiresByType text/php A0
> 
>     ProxyRequests Off 
>     ProxyPreserveHost On 
>     <Proxy *> 
>         Order deny,allow 
>         Allow from all 
>     </Proxy> 
>    ProxyPass / http://localhost:6969/ 
>    ProxyPassReverse / http://localhost:6969/ 
>     <Location /> 
>         Order allow,deny 
>         Allow from all 
>     </Location> 
> 
> </VirtualHost> 
> 
> The one I pasted was an old one, from the time when I used proxy (when I had 
> one IP only) on the production server too. There is no proxy there any more.
> 
> Thanks.
> 
> 
> 
> 
> 
>> On Wednesday, October 1, 2014 9:33:09 AM UTC+1, Nicolas wrote:
>> Yes. Thanks guys. Indeed, it is a message from Apache! I posted quickly 
>> before going home without too much thought.
>> 
>> This said, I have no clue what this means.
>> 
>> I use proxy on my local machine but not on the production and staging server 
>> where APE has its own IP. So I doubt the proxy thing is the explanation. It 
>> will probably be useless but I give my local config anyway:
>> 
>> <VirtualHost 83.170.85:13:80> 
>> 
>>     ServerName ape.happymeeple.com
>>     ServerAlias *.ape.happymeeple.com
>> 
>>     SetEnv force-proxy-request-1.0 1
>>     SetEnv proxy-nokeepalive 1
>> 
>>     ErrorLog /var/www/HM/log/apache_APE_error.log
>>     CustomLog /var/www/HM/log/apache_APE.log vhost_combined
>> 
>>     ProxyRequests Off 
>>     ProxyPreserveHost On 
>>     <Proxy *>
>>          Order deny,allow 
>>         Allow from all 
>>     </Proxy> 
>>     ProxyPass / http://localhost:6969/ 
>>     ProxyPassReverse / http://localhost:6969/ 
>>     <Location /> 
>>         Order allow,deny 
>>         Allow from all 
>>     </Location> 
>> 
>> </VirtualHost> 
>> 
>> 
>> Finally, I noted that if I start from a fresh browser after the APE restart, 
>> the command goes through well. However, if I login to APE, then restart APE, 
>> then logout and try to relogin to APE, this is when the error comes. In my 
>> latest test, it took 53 seconds for the command to finally reach APE.
>> 
>> ???
>> 
>> 
>> 
>> 
>>> On Wednesday, October 1, 2014 4:20:49 AM UTC+1, christian audebert wrote:
>>> Are you sure you have correctly restarted aped. ??  it seem, with the 
>>> apache respond, that ape doesn’t restarted..
>>> 
>>> Like Louis said, it’s an apache response, not an ape response..
>>> 
>>>  
>>> 
>>>  
>>> 
>>>  
>>> 
>>> De : [email protected] [mailto:[email protected]] De la 
>>> part de Nicolas
>>> Envoyé : mardi 30 septembre 2014 19:26
>>> À : [email protected]
>>> Objet : Re: [APE Project] Session persists for 45 seconds after APE is 
>>> closed
>>> 
>>>  
>>> 
>>> Well I did some further investigation.
>>> 
>>>  
>>> 
>>> The reality is not what I thought it was, but it is weird nonetheless.
>>> 
>>>  
>>> 
>>> IWhen I want to login a user, I send a command like this to APE:
>>> 
>>>  
>>> 
>>> http://ape.local.ape-project.org/?[%7B%22cmd%22:%22REGISTER%22,%22params%22:%7B%22name%22:%22register_user%22,%22user_id%22:%22105501%22,%22user_agent%22:%22Mozilla//5.0%20(Windows%20NT%206.1;%20WOW64)%20AppleWebKit//537.36%20(KHTML,%20like%20Gecko)%20Chrome//37.0.2062.124%20Safari//537.36%22,%22check_key%22:%gfgdsf%22,%22activation_key%22:%gsdfgsd%22,%22user_ip%22:%22192.168.18.1%22%7D%7D]
>>> 
>>>  
>>> 
>>> This is dealt with and provided the user has the right to login, this 
>>> returns the right answer and the login is processed.
>>> 
>>>  
>>> 
>>> However, let's assume one user is logged in and correctly connected to APE. 
>>> Then I close APE and restart it. Then I close the PHP session of the user 
>>> and try relogin. Then the previous command is sent again, but this time I 
>>> get the following error:
>>> 
>>>  
>>> 
>>>  
>>> 
>>> Service Temporarily Unavailable
>>> 
>>> The server is temporarily unable to service your request due to maintenance 
>>> downtime or capacity problems. Please try again later.
>>> 
>>> Apache/2.2.14 (Ubuntu) Server at ape.local.ape-project.org Port 80
>>>  
>>> 
>>>  
>>> 
>>> It goes away after more or less 45 seconds. 
>>> 
>>>  
>>> 
>>> Why is that?
>>> 
>>>  
>>> 
>>> Nicolas.
>>> 
>>>  
>>> 
>>>  
>>> 
>>> 
>>> On Saturday, September 27, 2014 5:17:34 PM UTC+1, Louis Charette wrote:
>>> 
>>> You mean the actual sessions when ape is restarted on the server side? 
>>> Never seen that. Everything should be in memory I guess, so sessions are 
>>> flushed on the server when APE is closed.
>>> 
>>>  
>>> 
>>>   - Louis
>>> 
>>>  
>>> 
>>> Le 2014-09-25 à 08:47, Nicolas <[email protected]> a écrit :
>>> 
>>> 
>>> 
>>> 
>>> Hi,
>>> 
>>>  
>>> 
>>> I have long noticed that after closing et restarting APE, sessions from the 
>>> first instance are still active for 45 seconds.
>>> 
>>>  
>>> 
>>> Why is that? Where is the session information stored? On the hard disk I 
>>> suppose?
>>> 
>>>  
>>> 
>>> Thanks.
>>> 
>>>  
>>> 
>>>  
>>> 
>>>  
>>> 
>>>  
>>> 
>>> -- 
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> 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/
>>> 
>>> --- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "APE Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>> 
>>>  
>>> 
>>> -- 
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> 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/
>>> 
>>> --- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "APE Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to