librelist archives

« back to archive

uWSGI Problem

uWSGI Problem

From:
Ishbir Singh
Date:
2011-07-25 @ 14:10
Hey all,

I'm trying to deploy an application for production using Cherokee. I have
setup uWSGI and it works (doesn't throw any error while runnin uwsgi). I've
created this config file-

<uwsgi>
        <pythonpath>/var/flaskapp/</pythonpath>
        <app mountpoint="/">
                <module>flaskapp</module>
                <callable>app</callable>
        </app>
</uwsgi>

My folder structure is something like this-

-- flaskapp
---- flaskapp
------ __init__.py and other files
---- uploads

Now, it gives me this error- wsgi application not found. Am I doing
something wrong? What's the correct configuration?

-- 
Regards,
Ishbir Singh

Re: [flask] uWSGI Problem

From:
Roberto De Ioris
Date:
2011-07-25 @ 14:22
Il giorno 25/lug/2011, alle ore 16:10, Ishbir Singh ha scritto:

> Hey all,
> 
> I'm trying to deploy an application for production using Cherokee. I 
have setup uWSGI and it works (doesn't throw any error while runnin 
uwsgi). I've created this config file-
> 
> <uwsgi>
>         <pythonpath>/var/flaskapp/</pythonpath>
>         <app mountpoint="/">
>                 <module>flaskapp</module>
>                 <callable>app</callable>
>         </app>
> </uwsgi>
> 
> My folder structure is something like this-
> 
> -- flaskapp
> ---- flaskapp
> ------ __init__.py and other files
> ---- uploads
> 
> Now, it gives me this error- wsgi application not found. Am I doing 
something wrong? What's the correct configuration?
> 
> -- 
> Regards,
> Ishbir Singh
> 

Which uWSGI and Cherokee version ?

Are you sure you have mount (in cherokee) your flask app as default handler ?

> 

--
Roberto De Ioris
http://unbit.it

Re: [flask] uWSGI Problem

From:
Ishbir Singh
Date:
2011-07-25 @ 14:26
uWSGI- 0.9.8.3
Cherokee- 1.2.98

I've set the virtual host to match the server's IP and it shouldn't give the
error, should just display the default page if it wasn't the default
handler.

On 25 July 2011 19:52, Roberto De Ioris <roberto@unbit.it> wrote:

>
> Il giorno 25/lug/2011, alle ore 16:10, Ishbir Singh ha scritto:
>
> > Hey all,
> >
> > I'm trying to deploy an application for production using Cherokee. I have
> setup uWSGI and it works (doesn't throw any error while runnin uwsgi). I've
> created this config file-
> >
> > <uwsgi>
> >         <pythonpath>/var/flaskapp/</pythonpath>
> >         <app mountpoint="/">
> >                 <module>flaskapp</module>
> >                 <callable>app</callable>
> >         </app>
> > </uwsgi>
> >
> > My folder structure is something like this-
> >
> > -- flaskapp
> > ---- flaskapp
> > ------ __init__.py and other files
> > ---- uploads
> >
> > Now, it gives me this error- wsgi application not found. Am I doing
> something wrong? What's the correct configuration?
> >
> > --
> > Regards,
> > Ishbir Singh
> >
>
> Which uWSGI and Cherokee version ?
>
> Are you sure you have mount (in cherokee) your flask app as default handler
> ?
>
> >
>
> --
> Roberto De Ioris
> http://unbit.it
>
>


-- 
Regards,
Ishbir Singh

Re: [flask] uWSGI Problem

From:
Roberto De Ioris
Date:
2011-07-25 @ 14:30
Il giorno 25/lug/2011, alle ore 16:26, Ishbir Singh ha scritto:

> uWSGI- 0.9.8.3
> Cherokee- 1.2.98
> 
> I've set the virtual host to match the server's IP and it shouldn't give
the error, should just display the default page if it wasn't the default 
handler.

After being run by Cherokee, uWSGI logs go to the Cherokee error log.

If you check them, you should see if the app is correctly loaded

(I suggest you to kill uWSGI before retrying)


--
Roberto De Ioris
http://unbit.it

Re: [flask] uWSGI Problem

From:
Ishbir Singh
Date:
2011-07-25 @ 14:40
Hey,

Ah! I had some missing modules. Thank you for the assistance!

On 25 July 2011 20:00, Roberto De Ioris <roberto@unbit.it> wrote:

>
> Il giorno 25/lug/2011, alle ore 16:26, Ishbir Singh ha scritto:
>
> > uWSGI- 0.9.8.3
> > Cherokee- 1.2.98
> >
> > I've set the virtual host to match the server's IP and it shouldn't give
> the error, should just display the default page if it wasn't the default
> handler.
>
> After being run by Cherokee, uWSGI logs go to the Cherokee error log.
>
> If you check them, you should see if the app is correctly loaded
>
> (I suggest you to kill uWSGI before retrying)
>
>
> --
> Roberto De Ioris
> http://unbit.it
>
>


-- 
Regards,
Ishbir Singh