[IPython-user] ipython1 problem?

Brian Granger ellisonbg.net at gmail.com
Wed Nov 22 09:14:49 CST 2006


Do you have it working now though?

On 11/22/06, Flavio Coelho <fccoelho at gmail.com> wrote:
> Thanks Fernando,
>
> I thinks this arrangement looks fine. The only change I can think of is to
> handle the errors that end up in the logs in such a way that the user also
> gets informed of them.

I agree this would be nice, I think the best way is to simply report
*where* the log files are located and tell the user to look at them if
there are problems.  I don't think we want to display all the log
files by default though.

> In my example, if you hadn't pointed me to the logs I wouldn't have figured
> out what was going on. The ipcluster script should output a dignostic of the
> whole startup process, or at least spit out some meaningful error messages.
> What do you think about it?



> Flávio
>
>
> On 11/21/06, Fernando Perez <fperez.net at gmail.com> wrote:
> > On 11/21/06, Brian Granger <ellisonbg.net at gmail.com> wrote:
> > > It looks like the engines are starting but are not finding the
> > > controller you have running.  Things to check:
> > >
> > > 1.  Do you have a firewall blocking ports on the controller's computer?
> > >
> > > 2.  Did you tell the engines where the controller is running:
> > >
> > > ipengine --controller-ip=[ip of the machine running the controller]
> > >
> > > Another way of finding out what is going on is to start the
> > > ipcontroller and ipengine with the -l flags:
> > >
> > > ipcontroller -l cont
> > > ipengine -l eng
> > >
> > > These will cause the log files to be written to disk in the format:
> > >
> > > contpid.log
> > > engpig.log
> >
> > Also, note that if you are using ipcluster to start things, it makes
> > all logs go to
> >
> > ~/.ipython/ipcluster-PID1-{con|eng}-HOST-PID2.log
> >
> > where:
> >
> > - PID1: PID of the starting process (the ipcluster script).  This
> > simply allows you to have a common lexicographical sorting tag for all
> > processes (controller and engines) coming from a given invocation of
> > iplucster.
> >
> > - 'con' or 'eng': tag to mark whether that log file is for a
> > controller or an engine
> >
> > - HOST: host where that particular process is actually running.
> >
> > - PID2: PID of that particular process (controller or engine).
> >
> > This format seems to allow easy automatic organization, debugging and
> > cleanup of logfiles, feel free to suggest improvements.
> >
> > Cheers,
> >
> > f
> >
>
>
>
> --
>
> Flávio Codeço Coelho
> registered Linux user # 386432
> ---------------------------
> "Laws are like sausages. It's better not to see them being made."
> Otto von Bismark
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/ipython-user
>
>
>


More information about the IPython-user mailing list