Can't get Tuneup to start

Subscribe to Can't get Tuneup to start 20 post(s), 3 voice(s)

 
Avatar tobinibot 12 post(s)

I’ve installed the gem, and have tried both the plugin approach and the gem dependency approach (I’m running on Rails 2.1). Nothing is showing up with either approach. Is there something I need to do?
Tobin

 
Avatar Brian Dainton Moderator 19 post(s) A few possibilities, tobinibot:
  • Are you running in ‘development’ mode? At the moment, there’s a problem with running in production mode under 2.1.
  • The latest gem is 0.8.4. Just make sure that you have that one.
  • Does the page you’re trying to tuneup have a <head> tag? The plugin looks for this tag in the response.
  • There is currently an outstanding bug where the TuneUp panel won’t display on the default route. Have you tried to hit a different path?
    If none of these get you rolling, will you check your development.log and tuneup.log for clues and paste them in this thread? Thanks!
    - Brian
 
Avatar Dave Krupinski 1 post(s)

It looks like it is running for me, but I don’t get anything that looks like a panel (assuming it would be pretty obvious).
Here is what is in my tuneup.log
FiveRuns TuneUp (v0.8.4): Rails version 2.0.2 is supported, loading…
FiveRuns TuneUp (v0.8.4): Starting…
FiveRuns TuneUp (v0.8.4): Using collector at https://tuneup-collector.fiveruns.com
FiveRuns TuneUp (v0.8.4): Using frontend at https://tuneup.fiveruns.com
FiveRuns TuneUp (v0.8.4): Inserted asset tags
FiveRuns TuneUp (v0.8.4): Inserted asset tags

 
Avatar tobinibot 12 post(s) Thanks for the reply, Brian.
  • I am running in development mode
  • I do have gem 0.8.4
  • I do have a head tag (comes from my application layout)
  • It doesn’t work on any route
    However, the bit about needing a element made me think of something. I’m serving up XHTML strict as application/xhtml+xml. If I switch to serving XHTML transitional as text/html, then I do get the Tuneup banner. So it would appear that Tuneup does not work when you’re serving up XHTML strict. Is this something that will get fixed?
    BTW, there were no errors in the tuneup.log from this:
    FiveRuns TuneUp (v0.8.4): Rails version 2.1.0 is supported, loading…
    FiveRuns TuneUp (v0.8.4): Starting…
    FiveRuns TuneUp (v0.8.4): Using collector at https://tuneup-collector.fiveruns.com
    FiveRuns TuneUp (v0.8.4): Using frontend at https://tuneup.fiveruns.com
 
Avatar Brian Dainton Moderator 19 post(s) tobinibot: Good find. Yep, this is an oversight on our part; we’ll get it fixed up.
Dave: Still no luck seeing the TuneUp panel? Assuming you’re still broken…
  • Have you tried hitting multiple routes in your app?
  • Are there any relevant backtraces in your development.log?
  • Will you try a “hard refresh” of the page to make sure that the TuneUp assets (css, js, etc.) get loaded?
  • Will you look at the source for your served html page and verify that you see a chunk of FiveRuns TuneUp-related assets at the bottom of your <head> tag?
 
Avatar Brian Dainton Moderator 19 post(s)

tobinibot, I just pushed a new fiveruns_tuneup gem (v0.8.5) out to RubyForge a moment ago. This version will handle content types other than text/html, including application/xhtml+xml. Once the gem has propagated to its mirrors, you’ll be able to grab it and try it out. If you continue to experience problems, please let us know.

 
Avatar tobinibot 12 post(s)

Sorry for the delay, I haven’t been back to the site in a while. I upgraded to the latest gem (now 0.8.6) and I am getting a little farther. I am now getting the black TuneUp header graphic on top, but there is no text or bar graph on it. It’s just a bar.
If I go into my app and comment out the line that is modifying the Content-Type so I’m sending text/html again, the text and bar graph appear. So it looks like it isn’t quite fixed all the way yet.

 
Avatar Brian Dainton Moderator 19 post(s)

Erg, yeah, that stinks. Tobinibot, would you mind sending an email to support@fiveruns.com with the line of code that you’re using to set your Content-Type? Clearly, we fixed a somewhat-different problem and we want to make sure that we get this issue squashed. Also, if possible, if you could pass along a simple example page that exhibits this behavior, that’ll help us put together a better testcase. Thanks in advance.

 
Avatar tobinibot 12 post(s)

Just sent off an email, Brian.
Thanks.

 
Avatar Brian Dainton Moderator 19 post(s)

Hi tobinibot,
We just pushed out a new version (v0.8.8) of the gem a short while ago which I hope will resolve this issue. It’s working like a charm with the example xhtml strict app you sent via email. Thanks!

 
Avatar tobinibot 12 post(s)

Hey Brian, I’ve upgraded to 0.8.8, and the sample app I sent you is working as expected. However, it’s still not working on my more complex app. It typically displays the bar graph once, and then goes back to the old behavior of showing just the TuneUp banner. I’m trying to see if I can replicate this in the sample app. I’ll let you know.
Tobin

 
Avatar tobinibot 12 post(s)

Brian, I’ve just sent in another sample app (to support@fiveruns.com) which is not working for me. Hope it helps you out.

 
Avatar tobinibot 12 post(s)

Any progress being made on this?

 
Avatar Brian Dainton Moderator 19 post(s)

I don’t have this working yet, tobinibot. It does have my full attention right now, though. Any chance you could just not manually modify the response headers? ;) Hm, didn’t think so. I’ll update this forum thread later today with further info.

 
Avatar tobinibot 12 post(s)

Hehe, who needs to serve up SVG anyway. :)
One thing I am curious about, what is the difference between the first and second test app I sent you? Have you been able to figure out why the first works and the second doesn’t? No rush, I’d just be interested in finding out.

 
Avatar Brian Dainton Moderator 19 post(s)

At runtime, we inject a chunk of HTML representing your run ‘stack’ into the TuneUp panel. The HTML we generate for a run against this second test app differs from that generated in the first app because the second app runs a query. There’s something in this second app’s generated HTML that either the browser or Prototype is barfing on when we try to update the panel.

 
Avatar Brian Dainton Moderator 19 post(s)

Hey tobinibot, will you grab the v0.8.9 gem and give it a whirl? It’s working for me locally with your second test app just fine. Thanks!

 
Avatar tobinibot 12 post(s)

Grrr. It works great on that second example I sent you. I even added some links to navigate around to some new pages (doing queries) and it still works.
However (and you know what’s coming), it still doesn’t work on my “real” application. I’m sending a third (and hopefully final) app.
Tobin

 
Avatar Brian Dainton Moderator 19 post(s)

Hooray. A v0.8.10 gem with this fix is propagating out to the mirrors now.

 
Avatar tobinibot 12 post(s)

And it works!! Thanks for all your hard work Brian, I appreciate it.