nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.77k stars 4k forks source link

[18.0.4] New users cannot login #20668

Closed SimplyCorbett closed 4 years ago

SimplyCorbett commented 4 years ago

After creating a new user (with quota assigned, haven't tried without) this error occurs while attempting to login. Login is not possible.

Edit: Issue does not happen with quota disabled.

18.0.3 works fine.

{
  "reqId": "pT5EujlBKB9TrISwmVjQ",
  "level": 3,
  "time": "2020-04-26T13:06:39+00:00",
  "remoteAddr": "10.0.1.25",
  "user": "test1",
  "app": "index",
  "method": "POST",
  "url": "/index.php",
  "message": {
    "Exception": "Exception",
    "Message": "Call to a member function getSize() on bool",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 125,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php",
        "line": 47,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "function": "__invoke",
        "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 299,
        "function": "call_user_func"
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1008,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/html/index.php",
        "line": 38,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 109,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to a member function getSize() on bool",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Quota.php",
          "line": 100,
          "function": "getSize",
          "class": "OC\\Files\\Storage\\Wrapper\\Quota",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Quota.php",
          "line": 216,
          "function": "free_space",
          "class": "OC\\Files\\Storage\\Wrapper\\Quota",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php",
          "line": 82,
          "function": "mkdir",
          "class": "OC\\Files\\Storage\\Wrapper\\Quota",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 1162,
          "function": "mkdir",
          "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 269,
          "function": "basicOperation",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Node/Folder.php",
          "line": 163,
          "function": "mkdir",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Node/Root.php",
          "line": 386,
          "function": "newFolder",
          "class": "OC\\Files\\Node\\Folder",
          "type": "->"
        },
        {
          "function": "getUserFolder",
          "class": "OC\\Files\\Node\\Root",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Node/LazyRoot.php",
          "line": 65,
          "function": "call_user_func_array"
        },
        {
          "file": "/var/www/html/lib/private/Files/Node/LazyRoot.php",
          "line": 282,
          "function": "__call",
          "class": "OC\\Files\\Node\\LazyRoot",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Server.php",
          "line": 1504,
          "function": "getUserFolder",
          "class": "OC\\Files\\Node\\LazyRoot",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/User/Session.php",
          "line": 552,
          "function": "getUserFolder",
          "class": "OC\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/User/Session.php",
          "line": 414,
          "function": "prepareUserLogin",
          "class": "OC\\User\\Session",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/CompleteLoginCommand.php",
          "line": 44,
          "function": "completeLogin",
          "class": "OC\\User\\Session",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/ALoginCommand.php",
          "line": 40,
          "function": "process",
          "class": "OC\\Authentication\\Login\\CompleteLoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/LoggedInCheckCommand.php",
          "line": 50,
          "function": "processNextOrFinishSuccessfully",
          "class": "OC\\Authentication\\Login\\ALoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/ALoginCommand.php",
          "line": 40,
          "function": "process",
          "class": "OC\\Authentication\\Login\\LoggedInCheckCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/EmailLoginCommand.php",
          "line": 58,
          "function": "processNextOrFinishSuccessfully",
          "class": "OC\\Authentication\\Login\\ALoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/ALoginCommand.php",
          "line": 40,
          "function": "process",
          "class": "OC\\Authentication\\Login\\EmailLoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/UidLoginCommand.php",
          "line": 54,
          "function": "processNextOrFinishSuccessfully",
          "class": "OC\\Authentication\\Login\\ALoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/ALoginCommand.php",
          "line": 40,
          "function": "process",
          "class": "OC\\Authentication\\Login\\UidLoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/UserDisabledCheckCommand.php",
          "line": 57,
          "function": "processNextOrFinishSuccessfully",
          "class": "OC\\Authentication\\Login\\ALoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/ALoginCommand.php",
          "line": 40,
          "function": "process",
          "class": "OC\\Authentication\\Login\\UserDisabledCheckCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/PreLoginHookCommand.php",
          "line": 53,
          "function": "processNextOrFinishSuccessfully",
          "class": "OC\\Authentication\\Login\\ALoginCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Authentication/Login/Chain.php",
          "line": 108,
          "function": "process",
          "class": "OC\\Authentication\\Login\\PreLoginHookCommand",
          "type": "->"
        },
        {
          "file": "/var/www/html/core/Controller/LoginController.php",
          "line": 300,
          "function": "process",
          "class": "OC\\Authentication\\Login\\Chain",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 170,
          "function": "tryLogin",
          "class": "OC\\Core\\Controller\\LoginController",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 99,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/App.php",
          "line": 125,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php",
          "line": 47,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "function": "__invoke",
          "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Route/Router.php",
          "line": 299,
          "function": "call_user_func"
        },
        {
          "file": "/var/www/html/lib/base.php",
          "line": 1008,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/var/www/html/index.php",
          "line": 38,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/www/html/lib/private/Files/Storage/Wrapper/Quota.php",
      "Line": 74
    },
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0",
  "version": "18.0.4.2"
}

Configuration: CephFS for the data folder Postgresql Nginx PHP7.4-fpm

  'datadirectory' => '/var/www/drive/data',
  'dbtype' => 'pgsql',
  'version' => '18.0.4.2',
  'overwrite.cli.url' => 'https://dffe',
  'dbname' => 'drive',
  'dbhost' => '10.0.1.3',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'drive',
  'dbpassword' => 'AffffTq3',
  'installed' => true,
  'trusted_proxies' =>
  array (
    0 => '192.168.5.1',
    1 => '20ff175',
    2 => '205.ff.36',
    3 => '205.1ff7.216',
  ),
  'overwritehost' => 'asfsafssa',
  'overwriteprotocol' => 'https',
  'overwritewebroot' => '/',
  'filelocking.enabled' => false,
  'loglevel' => 1,
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '80',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'ffme',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.sendgrid.net',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'apikey',
  'mail_smtppassword' => 'SGffff-g',
  'mail_smtpauthtype' => 'LOGIN',
  'quota_include_external_storage' => true,
  'trashbin_retention_obligation' => '7, 14',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\PDF',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\HEIC',
    5 => 'OC\\Preview\\BMP',
    6 => 'OC\\Preview\\XBitmap',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\Movie',
    11 => 'OC\\Preview\\TIFF',
    12 => 'OC\\Preview\\Photoshop',
  ),
  'theme' => '',
  'maintenance' => false,
skjnldsv commented 4 years ago

Still happening ?

SimplyCorbett commented 4 years ago

I'm not seeing this issue on 19.0.1. I'm also no longer using S3 as my primary storage.

I'll go ahead and close this now.