---
title: "NextCloud : 504 Gateway Time-out ( Update en ligne de commande)"
url: https://www.cyber-neurones.org/2020/06/nextcloud-504-gateway-time-out-update-en-ligne-de-commande/
date: 2020-06-01
modified: 2020-06-01
author: "Frederic"
description: "Quand on a l'erreur \"504 Gateway Time-out' ... le mieux est de faire avec les lignes de commandes : $ sudo -u www-data php /usr/share/nginx/nextcloud/updater/updater.phar Nextcloud Updater - version: v16.0.3-3-ga0c2b25..."
categories:
  - "Stockage"
tags:
  - "NextCloud"
word_count: 217
---

# NextCloud : 504 Gateway Time-out ( Update en ligne de commande)

Quand on a l'erreur "504 Gateway Time-out' ... le mieux est de faire avec les lignes de commandes :

[![](https://www.cyber-neurones.org/wp-content/uploads/2020/06/screenshot-from-2020-06-01-19-19-07.png)](https://www.cyber-neurones.org/wp-content/uploads/2020/06/screenshot-from-2020-06-01-19-19-07.png)
$ **sudo -u www-data php /usr/share/nginx/nextcloud/updater/updater.phar**
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 18.0.4.

Update to Nextcloud 18.0.4 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.4.zip
Open changelog ↗

Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

**Continue update? [y/N] y
**
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

**Should the "occ upgrade" command be executed? [Y/n] Y**
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2020-06-01T19:21:53+02:00 Set log level to debug
....
$** sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:mode --off**
Maintenance mode disabled