LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Server can't access the SQLite database!

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2007, 04:36 AM
plato plato is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Default Server can't access the SQLite database!

Hi,

I'm using SQLite3 as my database. I've setup my application and deployed it using capistrano. I'm running the application on Litespeed Server 3.3 and Rails edge. I can access the database through the rails console, so my configurations are fine. But as soon as the rails app tries to access the database the following exception is thrown:
Code:
ActiveRecord::StatementInvalid (SQLite3::SQLException: SQL logic error or missing database
I can't figure out why this exception is thrown. I'd appreciate any help.

Bye,
Tino
Reply With Quote
  #2  
Old 11-29-2007, 07:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can try closing the DB connection after the framework initialization.
That's because ruby LSAPI will fork all children processes off the parent, file handles to SQLite db are inherited, may cause trouble when multiple processes try to access the DB using the same file handle.

Another way to debug is to "strace/truss" the ruby process.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:03 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.