# System Info Page failed with 504 timed out

**URL:** <https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760>\
**Category:** ℹ️ Support\
**Tags:** nc17\
**Created:** [April 21, 2020, 6:13pm UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760 "2020-04-21T18:13:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![janusng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/janusng/32/5579_2.png) [@janusng](https://help.nextcloud.com/u/janusng)\
**Post date:** [April 21, 2020, 6:13pm UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/1 "2020-04-21T18:13:06Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 18.0.2)_: 17.0.5  
Operating system and version _(eg, Ubuntu 20.04)_: FreeNAS-11.3-U2  
Apache or nginx version _(eg, Apache 2.4.25)_: nginx-1.16.1  
PHP version _(eg, 7.1)_: PHP 7.1.33

The issue you are facing:

The system info page failed with 504 timed out error

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. Login Nextcloud web interface with an admin account
2. Click on the user icon on the upper left corner
3. Click on Settings from the pull down menu
4. Click on System on the left pane

The output of your Nextcloud log in **Admin \> Logging** :

```auto
Error	PHP	A non-numeric value encountered at /usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#52 2020-04-21T18:04:10+0100

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'instanceid' => ' ***REMOVED-FOR-SECURITY***',
  'passwordsalt' => ' ***REMOVED-FOR-SECURITY***',
  'secret' => ' ***REMOVED-FOR-SECURITY***',
  'trusted_domains' => 
  array (
    0 => ' ***REMOVED-FOR-SECURITY***',
    1 => ' ***REMOVED-FOR-SECURITY***',
    2 => ' ***REMOVED-FOR-SECURITY***',
    3 => ' ***REMOVED-FOR-SECURITY***',
    4 => ' ***REMOVED-FOR-SECURITY***',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.5.0',
  'overwrite.cli.url' => ' ***REMOVED-FOR-SECURITY***',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'dbuser' => ' ***REMOVED-FOR-SECURITY***',
  'dbpassword' => ' ***REMOVED-FOR-SECURITY***',
  'installed' => true,
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => false,
    ),
  ),
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => ' ***REMOVED-FOR-SECURITY***',
  'mail_domain' => ' ***REMOVED-FOR-SECURITY***',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => ' ***REMOVED-FOR-SECURITY***',
  'mail_smtpport' => ' ***REMOVED-FOR-SECURITY***',
  'mail_smtpname' => ' ***REMOVED-FOR-SECURITY***',
  'mail_smtppassword' => ' ***REMOVED-FOR-SECURITY***',
  'memcache.local' => '\OC\Memcache\APCu',
);

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:  
–access.log–

```auto
***REMOVED-FOR-SECURITY*** - ***REMOVED-FOR-SECURITY*** [21/Apr/2020:18:05:10 +0100] "GET /settings/admin/serverinfo HTTP/2.0" 504 562 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36" "-"rt=60.000 ut=60.001 cs=-

```

–error.log–

```auto
2020/04/21 18:05:10 [error] 19429#101714: *1676 upstream timed out (60: Operation timed out) while reading response header from upstream, client: ***REMOVED-FOR-SECURITY*** , server: ***REMOVED-FOR-SECURITY*** , request: "GET /settings/admin/serverinfo HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: " ***REMOVED-FOR-SECURITY***"

```

---

<div class="post-metadata">

**Author:** ![janusng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/janusng/32/5579_2.png) [@janusng](https://help.nextcloud.com/u/janusng)\
**Post date:** [April 21, 2020, 6:28pm UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/2 "2020-04-21T18:28:57Z")

</div>

I have read the corresponding file “/usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php”. The problem seems to be an error on line 50.

```auto
        public function getMemory() {
                $memory = shell_exec('cat /proc/meminfo | grep -i \'MemTotal\' | cut -f 2 -d ":" | awk \'{$1=$1}1\'');
                $memory = explode(' ', $memory);
                $memory = round($memory[0] / 1024);

```

/proc/meminfo does not exist on FreeBSD. An implementation on FreeBSD and derived OS should be:

```auto
        public function getMemory() {
                // Linux version
                // $memory = shell_exec('cat /proc/meminfo | grep -i \'MemTotal\' | cut -f 2 -d ":" | awk \'{$1=$1}1\'');
                // FreeBSD version
                $memory = shell_exec('sysctl hw.physmem | cut -f 2 -d ":" | awk \'{$1=$1}1\'');
                $memory = explode(' ', $memory);
                $memory = round($memory[0] / 1024);

```

---

<div class="post-metadata">

**Author:** ![kesselb](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kesselb/32/74519_2.png) [@kesselb](https://help.nextcloud.com/u/kesselb)\
**Post date:** [April 21, 2020, 7:24pm UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/3 "2020-04-21T19:24:28Z")

</div>

> <https://github.com/nextcloud/serverinfo/issues/203>
>
> Steps to reproduce
> Open http://my-nexcloud.my.domain/index.php/settings/admin/serverinfo
> Look at CPU, RAM, uptime, network information
> Expected behaviour
> See correct information
> Actual behaviour
> No this information
> Server configuration
> Operating system:
> FreeBSD 12.1-RELEASE-p3 amd64
> Web server:
> Apache...

---

<div class="post-metadata">

**Author:** ![janusng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/janusng/32/5579_2.png) [@janusng](https://help.nextcloud.com/u/janusng)\
**Post date:** [April 21, 2020, 8:52pm UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/4 "2020-04-21T20:52:11Z")

</div>

Great! It seems to be fixed on next release. 🥰

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 6:32am UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/5 "2024-12-12T06:32:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 6:32am UTC](https://help.nextcloud.com/t/system-info-page-failed-with-504-timed-out/78760/6 "2024-12-12T06:32:16Z")

</div>


