Project

General

Profile

Demande #3001

Mettre à jour mastodon en 2.3

Added by Quentin Gibeaux almost 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
03/08/2018
Due date:
% Done:

90%

Estimated time:
Difficulté:
2 Facile

Description

La version de mastodon 2.3 va sortir sous peu, mettre à jour la vm pouet.april.org lorsque la version sera diffusée.

History

#1

Updated by Quentin Gibeaux almost 2 years ago

Mise à jour effectuée, ràs :

 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

#2

Updated by Quentin Gibeaux almost 2 years ago

  • % Done changed from 0 to 90

Il existe une nouvelle fonctionnalité : elastic search : faut-il l'activer ?
https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Elasticsearch-guide.md

#3

Updated by Quentin Gibeaux almost 2 years ago

#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

J'ai réglé le problème, la variable path a évoluée depuis l'installation dans la doc d'installation (cf https://angristan.fr/installer-instance-mastodon-debian-8/) + 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.
#4

Updated by Quentin Gibeaux almost 2 years ago

Maj 2.3.1 faite également :

(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

#5

Updated by Quentin Gibeaux almost 2 years ago

Mis à jour en 2.3.2 avec la procédure habituelle (ici seulement bundle install et recompilation des assets).

#6

Updated by Quentin Gibeaux almost 2 years ago

  • Status changed from Nouveau to Résolu
#7

Updated by Quentin Gibeaux almost 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF