https://agir.april.org/https://agir.april.org/favicon.ico?15861920342018-03-09T16:46:58ZGestionnaire de projets de l'AprilAdmins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=108022018-03-09T16:46:58ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul></ul><p>Mise à jour effectuée, ràs :<br /><pre>
1742 Fri 09 Mar 2018 05:37:24 PM CET systemctl stop mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
1743 Fri 09 Mar 2018 05:37:32 PM CET su - mastodon
986 Fri 09 Mar 2018 05:37:34 PM CET cd live/
987 Fri 09 Mar 2018 05:37:36 PM CET git fetch
989 Fri 09 Mar 2018 05:38:00 PM CET git checkout v2.3.0
992 Fri 09 Mar 2018 05:38:31 PM CET git checkout -b live-v2.3.0
993 Fri 09 Mar 2018 05:38:43 PM CET bundle install
994 Fri 09 Mar 2018 05:39:16 PM CET yarn install
995 Fri 09 Mar 2018 05:40:32 PM CET npm upgrade --global yarn
996 Fri 09 Mar 2018 05:40:42 PM CET yarn
997 Fri 09 Mar 2018 05:40:52 PM CET RAILS_ENV=production bundle exec rails db:migrate
998 Fri 09 Mar 2018 05:41:22 PM CET RAILS_ENV=production bundle exec rails assets:precompile
#je me demande si on devrais pas abandonner le path dans ~/.bash_profile qui rend prioritaire le yarn du système, qui est trop vieux
999 Fri 09 Mar 2018 05:41:31 PM CET vim ~/.bash_profile
1000 Fri 09 Mar 2018 05:41:38 PM CET source ~/.bash_profile
1001 Fri 09 Mar 2018 05:41:40 PM CET RAILS_ENV=production bundle exec rails assets:precompile
</pre></p> Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=108032018-03-09T16:47:34ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul><li><strong>% réalisé</strong> changé de <i>0</i> à <i>90</i></li></ul><p>Il existe une nouvelle fonctionnalité : elastic search : faut-il l'activer ?<br /><a class="external" href="https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Elasticsearch-guide.md">https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Elasticsearch-guide.md</a></p> Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=108042018-03-09T16:54:29ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul></ul><pre>
#je me demande si on devrais pas abandonner le path dans ~/.bash_profile qui rend prioritaire le yarn du système, qui est trop vieux
999 Fri 09 Mar 2018 05:41:31 PM CET vim ~/.bash_profile
1000 Fri 09 Mar 2018 05:41:38 PM CET source ~/.bash_profile
1001 Fri 09 Mar 2018 05:41:40 PM CET RAILS_ENV=production bundle exec rails assets:precompile
</pre><br />J'ai réglé le problème, la variable path a évoluée depuis l'installation dans la doc d'installation (cf <a class="external" href="https://angristan.fr/installer-instance-mastodon-debian-8/">https://angristan.fr/installer-instance-mastodon-debian-8/</a>) + un vieux symlink dans /usr/local/bin/yarn existait. Sa suppression a réglé le problème d'utilisation d'un vieux yarn dans l'environnement de mastodon. Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=108552018-03-13T15:35:41ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul></ul><p>Maj 2.3.1 faite également :<br /><pre>
(April) root@pouet:~# systemctl stop mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
(April) root@pouet:~# su - mastodon
mastodon@pouet:~$ cd live/
mastodon@pouet:~/live$ git fetch
remote: Counting objects: 479, done.
remote: Total 479 (delta 402), reused 402 (delta 402), pack-reused 77
Receiving objects: 100% (479/479), 184.69 KiB | 0 bytes/s, done.
Resolving deltas: 100% (410/410), completed with 159 local objects.
From https://github.com/tootsuite/mastodon
* [new branch] authors -> origin/authors
* [new branch] feature-option-no-preview -> origin/feature-option-no-preview
c1a41181c..03119c857 master -> origin/master
* [new branch] procfix -> origin/procfix
* [new branch] unread -> origin/unread
* [new tag] v2.3.1 -> v2.3.1
* [new tag] v2.3.1rc1 -> v2.3.1rc1
* [new tag] v2.3.1rc2 -> v2.3.1rc2
* [new tag] v2.3.1rc3 -> v2.3.1rc3
mastodon@pouet:~/live$ git checkout v2.3.1
Note: checking out 'v2.3.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 03119c857... Weblate translations (2018-03-13) (#6777)
mastodon@pouet:~/live$ git checkout -b live-v2.3.1
Switched to a new branch 'live-v2.3.1'
mastodon@pouet:~/live$ RAILS_ENV=production bundle exec rails assets:precompile
Webpacker is installed 🎉 🍰
Using /home/mastodon/live/config/webpacker.yml file for setting up webpack paths
Compiling…
Compiled all packs in /home/mastodon/live/public/packs
mastodon@pouet:~/live$ logout
(April) root@pouet:~# systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
(April) root@pouet:~# systemctl status mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
● mastodon-web.service - mastodon-web
Loaded: loaded (/etc/systemd/system/mastodon-web.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-13 16:35:05 CET; 4s ago
Main PID: 20830 (bundle)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/mastodon-web.service
└─20830 puma 3.11.0 (tcp://0.0.0.0:3000) [live]
Mar 13 16:35:05 pouet systemd[1]: Started mastodon-web.
Mar 13 16:35:06 pouet bundle[20830]: [20830] Puma starting in cluster mode...
Mar 13 16:35:06 pouet bundle[20830]: [20830] * Version 3.11.0 (ruby 2.5.0-p0), codename: Love Song
Mar 13 16:35:06 pouet bundle[20830]: [20830] * Min threads: 5, max threads: 5
Mar 13 16:35:06 pouet bundle[20830]: [20830] * Environment: production
Mar 13 16:35:06 pouet bundle[20830]: [20830] * Process workers: 2
Mar 13 16:35:06 pouet bundle[20830]: [20830] * Preloading application
● mastodon-sidekiq.service - mastodon-sidekiq
Loaded: loaded (/etc/systemd/system/mastodon-sidekiq.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-13 16:35:05 CET; 4s ago
Main PID: 20831 (bundle)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/mastodon-sidekiq.service
└─20831 /home/mastodon/live/vendor/bundle/ruby/2.5.0/bin/sidekiq -c 20 -q default -q mailers -q pull -q push
Mar 13 16:35:05 pouet systemd[1]: Started mastodon-sidekiq.
● mastodon-streaming.service - mastodon-streaming
Loaded: loaded (/etc/systemd/system/mastodon-streaming.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-13 16:35:05 CET; 4s ago
Main PID: 20832 (npm)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/mastodon-streaming.service
├─20832 npm
├─20868 sh -c node ./streaming/index.js
└─20869 node ./streaming/index.js
Mar 13 16:35:05 pouet systemd[1]: Started mastodon-streaming.
Mar 13 16:35:08 pouet npm[20832]: > mastodon@ start /home/mastodon/live
Mar 13 16:35:08 pouet npm[20832]: > node ./streaming/index.js
</pre></p> Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=109822018-03-22T13:44:46ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul></ul><p>Mis à jour en 2.3.2 avec la procédure habituelle (ici seulement bundle install et recompilation des assets).</p> Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=109992018-03-26T08:31:03ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul><li><strong>Statut</strong> changé de <i>Nouveau</i> à <i>Résolu</i></li></ul> Admins - Demande #3001: Mettre à jour mastodon en 2.3https://agir.april.org/issues/3001?journal_id=110762018-04-04T19:23:47ZQuentin Gibeauxapril.quentin@gibeaux.eu
<ul><li><strong>Statut</strong> changé de <i>Résolu</i> à <i>Fermé</i></li></ul>