Hello Mario,

Please, correct me if I'm wrong.. but, I'd say that the problem is an  
inconsistency between the source file and the configuration: The SCGI  
application listens 127.0.0.1:3303, while Cherokee's been configured  
to use the /tmp/noentrar.socket unix socket to access the application.

Am I missing something?

On 29-nov-08, at 19:28, Mario César wrote:
> On Wed, Nov 26, 2008 at 3:00 AM, Mario César  
> <[EMAIL PROTECTED]> wrote:
>> I was looking for setup a django site using unix socks, I write this
>> script http://dpaste.com/93801/ named site.py I set up both cases:
>> using unix socks and with host and port.
>>
>> My issue is that for some reason cherokee doesn't start up the  
>> script,
>> even If I restart it, I know the script is well writed, cause If I
>> manually start up the script doing "$python site.py", cherokee start
>> to serve normally the django site.
>>
>> Why works for manage.py and not for my script ? both has the same
>> permissions and both are executable.
>>
>> Someone can try this ? Am I missing something?
>
> Thanks for all the help on the list for my issue.
>
> I Would try to detail more the problem and what am I trying to do.
>
> First, the cherokee installation is from the latest SVN revision, the
> 2505 for the being the 0.12.0 version.
>
> You can see my cherokee.conf file on http://dpaste.com/hold/94628/,
> just with the default and my django project.
>
> The script that would deploy the site is on
> http://dpaste.com/hold/94632/ named site.py
>
> As Alvaro told me[1] I compile and run cherokee with the trace option,
> I generate a 86 MB file, the file was to large to study for me, I
> think this is the exception for my setup.
>
> handler_scgi.c:0374 (    cherokee_handler_scgi_init): Init: connect
>          socket.c:1293 (       cherokee_socket_connect): connect  
> type=1
>          socket.c:1324 (       cherokee_socket_connect): connect
> error type=1 errno='Connection refused'
>          thread.c:0577 (    process_active_connections): thread
> (0x9ae7338) processing conn (0x9af00c0), phase 7 'Init connection'
>          thread.c:0633 (    process_active_connections): conn on
> phase n=7: Init connection
>      connection.c:2032 (cherokee_connection_open_request):
> web_directory='/' request='/'
> local_directory='/home/mariocesar/public_html/noentrar/website'
>    handler_scgi.c:0374 (    cherokee_handler_scgi_init): Init: connect
>          socket.c:1293 (       cherokee_socket_connect): connect  
> type=1
>          socket.c:1324 (       cherokee_socket_connect): connect
> error type=1 errno='Connection refused'
>          thread.c:0577 (    process_active_connections): thread
> (0x9ae7338) processing conn (0x9af00c0), phase 7 'Init connection'
>          thread.c:0633 (    process_active_connections): conn on
> phase n=7: Init connection
>      connection.c:2032 (cherokee_connection_open_request):
> web_directory='/' request='/'
> local_directory='/home/mariocesar/public_html/noentrar/website'
>
> If someone want's to see it all, I upload the file here
> http://creat1va.com/cherokee/ I also put the conf and the script I
> want to use for deploy django.
>
> What I am trying to do is, us a script to deploy django using sockets,
> using the manage.py from django as the documentation say it works, but
> I am more interested in know if I can use a single script, I host
> several django projects, I would like to each user can write some
> special features of his project, this way I would just need to reload
> cherokee instead of manually change the interpreter on the admin.
> Besides that, I would like to know why it's not working use one
> script.
>
> I hope anyone can help me or give me a hint aboyt this.
>
> Thanks again,
>
> Best Regards.
>
>
> [1] http://lists.octality.com/pipermail/cherokee/2008-November/009393.html
>
>
> -- 
> Mario César Señoranis Ayala.
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to