nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

18.0.3 -> 18.0.4 breaks collabora #923

Closed SimplyCorbett closed 4 years ago

SimplyCorbett commented 4 years ago

Preface: Have reinstalled three times, including a manual upgrade. I have tried a fresh installation. Collabora does not work in 18.0.4, period. I was also able to replicate this in NC 19 beta 5.

Steps to reproduce:

Upgrade from 18.0.3 to 18.0.4.

Configuration:

Cephfs for data folder. PHP7.4-FPM Nginx Postgresql

Error:

Failed to read document storage.

{"reqId":"tDzZSJyGPFGDixN0aQUi","level":3,"time":"2020-04-24T19:16:42+00:00","remoteAddr":"10.0.1.25","user":"paradox","app":"PHP","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":"Undefined index: ownerDisplayName at /var/www/html/apps/files/lib/Helper.php#64","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.4.2"}
{"reqId":"uCXyKwu4Qp5xakmKRF37","level":3,"time":"2020-04-24T19:16:48+00:00","remoteAddr":"209ff75","user":"--","app":"index","method":"GET","url":"/index.php/apps/richdocuments/wopi/files/6373_ocbft751l1q3/contents?access_token=HfCMipkb1DS2HmUZk3GKKvytMLqnfUvo&access_token_ttl=0","message":{"Exception":"Exception","Message":"Call to a member function getFileInfo() on null","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 getFileInfo() on null","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Quota.php","line":73,"function":"getFileInfo","class":"OC\\Files\\Filesystem","type":"::"},{"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":161,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->"},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":299,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":1160,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/View.php","line":996,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":114,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/apps/richdocuments/lib/Controller/WopiController.php","line":360,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getFile","class":"OCA\\Richdocuments\\Controller\\WopiController","type":"->"},{"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/Filesystem.php","Line":860},"CustomMessage":"--"},"userAgent":"LOOLWSD WOPI Agent 4.2.2","version":"18.0.4.2"}

Server configuration (happens when using LAN as well, without using the proxies):

  '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,
umlaeute commented 4 years ago

have you tried following the upgrade instructions in https://github.com/nextcloud/richdocuments/issues/917#issuecomment-619104454 ?

SimplyCorbett commented 4 years ago

have you tried following the upgrade instructions in #917 (comment) ?

No. I ended up fixing this by removing this line:

'quota_include_external_storage' => true,