Padrino + Thin Web Server – uninitialized constant Thin::HttpParser (NameError)

New server, new thin, new error while executing:

Padrino/0.9.19 has taken the stage production on 3001
Thin web server (v1.2.8 codename Black Keys)
Maximum connections set to 1024
Listening on localhost:3001, CTRL+C to stop
`initialize': uninitialized constant Thin::HttpParser (NameError)
/thin-1.2.8/lib/thin/connection.rb:35:in `new'
/thin-1.2.8/lib/thin/connection.rb:35:in `post_init'
/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'

Error occurred because there were some old (incompatible) native C extensions after OS upgrade. To fix this just reinstall Thin:

gem uninstall thin
gem install thin

If Thin version changed, you'll also need to run:

bundle install

Categories: Hosting, Ruby

4 Comments

  1. Bundler nie rozwiązuje tego problemu ?

  2. No właśnie nie. Może to problem z usunięciem dowiązań do zależności które zostały zaktualizowane (a może nie ;) ). Tak czy owak – reinstalacja Thina pomaga.

  3. Mi się wydaje, że może nie uruchamiasz Thin’a w tej wersji co masz wymagania z bundlera ? Startujesz thin z użyciem bundlera ?

  4. Tak :) jestem pewien – czepiało się ktoregoś z rozszerzeń. Reinstalacja pomogła. Aktualizacja systemu była dość duża – może to dlatego. Nie wiem i już roztrząsać nie zamierzam – grunt, że klaster działa.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Copyright © 2024 Closer to Code

Theme by Anders NorenUp ↑