Projet

Général

Profil

Redmine » Historique » Version 6

Mehdi Abaakouk, 16/12/2014 10:38

1 1 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 1 Laurent GUERBY
h1. Redmine
4 1 Laurent GUERBY
5 1 Laurent GUERBY
h2. Liens
6 1 Laurent GUERBY
7 1 Laurent GUERBY
* https://wiki.ldn-fai.net/wiki/Redmine#Par_mail ouvrir un ticket redmine par mail
8 2 Mehdi Abaakouk
9 6 Mehdi Abaakouk
h2. Upgrade
10 6 Mehdi Abaakouk
11 6 Mehdi Abaakouk
# /etc/init.d/apache2 stop
12 6 Mehdi Abaakouk
# su - postgres
13 6 Mehdi Abaakouk
# pgdump redmine > redmine-3.X.X-20130108.sql
14 6 Mehdi Abaakouk
# exit
15 6 Mehdi Abaakouk
#
16 6 Mehdi Abaakouk
# ssh -Tf -D9999 h2 -p 2222  sleep 15m
17 6 Mehdi Abaakouk
# 
18 6 Mehdi Abaakouk
# cd /srv/http/redmine
19 6 Mehdi Abaakouk
# tsocks git fetch pull --rebase
20 6 Mehdi Abaakouk
# cd plugins/redmine_git_hosting
21 6 Mehdi Abaakouk
# git checkout v0.7.8
22 6 Mehdi Abaakouk
23 6 Mehdi Abaakouk
# cd /srv/http/redmine
24 6 Mehdi Abaakouk
25 6 Mehdi Abaakouk
# tsocks bundle update
26 6 Mehdi Abaakouk
# gem cleanup
27 6 Mehdi Abaakouk
# tsocks bundle update
28 6 Mehdi Abaakouk
# bundle exec rake generate_secret_token
29 6 Mehdi Abaakouk
# bundle exec rake db:migrate RAILS_ENV=production
30 6 Mehdi Abaakouk
# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
31 6 Mehdi Abaakouk
# bundle exec rake tmp:cache:clear tmp:sessions:clear
32 2 Mehdi Abaakouk
33 2 Mehdi Abaakouk
h2. Investigation Erreur 500
34 2 Mehdi Abaakouk
35 5 Laurent GUERBY
http://lists.tetaneutral.net/pipermail/technique/2014-May/001335.html
36 5 Laurent GUERBY
37 2 Mehdi Abaakouk
Erreur dans /srv/http/redmine/log/production.log:
38 2 Mehdi Abaakouk
39 2 Mehdi Abaakouk
<pre>
40 2 Mehdi Abaakouk
Completed 500 Internal Server Error in 23.2ms
41 2 Mehdi Abaakouk
42 2 Mehdi Abaakouk
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "wiki_content_versions_pkey"
43 2 Mehdi Abaakouk
DETAIL:  Key (id)=(164) already exists.
44 2 Mehdi Abaakouk
: INSERT INTO "wiki_content_versions" ("author_id", "comments", "compression", "data", "page_id", "updated_on", "version", "wiki_content_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"):
45 2 Mehdi Abaakouk
</pre>
46 2 Mehdi Abaakouk
47 2 Mehdi Abaakouk
<pre>
48 2 Mehdi Abaakouk
# su - postgres
49 2 Mehdi Abaakouk
# psql redmine
50 3 Mehdi Abaakouk
# select max(id) from wiki_content_versions;
51 4 Mehdi Abaakouk
max  
52 4 Mehdi Abaakouk
------
53 4 Mehdi Abaakouk
 6193
54 4 Mehdi Abaakouk
(1 row)
55 3 Mehdi Abaakouk
# alter sequence wiki_content_versions_id_seq start 6194;
56 3 Mehdi Abaakouk
# alter sequence wiki_content_versions_id_seq restart;
57 2 Mehdi Abaakouk
</pre>