I have got a Sinatra application which utilizes DataMapper for connecting for an sqlite3 database.

APP_ROOT = File.expand_path(File.dirname(__FILE__))
DataMapper::setup(:default, "sqlite3://#{APP_ROOT}/db.sqlite3")

Basically rackup the application and fasten it really works fine, no errors, and also the db is produced. If however I run the application through Passenger I recieve the mistake unable to open database file (DataObjects::ConnectionError).

Any ideas? I am all Researched out!

  • Apache 2.2.12
  • Passenger 2.2.15
  • DataMapper 1..2