Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 26.0.0
Operating system and version (eg, Ubuntu 20.04): Alpine Linux v3.17
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.1
The issue you are facing:
Upgraded my server from 25.0.4 to 26.0.0, now a user is facing 500 when accessing files.
Is this the first time you’ve seen this error? (Y/N): Y
On a VM I cloned the server with backup (nextcloud programs, data and mariadb dump), I upgraded with the same procedure but the error did not appear.
Steps to replicate it:
- Standard steps upgrading 25.0.4 to 26.0.0
- Start apache2 service
- Use browser to login to an account I created
later on
. - The login appears normal, but if I click on any files that’s not preview-able in the recommendation (txt files are okay), I ended up with a 500 message. Clicking on “Files” on the top left corner also resulted the same.
- Log in as admin users worked mostly fine but I cannot access the User panel without infinite loading and triggering “An error occurred during the request. Unable to proceed.”.
The output of your Nextcloud log in Admin > Logging:
[index] Error: Exception: Cannot assign float to property OC\Files\Storage\Wrapper\Quota::$quota of type ?int in file '/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php' line 68 at <<closure>>
0. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()
1. /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
2. /var/www/nextcloud/lib/base.php line 1055
OC\Route\Router->match()
3. /var/www/nextcloud/index.php line 36
OC::handleRequest()
Caused by:
TypeError: Cannot assign float to property OC\Files\Storage\Wrapper\Quota::$quota of type ?int at <<closure>>
0. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 75
OC\Files\Storage\Wrapper\Quota->getQuota()
1. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 172
OC\Files\Storage\Wrapper\Quota->hasQuota()
2. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 298
OC\Files\Storage\Wrapper\Quota->fopen()
3. /var/www/nextcloud/lib/private/Files/View.php line 1180
OC\Files\Storage\Wrapper\Wrapper->fopen()
4. /var/www/nextcloud/lib/private/Files/View.php line 1006
OC\Files\View->basicOperation()
5. /var/www/nextcloud/lib/private/Files/Node/File.php line 114
OC\Files\View->fopen()
6. /var/www/nextcloud/lib/private/Preview/TXT.php line 59
OC\Files\Node\File->fopen()
7. /var/www/nextcloud/lib/private/Preview/GeneratorHelper.php line 64
OC\Preview\TXT->getThumbnail()
8. /var/www/nextcloud/lib/private/Preview/Generator.php line 440
OC\Preview\GeneratorHelper->getThumbnail()
9. /var/www/nextcloud/lib/private/Preview/Generator.php line 164
OC\Preview\Generator->getMaxPreview()
10. /var/www/nextcloud/lib/private/Preview/Generator.php line 116
OC\Preview\Generator->generatePreviews()
11. /var/www/nextcloud/lib/private/PreviewManager.php line 192
OC\Preview\Generator->getPreview()
12. /var/www/nextcloud/core/Controller/PreviewController.php line 144
OC\PreviewManager->getPreview()
13. /var/www/nextcloud/core/Controller/PreviewController.php line 113
OC\Core\Controller\PreviewController->fetchPreview()
14. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
OC\Core\Controller\PreviewController->getPreviewByFileId()
15. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController()
16. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()
17. /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
18. /var/www/nextcloud/lib/base.php line 1055
OC\Route\Router->match()
19. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /index.php/core/preview?fileId=1809&x=250&y=250
from 192.168.122.1 by Work at 2023-03-31T15:11:52+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '1ebfb62c42a4',
'passwordsalt' => '30a8d4ea5f4713695fe3cb82abcf4004',
'secret' => '184cd8ecc7bc3039b9629330054c7e36',
'trusted_domains' =>
array (
0 => '127.0.0.1',
1 => '192.168.1.201',
),
'datadirectory' => '/ncdata',
'dbtype' => 'mysql',
'version' => '26.0.0.11',
'overwrite.cli.url' => 'http://127.0.0.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '65aa64bdac7aa95ea3b3',
'installed' => true,
'maintenance_window_start' => 16,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis.sock',
'port' => 0,
),
'trusted_proxies' =>
array (
0 => '192.168.1.100',
),
'skeletondirectory' => '',
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
error.log
[Fri Mar 31 14:47:59.135854 2023] [mpm_prefork:notice] [pid 2332] AH00169: caught SIGTERM, shutting down
[Fri Mar 31 15:09:53.766944 2023] [lbmethod_heartbeat:notice] [pid 1983] AH02282: No slotmem from mod_heartmonitor
[Fri Mar 31 15:09:53.768193 2023] [mpm_prefork:notice] [pid 1983] AH00163: Apache/2.4.56 (Unix) PHP/8.1.17 configured -- resuming normal operations
[Fri Mar 31 15:09:53.768210 2023] [core:notice] [pid 1983] AH00094: Command line: '/usr/sbin/httpd -d /var/www -f /etc/apache2/httpd.conf'
access.log
192.168.122.1 - - [31/Mar/2023:15:16:25 +0000] "GET /index.php/f/2219 HTTP/1.1" 303 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
192.168.122.1 - - [31/Mar/2023:15:16:25 +0000] "GET /index.php/apps/files/?dir=/Documents/Work/files.pptx&openfile=2219&scrollto=files.pptx HTTP/1.1" 500 4726 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
192.168.122.1 - - [31/Mar/2023:15:16:25 +0000] "GET /dist/core-common.js?v=085db5fb-0 HTTP/1.1" 200 15071827 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
Output of nextcloud.log
. Mostly duplicate entries of:
{"reqId":"ALpzhdLZ029SYQXpFyUA","level":3,"time":"2023-03-31T15:16:25+00:00","remoteAddr":"192.168.122.1","user":"Work","app":"index","method":"GET","url":"/index.php/apps/files/?dir=/Documents/Work/file.pptx&openfile=2219&scrollto=file.pptx","message":"Cannot assign float to property OC\\Files\\Storage\\Wrapper\\Quota::$quota of type ?int in file '/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php' line 68","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"26.0.0.11","exception":{"Exception":"Exception","Message":"Cannot assign float to property OC\\Files\\Storage\\Wrapper\\Quota::$quota of type ?int in file '/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php' line 68","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"Cannot assign float to property OC\\Files\\Storage\\Wrapper\\Quota::$quota of type ?int","Code":0,"Trace":[{"function":"getQuota","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":524,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Helper.php","line":522,"function":"__call","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":142,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":243,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php","Line":68},"CustomMessage":"--"}}