Could not locate bind - TG2 TGScheduler

13 views
Skip to first unread message

Paul Kraus

unread,
May 20, 2011, 10:06:18 AM5/20/11
to turbo...@googlegroups.com
I have a scheduled task setup a tg2 project that use tgscheduler. Every other time i start the app I get this error at start up Could not locate a bind configured on mapper Mapper|Flag|flags, SQL expression or this Session. Restart the app error is gone everything works fine. I am really confused by it.

Is there something I have to do to make user the environment is loaded? Why is it random? I can only guess that sometimes the scheduler fires off before the app is fully loaded and sometimes it doesn't?

TIA,
PK

Michael Pedersen

unread,
May 23, 2011, 9:54:52 PM5/23/11
to turbo...@googlegroups.com
I don't have the answer for you right out of the box. I do know that this sounds similar to an issue we discussed a while back, which explained a workaround to use with mod_wsgi to make it handle resources properly. I'd search the archives for the exact details, but they are there and discussed.

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.



--
Michael J. Pedersen
My IM IDs: Jabber/pede...@icelus.tzo.com, AIM/pedermj022171
          Yahoo/pedermj2002, MSN/pederm...@hotmail.com
My LinkedIn Profile: http://www.linkedin.com/in/michaeljpedersen
Twitter: pedersentg

Paul Kraus

unread,
Jun 25, 2011, 5:16:26 PM6/25/11
to turbo...@googlegroups.com
Thread necromancy in case anyone else gets confused by this.

Issue was a simple as changing the initialdelay on the task. Here it was trying to fire of the scheduled task before the environment was loaded.

PK
Reply all
Reply to author
Forward
0 new messages