# Yunohost 2.4 - Owncloud : 504 Gateway Time-out

**URL:** https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851
**Category:** Support
**Tags:** english
**Created:** [August 21, 2016, 11:04am UTC](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851 "2016-08-21T11:04:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tigresansrayure](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tigresansrayure/32/447_2.png) [@tigresansrayure](https://forum.yunohost.org/u/tigresansrayure)
#### Post date: [August 21, 2016, 11:04am UTC](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851/1 "2016-08-21T11:04:43Z")

</div>

Hello !

So I just installed Yunohost V2.4 on a Kimsufi server with Debian Jessie (up-to-date), 2GB RAM, Intel Celeron CPU 220 @ 1.20GHz ([diagnosis](https://paste.yunohost.org/cifijupixa) from admin board).

Everything’s working fine except Owncloud.[Installation seems all right](https://paste.yunohost.org/gezopofuzu.md), but when I try to access it, I **ALWAYS** get “504 - Gateway Time-out” from nginx.  
I tried to reinstall, same problem.  
Also tried [unofficial app Nextcloud](https://github.com/YunoHost-Apps/nextcloud_ynh), same problem.

Did a few searches :

- Tried modifying php-fpm config as indicated [here](http://serverfault.com/a/179136) with no success ;
- Digged into this [old post](https://github.com/owncloud/core/issues/14175) from github, but my version of php5-apcu is up-to-date and commenting the memory-caching config line in owncloud config file didn’t change anything.

Logs :

- [/var/log/php5-fpm.log](https://paste.yunohost.org/ahunoyafeb.tex) ;
- [nginx error log](https://paste.yunohost.org/sinewafida.vbs) ;
- [/var/log/nginx/owncloud.slow.log](https://paste.yunohost.org/emokeludal).

Although php5-fpm seems to indicate a mysql problem, mysql error logs are empty.

A `checkrestart` gives me the following :  
`Found 1 processes using old versions of upgraded files (1 distinct program) (1 distinct packages) These processes do not seem to have an associated init script to restart them: mariadb-server-core-10.0: 8484	/usr/sbin/mysqld`

But neither restarting mysql nor rebooting the server itself fixed this.

I hope I provided you enough informations…  
Thank you for your help !

P.S. : Congrats to the team ! 🙂 I’ve been following this project since a long time before giving it a try. Keep up the good work ! 😍  
([French version here](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out-fr/1853))

---

<div class="post-metadata">

### Author: ![tigresansrayure](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tigresansrayure/32/447_2.png) [@tigresansrayure](https://forum.yunohost.org/u/tigresansrayure)
#### Post date: [August 29, 2016, 9:22am UTC](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851/2 "2016-08-29T09:22:55Z")

</div>

Anyone ? 😟

Owncloud/Nextcloud is almost mandatory to me (as a replacement for Drive and Dropbox)…

As implied in my previous post, I played around with `pm.max_children`and `pm.max_requests` in PHP-FPM config file, raising the values, with no change.  
Same thing with `fastcgi_connect_timeout`parameters in nginx config file for owncloud.

I ran into [this post](https://forum.owncloud.org/viewtopic.php?t=18220) yesterday, but updating my /etc/hosts file didn’t change anything.

I think I tried everything I could find on this issue… 😞

---

<div class="post-metadata">

### Author: ![mokas01](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mokas01/32/584_2.png) [@mokas01](https://forum.yunohost.org/u/mokas01)
#### Post date: [January 23, 2017, 4:13pm UTC](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851/3 "2017-01-23T16:13:38Z")

</div>

I have the same issue with nextcloud 11 : php5-fpm is slowed down to a point were no sync is possible. I tried the same changes with no effect either.  
I am also interested to know if anything can be improved

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 18, 2023, 8:12pm UTC](https://forum.yunohost.org/t/yunohost-2-4-owncloud-504-gateway-time-out/1851/4 "2023-01-18T20:12:49Z")

</div>


