NC, I installed on a VPS, was working fine. I asked the VPS provider to live upgrade VPS. Following the upgrade, NC is not working anymore.
- NC first displays login screen.
- As soon as I enter credentials, I get “Internal Server Error”
Here is the error from nexcloud.log:
{
"reqId": "X-GC3wms2flvljTRvRm9wAAAAI0",
"level": 3,
"time": "2021-01-03T08:39:59+00:00",
"remoteAddr": "141.98.102.243",
"user": "mufit",
"app": "index",
"method": "POST",
"url": "/index.php/login",
"message": {
"Exception": "BadFunctionCallException",
"Message": "Id is not a valid attribute",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/progs/nextcloud/lib/public/AppFramework/Db/Entity.php",
"line": 151,
"function": "setter",
"class": "OCP\\AppFramework\\Db\\Entity",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
"line": 139,
"function": "__call",
"class": "OCP\\AppFramework\\Db\\Entity",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
"line": 89,
"function": "insert",
"class": "OCP\\AppFramework\\Db\\QBMapper",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Token/Manager.php",
"line": 71,
"function": "generateToken",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/User/Session.php",
"line": 689,
"function": "generateToken",
"class": "OC\\Authentication\\Token\\Manager",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/CreateSessionTokenCommand.php",
"line": 68,
"function": "createSessionToken",
"class": "OC\\User\\Session",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\CreateSessionTokenCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php",
"line": 48,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\CompleteLoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php",
"line": 61,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\LoggedInCheckCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php",
"line": 58,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\EmailLoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php",
"line": 54,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\UidLoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php",
"line": 57,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/ALoginCommand.php",
"line": 40,
"function": "process",
"class": "OC\\Authentication\\Login\\UserDisabledCheckCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php",
"line": 53,
"function": "processNextOrFinishSuccessfully",
"class": "OC\\Authentication\\Login\\ALoginCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Authentication/Login/Chain.php",
"line": 108,
"function": "process",
"class": "OC\\Authentication\\Login\\PreLoginHookCommand",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/core/Controller/LoginController.php",
"line": 307,
"function": "process",
"class": "OC\\Authentication\\Login\\Chain",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "tryLogin",
"class": "OC\\Core\\Controller\\LoginController",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/progs/nextcloud/lib/base.php",
"line": 1008,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/progs/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/html/progs/nextcloud/lib/public/AppFramework/Db/Entity.php",
"Line": 122,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
"version": "20.0.4.0"
}
Nextcloud version: 20.0.4
Operating system and version: CentOS 8
Apache version: 2.4.37
PHP version: 7.4
The issue you are facing:
I am getting “Internal Server Error”.
Is this the first time you’ve seen this error? : yes
Steps to replicate it:
- Resize VPS (enlarge to a bigger HD)
- The error after entering login credentials
The output of your Nextcloud log in **Admin > Logging:
I cannot login. But, please find above the error from nextcloud.log. Sometimes it says “UserId is not a valid attribute”
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array (
'host' => '127.0.0.1',
'port' => 6379,
),
'instanceid' => 'oc0uawibcao5',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'cloud.xxx.com',
),
'datadirectory' => '/home/appdata/nextcloud/data',
'dbtype' => 'mysql',
'version' => '20.0.4.0',
'overwrite.cli.url' => 'https://cloud.xxx.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'xxx',
'installed' => true,
);
No error in the output of your Apache log.
httpd, php-fpm, redis, mysqld services are all working fine.