Nextcloud and Rclone buffering issues

Support intro

Nextcloud version (e.g., 20.0.5): 21.0.2
Operating system and version (e.g., Ubuntu 20.04): Ubuntu 20.04.
Apache or Nginx version (e.g., Apache 2.4.25): Nginx 1.19.
PHP version (e.g., 7.4): 8.0.

The issue you are facing:

Videos buffer too much when playing back from gdrive (mounted via rclone), and the UI gets really unresponsive. Nextcloud, keeps pulling video from the mount, even after the video is closed. Additionally, the next video in the queue starts buffering at the same time, while I am watching the first video.

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

Steps to replicate it:

  1. Mount gdrive with rclone, and connect it as external storage in nextcloud
  2. Play any video
  3. Watch the verbose output of the rclone to find that its buffering, even after the video is exited

The output of your Nextcloud log in Admin > Logging:

Nothing is there in logs (Checked from mounting time to videos buffering time)

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

<?php
$CONFIG = array (
  'instanceid' => 'REMOVED',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' =>
  array (
    0 => 'REMOVED',
  ),
    'memcache.local' => '\OC\Memcache\APCu',
    'filelocking.enabled' => true,
    'memcache.locking' => '\OC\Memcache\Redis',
    'redis' => array(
        'host' => 'localhost',
        'port' => 6379,
        'timeout' => 0.0,
),

  'datadirectory' => '/usr/share/nginx/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => 'REMOVED',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'installed' => true,
 );



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

2021/06/28 05:17:13 [error] 58686#58686: *357 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /"Share Path here" HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"
2021/06/28 05:17:33 [error] 58686#58686: *356 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /"Share Path here" HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"
2021/06/28 05:26:49 [error] 58686#58686: *678 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /cron.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"
2021/06/28 05:27:56 [error] 58686#58686: *708 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /"Share Path here" HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"
2021/06/28 05:27:56 [error] 58686#58686: *710 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /"Share Path here" HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"
2021/06/28 05:27:59 [error] 58686#58686: *675 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP ADDRESS, server: HOST ADDRESS, request: "GET /"Share Path here" HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "HOST ADDRESS"

Rclone related info can be found in the following thread I made here