Nextcloud 25.01 Sidebar issues when previewing files

Hey all, I’m encountering this weird issue with the sidebar after updated to 25.0.1. It seems to be related to individual user’s permissions with files. It seems to not be able to locate the file even though the file is loaded as a preview.

Failed to load resource: the server responded with a status of 404 (Not Found)

vue.runtime.esm.js:3047 Error: AxiosError: Request failed with status code 404
    at Sidebar.vue:441:1
    at u (runtime.js:63:40)
    at Generator._invoke (runtime.js:294:22)
    at Generator.throw (runtime.js:119:21)
    at E (LegacyView.vue?a2e2:19:33)
    at a (LegacyView.vue?a2e2:19:33)

Nextcloud version (eg, 20.0.5): 25.0.1
Operating system and version (eg, Ubuntu 20.04): Debian 10
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian)
PHP version (eg, 7.4): 7.4.33

The issue you are facing:

Sidebar is not loading properly when users access a file not directly shared with them.

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

Steps to replicate it:

1. Create file in a shared folder
2. Have another user with permissions on the folder but not the individual file open it in a preview window
3. Click on the drop down to open the side bar, it will re-adjust the preview window but not load the sidebar
4. Loading the same pane outside of the preview window via “…” and info works without issue

The output of your Nextcloud log in Admin > Logging:

[onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error: `POST https://cloud.rainforestfoundation.org/owncloud/apps/documentserver_community/ConvertService.ashx` resulted in a `500 Internal Server Error` response:
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
	<head
 data-requesttok (truncated...)
 at <<closure>>

 0. /var/www/owncloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create()
 1. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
 3. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
 5. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
 6. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
 7. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
 8. /var/www/owncloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
 9. /var/www/owncloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
10. /var/www/owncloud/lib/private/Http/Client/Client.php line 289
    GuzzleHttp\Client->request()
11. /var/www/owncloud/apps/onlyoffice/lib/documentservice.php line 372
    OC\Http\Client\Client->post()
12. /var/www/owncloud/apps/onlyoffice/lib/documentservice.php line 177
    OCA\Onlyoffice\DocumentService->Request()
13. /var/www/owncloud/apps/onlyoffice/lib/documentservice.php line 91
    OCA\Onlyoffice\DocumentService->SendRequestToConvertService()
14. /var/www/owncloud/apps/onlyoffice/lib/preview.php line 269
    OCA\Onlyoffice\DocumentService->GetConvertedUri()
15. /var/www/owncloud/lib/private/Preview/ProviderV1Adapter.php line 53
    OCA\Onlyoffice\Preview->getThumbnail()
16. /var/www/owncloud/lib/private/Preview/GeneratorHelper.php line 65
    OC\Preview\ProviderV1Adapter->getThumbnail()
17. /var/www/owncloud/lib/private/Preview/Generator.php line 343
    OC\Preview\GeneratorHelper->getThumbnail()
18. /var/www/owncloud/lib/private/Preview/Generator.php line 162
    OC\Preview\Generator->getMaxPreview()
19. /var/www/owncloud/lib/private/Preview/Generator.php line 114
    OC\Preview\Generator->generatePreviews()
20. /var/www/owncloud/lib/private/PreviewManager.php line 185
    OC\Preview\Generator->getPreview()
21. /var/www/owncloud/core/Controller/PreviewController.php line 144
    OC\PreviewManager->getPreview()
22. /var/www/owncloud/core/Controller/PreviewController.php line 113
    OC\Core\Controller\PreviewController->fetchPreview()
23. /var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OC\Core\Controller\PreviewController->getPreviewByFileId()
24. /var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
25. /var/www/owncloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
26. /var/www/owncloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
27. /var/www/owncloud/lib/base.php line 1047
    OC\Route\Router->match()
28. /var/www/owncloud/index.php line 36
    OC::handleRequest()

GET /owncloud/core/preview?fileId=1619602&c=fd91c21a47aed7651cc6eca62464a87f&x=450&y=450&forceIcon=0&a=0
from [REDACTED] by [REDACTED] at 2022-11-18T18:23:55+00:00

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

<?php
$CONFIG = array (
  'updatechecker' => false,
  'instanceid' => '[REDACTED]',
  'passwordsalt' => ''[REDACTED]',
  'secret' => ''[REDACTED]',
  'trusted_domains' => 
  array (
    0 => ''[REDACTED]',
  ),
  'datadirectory' => '/srv/owncloud',
  'overwrite.cli.url' => ''[REDACTED]',
  'dbtype' => 'mysql',
  'version' => '25.0.1.1',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => ''[REDACTED]',
  'dbpassword' => ''[REDACTED]',
  'default_phone_region' => 'US',
  'logtimezone' => 'UTC',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'owncloud',
  'mail_domain' => ''[REDACTED]',
  'mail_smtpauth' => 1,
  'mail_smtphost' => ''[REDACTED]',
  'mail_smtpport' => '587',
  'mail_smtpname' => ''[REDACTED]',
  'mail_smtppassword' => ''[REDACTED]',
  'mail_smtpsecure' => 'tls',
  'maintenance' => false,
  'loglevel' => 2,
  'htaccess.RewriteBase' => '/owncloud',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
  ),
  'theme' => '',
  'mysql.utf8mb4' => true,
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'app_install_overwrite' => 
  array (
    0 => 'documentserver_community',
  ),
);

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

[Fri Nov 18 00:00:05.344710 2022] [mpm_prefork:notice] [pid 954] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Fri Nov 18 00:00:05.344746 2022] [core:notice] [pid 954] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 18 05:28:27.355137 2022] [php7:error] [pid 19691] [client 20.163.104.41:50960] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Fri Nov 18 06:32:32.627611 2022] [core:error] [pid 20305] [client 185.224.128.15:57024] AH00126: Invalid URI in request GET /../../../mnt/mtd/Config/Account1 HTTP/1.1
[Fri Nov 18 10:14:06.017130 2022] [php7:error] [pid 27660] [client 5.188.210.227:48813] script '/var/www/html/echo.php' not found or unable to stat, referer: https://www.google.com/
cat: /sys/class/net/eth1/speed: Invalid argument
cat: /sys/class/net/eth1/duplex: Invalid argument
[Fri Nov 18 12:15:26.090845 2022] [mpm_prefork:notice] [pid 954] AH00169: caught SIGTERM, shutting down
[Fri Nov 18 12:15:26.572431 2022] [mpm_prefork:notice] [pid 32401] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Fri Nov 18 12:15:26.572490 2022] [core:notice] [pid 32401] AH00094: Command line: '/usr/sbin/apache2'

Hello,

Having similar issue since yesterday, that upgraded to 25.01. Sidebar is not loading if document is opened within Dashboard or recent files. Sidebar opens normally if the document is opened from document list or folder. Nothing showing at /var/log/nginx/error.log. Any workaround to solve it would be appreciated.

Thanks,

Hi, please try again with 25.0.2

With channel stable enabled at admin, the last version available is 25.01

yes, 25.0.2 will likely come out in a week.

ok thanks @szaimen

Thanks, I’ll make sure I try that!

Just ran the 25.0.2 update and it seems to have resolved the issue so far!