Comments (6)
I'm having trouble replicating this issue. This is working fine on my machine:
$ irb -r mail_catcher
irb> MailCatcher::Mail.add_message <your gisted message hash>
=> nil
irb> MailCatcher::Mail.messages
=> [{"id"=>1, "sender"=>"...", "recipients"=>["..."], "subject"=>"...", "size"=>"...", "created_at"=>...}]
What version of ruby and sqlite3 are you using? Perhaps it's something in there. The exception is unforunately not very descriptive, and googling reveals it's fairly generic, but usually it means the database is missing. Considering this is an in-memory database it should never be missing. :-/
On my machine:
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
$ sqlite3 --version
3.7.10 2012-01-16 13:28:40 ebd01a8deffb5024a5d7494eef800d2366d97204
from mailcatcher.
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
$ sqlite3
SQLite version 3.3.6
Can you recommend a good way for me to further dig into the cause of the issue?
from mailcatcher.
I was able to solve this issue by upgrading sqlite to version 3.6. I am closing this since it isn't really an issue with mailcatcher but you may want to add a note that sqlite 3.3 isn't supported.
from mailcatcher.
I wish you may re-open this issue because it is not a bug of sqlite.
Older version of sqlite do not support multi-threading, which is used in mailcatcher. (? please confirm if yes)
I tried two SMTP connection, the first can send, and the second fail, because the resource is still locked by the first one.
I am able to patch if compatible with sqllite 3.3, by simple stupid closing all sqlite query and connection after use, and reopen them for everytime.
from mailcatcher.
Mailcatcher is not multithreaded, there is a single reactor thread in EventMachine (afaict).
If you can provide a script replicating the issue I'll happily reopen and investigate.
from mailcatcher.
I have no testcase for you but something different.
As I need it work for me now.
I did some hotfix on mail.rb to "make to works" (and dirty) on my Centos 5.2, sqlite3 3.3.6 and ruby1.9.3.
http://pastebin.com/81TG21GQ
There are some rewrite and I am sure it is buggy and leak. But at least it works.
from mailcatcher.
Related Issues (20)
- Doesn't work on rhel8-like distr in docker with arm arch HOT 4
- Display name to/from not showing on web/api
- ruby-3.0.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:1490:in `event_callback': undefined method `close' for 9:Integer (NoMethodError) HOT 2
- Not compatible with newest version of Rails 7.0.4.3 HOT 4
- Add clarity about message delivery in the readme HOT 1
- can not start mailcatcher HOT 3
- Thin::Server::Fixnum HOT 1
- Send email to stdout HOT 1
- Eventmachine fails to compile on Windows HOT 15
- Exception: undefined method `length' for nil:NilClass HOT 1
- Fixnum is uninitialized HOT 2
- Installation fails
- Liveness and Readiness probles HOT 1
- No longer updates just-sent emails HOT 5
- Update gem spec minimum versions HOT 3
- 0.9.1.beta2 does not work with Ruby 3.3 HOT 5
- Issue with Displaying Logs in MailCatcher HOT 1
- docker image not working HOT 2
- Website broken Icon
- Internal Server Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailcatcher.