rake aborts with closed stream running rake test 3

Posted by chad on December 11, 2008

Why does rake abort?

chadd@ubuntu:~/myproj$ rake test:units
(in /home/chadd/myproj)
rake aborted!
closed stream
(See full trace by running task with –trace)

 

SOLVED – just do a rake db:schema:dump. If that has never been done, and the database was originally built without a migration (even though I have a full set of migrations that SHOULD create the database properly in the test db), this cryptic error occurs. 

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Gennady Sun, 28 Dec 2008 19:24:39 UTC

    Hello, I have the same problem and i ran rake db:schema:dump but that didn’t seam to fix my issue. does anyone have any other suggestions?

    Chad, was there anything else you may have done that might have fixed it?

  2. chad Mon, 29 Dec 2008 18:06:34 UTC

    oddly, i’m now not sure if that fixed it, but another developer on the project did make a change and i’m sure that fixed it. so i’ll ask him tomorrow what he did…

  3. Michael Stalker Mon, 22 Feb 2010 08:44:42 UTC

    Chad,

    Did you ever find out what the problem was? I’m getting the same error when trying to migrate some things over to the paperclip plugin.

Comments