NoUserException after upgrade to NC29

i have updated my NC from 27 to 29 version step by step.
Also i have updated OnlyOffice to last version. Onlyoffice works correctly.

Now i have errors in Logging in NC:
|Error|onlyoffice|NoUserExceptionBackends provided no user object getFile: 3149106|
|Error|files|NoUserExceptionBackends provided no user object Backends provided no user object for|

More NC logs:
{“reqId”:“DJsCc113ajC9q9WGaLeT”,“level”:0,“time”:“June 04, 2024 12:39:59”,“remoteAddr”:“x.x.x.x”,“user”:“–”,“app”:“onlyoffice”,“method”:“GET”,“url”:“/nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsI
mZpbGVJZCI6MzE0OTEwNn0.Sn-iPUm3hYTnWMMoywRaotJi–9AnDY-0U16JshpxEo”,“message”:“Download: 3149106 ()”,“userAgent”:“Node.js/6.13”,“version”:“29.0.1.1”,“data”:{“app”:“onlyoffice”}}

[/details]

Nextcloud version 29.0.1
Operating system and version Ubuntu 20.04
Apache or nginx version Apache 2.4.58
PHP version 8.2.19

OnlyOffice 8.01.31
Ubuntu 22.04
NGINX 1.18.0

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

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'trusted_domains' =>
  array (
    0 => 'xxxx',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.1.1',
  'overwrite.cli.url' => 'xxxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => 'nextcloud.log',
  'logdateformat' => 'F d, Y H:i:s',
  'app.mail.verify-tls-peer' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'updater.release.channel' => 'stable',
  'auto_logout' => false,
  'session_lifetime' => 86400,
  'session_keepalive' => true,
  'remember_login_cookie_lifetime' => 0,
  'maintenance_window_start' => 1,
);

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

x.x.x.x.- - [05/Jun/2024:12:47:41 +0500] "GET /nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MzMyMjUxNH0.6yliUrj07g3heeb9SNAA0eDlXtRR85LBl2lkzUS8qm4 HTTP/1.1" 400 4793 "-" "Node.js/6.13"

Please. help!

Please post the full raw log entry.

Also, are you getting these regularly or were they just briefly right after the update? I ask because the entry you posted after this indicates it would only be logged at level 0, which is not your current log level.

I have the same problem.

i have these errors every second.

  • 105599 errors in the logs since 4 июня 2024 г., 00:08:20
    I changed log level to see log with more details.

Nextcloud Logs


{"reqId":"DJsCc113ajC9q9WGaLeT","level":0,"time":"June 04, 2024 12:39:59","remoteAddr":"IP-address","user":"--","app":"onlyoffice","method":"GET","url":"/nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsI
mZpbGVJZCI6MzE0OTEwNn0.Sn-iPUm3hYTnWMMoywRaotJi--9AnDY-0U16JshpxEo","message":"Download: 3149106 ()","userAgent":"Node.js/6.13","version":"29.0.1.1","data":{"app":"onlyoffice"}}
{"reqId":"DJsCc113ajC9q9WGaLeT","level":3,"time":"June 04, 2024 12:39:59","remoteAddr":"IP-address","user":"--","app":"files","method":"GET","url":"/nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbG
VJZCI6MzE0OTEwNn0.Sn-iPUm3hYTnWMMoywRaotJi--9AnDY-0U16JshpxEo","message":"Backends provided no user object for ","userAgent":"Node.js/6.13","version":"29.0.1.1","exception":{"Exception":"OC\\User\\NoUserException","Message":"Backends provided no user object","Code":0,"Tra
ce":[{"function":"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":84,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyRoot.php","line":53,"functi
on":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Controller/CallbackController.php","line":669,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->"},{"file":"/var/www/nextcloud/apps/onlyo
ffice/lib/Controller/CallbackController.php","line":268,"function":"getFile","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"download","class":"OCA\\Onl
yoffice\\Controller\\CallbackController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppF
ramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib
/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":370,"message":"Back
ends provided no user object for ","exception":{},"CustomMessage":"Backends provided no user object for "}}
{"reqId":"DJsCc113ajC9q9WGaLeT","level":3,"time":"June 04, 2024 12:39:59","remoteAddr":"IP-address","user":"--","app":"onlyoffice","method":"GET","url":"/nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsI
mZpbGVJZCI6MzE0OTEwNn0.Sn-iPUm3hYTnWMMoywRaotJi--9AnDY-0U16JshpxEo","message":"getFile: 3149106","userAgent":"Node.js/6.13","version":"29.0.1.1","exception":{"Exception":"OC\\User\\NoUserException","Message":"Backends provided no user object","Code":0,"Trace":[{"function"
:"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":84,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyRoot.php","line":53,"function":"__call","cl
ass":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Controller/CallbackController.php","line":669,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Contro
ller/CallbackController.php","line":268,"function":"getFile","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"download","class":"OCA\\Onlyoffice\\Control
ler\\CallbackController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php
","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line
":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":370,"message":"getFile: 3149106","C
ustomMessage":"getFile: 3149106"}}

OnlyOffice Logs

> [2024-06-05T00:00:19.221] [ERROR] [localhost] [conv_943738154_jpeg] [userId] nodeJS - error downloadFile:url=https:/IP-address/nextcloud/index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6NTQxODgw
> NH0.C2hH74FOnbYAzqArfcPBmpOwezCbk5hlJARB9B0pzYM;attempt=3;code:null;connect:null Error: Error response: statusCode:400; headers:{"date":"Tue, 04 Jun 2024 19:00:19 GMT","server":"Apache","expires":"Thu, 19 Nov 1981 08:52:00 GMT","pragma":"no-cache","x-request-id":"p0e2DVAU
> 8K3qwVo6wz6w","cache-control":"no-cache, no-store, must-revalidate","content-security-policy":"default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'","feature-policy":"autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'n
> one';payment 'none'","x-robots-tag":"noindex, nofollow","set-cookie":["oc_sessionPassphrase=SdpiH26rNFhho%2FD42H9aE3Ef85cOL2mJdb1iL6kN7jJzhLD3TnQi61g7A0xeLezNWZmKjHQxz8bFD6KEVGXLVhWP%2FTilR91rzmsq3u3f7dUty0qx36qBWay4k6seAq5q; path=/nextcloud; secure; HttpOnly; SameSite=La
> x","nc_sameSiteCookielax=true; path=/nextcloud; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","nc_sameSiteCookiestrict=true; path=/nextcloud; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict","occ65su0iz65=lafaohp36ieelugqe0s
> jdmea2u; path=/nextcloud; secure; HttpOnly; SameSite=Lax"],"strict-transport-security":"max-age=15552000; includeSubDomains","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss
> -protection":"1; mode=block","content-length":"29","connection":"close","content-type":"application/json; charset=utf-8"};
>     at Request.fResponse (/snapshot/server/Common/sources/utils.js)
>     at Request.emit (node:events:527:28)
>     at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
>     at ClientRequest.emit (node:events:527:28)
>     at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
>     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
>     at TLSSocket.socketOnData (node:_http_client:494:22)
>     at TLSSocket.emit (node:events:527:28)
>     at addChunk (node:internal/streams/readable:315:12)
>     at readableAddChunk (node:internal/streams/readable:289:9)
>     at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
>     at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

i updated my NC to 29.0.2 and do not have these errors any more.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.