Project

General

Profile

Defect #1672 ยป FAQ.html

Anonymous, 2008-07-22 11:56

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

    
14

    
15
	<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>
16

    
17

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

    
20

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

    
23

    
24
	<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>
25

    
26

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

    
30
	<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>
31

    
32

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

    
35

    
36
	<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>
37

    
38

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

    
42

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

    
45

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

    
49

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

    
52

    
53
	<p>There's a bug in ruby/mysql adapter < 2.7.3 that leads to loose the database connection. Please update your adapter.<br />
54
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>
55

    
56

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

    
59

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

    
62

    
63
	<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>
64

    
65

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

    
68

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

    
71

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

    
74

    
75
	<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>
76

    
77

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

    
80

    
81
	<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 />
82
Go to "Admin -> Issue tracking -> Workflow", select 'Bug' and 'Developer' then click edit.<br />
83
You now see all the transitions allowed for developers on bugs. Check the 'New' -> 'In progress' checkbox and save.</p>
84

    
85

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

    
88

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

    
91

    
92
	<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>
93

    
94

    
95
	<ul>
96
	<li>Related - Just adds a link to the other issue</li>
97
		<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>
98
		<li>Blocks - Indicates that an issue need to be completed before working on the next.</li>
99
		<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>
100
	</ul>
101

    
102

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

    
105

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

    
108

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

    
111

    
112
	<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>
113

    
114

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

    
117

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

    
120

    
121
Check the following:
122
	<ul>
123
	<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>
124
		<li>Make sure that the web app is able to run the svn binary</li>
125
	</ul>
126

    
127

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

    
130

    
131
	<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>
132

    
133

    
134
	<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 />
135
Example:</p>
136

    
137

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

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

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

    
156

    
157
	<p>There's a bug in rexml 3.1.7 provided with ruby 1.8.6.<br />
158
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>
159

    
160

    
161
	<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>
162

    
163

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

    
166

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

    
169

    
170
	<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>
171

    
172

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

    
175

    
176
	<p>to</p>
177

    
178

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

    
181

    
182
	<p>and restart redmine.</p>
183

    
184

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

    
187

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

    
190

    
191
	<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 />
192
To do so, run the following from your Redmine directory:</p>
193

    
194

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