List Info

Thread: Cherrypy application server just exits




Cherrypy application server just exits
country flaguser name
United States
2007-05-30 09:12:31
I have the following code which startup my cherrpy
application. After
I've started using sql alchemy I've noticed that my cherrpy
every
couple of days  just exits. Without printing out a
system.exit. Has
anyone noticed an exit with their cherrypy application
servers?

Vineet


    try:
        cherrypy.tree.mount(root)
        cherrypy.config.update(conf)
        cherrypy.server.quickstart()
        if blocking:
            cherrypy.engine.start()
        else:
            cherrypy.engine.start(blocking=blocking)
    except:
        print format_exc()
        logging.exception(format_exc())
        logging.exception("Login:: cherrypy was not
ready trying to
restart it")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Cherrypy application server just exits
country flaguser name
United States
2007-05-31 05:53:34
I noticed, using sqlalchemy and mysql, that the CP3
application lose
the db connection.
I have to restart the CP3 application to re-establish the
connection
with the db.
The same thing doesn't happen with postgresql.

Did you set  strategy='threadlocal' in the sqlalchemy engine
creation?

Enrico


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Cherrypy application server just exits
country flaguser name
United States
2007-06-15 14:21:29
FYI: When I removed sqlalchemy from the codebase, the
mysterious
application exists stopped happening.

Vineet


On May 30, 10:12 am, pytrade <vinjv...gmail.com> wrote:
> I have the following code which startup my cherrpy
application. After
> I've started using sql alchemy I've noticed that my
cherrpy every
> couple of days  just exits. Without printing out a
system.exit. Has
> anyone noticed an exit with their cherrypy application
servers?
>
> Vineet
>
>     try:
>         cherrypy.tree.mount(root)
>         cherrypy.config.update(conf)
>         cherrypy.server.quickstart()
>         if blocking:
>             cherrypy.engine.start()
>         else:
>             cherrypy.engine.start(blocking=blocking)
>     except:
>         print format_exc()
>         logging.exception(format_exc())
>         logging.exception("Login:: cherrypy was
not ready trying to
> restart it")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )