moodywoody has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

(that's kind of a cross post from http://stackoverflow.com/questions/11327639 ).

Essentially I'm playing with Mojolicious and I love it so far and everything is fine as long as I use morbo, but hypnotoad doesn't start and doesn't give any kind of debug info. I've straced the startup and put it on http://pastebin.com/NVK2rhu4


Any troubleshooting ideas much appreciated.

Replies are listed 'Best First'.
Re: Mojolicious - hypnotoad doesn't start
by talexb (Chancellor) on Jul 04, 2012 at 14:42 UTC
      I've straced the startup and put it on http://pastebin.com/NVK2rhu4

    I'm glad you didn't include almost five thousand lines of strace output in a Perlmonks post, but keep in mind that solving problems are more convenient when all of the information is contained in a single post.

    Can you narrow down what the problem might be? Is this actually a Mojolicious or hypnotoad problem? Could this be a problem with your installation?

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      Well, my problem is exactly that I don't know how to narrow the list of suspects.

      What I know is:

      * it happens on both Fedora 16 64 and CentOS 6.2 64.
      * on both these platforms I have had zero problems as long as I stick to morbo
      * trying to run with hypnotoad gives zero output (apart from creating a hypnotoad.pid file), I mean zero. No logs (log dir exists, is writeable, debug level set), no console output.

Re: Mojolicious - hypnotoad doesn't start
by davido (Cardinal) on Jul 05, 2012 at 06:51 UTC

    I was going to suggest this earlier, but wanted to wait and see if perhaps a solution were produced here first: Join the Mojolicious mailing list: It's just Mojolicious on Google Groups. The traffic is usually between 1 and 6 messages per day.

    You could also try the #mojo channel on irc.perl.org.

    Both of those places are frequented by some of the best people Mojolicious has to offer.


    Dave

Re: Mojolicious - hypnotoad doesn't start
by Anonymous Monk on Jul 05, 2012 at 06:41 UTC

    but hypnotoad doesn't start and doesn't give any kind of debug info

    Well turn on debugging / logging /tracing ... before resorting to strace :)

    I see interesting options in hypnotoad like -f, --foreground Keep manager process in foreground.

    Looking for debug/log/trace in Mojo::Server::Hypnotoad I see it uses the app log, whatever that is, so I'd try to track down your apps log configuration and logfile and increase the logging level

    update: Naturally some stack/mojo user already tracked down the relevant %ENV variable,  MOJO_LOG_LEVEL=debug

      I've done all this, no output.

        I've done all this, no output.

        In that case what davido said. Sure you could try debugging hypnotoad with Devel::Trace or Devel::TraceCalls, but I wouldn't bother, if the mojo logging ain't logging, the mojo devs need to help

Re: Mojolicious - hypnotoad doesn't start
by locked_user sundialsvc4 (Abbot) on Jul 05, 2012 at 14:41 UTC

    <off-topic>
    Would we ever seriously expect a “hypno-toad” to ever be awake at all?   ;-)   “You are getting ribbit ... very ribbit ...”
    </off-topic>