Troubleshooting

Version 4 (Bash Shell, 06/04/2010 10:57 pm)

1 3 Ohad Levy
{{toc}}
2 3 Ohad Levy
3 1
h1. rake aborted!
4 1
5 1
I get the following error while running rake db:migrate
6 1
<pre>
7 1
rake aborted!
8 1
undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
9 1
</pre>
10 1
11 1
this means you have an old version of rake (older than 0.87), you can verify it by typing:
12 1
<pre>
13 1
rake --version
14 1
</pre>
15 1
16 1
Usually this error is "safe" to ignore, however, it is recommended to upgrade to rake >= 0.87
17 2 Ohad Levy
18 2 Ohad Levy
h1. error: Entry 'some file' not uptodate. Cannot merge.
19 2 Ohad Levy
20 2 Ohad Levy
If you downloaded Foreman from source (git), it could be that some of the files you have modified (or were modified automatically) conflicts with another file Foreman wants to upgrade.
21 2 Ohad Levy
22 2 Ohad Levy
If you don't think that you edited this file (e.g. db/schema.rb) it is usually safe to do:
23 2 Ohad Levy
<pre>
24 2 Ohad Levy
git checkout 'some file'
25 2 Ohad Levy
</pre> 
26 2 Ohad Levy
27 2 Ohad Levy
This will revert the file to its previous condition (as in the repo at the time of checkout) and now you should be able to get the latest version by:
28 2 Ohad Levy
<pre>
29 2 Ohad Levy
git pull
30 2 Ohad Levy
</pre>
31 3 Ohad Levy
32 3 Ohad Levy
h1. Strange errors with passenger
33 3 Ohad Levy
34 3 Ohad Levy
Passenger executes foreman, based on the owner of the config/environmnets.rb file, make sure that this use can actually access:
35 3 Ohad Levy
* puppet configuration files
36 3 Ohad Levy
* sqlite database (if using sqlite)
37 3 Ohad Levy
* write to log, tmp directories
38 3 Ohad Levy
39 3 Ohad Levy
see source:extras/puppet/foreman for complete puppet based setup for Foreman.
40 4 Bash Shell
41 4 Bash Shell
42 4 Bash Shell
43 4 Bash Shell
h1. error: Could not send facts to Foreman: wrong Content-Length format (RuntimeError)
44 4 Bash Shell
45 4 Bash Shell
You might see this error if you run the HTTP push facts script or the sample external nodes script.
46 4 Bash Shell
This is most likely due to older version of the mongrel gem. Please try and update your gems.
47 4 Bash Shell
48 4 Bash Shell
<pre>
49 4 Bash Shell
gem update mongrel
50 4 Bash Shell
</pre>