Upon accessing nextcloud truenas ui is loading

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:

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 :heart:

Hi,
I have the following problem. Could someone please help fix this please?

Nextcloud version (eg, 20.0.5): 29.0.0
Operating system and version (eg, Ubuntu 20.04): Truenas scale Dragonfish-24.04.0
Apache or nginx version (eg, Apache 2.4.25): I don’t know
PHP version (eg, 7.4): I don’t know

The issue you are facing: After a fresh installation of truenas scale Iinstalled nextcloud. It seems that it is deployed and it is running but upon accessing it with web browser with IP address and the correct port, instead of nextcloud the truenas ui loads.
When I try to access it with android app, it seems that it connects but I cannot login. It tells logging in indefinitely.

Is this the first time you’ve seen this error? (Y/N): Y, but this is also the first time I try nexctcloud

Steps to replicate it:

  1. Fresh install truenas
  2. Install nextcloud from truenas apps based on this article.

The output of your Nextcloud log in Admin > Logging:

The log for: nextcloud-cbdb994b-2bzcn is full with lines like these (and in every 10s more is generated):

2024-05-05 12:02:26.003878-07:00172.16.0.1 - - [05/May/2024:19:02:25 +0000] "GET /status.php HTTP/1.1" 200 1811 "-" "kube-probe/1.26"
2024-05-05 12:02:35.799889-07:00[Sun May 05 19:02:35.796606 2024] [php:notice] [pid 330] [client 172.16.0.8:53660] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.800549-07:00[Sun May 05 19:02:35.796613 2024] [php:notice] [pid 328] [client 172.16.0.8:53670] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.805228-07:00[Sun May 05 19:02:35.796734 2024] [php:notice] [pid 328] [client 172.16.0.8:53670] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.805371-07:00[Sun May 05 19:02:35.796908 2024] [php:notice] [pid 330] [client 172.16.0.8:53660] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.832683-07:00[Sun May 05 19:02:35.832409 2024] [php:notice] [pid 330] [client 172.16.0.8:53660] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.832841-07:00[Sun May 05 19:02:35.832507 2024] [php:notice] [pid 330] [client 172.16.0.8:53660] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.842056-07:00[Sun May 05 19:02:35.836287 2024] [php:notice] [pid 328] [client 172.16.0.8:53670] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.842253-07:00[Sun May 05 19:02:35.838805 2024] [php:notice] [pid 328] [client 172.16.0.8:53670] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.842232-07:00172.16.0.8 - - [05/May/2024:19:02:35 +0000] "GET /status.php HTTP/1.1" 200 1790 "-" "kube-probe/1.26"
2024-05-05 12:02:35.857885-07:00172.16.0.8 - - [05/May/2024:19:02:35 +0000] "GET /status.php HTTP/1.1" 200 1792 "-" "kube-probe/1.26"
2024-05-05 12:02:35.994041-07:00[Sun May 05 19:02:35.992013 2024] [php:notice] [pid 331] [client 172.16.0.1:33558] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:35.994176-07:00[Sun May 05 19:02:35.992137 2024] [php:notice] [pid 331] [client 172.16.0.1:33558] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.014646-07:00[Sun May 05 19:02:36.011503 2024] [php:notice] [pid 326] [client 172.16.0.1:33566] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.015048-07:00[Sun May 05 19:02:36.011614 2024] [php:notice] [pid 326] [client 172.16.0.1:33566] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.019103-07:00[Sun May 05 19:02:36.018496 2024] [php:notice] [pid 331] [client 172.16.0.1:33558] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.019265-07:00[Sun May 05 19:02:36.018597 2024] [php:notice] [pid 331] [client 172.16.0.1:33558] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.030021-07:00172.16.0.1 - - [05/May/2024:19:02:35 +0000] "GET /status.php HTTP/1.1" 200 1815 "-" "kube-probe/1.26"
2024-05-05 12:02:36.048667-07:00[Sun May 05 19:02:36.044576 2024] [php:notice] [pid 326] [client 172.16.0.1:33566] Nextcloud trustedProxies has malformed entries
2024-05-05 12:02:36.049219-07:00[Sun May 05 19:02:36.044678 2024] [php:notice] [pid 326] [client 172.16.0.1:33566] Nextcloud trustedProxies has malformed entries

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'nextcloud-redis',
    'password' => 'somethingsomething',
    'port' => 6379,
  ),
  'overwritehost' => '192.168.0.13',
  'overwriteprotocol' => 'https',
  'trusted_proxies' => 
  array (
    0 => '172.17.0.0/16,172.16.0.0/16,127.0.0.1',
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => 'somethingsomething',
  'secret' => 'somethingsomething',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.0.13',
    2 => '127.0.0.1',
    3 => 'localhost',
    4 => 'nextcloud',
    5 => 'nextcloud-init-sync.lock',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '29.0.0.19',
  'overwrite.cli.url' => 'https://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud-postgres:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'somethingsomething',
  'installed' => true,
  'instanceid' => 'ocwepdy77ba1',
);

The output of your Apache/nginx/system log in /var/log/____:

In every 10 seconds there are two lines like these below:
2024-05-05 11:42:45.873026-07:00172.16.0.1 - - [05/May/2024:18:42:45 +0000] "GET /status.php HTTP/2.0" 200 171 "-" "kube-probe/1.26"
2024-05-05 11:42:45.920434-07:00172.16.0.1 - - [05/May/2024:18:42:45 +0000] "GET /status.php HTTP/2.0" 200 171 "-" "kube-probe/1.26"

When trying to access with webbrowser:
2024-05-05 11:46:29.282631-07:00192.168.0.50 - - [05/May/2024:18:46:29 +0000] "GET / HTTP/1.1" 400 255 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"
2024-05-05 11:47:13.620576-07:00192.168.0.50 - - [05/May/2024:18:47:13 +0000] "GET / HTTP/2.0" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

I think it should be like this, based on PHP syntax:

'trusted_proxies' => 
  array (
    0 => '172.17.0.0/16',
    1 => '172.16.0.0/16',
    2 => '127.0.0.1',
  ),

I think one of these (either/or) is configured wrongly

Thank you for your response.

I stopped the nextcloud app within truenas and edited (with nano) the config.php I found in the config directory in the location I provided for “Nextcloud HTML Storage” in the nextcloud app settings. Then I started the whole nextcloud app again and waited until it said running again.
Unfortunately this did not fix the issue.
These lines still being generted in every 10 secs in the log.

2024-05-06 15:54:00.877183+02:00172.16.0.64 - - [06/May/2024:13:54:00 +0000] "GET /status.php HTTP/1.1" 200 1790 "-" "kube-probe/1.26"
2024-05-06 15:54:10.638834+02:00[Mon May 06 13:54:10.637074 2024] [php:notice] [pid 166] [client 172.16.0.1:47104] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.639225+02:00[Mon May 06 13:54:10.637210 2024] [php:notice] [pid 166] [client 172.16.0.1:47104] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.662322+02:00[Mon May 06 13:54:10.662040 2024] [php:notice] [pid 147] [client 172.16.0.1:47114] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.662504+02:00[Mon May 06 13:54:10.662391 2024] [php:notice] [pid 147] [client 172.16.0.1:47114] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.679698+02:00[Mon May 06 13:54:10.679378 2024] [php:notice] [pid 166] [client 172.16.0.1:47104] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.681098+02:00[Mon May 06 13:54:10.679791 2024] [php:notice] [pid 166] [client 172.16.0.1:47104] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.697022+02:00172.16.0.1 - - [06/May/2024:13:54:10 +0000] "GET /status.php HTTP/1.1" 200 1811 "-" "kube-probe/1.26"
2024-05-06 15:54:10.701768+02:00[Mon May 06 13:54:10.698322 2024] [php:notice] [pid 147] [client 172.16.0.1:47114] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.701945+02:00[Mon May 06 13:54:10.698445 2024] [php:notice] [pid 147] [client 172.16.0.1:47114] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.712528+02:00172.16.0.1 - - [06/May/2024:13:54:10 +0000] "GET /status.php HTTP/1.1" 200 1803 "-" "kube-probe/1.26"
2024-05-06 15:54:10.848137+02:00[Mon May 06 13:54:10.839259 2024] [php:notice] [pid 164] [client 172.16.0.64:33790] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.848960+02:00[Mon May 06 13:54:10.839376 2024] [php:notice] [pid 164] [client 172.16.0.64:33790] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.849013+02:00[Mon May 06 13:54:10.843475 2024] [php:notice] [pid 161] [client 172.16.0.64:33780] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.854744+02:00[Mon May 06 13:54:10.843580 2024] [php:notice] [pid 161] [client 172.16.0.64:33780] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.866360+02:00[Mon May 06 13:54:10.863434 2024] [php:notice] [pid 161] [client 172.16.0.64:33780] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.866550+02:00[Mon May 06 13:54:10.863611 2024] [php:notice] [pid 161] [client 172.16.0.64:33780] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.873943+02:00172.16.0.64 - - [06/May/2024:13:54:10 +0000] "GET /status.php HTTP/1.1" 200 1796 "-" "kube-probe/1.26"
2024-05-06 15:54:10.874135+02:00[Mon May 06 13:54:10.871033 2024] [php:notice] [pid 164] [client 172.16.0.64:33790] Nextcloud trustedProxies has malformed entries
2024-05-06 15:54:10.874187+02:00[Mon May 06 13:54:10.871137 2024] [php:notice] [pid 164] [client 172.16.0.64:33790] Nextcloud trustedProxies has malformed entries

I believe the nginx version is: 1.25.4 but I’m not sure if this is the proper ver number I should look for.

I did not do any other change apart from what was in the guide I linked in the first post.

I am also not sure if I did the config.php editing right or I should have done something else too.

Thank for your response.

Apart from what was in the guide I linked I did not do any configuration and Unfortunately I don’t know how what should I do. Do you have any suggestion what should I do?

This is what I installed:

It has probably a migration issue from 1.x.xx to 2.0.2.
Had the exact same issue, the config file was correct and working with 1.6.61. I had to fall back to that version, you should do it too and wait for a fix/explanation.