-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db table locks after the first email and subsequent emails fail #117
Comments
I have exactly the same problem. Did you manage to resolve this issue in the meantime? |
nope, never figured it out, what OS are you using? I'm on CentOS 5 |
I'm also on CentOS5 and cannot upgrade. Very annoying problem but I don't have a clue where to start patching as I'm not a Ruby guy. :( |
I'm getting the same issue on my staging environment, RHEL 5. However, I don't get the issue on my development environment, Ubuntu 12.04. |
it must be a problem with RedHat/Centos 5. I'm using centos 5 in a vagrant On Fri, Feb 28, 2014 at 9:11 AM, Jeremy Fairbank
|
I'm curious if it's related to the libsqlite3 version? I don't know enough about it to determine if it could be the cause. I'll have to pull my development version tomorrow, but my staging environment currently runs an older 3.3.6. |
About forgot to do this. So, my dev version is 3.7.9. |
…ed statements (seems to affect RHEL + sqlite3 combination)
I had this issue when using with RHEL. I finally got it to work. Short Story There is only one file to patch: Long story
instead as
and these in a similar way:
But no luck.
but not with:
|
@sancromeu nice investigation, albeit with frustrating results. The whole point of prepared statements is to prepare them once then reuse them with varied bound data. This looks like an upstream bug that I can't really address except to remove an optimisation which should work for everybody. I'm afraid the resolution here is probably to fix the upstream sqlite package in centos, or recompile it, and these things are outside my control so closing this issue. |
When I use mailcatcher, it will receive 1 email, then the db table is locked and all other messages are rejected with:
Net::SMTPFatalError: 550 Message rejected
The stacktrace from mailcatcher looks like:
==> SMTP: Received message from 'survey@place.com' (607 bytes)
*** Error receiving message: {:source=>"Date: Wed, 08 Jan 2014 06:52:20 +0000\nFrom: survey@place.com\nReply-To: Support support@someplace.com\nTo: asdfasdf@asdfasdf.com\nMessage-ID: 52ccf5a4bac40_1009b4d4134524e2@bptw.localdomain.mail\nSubject: Subject\nMime-Version: 1.0\nContent-Type: text/html;\n charset=UTF-8\nContent-Transfer-Encoding: 7bit\n\n
First Name:Asdf
\nLast Name:Asdf
\nFull Name:Asdf Asdf
\nFormal Name:Mr. Asdf Asdf
\nCompany Name:Some Company
\nURL: <a href="http://localhost:3000/surveys/er2014/en\">http://localhost:3000/surveys/er2014/en
\nException: database table is locked
Backtrace:
/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/sqlite3-1.3.8/lib/sqlite3/statement.rb:67:in
step' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/sqlite3-1.3.8/lib/sqlite3/statement.rb:67:in
execute'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/mailcatcher-0.5.12/lib/mail_catcher/mail.rb:44:in
add_message' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/mailcatcher-0.5.12/lib/mail_catcher/smtp.rb:42:in
receive_message'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/em/protocols/smtpserver.rb:535:in
process_data_line' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/em/protocols/smtpserver.rb:196:in
receive_line'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/em/protocols/linetext2.rb:64:in
receive_data' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/em/protocols/linetext2.rb:65:in
receive_data'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in
run_machine' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in
run'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/mailcatcher-0.5.12/lib/mail_catcher.rb:134:in
run!' /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/gems/mailcatcher-0.5.12/bin/mailcatcher:4 /home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/bin/mailcatcher:23:in
load'/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/bin/mailcatcher:23
/home/vagrant/.rvm/gems/ree-1.8.7-2012.02@bptw/bin/ruby_executable_hooks:14
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: