Project

General

Profile

Demande #4735

Mise à jour etherpad-1.8.4 => 1.8.6

Added by Yves-Gaël Chény about 1 month ago. Updated 6 days ago.

Status:
En cours de traitement
Priority:
Normale
Target version:
Start date:
09/15/2020
Due date:
% Done:

0%

Estimated time:

Description

Icinga2 prévient que :

WARNING : new version available, installed is 1.8.4, last is 1.8.6.

Pour mémoire précédente procédure ( à mettre dans le wiki admin ) :

systemctl stop etherpad-lite
sync && sync && sudo -u postgres pg_dumpall  > etherpad-lite-20200713-1758-back.psql
mv etherpad-lite etherpad-lite-1.8.0 ### on renomme avec la version + propre
git clone https://github.com/ether/etherpad-lite.git
cd etherpad-lite
git checkout tags/1.8.4
cd ..
chown -R etherpad.etherpad etherpad-lite
cd ..
### petit test voir ce qu'il manque
diff -ur etherpad-lite etherpad-lite-1.8.0
cd /var/www/etherpad-lite-1.8.0/
cp settings.json ../etherpad-lite/
cp APIKEY.txt ../etherpad-lite/
cd /var/www/
mv etherpad-lite etherpad-lite-1.8.4
ln -s etherpad-lite-1.8.4 etherpad-lite
cd etherpad-lite
sudo -u etherpad bin/run.sh 
### test de surface en debug puis ctrl + c
systemctl start etherpad-lite

History

#1

Updated by Yves-Gaël Chény about 1 month ago

[2020-09-15 08:50:03.309] [DEBUG] ueberDB - SET    - sessionstorage:pIaElx99utza7MWLt3hPr2kduti0KToN - {"cookie":{"path":"/","_expires":null,"originalMaxAge":null,"httpOnly":true,"sameSite":"Lax","secure":true}} - to buffer
[2020-09-15 08:50:03.318] [DEBUG] http - 200, HEAD /
[2020-09-15 08:50:03.319] [ERROR] console - (node:6896) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
[2020-09-15 08:50:12.686] [ERROR] console - ERROR: Problem while initalizing the database
[2020-09-15 08:50:12.686] [ERROR] console - error: séquence d'échappement Unicode non supportée
    at Parser.parseErrorMessage (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:278:15)
    at Parser.handlePacket (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:126:29)
    at Parser.parse (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:39:38)
    at Socket.<anonymous> (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/index.js:8:42)
    at Socket.emit (events.js:314:20)
    at Socket.EventEmitter.emit (domain.js:486:12)
    at addChunk (_stream_readable.js:307:12)
    at readableAddChunk (_stream_readable.js:282:9)
    at Socket.Readable.push (_stream_readable.js:221:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
#2

Updated by Yves-Gaël Chény about 1 month ago

2020-09-15 08:50:12.685 CEST [6958] etherpad@etherpad INSTRUCTION :  ALTER TABLE store ALTER COLUMN value TYPE jsonb USING value::jsonb
2020-09-15 08:50:12.798 CEST [6958] etherpad@etherpad LOG:  n'a pas pu envoyer les données au client : Relais brisé (pipe)
2020-09-15 08:50:12.798 CEST [6958] etherpad@etherpad FATAL:  connexion au client perdue
2020-09-15 08:56:11.061 CEST [7590] etherpad@etherpad ERREUR:  séquence d'échappement Unicode non supportée
2020-09-15 08:56:11.061 CEST [7590] etherpad@etherpad DÉTAIL:  \u0000 ne peut pas être converti en texte.
2020-09-15 08:56:11.061 CEST [7590] etherpad@etherpad CONTEXTE :  données JSON, ligne 1 : {"changeset":...
2020-09-15 08:56:11.061 CEST [7590] etherpad@etherpad INSTRUCTION :  ALTER TABLE store ALTER COLUMN value TYPE jsonb USING value::jsonb
#3

Updated by Quentin Gibeaux about 1 month ago

la partition pgsql était pleine
le vg était aloué à 100%
j'ai ajouté un disque data de 50G et créé un second vg

cf doc : https://admin.chapril.org/doku.php?id=admin:services:drop.chapril.org#preparation

#4

Updated by Yves-Gaël Chény about 1 month ago

Quelques tâches à faire pour que ça fonctionne
mise à jour npm et node

npm install -g npm
npm install -g n
n latest

nettoyage bdd

sudo -u postgres pg_dump --clean etherpad > etherpad-backup-2020-09-15-0920.psql
sed -i '/\\u0000/d' etherpad-backup-2020-09-15-0920.psql 
sudo -u postgres psql etherpad < etherpad-backup-2020-09-15-0920.psql

puis "patch" suite à une issue dans leur git

vim src/package.json 
    "ueberdb2": "^0.5.2",
cd src
npm update
npm install
cd ..
chown -R etherpad.etherpad *
sudo -u etherpad bin/run.sh

#5

Updated by Christian P. Momon about 1 month ago

  • Status changed from Nouveau to En cours de traitement
#6

Updated by Yves-Gaël Chény about 1 month ago

sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]: [2020-09-15 15:15:19.481] [ERROR] console - error: syntaxe en entrée invalide pour le type json
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Parser.parseErrorMessage (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:278:15)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Parser.handlePacket (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:126:29)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Parser.parse (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:39:38)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.<anonymous> (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/index.js:8:42)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.emit (events.js:314:20)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.EventEmitter.emit (domain.js:486:12)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at addChunk (_stream_readable.js:307:12)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at readableAddChunk (_stream_readable.js:282:9)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.Readable.push (_stream_readable.js:221:10)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]: [2020-09-15 15:15:19.482] [INFO] console - graceful shutdown...
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]: [2020-09-15 15:15:19.483] [ERROR] console - TypeError: Cannot read property 'name' of null
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Client._handleParseComplete (/var/www/etherpad-lite-1.8.5/src/node_modules/pg/lib/client.js:358:26)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Connection.emit (events.js:314:20)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Connection.EventEmitter.emit (domain.js:486:12)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at /var/www/etherpad-lite-1.8.5/src/node_modules/pg/lib/connection.js:109:12
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Parser.parse (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/parser.js:40:17)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.<anonymous> (/var/www/etherpad-lite-1.8.5/src/node_modules/pg-protocol/dist/index.js:8:42)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.emit (events.js:314:20)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at Socket.EventEmitter.emit (domain.js:486:12)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at addChunk (_stream_readable.js:307:12)
sept. 15 15:15:19 pad.cluster.chapril.org run.sh[2202]:     at readableAddChunk (_stream_readable.js:282:9)
sept. 15 15:15:22 pad.cluster.chapril.org systemd[1]: etherpad-lite.service: Main process exited, code=exited, status=1/
#7

Updated by Christian P. Momon about 1 month ago

Décision d'annuler la mise à jour en remettant la version d'avant ce matin.

#8

Updated by Christian P. Momon 6 days ago

  • Subject changed from Mise à jour etherpad-1.8.4 => 1.8.5 to Mise à jour etherpad-1.8.4 => 1.8.6
  • Description updated (diff)

Also available in: Atom PDF