Broken IMG via 'Activity' Issues (Subject Change: 7-12-2019)

Nextcloud version 16.0.3
(Upgraded via WebUI from: https://github.com/danb35/freenas-iocage-nextcloud.git)
Operating system and version FreeNAS-11.2-U5 - 11.2-RELEASE-p11
mholt-caddy-v0.11.5_GH0
PHP version (eg, 7.1): PHP 7.2.19

The issue you are facing:

Issues with previews (or perhaps displaying resized images).

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

Steps to replicate it:

  1. Install nextcloud into FreeNAS jail via git and follow instruction
  2. View recent activity - shows broken image on recent images logged
  3. Inspect file path and enter into browser results in displaying only [] w/ no image:

3a. URL || https://domain.com/index.php/core/preview.png?file=/Maeven%20and%20Winslow/Photos/IMG_3030.jpg&c=fb90db1cc552792cf413c6ef00cce1cd&x=150&y=150

3b. Can craft URL to view/resize image using || https://domain.com/index.php/core/preview?fileId=1492&x=150&y=150&a=true

The output of your Nextcloud log in Admin > Logging:

Used to have entries listed in the log file, but wanted to clear any non-active entries and did so by running echo " " > nextcloud.log and nothing has shown since. Would this break functionality?

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

<?php
$CONFIG = array (
  'passwordsalt' => *****************
  'secret' => *****************
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'domain.com',
    2 => '192.168.11.203',
  ),
  'datadirectory' => '/mnt/files',
  'dbtype' => 'mysql',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'https://domain.com/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => ****************
  'installed' => true,
  'instanceid' => 'octazwo81i4w',
  'logtimezone' => 'America/Chicago',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => '2',
  'logrotate_size' => '104847600',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' =>
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'htaccess.RewriteBase' => '/',
  'updater.secret' => ****************
  'maintenance' => false,
  'theme' => '',
  'updater.release.channel' => 'stable',
);

The output of your Apache/nginx/system log in /var/log/____:
(I periodically get some strange reports for port 80 - sometimes it looks like it’s successful. Sometimes it looks like it’s reporting IP’s upstream you would see in a traceroute)

2019/07/10 07:07:01 [INFO][cache:0xc000114820] Started certificate maintenance routine
Activating privacy features... done.

Serving HTTPS on port 443 
https://cloud.dixcartel.com

2019/07/10 07:07:01 [INFO] Serving https://cloud.dixcartel.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 07:07:01 [INFO] Serving http://domain.com 
2019/07/10 07:10:30 [INFO] WAN_IP - No such site at :80 (Remote: 193.106.29.210, Referer: )
2019/07/10 07:11:00 [INFO] WAN_IP - No such site at :80 (Remote: 186.251.231.249, Referer: )
2019/07/10 07:22:08 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 07:22:08 [INFO][cache:0xc000114820] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 07:22:23 [INFO][cache:0xc00009e960] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 07:22:23 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 07:22:23 [INFO] Serving http://domain.com 
2019/07/10 07:24:35 [INFO]  - No such site at :80 (Remote: 77.247.110.219, Referer: )
2019/07/10 07:44:50 http: TLS handshake error from 222.177.14.41:37921: EOF
2019/07/10 07:44:51 [INFO] WAN_IP - No such site at :80 (Remote: 222.177.14.41, Referer: )
2019/07/10 08:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 08:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 09:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 09:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 09:24:34 http: TLS handshake error from 66.240.205.34:50322: tls: first record does not look like a TLS handshake
2019/07/10 09:59:22 [INFO]  - No such site at :80 (Remote: 13.56.21.224, Referer: )
2019/07/10 09:59:42 [INFO] 172-10-114-103.lightspeed.stlsmo.sbcglobal.net - No such site at :80 (Remote: 13.56.21.224, Referer: )
2019/07/10 09:59:42 [INFO]  - No such site at :80 (Remote: 13.56.21.224, Referer: )
2019/07/10 09:59:47 [INFO] 172-10-114-103.lightspeed.stlsmo.sbcglobal.net - No such site at :80 (Remote: 13.56.21.224, Referer: )
2019/07/10 10:00:21 [INFO] WAN_IP - No such site at :80 (Remote: 184.70.146.210, Referer: )
2019/07/10 10:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 10:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 11:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 11:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 11:27:12 [Error] failed to write body:  http2: stream closed
2019/07/10 11:27:13 [Error] failed to write body:  http2: stream closed
2019/07/10 11:27:38 [INFO] WAN_IP - No such site at :80 (Remote: 179.106.101.72, Referer: )
2019/07/10 12:14:57 http: TLS handshake error from 107.77.206.72:27005: EOF
2019/07/10 12:15:01 [Error] failed to write body:  http2: stream closed
2019/07/10 12:15:02 [Error] failed to write body:  http2: stream closed
2019/07/10 12:15:12 [Error] failed to write body:  http2: stream closed
2019/07/10 12:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 12:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 13:14:04 [INFO] 127.0.0.1 - No such site at :80 (Remote: 130.15.3.80, Referer: )
2019/07/10 13:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 13:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 13:23:06 [INFO]  - No such site at :80 (Remote: 77.247.110.219, Referer: )
2019/07/10 14:22:23 [INFO][cache:0xc00009e960] Scanning for stale OCSP staples
2019/07/10 14:22:23 [INFO][cache:0xc00009e960] Done checking OCSP staples
2019/07/10 14:46:25 [INFO]  - No such site at :80 (Remote: 37.106.149.39, Referer: )
2019/07/10 14:49:39 [INFO] WAN_IP - No such site at :80 (Remote: 191.254.239.102, Referer: )
2019/07/10 14:49:39 [INFO] WAN_IP - No such site at :80 (Remote: 191.254.239.102, Referer: )
2019/07/10 14:55:39 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 14:55:39 [INFO][cache:0xc00009e960] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 14:55:55 [INFO][cache:0xc0001bc3c0] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 14:55:55 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 14:55:55 [INFO] Serving http://domain.com 
2019/07/10 15:00:56 [Error] failed to write body:  http2: stream closed
2019/07/10 15:01:27 [Error] failed to write body:  http2: stream closed
2019/07/10 15:01:28 [Error] failed to write body:  http2: stream closed
2019/07/10 15:11:13 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 15:11:13 [INFO][cache:0xc0001bc3c0] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 15:11:28 [INFO][cache:0xc0001c03c0] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 15:11:28 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 15:11:28 [INFO] Serving http://domain.com 
2019/07/10 15:19:12 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 15:19:12 [INFO][cache:0xc0001c03c0] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 15:19:17 [INFO][cache:0xc00009e960] Started certificate maintenance routine
done.

Serving HTTP on port 80 
http://domain.com

2019/07/10 15:19:17 [INFO] Serving http://domain.com 

Serving HTTPS on port 443 
https://domain.com

2019/07/10 15:19:17 [INFO] Serving https://domain.com 
2019/07/10 15:28:28 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 15:28:28 [INFO][cache:0xc00009e960] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 15:28:34 [INFO][cache:0xc0001bc3c0] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 15:28:34 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 15:28:34 [INFO] Serving http://domain.com 
2019/07/10 15:53:34 [INFO][cache:0xc0001c83c0] Started certificate maintenance routine
Activating privacy features... done.

Serving HTTP on port 80 
http://domain.com

2019/07/10 15:53:34 [INFO] Serving http://domain.com 

Serving HTTPS on port 443 
https://domain.com

2019/07/10 15:53:34 [INFO] Serving https://domain.com 
2019/07/10 16:03:42 [INFO] WAN_IP - No such site at :80 (Remote: 189.69.152.135, Referer: )
2019/07/10 16:20:21 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 16:20:21 [INFO][cache:0xc0001c83c0] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 16:20:36 [INFO][cache:0xc00009e960] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 16:20:36 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 16:20:36 [INFO] Serving http://domain.com 
2019/07/10 17:05:09 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/10 17:05:09 [INFO][cache:0xc00009e960] Stopped certificate maintenance routine
Activating privacy features... 2019/07/10 17:05:24 [INFO][cache:0xc00009e960] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/10 17:05:24 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/10 17:05:24 [INFO] Serving http://domain.com 
2019/07/10 17:17:39 http: TLS handshake error from 185.137.233.222:60000: tls: first record does not look like a TLS handshake
2019/07/10 17:37:24 [INFO] WAN_IP - No such site at :80 (Remote: 188.163.219.227, Referer: )
2019/07/10 17:38:42 [INFO] WAN_IP - No such site at :80 (Remote: 212.51.159.51, Referer: )
2019/07/10 17:42:42 [INFO] WAN_IP - No such site at :80 (Remote: 187.1.36.6, Referer: )
2019/07/10 17:44:57 [INFO][cache:0xc0001ce3c0] Started certificate maintenance routine
Activating privacy features... done.

Serving HTTP on port 80 
http://domain.com

2019/07/10 17:44:57 [INFO] Serving http://domain.com 

Serving HTTPS on port 443 
https://domain.com

2019/07/10 17:44:57 [INFO] Serving https://domain.com 
2019/07/10 18:09:22 [INFO] WAN_IP - No such site at :80 (Remote: 179.96.182.33, Referer: )
2019/07/10 18:15:15 [INFO] WAN_IP - No such site at :80 (Remote: 80.24.191.81, Referer: )
2019/07/10 18:35:38 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48732: write: connection reset by peer
2019/07/10 18:35:38 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48734: write: broken pipe
2019/07/10 18:35:39 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48736: write: broken pipe
2019/07/10 18:35:39 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48738: write: broken pipe
2019/07/10 18:35:40 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48740: write: broken pipe
2019/07/10 18:35:40 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48742: write: broken pipe
2019/07/10 18:35:40 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48744: write: broken pipe
2019/07/10 18:35:41 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48746: write: broken pipe
2019/07/10 18:35:41 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48748: write: broken pipe
2019/07/10 18:35:42 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48750: write: broken pipe
2019/07/10 18:35:42 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48752: write: broken pipe
2019/07/10 18:35:42 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48754: write: broken pipe
2019/07/10 18:35:43 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48756: write: broken pipe
2019/07/10 18:35:44 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48760: write: broken pipe
2019/07/10 18:35:45 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48762: write: broken pipe
2019/07/10 18:35:45 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48764: write: broken pipe
2019/07/10 18:35:45 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48766: write: broken pipe
2019/07/10 18:35:46 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48768: write: broken pipe
2019/07/10 18:35:46 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48770: write: broken pipe
2019/07/10 18:35:46 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48772: write: broken pipe
2019/07/10 18:42:39 [Error] failed to write body:  write tcp 192.168.11.203:443->192.168.11.20:48774: write: broken pipe
2019/07/10 18:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 18:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 18:46:10 [INFO] WAN_IP - No such site at :80 (Remote: 149.248.58.55, Referer: )
2019/07/10 19:06:50 [INFO] WAN_IP - No such site at :80 (Remote: 103.82.188.179, Referer: )
2019/07/10 19:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 19:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 20:01:24 [INFO] WAN_IP - No such site at :80 (Remote: 103.78.14.10, Referer: )
2019/07/10 20:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 20:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 21:36:28 [INFO] WAN_IP - No such site at :80 (Remote: 186.211.3.36, Referer: )
2019/07/10 21:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 21:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 22:41:12 [INFO] WAN_IP - No such site at :80 (Remote: 109.160.111.113, Referer: )
2019/07/10 22:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 22:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 23:26:13 http: TLS handshake error from 184.105.139.70:27642: no certificate available for ''
2019/07/10 23:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/10 23:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/10 23:54:10 [INFO] WAN_IP - No such site at :80 (Remote: 219.155.124.168, Referer: )
2019/07/11 00:34:13 http: TLS handshake error from 198.108.66.80:41982: no certificate available for ''
2019/07/11 00:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 00:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 01:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 01:44:57 [INFO] Advancing OCSP staple for [domain.com] from 2019-07-14 18:00:00 +0000 UTC to 2019-07-17 18:00:00 +0000 UTC
2019/07/11 01:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 02:17:40 [INFO] WAN_IP - No such site at :80 (Remote: 61.219.126.133, Referer: )
2019/07/11 02:31:10 [INFO]  - No such site at :80 (Remote: 2.27.53.90, Referer: )
2019/07/11 02:34:29 [INFO] WAN_IP - No such site at :80 (Remote: 61.219.126.133, Referer: )
2019/07/11 02:44:11 [INFO] maewin.dixcartel.com - No such site at :80 (Remote: 178.33.52.5, Referer: )
2019/07/11 02:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 02:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 02:49:55 [INFO] WAN_IP - No such site at :80 (Remote: 103.69.111.118, Referer: )
2019/07/11 03:18:41 http: TLS handshake error from 198.108.66.224:27638: no certificate available for ''
2019/07/11 03:24:18 [INFO] WAN_IP - No such site at :80 (Remote: 86.57.49.169, Referer: )
2019/07/11 03:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 03:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 03:53:50 http: TLS handshake error from 80.82.77.33:51612: no certificate available for ''
2019/07/11 04:16:54 [INFO] WAN_IP - No such site at :80 (Remote: 95.8.207.148, Referer: )
2019/07/11 04:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 04:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 05:14:15 http: TLS handshake error from 61.219.11.153:62291: tls: first record does not look like a TLS handshake
2019/07/11 05:26:29 [INFO] WAN_IP - No such site at :80 (Remote: 159.146.84.141, Referer: )
2019/07/11 05:44:57 [INFO][cache:0xc0001ce3c0] Scanning for expiring certificates
2019/07/11 05:44:57 [INFO][cache:0xc0001ce3c0] Done scanning certificates
2019/07/11 05:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 05:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 05:50:13 [INFO] WAN_IP - No such site at :80 (Remote: 62.69.252.121, Referer: )
2019/07/11 06:44:57 [INFO][cache:0xc0001ce3c0] Scanning for stale OCSP staples
2019/07/11 06:44:57 [INFO][cache:0xc0001ce3c0] Done checking OCSP staples
2019/07/11 07:19:26 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/11 07:19:26 [INFO][cache:0xc0001ce3c0] Stopped certificate maintenance routine
Activating privacy features... 2019/07/11 07:19:26 [INFO][cache:0xc00009a960] Started certificate maintenance routine
done.

Serving HTTPS on port 443 
https://domain.com

2019/07/11 07:19:26 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/11 07:19:26 [INFO] Serving http://domain.com 
2019/07/11 07:25:27 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/11 07:25:27 [INFO][cache:0xc00009a960] Stopped certificate maintenance routine
2019/07/11 07:25:27 [INFO][cache:0xc0001be3c0] Started certificate maintenance routine
Activating privacy features... done.
2019/07/11 07:25:27 [WARNING] TLS disabled for http://domain.com

Serving HTTP on port 80 
http://domain.com

2019/07/11 07:25:27 [INFO] Serving http://domain.com 

Serving HTTPS on port 443 
https://domain.com
https://domain.com

2019/07/11 07:25:27 [INFO] Serving https://domain.com 
2019/07/11 07:25:27 [INFO] Serving https://domain.com 
2019/07/11 07:28:49 [INFO][cache:0xc0001de3c0] Started certificate maintenance routine
Activating privacy features... done.
2019/07/11 07:28:49 [WARNING] TLS disabled for http://domain.com

Serving HTTPS on port 443 
https://domain.com
https://domain.com

2019/07/11 07:28:49 [INFO] Serving https://domain.com 
2019/07/11 07:28:49 [INFO] Serving https://domain.com 

Serving HTTP on port 80 
http://domain.com

2019/07/11 07:28:49 [INFO] Serving http://domain.com 
2019/07/11 08:11:10 [INFO] SIGTERM: Shutting down servers then terminating
2019/07/11 08:11:10 [INFO][cache:0xc0001de3c0] Stopped certificate maintenance routine

I’m using this as a solution for family to upload photos/videos and back them up on my NAS - Also so family can all view / share various files taken from mobile devices etc. It’s also nice to use it as a share so images and videos aren’t compressed and lose quality when sharing among one another. Most of the users aren’t real tech savvy - so getting this to work as best and user friendly as possible is beneficial.

This is my first forum post in regards to Unix/NAS/Nextcloud etc etc. I’m fairly new to all of this so ready your RTM’s and what not ;p I just hope my template loadout and post location is at least correct/useful! I fear this could likely be linked to existing issues - however through my research I couldn’t find anything too terribly relevant but then again when it comes to isolating the issue and which layer it exists at… being a server/file hosting n00b it’s difficult to tell what functions rely on what, etc.

Thanks again for your time and consideration and I’ll be happy to provide / reprovide any requested information.

EDIT: Also finding sharing .mp4 videos do not seem to be transcoding properly and showing a black screen though plays the audio. I imagine this is likely codec/a different issue from the above I’m trying to address - but wanted to mention it just in case it is linked.

I don’t get preview/thumbnails from movie files - but through research it sounds like nothing could be done about that in Nextcloud current iteration if I am not mistaken.

Hello,

i did not notice any of the issues you descrive.
I am on a freshly updated Debian Buster // NC16 // Php7.3 // MariaDB 10.3

My only issue so far, is sound with mp4 video… i got image but no sound, and i suppect the mp4 to have a weird incoding …

Could be some dependencies/codex stuff in your case

Thanks for your time and the assistance. Would you be willing to share some of your config files etc. So I may stare and compare? If not, or unable to, no problem!

what do tou need ?

Well, admittedly, that’s a good question - as for the issues I’m looking into in not entirely certain of what would be relevant. I’m away from the server currently but off the top of my head things I’ve been looking into:

Nextcloud conf.php
APIv1.php
APIv2.php
Caddyfile
redis configuration

I started off using the preview generator app but only used the manual occ command with no cron job but disabled it during troubleshooting.

Beyond the codec issue, I feel like between the nextcloud jail, external / mounted file and db datasets and possibly where NC is looking for content or and cached data there may be some sort of disconnect or pathing problem perhaps.

Ok,

i am on a Debian Buster v10. ( fresly updated yesterday ).
So, my configuration file will differt from yours… a little.

Anyway, here most of what your ask for.

DEBIAN BUSTER, Apache 2.4.38, Php7.3, MariaDB 10.3, Python 3, Redis 5.0.3, Brotli
… and i may add stuff here later…


Server configuration detail

Operating system: Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64

Webserver: Apache/2.4.38 (fpm-fcgi)

Database: mysql MariaDB 10.3.15 with Barracuda layout

PHP version:

7.3.4-2
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 16.0.1 - 16.0.1.1

Updated from an older Nextcloud/ownCloud or fresh install: Yes, Initialy a NC13 fresh install on a Debian Stretch 9 sometimes like 2 years ago.

Where did you install Nextcloud from: sources.

List of activated apps
Enabled:
 - accessibility: 1.2.0
 - activity: 2.9.1
 - admin_audit: 1.6.0
 - announcementcenter: 3.5.1
 - apporder: 0.7.1
 - audioplayer: 2.7.2
 - browser_warning: 0.1.0
 - bruteforcesettings: 1.3.0
 - calendar: 1.7.0
 - camerarawpreviews: 0.7.0
 - checksum: 0.4.3
 - cloud_federation_api: 0.2.0
 - comments: 1.6.0
 - contacts: 3.1.3
 - data_request: 1.3.0
 - dav: 1.9.2
 - external: 3.3.0
 - federatedfilesharing: 1.6.0
 - federation: 1.6.0
 - files: 1.11.0
 - files_downloadactivity: 1.5.0
 - files_pdfviewer: 1.5.0
 - files_rightclick: 0.13.0
 - files_sharing: 1.8.0
 - files_texteditor: 2.8.0
 - files_trackdownloads: 1.5.0
 - files_trashbin: 1.6.0
 - files_versions: 1.9.0
 - files_videoplayer: 1.5.0
 - firstrunwizard: 2.5.0
 - flowupload: 0.1.2
 - gallery: 18.3.0
 - groupfolders: 4.0.3
 - impersonate: 1.3.0
 - issuetemplate: 0.5.0
 - logreader: 2.1.0
 - lookup_server_connector: 1.4.0
 - metadata: 0.9.0
 - notifications: 2.4.1
 - oauth2: 1.4.2
 - occweb: 0.0.4
 - password_policy: 1.6.0
 - previewgenerator: 2.1.0
 - provisioning_api: 1.6.0
 - quota_warning: 1.5.0
 - registration: 0.4.6
 - serverinfo: 1.6.0
 - sharebymail: 1.6.0
 - sharerenamer: 2.6.0
 - socialsharing_facebook: 1.0.4
 - support: 1.0.0
 - survey_client: 1.4.0
 - systemtags: 1.6.0
 - twofactor_backupcodes: 1.5.0
 - twofactor_totp: 2.1.2
 - twofactor_u2f: 3.0.0
 - twofactor_yubikey: 0.4.1
 - unsplash: 1.1.3
 - updatenotification: 1.6.0
 - user_usage_report: 1.1.2
 - viewer: 1.0.0
 - workflowengine: 1.6.0
Disabled:
 - circles
 - dashboard
 - encryption
 - files_antivirus
 - files_external
 - music
 - news
 - nextcloud_announcements
 - polls
 - privacy
 - recommendations
 - sociallogin
 - theming
 - user_ldap
 - user_saml

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nextcloud.rkn.ovh"
    ],
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/nextcloud.rkn.ovh",
    "dbtype": "mysql",
    "version": "16.0.1.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "cache_chunk_gc_ttl": 86400,
    "filelocking.ttl": 3600,
    "auth.bruteforce.protection.enabled": false,
    "maintenance": false,
    "loglevel": 1,
    "ldapIgnoreNamingRules": false,
    "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
    "theme": "",
    "updater.release.channel": "stable",
    "twofactor_enforced": "true",
    "twofactor_enforced_groups": [],
    "twofactor_enforced_excluded_groups": [
        "Alpn",
        "admin",
        "pro",
        "scolaire",
        "users"
    ],
    "mysql.utf8mb4": true,
    "app_install_overwrite": [
        "external",
        "occweb",
        "files_downloadactivity",
        "admin_notifications",
        "twofactor_yubikey"
    ],
    "updater.secret": "***REMOVED SENSITIVE VALUE***"
}

Are you using external storage, if yes which one: none, but a raid6 mdadm/lvm2 mounted as /mnt/raid6/nextcloud

Are you using encryption: no, but HTTPS and UF2 Auth for clients.

Are you using an external user-backend, if yes which one: no


**Others configuration

No alp1/Alp2, i use openssl 1.1.1.c with Letsencrypt for SSL certs.

Sorry, no caddyfile. I manually install all. This is a dedicated homemade server…

Redis configuration:

bind 127.0.0.1 ::1
protected-mode yes
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
supervised no
pidfile /var/run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
syslog-enabled yes
syslog-ident redis
databases 16
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /var/lib/redis
replica-serve-stale-data yes
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
replica-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
maxclients 10000
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes

Redis log:

1114:C 10 Jul 2019 02:23:58.869 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1114:C 10 Jul 2019 02:23:58.880 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=1114, just started
1114:C 10 Jul 2019 02:23:58.880 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 5.0.3 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1236
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

1236:M 10 Jul 2019 02:23:58.899 # Server initialized
1236:M 10 Jul 2019 02:23:58.999 * DB loaded from disk: 0.099 seconds
1236:M 10 Jul 2019 02:23:58.999 * Ready to accept connections
1236:M 10 Jul 2019 02:31:12.998 * 10 changes in 300 seconds. Saving...

Hope this could help.

Here is also a list of the package installed on my buster:

Additionnal Additional .ini files parsed:

/etc/php/7.3/fpm/conf.d/10-mysqlnd.ini, /etc/php/7.3/fpm/conf.d/10-opcache.ini, /etc/php/7.3/fpm/conf.d/10-pdo.ini, /etc/php/7.3/fpm/conf.d/15-xml.ini, /etc/php/7.3/fpm/conf.d/20-apcu.ini, /etc/php/7.3/fpm/conf.d/20-bz2.ini, /etc/php/7.3/fpm/conf.d/20-calendar.ini, /etc/php/7.3/fpm/conf.d/20-ctype.ini, /etc/php/7.3/fpm/conf.d/20-curl.ini, /etc/php/7.3/fpm/conf.d/20-dom.ini, /etc/php/7.3/fpm/conf.d/20-exif.ini, /etc/php/7.3/fpm/conf.d/20-fileinfo.ini, /etc/php/7.3/fpm/conf.d/20-ftp.ini, /etc/php/7.3/fpm/conf.d/20-gd.ini, /etc/php/7.3/fpm/conf.d/20-gettext.ini, /etc/php/7.3/fpm/conf.d/20-iconv.ini, /etc/php/7.3/fpm/conf.d/20-igbinary.ini, /etc/php/7.3/fpm/conf.d/20-imagick.ini, /etc/php/7.3/fpm/conf.d/20-intl.ini, /etc/php/7.3/fpm/conf.d/20-json.ini, /etc/php/7.3/fpm/conf.d/20-ldap.ini, /etc/php/7.3/fpm/conf.d/20-mbstring.ini, /etc/php/7.3/fpm/conf.d/20-mysqli.ini, /etc/php/7.3/fpm/conf.d/20-pdo_mysql.ini, /etc/php/7.3/fpm/conf.d/20-phar.ini, /etc/php/7.3/fpm/conf.d/20-posix.ini, /etc/php/7.3/fpm/conf.d/20-readline.ini, /etc/php/7.3/fpm/conf.d/20-redis.ini, /etc/php/7.3/fpm/conf.d/20-shmop.ini, /etc/php/7.3/fpm/conf.d/20-simplexml.ini, /etc/php/7.3/fpm/conf.d/20-smbclient.ini, /etc/php/7.3/fpm/conf.d/20-sockets.ini, /etc/php/7.3/fpm/conf.d/20-sysvmsg.ini, /etc/php/7.3/fpm/conf.d/20-sysvsem.ini, /etc/php/7.3/fpm/conf.d/20-sysvshm.ini, /etc/php/7.3/fpm/conf.d/20-tokenizer.ini, /etc/php/7.3/fpm/conf.d/20-wddx.ini, /etc/php/7.3/fpm/conf.d/20-xmlreader.ini, /etc/php/7.3/fpm/conf.d/20-xmlwriter.ini, /etc/php/7.3/fpm/conf.d/20-xsl.ini, /etc/php/7.3/fpm/conf.d/20-zip.ini, /etc/php/7.3/fpm/conf.d/25-apcu_bc.ini

Thanks for all of that. The more I poke and prod I’m beginning to wonder if it’s something specific to the “Activity” page. I’m not sure of all of the PHP/JS just yet that that is involved on that page/functions but… I bombed out the jail and completely reinstalled NC using the same method:

My base setup is as follows:

Here’s the log from the new install:

Nextcloud Install log

FreeNAS-11.2-U5 - 11.2-RELEASE-p11
Pool: /mnt/Rev1/
Dataset(s): nextcloud > db & files
(db set record size to 16K & zfs set primarycache=metadata Rev1/nextcloud/db)

image.png

Basically - one of the first issues I’ve noticed has been under the “Activity” log. Where it should be positing previews of images, results in a the default/broken img file:

image.png

My nextcloud-conf file is configured as such:

JAIL_IP=“192.168.11.203”
DEFAULT_GW_IP=“192.168.11.1”
INTERFACE=“vnet0”
VNET=“on”
POOL_PATH="/mnt/Rev1/nextcloud"
JAIL_NAME=“nextcloud”
TIME_ZONE=“America/Chicago”
HOST_NAME=“cloud.dixcartel.com
DATABASE=“mariadb”
DNS_CERT=1
DNS_PLUGIN=“cloudflare”
DNS_ENV=“CLOUDFLARE_EMAIL=**************” CLOUDFLARE_API_KEY="
CERT_EMAIL="
"

When I right click and inspect the image path on one of the broken files it reports:

img class=“preview” src=“https://cloud.dixcartel.com/index.php/core/preview.png?file=/Nextcloud.png” alt="Open file"

Which if I browse to the above link - I receive this in the web browser (merely shows “[ ]”):

image.png

Inspecting the page shows:

< pre style=“word-wrap: break-word; white-space: pre-wrap;”>[]</ pre> (No spaces)

However, although I’m sure it’s not “apples to apples” I’m able to ‘hand craft’ a url and successfully display the image:

https://cloud.dixcartel.com/index.php/core/preview?fileId=9&x=150&y=150&a=true

THOUGH using what I learned above, if I use the “img class preview” it still results in a broken image. Yet you could load the URL manually / click link - to load the image.

< img class=“preview” src=“https://cloud.dixcartel.com/index.php/core/preview?fileId=9&x=150&y=150&a=true” >

https://cloud.dixcartel.com/index.php/core/preview?fileId=9&x=150&y=150&a=true

I’m not sure what I’m looking exactly, and frankly hesitate to air out any thoughts/suspicions at this time just due to my over all lack of understanding of what I’m toying with here.

Turns out I am generating some errors after all. Getting closer…

[index] Error: TypeError: Argument 5 passed to OC\Core\Controller\PreviewController::__construct() must be of the type string, null given at <>

  1. <>
    OC\Core\Controller\PreviewController->__construct(“core”, OC\AppFramework\Http\Request {}, OC\PreviewManager {}, OC\Files\Node\LazyRoot {}, null, OC\AppFramework\Utility\TimeFactory {})
  2. /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 81
    ReflectionClass->newInstanceArgs([“core”,OC\AppFr … }])
  3. /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 98
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  4. /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 119
    OC\AppFramework\Utility\SimpleContainer->resolve(“OC\Core\Controller\PreviewController”)
  5. /usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 409
    OC\AppFramework\Utility\SimpleContainer->query(“OC\Core\Controller\PreviewController”)
  6. /usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 382
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“OC\Core\Controller\PreviewController”)
  7. /usr/local/www/nextcloud/lib/private/AppFramework/App.php line 113
    OC\AppFramework\DependencyInjection\DIContainer->query(“OC\Core\Controller\PreviewController”)
  8. /usr/local/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OC\Core\Controller\PreviewController”, “getPreview”, OC\AppFramework\ … {}, {_route: “core.Preview.getPreview”})
  9. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: “core.Preview.getPreview”})
  10. /usr/local/www/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ … {}, {_route: “core.Preview.getPreview”})
  11. /usr/local/www/nextcloud/lib/base.php line 975
    OC\Route\Router->match("/core/preview.png")
  12. /usr/local/www/nextcloud/index.php line 42
    OC::handleRequest()

GET /index.php/core/preview.png?file=/Nextcloud.png&c=5d1d70c7c5c7ef4531f8142c524618ea&x=150&y=150
from 192.168.11.9 at 2019-07-12T17:22:06-05:00

  • Chrome Browser Log

Errors from the Activity page
Failed to load resource: the server responded with a status of 400 ()

Errors when browsing to:
https://cloud.dixcartel.com/index.php/core/preview.png?file=/nc_install-sens_edit.txt&c=d67a97da1dd9d6b6c8e3a315836882e7&x=150&y=150

/favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()

I’ve taken this over to github as well:

appears to be an issue with Caddy or the Caddy config. Switched to Apache24 cleared the issue.