Every now and then I am unable to open a .txt file from my Nextcloud web interface.
The same error occurs with photo files. And this is not always the case. The permissions seem to be fine (checked from the admin account). Any ideas?
Nextcloud version: 28.0.2
Operating system and version: Linux (customized by QNAP) 5.10.60-qnap
Apache or nginx version : nginx/1.24.0
PHP version_: 8.2.16 (cli)
Is this the first time you’ve seen this error? : Y
Steps to replicate it:
- create file locally 123.txt, put any text inside
- open it from the web interface
- got the error:
The output of my Nextcloud log in Admin > Logging:
{
"reqId": "YhCOLyPHxOkPCScPsYRh",
"level": 3,
"time": "2024-02-27T21:16:05+00:00",
"remoteAddr": "192.168.2.254",
"user": "nextclouduser",
"app": "index",
"method": "PUT",
"url": "/apps/text/session/128405/create",
"message": "Exception thrown: OCP\\Files\\GenericFileException",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
"version": "28.0.2.5",
"exception": {
"Exception": "OCP\\Files\\GenericFileException",
"Message": "",
"Code": 0,
"Trace": [
{
"file": "/config/www/nextcloud/apps/text/lib/Service/ApiService.php",
"line": 293,
"function": "getContent",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/config/www/nextcloud/apps/text/lib/Service/ApiService.php",
"line": 150,
"function": "loadContent",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->"
},
{
"file": "/config/www/nextcloud/apps/text/lib/Controller/SessionController.php",
"line": 61,
"function": "create",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/app/www/public/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "create",
"class": "OCA\\Text\\Controller\\SessionController",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/app/www/public/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/app/www/public/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/app/www/public/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/app/www/public/lib/base.php",
"line": 1069,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/app/www/public/index.php",
"line": 39,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/app/www/public/lib/private/Files/Node/File.php",
"Line": 56,
"message": "",
"exception": [],
"CustomMessage": "Exception thrown: OCP\\Files\\GenericFileException"
},
"id": "65de511b3e55f"
}
The output of my config.php file in /config/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'datadirectory' => '/data',
'instanceid' => 'oc7nlwd2g3ja',
'passwordsalt' => xxx,
'secret' => 'HJXT2gj7BdA9DJVEHmPWAMwilx//+WAMuWF14UOjrcnn8Ecp',
'trusted_domains' =>
array (
0 => 'XXX.XX.XXX.XXX',
),
'dbtype' => 'sqlite3',
'version' => '28.0.2.5',
'overwrite.cli.url' => 'https://192.168.2.34:9443',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\APCu',
'upgrade.disable-web' => true,
'loglevel' => 2,
'maintenance' => false,
);