Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8598929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:16:30+00:00 2026-06-12T01:16:30+00:00

I made a simple Sinatra app to run a homepage. It’s already working on

  • 0

I made a simple Sinatra app to run a homepage. It’s already working on my computer. Now I wanted to host it at heroku, but I can’t manage it to make it run. I am not really familiar with concepts like “Gemfile” or “Procfile”.

My ruby app requires Sinatra, haml and sinatra/r18n. My gemfile looks like this:

source :rubygems
gem 'sinatra'
gem 'thin'
gem 'sinatra-r18n'
gem 'haml'

My Procfile looks like this:

web: bundle exec ruby app.rb -p $PORT

My app.rb starts like this:

# app.rb

require 'rubygems'
require 'sinatra'
require 'sinatra/r18n'
require 'haml'

enable :sessions

helpers do
  def set_lang (langcode)
...

Other files in the directory include the Gemfile.lock which was created through bundle install if I remember correctly and folders for “r18n”, “public”, “views”.

If I start the application on heroku the “heroku ps” command says the application is “up” but if I use “heroku open” I get an “Internal Server Error”.

Here is the “heroku logs” after I push it to heroku:

2012-09-15T19:34:54+00:00 heroku[slugc]: Slug compilation started
2012-09-15T19:35:01+00:00 heroku[api]: Release v13 created by -@gmail.com
2012-09-15T19:35:01+00:00 heroku[api]: Deploy bebc79e by -@gmail.com
2012-09-15T19:35:01+00:00 heroku[web.1]: State changed from up to starting
2012-09-15T19:35:01+00:00 heroku[slugc]: Slug compilation finished
2012-09-15T19:35:02+00:00 heroku[web.1]: Starting process with command `bundle exec ruby app.rb -p 54979`
2012-09-15T19:35:05+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-09-15T19:35:05+00:00 heroku[web.1]: State changed from starting to up
2012-09-15T19:35:06+00:00 app[web.1]: == Sinatra/1.1.0 has taken the stage on 20773 for production with backup from Thin
2012-09-15T19:35:06+00:00 app[web.1]: >> Thin web server (v1.4.1 codename Chromeo)
2012-09-15T19:35:06+00:00 app[web.1]: >> Maximum connections set to 1024
2012-09-15T19:35:06+00:00 app[web.1]: >> Listening on 0.0.0.0:20773, CTRL+C to stop
2012-09-15T19:35:06+00:00 app[web.1]: >> Stopping ...
2012-09-15T19:35:06+00:00 app[web.1]:
2012-09-15T19:35:06+00:00 app[web.1]: == Sinatra has ended his set (crowd applauds)
2012-09-15T19:35:07+00:00 heroku[web.1]: Process exited with status 0

Has anybody an idea what’s going wrong here? Maybe something obvious if you are more familiar to the used concepts. I also would take hints for material that helps me to solve the problem, but until now all my googling/reading didn’t help.

Update 28-09
I now removed the Procfile from code and still get the “Internal Server Error”. Here is some more log which should include the crash:

 2012-09-28T18:04:50+00:00 heroku[web.1]: State changed from down to starting
 2012-09-28T18:04:58+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 30813`
 2012-09-28T18:05:01+00:00 heroku[web.1]: State changed from starting to up
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/views/start.haml:1:in `evaluate_source'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `instance_eval'
 2012-09-28T18:05:02+00:00 app[web.1]: Encoding::CompatibilityError - incompatible character encodings: ASCII-8BIT and UTF-8:
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `evaluate_source'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:127:in `evaluate'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:144:in `cached_evaluate'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/haml.rb:24:in `evaluate'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:452:in `render'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/app.rb:28:in `block in <top (required)>'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:370:in `haml'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `block in compile!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `instance_eval'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `route_eval'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:in `block in process_route'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `catch'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in `block (2 levels) in route!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `process_route'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in `block in route!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `each'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `route!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `block in call!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `instance_eval'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:in `dispatch!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `block in invoke'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `catch'
 2012-09-28T18:05:02+00:00 heroku[router]: GET fierce-crag-6255.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=73ms status=500 bytes=30
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `invoke'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `call!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in `synchronize'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `block in call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:80:in `block in pre_process'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:53:in `process'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `pre_process'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:38:in `receive_data'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `catch'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in `start'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in `start'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in `start'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in `run_command'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in `run!'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/bin/thin:6:in `<top (required)>'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
 2012-09-28T18:05:02+00:00 app[web.1]:  /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
 2012-09-28T18:05:02+00:00 app[web.1]: 212.90.85.15 - - [28/Sep/2012 18:05:02] "GET / HTTP/1.1" 500 30 0.0591
 2012-09-28T18:05:03+00:00 app[web.1]: 212.90.85.15 - - [28/Sep/2012 18:05:03] "GET /favicon.ico HTTP/1.1" 200 1416 0.0109
 2012-09-28T18:05:03+00:00 heroku[router]: GET fierce-crag-6255.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=13ms status=200 bytes=1416
 2012-09-28T18:05:03+00:00 heroku[router]: GET fierce-crag-6255.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=1416
 2012-09-28T18:05:03+00:00 app[web.1]: 212.90.85.15 - - [28/Sep/2012 18:05:03] "GET /favicon.ico HTTP/1.1" 200 1416 0.0026
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:16:31+00:00Added an answer on June 12, 2026 at 1:16 am

    Yay, I just figured it out myself. I should have put more attention to the Encoding::CompatibilityError - incompatible character encodings: ASCII-8BIT and UTF-8: in the heroku logs. I removed all the German umlauts and now it is working. The problem now with the encoding is adressed here. I hope I can figure this out somehow. Thanks everyone anyway!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made simple arguments adder with assembly but it isn't working it always return
I made a simple insert into statement but it is not working well. The
I made simple email in wordpress but it would only send email to the
Visual Studio 2008 (vb.net) I made simple anivirus but when I make Full scan
I made a simple .NET WCF wsDualHttpBinding that does callback to client. Now I
I made a simple drawing app with HTML5 canvas. You click in two different
I have been using TinyMCE WYSIWYG in CMSMS(CMS Made simple), its working in all
I've made simple nodejs application by using nodejs+express. Now I want to make user
I made a simple graph to write MKV file. But I do not want
I've made a very simple sinatra application which displays a frameset with 3 frames.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.