Project

General

Profile

Defect #1672 ยป FAQ.html

Anonymous, 2008-07-22 11:56

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>FAQ</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
</style>
</head>
<body>
<h1><a name="1" class="wiki-page"></a>Frequently Asked Questions</h1>


<div class="toc"><a href="#1" class="heading1">Frequently Asked Questions</a><a href="#2" class="heading2">Installing and Running Redmine</a><a href="#3" class="heading3">Does Redmine work with Rails 2.1.x?</a><a href="#4" class="heading3">When I start the application, I get this error "in 'gem_original_require': no such file to load -- initializer (LoadError)"</a><a href="#5" class="heading3">When I start the application, I get this error message: "cannot connect to mysql: No such file or directory - /tmp/mysql.sock"</a><a href="#6" class="heading3">The application seems to work fine but some pages (eg. login form) have no content.</a><a href="#7" class="heading3">The application freeze after a long time of inactivity.</a><a href="#8" class="heading3">I upgraded Rails to 2.0, but Redmine doesn't work anymore!</a><a href="#9" class="heading2">Issue tracking</a><a href="#10" class="heading3">I've created a new issue status but I can't use it, it doesn't show up in the status drop-down list.</a><a href="#11" class="heading3">How does "Related issues" work?</a><a href="#12" class="heading2">Repositories</a><a href="#13" class="heading3">Commits don't show up in the activity until I click on 'Repository'</a><a href="#14" class="heading3">I can't browse my svn repository through redmine</a><a href="#15" class="heading3">Repository statistics doesn't show up</a><a href="#16" class="heading2">Performance</a><a href="#17" class="heading3">When I create a new issue, Redmine freeze during one minute.</a><a href="#18" class="heading2">Miscellaneous</a><a href="#19" class="heading3">All times are off by 1 hour after the daylight savings switched</a></div>


<h2><a name="2" class="wiki-page"></a>Installing and Running Redmine</h2>


<h3><a name="3" class="wiki-page"></a>Does Redmine work with Rails 2.1.x?</h3>


<p>Redmine devel <a href="/repositories/revision/redmine/1623" class="changeset" title="Merged Rails 2.1 compatibility branch.">r1623</a> and above is compatible with Rails 2.1.</p>


But Redmine 0.7.x releases are not. Please freeze your rails to 2.0.2 version:<br />
<pre>$ rake rails:freeze:edge TAG=rel_2-0-2</pre>

<h3><a name="4" class="wiki-page"></a>When I start the application, I get this error "in 'gem_original_require': no such file to load -- initializer (LoadError)"</h3>


<p>Make sure <a href="http://rubyonrails.org/" class="external">Ruby on Rails</a> is properly installed on your machine.</p>


<h3><a name="5" class="wiki-page"></a>When I start the application, I get this error message: "cannot connect to mysql: No such file or directory - /tmp/mysql.sock"</h3>


<p>You have to specify the socket location in <code>config/database.yml</code>.<br />
See <a class="external" href="http://dev.rubyonrails.org/ticket/200">http://dev.rubyonrails.org/ticket/200</a>.</p>


<h3><a name="6" class="wiki-page"></a>The application seems to work fine but some pages (eg. login form) have no content.</h3>


<p>You're running Rails 1.1.x but Redmine requires 1.2.6.<br />
Upgrade Rails (if you're using gem package system, run the command <code>gem update</code> as root/administrator).</p>


<h3><a name="7" class="wiki-page"></a>The application freeze after a long time of inactivity.</h3>


<p>There's a bug in ruby/mysql adapter < 2.7.3 that leads to loose the database connection. Please update your adapter.<br />
You can see thread at: <a class="external" href="http://rubyforge.org/forum/message.php?msg_id=25951">http://rubyforge.org/forum/message.php?msg_id=25951</a>.</p>


<h3><a name="8" class="wiki-page"></a>I upgraded Rails to 2.0, but Redmine doesn't work anymore!</h3>


<p>Redmine 0.6.3 is Rails 2.0 compatible, but prior versions are not.</p>


<p>The best solution is to upgrade Redmine to the latest version. But if you really want to use Redmine 0.6.0 on a box running Rails 2.0, please freeze your Rails version for Redmine (it won't affect your other Rails applications) by typing this command from your Redmine directory:</p>


<pre><code>rake rails:freeze:edge TAG=rel_1-2-6</code></pre>


<p>Don't forget to restart your server.</p>


<h2><a name="9" class="wiki-page"></a>Issue tracking</h2>


<h3><a name="10" class="wiki-page"></a>I've created a new issue status but I can't use it, it doesn't show up in the status drop-down list.</h3>


<p>Once you've created a new issue status, you need to include it in the workflow.</p>


<p>Say you have created a status named 'In progress' and you want the developers to be able to change bugs from 'New' to 'In progress'.<br />
Go to "Admin -> Issue tracking -> Workflow", select 'Bug' and 'Developer' then click edit.<br />
You now see all the transitions allowed for developers on bugs. Check the 'New' -> 'In progress' checkbox and save.</p>


<p>See <a href="RedmineIssueTrackingSetup.html" class="wiki-page">Workflow setup</a>.</p>


<h3><a name="11" class="wiki-page"></a>How does "Related issues" work?</h3>


<p>Using Issue <del><a href="/issues/show/100" class="issue closed" title="New Project - subproject list should not show archived projects (Closed)">#100</a></del> as the one you set the relationship and Issue <del><a href="/issues/show/101" class="issue closed" title="New Issue Drop Down only display for Project Administrator (Closed)">#101</a></del> as the "related to"</p>


<ul>
<li>Related - Just adds a link to the other issue</li>
<li>Duplicates - Links issues so that closing one, will close the other (e.g. closing <del><a href="/issues/show/100" class="issue closed" title="New Project - subproject list should not show archived projects (Closed)">#100</a></del> will close <del><a href="/issues/show/101" class="issue closed" title="New Issue Drop Down only display for Project Administrator (Closed)">#101</a></del>)</li>
<li>Blocks - Indicates that an issue need to be completed before working on the next.</li>
<li>Precedes - Defines an "order", where issue <del><a href="/issues/show/100" class="issue closed" title="New Project - subproject list should not show archived projects (Closed)">#100</a></del> needs to be completed x days before <del><a href="/issues/show/101" class="issue closed" title="New Issue Drop Down only display for Project Administrator (Closed)">#101</a></del> can be started on.</li>
</ul>


<h2><a name="12" class="wiki-page"></a>Repositories</h2>


<h3><a name="13" class="wiki-page"></a>Commits don't show up in the activity until I click on 'Repository'</h3>


<p>By default, Redmine fetches the new commits from the repository only when you browse it.</p>


<p>If you want the commits to be retrieved periodically by Redmine in the background for all your repositories, uncheck 'Autofetch commits' setting and add a cron that runs (with appropriate environment):</p>


<pre><code>ruby script/runner "Repository.fetch_changesets" -e production</code></pre>


<h3><a name="14" class="wiki-page"></a>I can't browse my svn repository through redmine</h3>


Check the following:
<ul>
<li>Make sure you're using a svn client and server >= 1.3. Redmine parse the -xml output from subversion, which is a svn 1.3 feature.</li>
<li>Make sure that the web app is able to run the svn binary</li>
</ul>


<p>If you're accessing the repository over HTTPS:</p>


<p>The initial import of a subversion repository over https requires that the ssl certificate fingerprint be manually validated and stored in a config-dir accessible by the user running the web server. It is recommended that a directory local to the redmine application root be provided, either as a default (./svn/.subversion) or as a provided parameter in the repository settings for subversion.</p>


<p>The work around for the certificate acceptance issue is to manually checkout anything from the svn server specifying the local config-dir and accepting the certificate <ins>permanently</ins>.<br />
Example:</p>


<pre>
$ svn --config-dir ./svn/.subversion co https://svn.mydomain.com/project/trunk delete-me

Error validating server certificate for 'https://svn.mydomain.com:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
- The certificate has expired.
Certificate information:
- Hostname: svn.mydomain.com
- Valid: from Apr 8 12:00:00 2006 GMT until Sep 24 12:00:00 2010 GMT
- Issuer: mydomain.com, vrsource.org, Geneva, UN
- Fingerprint: 01:27:d9:6a:b8:db:63:f3:24:e3:41:c8:15:0a:f8:93:f6:7c:0f:11
(R)eject, accept (t)emporarily or accept (p)ermanently? p
</pre>

<h3><a name="15" class="wiki-page"></a>Repository statistics doesn't show up</h3>


<p>There's a bug in rexml 3.1.7 provided with ruby 1.8.6.<br />
In <code>ruby/1.8/rexml/document.rb</code> (line 186), change: <code>if transitive</code> to <code>if trans</code> then restart the app.</p>


<p>See <a class="external" href="http://www.germane-software.com/projects/rexml/ticket/115">http://www.germane-software.com/projects/rexml/ticket/115</a> for details.</p>


<h2><a name="16" class="wiki-page"></a>Performance</h2>


<h3><a name="17" class="wiki-page"></a>When I create a new issue, Redmine freeze during one minute.</h3>


<p>You have to configure email notification, or desactivate it. Please turn off <strong>email notification</strong> feature if you don't use it. In config/environment.rb replace the line</p>


<pre><code>config.action_mailer.perform_deliveries = true</code></pre>


<p>to</p>


<pre><code>config.action_mailer.perform_deliveries = false</code></pre>


<p>and restart redmine.</p>


<h2><a name="18" class="wiki-page"></a>Miscellaneous</h2>


<h3><a name="19" class="wiki-page"></a>All times are off by 1 hour after the daylight savings switched</h3>


<p>Rails built-in time zone implementation doesn't handle DST. You have to install <a href="http://tzinfo.rubyforge.org/" class="external">TZInfo</a>.<br />
To do so, run the following from your Redmine directory:</p>


<pre><code>ruby script/plugin install tzinfo_timezone</code></pre>
</body>
</html>
    (1-1/1)