Can't see files after hit update button in nextcloud FreeNAS jail

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:

Nextcloud version (eg, 12.0.2): 17.0.2
Operating system and version (eg, Ubuntu 17.04): FreeNAS-11.2-U7 (nextcloud is installed as plugin/jail)
Apache or nginx version (eg, Apache 2.4.25): nginx/1.16.1
PHP version (eg, 7.1): 7.1.33

The issue you are facing: I, by mistake, hit the button update in the FreeNAS jail and messed up my nextcloud. I change the version in the nextcloud file and could get back the website, but now I cannot see the files. I’m trying to get them with this command without success: su -m www -c php occ files:scan. Thank you in advance for your help.

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

Steps to replicate it:

  1. hit update button in the nextcloud jail in FreeNAS

The output of your Nextcloud log in Admin > Logging:

Level
App	Message		Time
Error	PHP	A non-numeric value encountered at /usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#52		2020-01-07T09:41:39-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T09:24:16-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T09:23:57-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T07:22:45-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T07:22:36-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T07:12:58-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T07:12:48-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2020-01-07T07:12:32-0500
Warning	user_ldap	Configuration Error (prefix s01): login filter does not contain %uid place holder.		2020-01-06T22:34:59-0500
Warning	user_ldap	Configuration Error (prefix s01): Not a single Base DN given.		2020-01-06T22:34:59-0500
Warning	user_ldap	Configuration Error (prefix s01): No LDAP Login Filter given!		2020-01-06T22:34:59-0500
Error	PHP	A non-numeric value encountered at /usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#52		2020-01-06T22:33:03-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2019-12-27T15:51:50-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2019-12-27T15:44:49-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2019-12-27T15:37:13-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2019-12-27T15:33:33-0500
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions		2019-12-27T15:07:35-0500

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

<?php
$CONFIG = array (
  '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' => true,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'instanceid' => 'ocbew87jg1qv',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => '192.168.10.10',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'overwrite.cli.url' => 'http://192.168.10.10',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_usnxtlbet',
  'dbpassword' => 'password',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => 'secret',
);

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

2020/01/07 09:14:06 [warn] 4265#100570: *40907 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/6/85/0000001856 while reading up
stream, client: 192.168.1.82, server: _, request: "PROPFIND /remote.php/dav/file
s/servtecnico2/compartidos/serviciotecnico/BASE/Documentos%20ST/3-Reportes%20de%
20Servicio HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:
", host: "192.168.1.28"
2020/01/07 09:21:08 [warn] 4265#100570: *42027 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/7/85/0000001857 while reading up
stream, client: 192.168.1.82, server: _, request: "GET /remote.php/dav/files/ser
vtecnico2/compartidos/serviciotecnico/ARCHIVOS%20ST/1-David/2-Formatos/Protocolo
%20verificaci%C3%B3n%20SZM-LED1.xls HTTP/1.1", upstream: "fastcgi://unix:/var/ru
n/nextcloud-php-fpm.sock:", host: "192.168.1.28"
2020/01/07 09:21:43 [warn] 4265#100570: *42027 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/8/85/0000001858 while reading up
stream, client: 192.168.1.82, server: _, request: "GET /remote.php/dav/files/ser
vtecnico2/compartidos/serviciotecnico/ARCHIVOS%20ST/1-David/3-Cotizaciones/0-Par
tes%20de%20Repuesto/Heidolph/Cd%202012/Ersatzteile%20-%20spare%20parts/SPARE%20P
ARTS%20BOX/SPARE%20PARTS%20BOX.xls HTTP/1.1", upstream: "fastcgi://unix:/var/run
/nextcloud-php-fpm.sock:", host: "192.168.1.28"
2020/01/07 09:23:11 [warn] 4265#100570: *42027 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/9/85/0000001859 while reading up
stream, client: 192.168.1.82, server: _, request: "GET /remote.php/dav/files/ser
vtecnico2/compartidos/serviciotecnico/ARCHIVOS%20ST/1-David/4-Software/Precisa/P
repDATA.nrg HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock
:", host: "192.168.1.28"
2020/01/07 09:23:43 [warn] 4267#100729: *43092 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/0/86/0000001860 while reading up
stream, client: 192.168.1.82, server: _, request: "GET /remote.php/dav/files/ser
vtecnico2/compartidos/serviciotecnico/ARCHIVOS%20ST/1-David/9-Fotos,%20Grabacion
es%20y%20Videos/Capacitaciones/Capacitacion%20Precisa/20130528_100300.mp4 HTTP/1
.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "192.168
.1.28"
2020/01/07 09:31:23 [warn] 4262#101575: *43267 an upstream response is buffered
to a temporary file /var/tmp/nginx/fastcgi_temp/1/86/0000001861 while reading up
stream, client: 192.168.1.82, server: _, request: "GET /remote.php/dav/files/ser
vtecnico2/compartidos/serviciotecnico/ARCHIVOS%20ST/1-David/9-Fotos,%20Grabacion
es%20y%20Videos/Capacitaciones/Capacitaci%C3%B3n%20Tuttnauer/20130613_152210.mp4
 HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "
192.168.1.28"
2020/01/07 09:42:41 [error] 4264#101633: *43771 access forbidden by rule, client
: 192.168.1.98, server: _, request: "GET /data/.ocdata?t=1578408161666 HTTP/1.1"
, host: "192.168.1.28"
2020/01/07 09:55:38 [error] 4264#101633: *44015 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.98,
server: _, request: "GET /index.php/apps/logreader/poll?lastReqId=L2hV3t0j06ieIF
tj0SjK HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", ho
st: "192.168.1.28"
2020/01/07 09:55:45 [error] 4265#100570: *44020 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.98,
server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTT
P/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "192.1
68.1.28"
2020/01/07 09:57:40 [error] 4267#100729: *44085 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.83,
server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?for
mat=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock",
host: "192.168.1.28"
2020/01/07 09:59:11 [error] 4267#100729: *44101 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.82,
server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?for
mat=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock",
host: "192.168.1.28"
2020/01/07 10:02:40 [error] 4262#101575: *44134 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.83,
server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?for
mat=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock",
host: "192.168.1.28"
2020/01/07 10:04:11 [error] 4262#101575: *44150 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.82,
server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?for
mat=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock",
host: "192.168.1.28"
2020/01/07 10:06:15 [error] 4262#101575: *44171 upstream timed out (60: Operatio
n timed out) while reading response header from upstream, client: 192.168.1.98,
server: _, request: "GET /index.php/csrftoken HTTP/1.1", upstream: "fastcgi://un
ix:/var/run/nextcloud-php-fpm.sock", host: "192.168.1.28"

did you manage?
Can you help me. I am in same state.