Support Center

Trouble running Viso locally

Pete Schaffner Jan 27, 2012 09:08AM PST

I'm interested in using CloudApp to host project quotes, outlines, and other client documents, and would like to hack on Viso a little to customize the text view (primarily). I have grand ideas of working with the API to create views based on file names (rather than just type), but that is down the road. Anyway, I have run into a little trouble getting Viso to run locally for development… When starting the thin server (I'm following the Viso README to a 't'), everything appears to be ok until I send a request to http://localhost:3000. This crashes the server every time. Here is the thin output: http://cl.ly/1c1Y3I3X0n3B0W0L3820 and here is what is being logged in the app: http://cl.ly/1W1P0t361B1I0t3e3R3b

I am new to the ruby language, so I am still trying to understand much of this application (along with its dependencies).

Any help would be greatly appreciated!

Thank you.

0 Rated
Pete Schaffner Jan 27, 2012 11:04AM PST
I should also mention that navigating to http://localhost:3000/path/to/local/viso will reroute me to http://api.cld.me/path/to/local/viso and keep the server running, but will still output an error: http://cl.ly/3z2i3V1O1x0S3s3F3l30
1 Rated
Larry Marburger Jan 27, 2012 02:01PM PST CloudApp Staff

Wow! That’s a nasty error. First off, you can ignore those cache errors. I just added rack-cache this week so it’s trying to connect to memcache. If you’re using homebrew, just `brew install memcached` and it should work out of the box. I’ll add that to the readme.

The larger issue which is causing the crash looks like it’s this issue: https://github.com/mperham/rack-fiber_pool/issues/12 I remember running into this one as well but I don’t remember exactly how I fixed it. I think it was by upgrading to Ruby 1.9.3. Looks like you’re using RVM so try running Viso in 1.9.3 and see if that works for you.

0 Rated
Pete Schaffner Jan 27, 2012 04:19PM PST
BOOM! That did it. I had to do a little convincing, (--with-gcc=clang) but finally got 1.9.3 to install. I am still getting the cache error after installing memcached, but oh well… at least thin is still up and running.

Thanks for the super quick response Larry.
1 Rated
Larry Marburger Jan 27, 2012 05:27PM PST CloudApp Staff

Oh right. You’ll need to tell it where to find memcache. Try this: MEMCACHE_SERVERS=localhost:11211 bundle exec thin start

0 Rated
Pete Schaffner Jan 27, 2012 08:24PM PST
Perfect. Thanks again for all your help.
0 Rated
Larry Marburger Jan 28, 2012 05:33AM PST CloudApp Staff

Any time. Actually, now that I think about it, I probably should’ve had you enter this as an issue instead in case others have the same problem. Oh well. As long as everything’s working for you now that’s all that matters. If you have any other questions about Viso, you might as well create a new issue: https://github.com/cloudapp/viso/issues

0 Rated
Pete Schaffner Jan 28, 2012 11:11AM PST
I was thinking about that too. If you don't mind rehashing some of this, I will open an issue.

Oh, and I got an instance of Viso running on my WebFaction box, but was noticing some questionable console output along with failed image/bookmark output. I am going to troubleshoot some more, but I might shoot back with some more questions (on GitHub if applicable).
0 Rated
Larry Marburger Jan 28, 2012 12:57PM PST CloudApp Staff

That sounds good, Pete. Talk to you on GitHub.

This question is closed to new answers.

Follow Our Tweets