Nextcloud update failure

i think i’m still having issues when the notifications app is enabled. the desktop sync client has intermittent issues and when i use Floccus to sync my bookmarks. not sure yet what’s going on there.

Could you create an issue at Issues · nextcloud/server · GitHub
I cannot reproduce this, but I am not a heavy user of Nextcloud I only use Files and Calendar/Contacts.
While I have notifications app it does not produce any error, why do you need it?

Ok I did some investigating and discovered at least I think that it is TOTP actually conflicting, as i was able to log in with my secondary account that does not have TOTP enabled. Can you test that? It seems my logs now say SABRE failed and not notifications anymore (still not home to disable in person)

i’m not using TOTP but I wonder if it’s related somehow to notifiactions?

If you have openvpn app you could always ssh from the phone, I do it a lot

Yeah though i did not enable the port for it on the router

Interesting I think more apps you use on Nextcloud more risky the upgrade is as I think apps know too much about Nextcloud. On Syncloud level apps are very independent.

I never used TOTP Nexcloud app instead I use Authenticator on my phone. Probably we could add some independent TOTP app (like this GitHub - Bubka/2FAuth: A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes for example)

Trying to make sense of this after disabling TOTP and Notifications

Aug 01 02:21:06 syncloud Nextcloud[28002]: {"reqId":"YqMYYGe2369QAFU01LpX","level":3,"time":"2023-08-01T02:21:06+00:00","remoteAddr":"192.168.1.1","user":"marxistvegan","app":"core","method":"GET","url":"/apps/dashboard/","message":"{\"Exception\":\"OCP\\\\AppFramework\\\\Db\\\\MultipleObjectsReturnedException\",\"Message\":\"Did not expect more than one result when executing: query \\\"SELECT * FROM `*PREFIX*user_status` WHERE `user_id` = :dcValue1\\\"; \",\"Code\":0,\"Trace\":[{\"file\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"line\":361,\"function\":\"findOneQuery\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Db/UserStatusMapper.php\",\"line\":111,\"function\":\"findEntity\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/StatusService.php\",\"line\":153,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Db\\\\UserStatusMapper\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/JSDataService.php\",\"line\":60,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\StatusService\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"function\":\"jsonSerialize\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":68,\"function\":\"json_encode\",\"args\":[[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"],4194304]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":92,\"function\":\"provideInitialState\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[\"user_status\",\"status\",[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":143,\"function\":\"invokeLazyStateCallbacks\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/TemplateLayout.php\",\"line\":295,\"function\":\"getInitialStates\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/legacy/OC_Template.php\",\"line\":182,\"function\":\"__construct\",\"class\":\"OC\\\\TemplateLayout\",\"type\":\"->\",\"args\":[\"error\",\"\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/Template/Base.php\",\"line\":132,\"function\":\"fetchPage\",\"class\":\"OC_Template\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/legacy/OC_Template.php\",\"line\":331,\"function\":\"printPage\",\"class\":\"OC\\\\Template\\\\Base\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/index.php\",\"line\":74,\"function\":\"printExceptionErrorPage\",\"class\":\"OC_Template\",\"type\":\"::\",\"args\":[[\"OCP\\\\AppFramework\\\\Db\\\\MultipleObjectsReturnedException\"],500]}],\"File\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"Line\":292,\"CustomMessage\":\"--\"}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.1.2"}

Aug 01 02:21:06 syncloud Nextcloud[28002]: {"reqId":"YqMYYGe2369QAFU01LpX","level":3,"time":"2023-08-01T02:21:06+00:00","remoteAddr":"192.168.1.1","user":"marxistvegan","app":"core","method":"GET","url":"/apps/dashboard/","message":"{\"Exception\":\"OCP\\\\AppFramework\\\\Db\\\\MultipleObjectsReturnedException\",\"Message\":\"Did not expect more than one result when executing: query \\\"SELECT * FROM `*PREFIX*user_status` WHERE `user_id` = :dcValue1\\\"; \",\"Code\":0,\"Trace\":[{\"file\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"line\":361,\"function\":\"findOneQuery\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Db/UserStatusMapper.php\",\"line\":111,\"function\":\"findEntity\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/StatusService.php\",\"line\":153,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Db\\\\UserStatusMapper\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/JSDataService.php\",\"line\":60,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\StatusService\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"function\":\"jsonSerialize\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":68,\"function\":\"json_encode\",\"args\":[[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"],4194304]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":92,\"function\":\"provideInitialState\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[\"user_status\",\"status\",[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":143,\"function\":\"invokeLazyStateCallbacks\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/TemplateLayout.php\",\"line\":295,\"function\":\"getInitialStates\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/legacy/OC_Template.php\",\"line\":182,\"function\":\"__construct\",\"class\":\"OC\\\\TemplateLayout\",\"type\":\"->\",\"args\":[\"user\",\"dashboard\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php\",\"line\":213,\"function\":\"fetchPage\",\"class\":\"OC_Template\",\"type\":\"->\",\"args\":[[\"#app-dashboard\",null]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":182,\"function\":\"render\",\"class\":\"OCP\\\\AppFramework\\\\Http\\\\TemplateResponse\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/AppFramework/App.php\",\"line\":183,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[[\"OCA\\\\Dashboard\\\\Controller\\\\DashboardController\"],\"index\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/Route/Router.php\",\"line\":315,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"OCA\\\\Dashboard\\\\Controller\\\\DashboardController\",\"index\",[\"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer\"],[\"dashboard.dashboard.index\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/base.php\",\"line\":1071,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/apps/dashboard/\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/index.php\",\"line\":36,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\",\"args\":[]}],\"File\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"Line\":292,\"CustomMessage\":\"--\"}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.1.2"}

Aug 01 02:21:06 syncloud Nextcloud[28002]: {"reqId":"YqMYYGe2369QAFU01LpX","level":3,"time":"2023-08-01T02:21:06+00:00","remoteAddr":"192.168.1.1","user":"marxistvegan","app":"index","method":"GET","url":"/apps/dashboard/","message":"{\"Exception\":\"OCP\\\\AppFramework\\\\Db\\\\MultipleObjectsReturnedException\",\"Message\":\"Did not expect more than one result when executing: query \\\"SELECT * FROM `*PREFIX*user_status` WHERE `user_id` = :dcValue1\\\"; \",\"Code\":0,\"Trace\":[{\"file\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"line\":361,\"function\":\"findOneQuery\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Db/UserStatusMapper.php\",\"line\":111,\"function\":\"findEntity\",\"class\":\"OCP\\\\AppFramework\\\\Db\\\\QBMapper\",\"type\":\"->\",\"args\":[[\"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/StatusService.php\",\"line\":153,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Db\\\\UserStatusMapper\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/apps/user_status/lib/Service/JSDataService.php\",\"line\":60,\"function\":\"findByUserId\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\StatusService\",\"type\":\"->\",\"args\":[\"marxistvegan\"]},{\"function\":\"jsonSerialize\",\"class\":\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":68,\"function\":\"json_encode\",\"args\":[[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"],4194304]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":92,\"function\":\"provideInitialState\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[\"user_status\",\"status\",[\"OCA\\\\UserStatus\\\\Service\\\\JSDataService\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/InitialStateService.php\",\"line\":143,\"function\":\"invokeLazyStateCallbacks\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/TemplateLayout.php\",\"line\":295,\"function\":\"getInitialStates\",\"class\":\"OC\\\\InitialStateService\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/legacy/OC_Template.php\",\"line\":182,\"function\":\"__construct\",\"class\":\"OC\\\\TemplateLayout\",\"type\":\"->\",\"args\":[\"user\",\"dashboard\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php\",\"line\":213,\"function\":\"fetchPage\",\"class\":\"OC_Template\",\"type\":\"->\",\"args\":[[\"#app-dashboard\",null]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":182,\"function\":\"render\",\"class\":\"OCP\\\\AppFramework\\\\Http\\\\TemplateResponse\",\"type\":\"->\",\"args\":[]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/AppFramework/App.php\",\"line\":183,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[[\"OCA\\\\Dashboard\\\\Controller\\\\DashboardController\"],\"index\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/private/Route/Router.php\",\"line\":315,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"OCA\\\\Dashboard\\\\Controller\\\\DashboardController\",\"index\",[\"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer\"],[\"dashboard.dashboard.index\"]]},{\"file\":\"/snap/nextcloud/720/nextcloud/lib/base.php\",\"line\":1071,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/apps/dashboard/\"]},{\"file\":\"/snap/nextcloud/720/nextcloud/index.php\",\"line\":36,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\",\"args\":[]}],\"File\":\"/snap/nextcloud/720/nextcloud/lib/public/AppFramework/Db/QBMapper.php\",\"Line\":292,\"CustomMessage\":\"--\"}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.1.2"}

Now it is user_status.

Can you show apps you have?

snap run nextcloud.occ app:list

Also try to update all apps

snap run nextcloud.occ app:update --all

If that does not help try to disable user_status for now

snap run nextcloud.occ app:disable user_status

yep

root@syncloud:~/snap/nextcloud# snap run nextcloud.occ app:list
Enabled:
  - activity: 2.19.0
  - bruteforcesettings: 2.7.0
  - calendar: 4.4.3
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.10.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - gpoddersync: 3.8.1
  - integration_google: 2.0.2
  - integration_mastodon: 2.0.2
  - integration_openai: 1.0.11
  - integration_twitter: 1.0.6
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.2.5
  - memories: 5.2.1
  - news: 22.0.0
  - nextcloud_announcements: 1.16.0
  - notes: 4.8.1
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - photos: 2.3.0
  - previewgenerator: 5.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recognize: 4.3.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.1.0
  - richdocumentscode: 23.5.104
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.0.3
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - user_ldap: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - circles: 27.0.1 (installed 25.0.0)
  - encryption: 2.15.0
  - files_external: 1.19.0
  - notifications: 2.15.0 (installed 2.15.0)
  - suspicious_login: 5.0.0 (installed 4.4.0)
  - twofactor_totp: 9.0.0 (installed 9.0.0)

Disabling user_status did get me back into the web ui, so it is functional for the moment. What is the thought here on why it is giving an issue?

did you upgrade apps before disabling?
try enabling again (this helped with notifications somehow)

not clear what is happening, we do the following during the upgrade:

        self.occ.run('maintenance:mode --on')
        try:
            self.occ.run('upgrade')
            self.occ.run('app:update --all')
        except CalledProcessError as e:
            self.log.warn('unable to upgrade')
            self.log.warn(e.output.decode())

        self.occ.run('maintenance:mode --off')
        self.occ.run('db:add-missing-indices')
        self.occ.run('db:add-missing-columns')

probably something happened during the upgrade, then logs should show unable to upgrade

Probably I should not swallow errors during the upgrade these days as upgrades are properly transactional now and if I allow upgrade to fail it will automatically rollback to the last working version.

Yeah honestly I dont get notifications when an upgrade is going to happen or at least I dont check often since the auto updates. I from time to will update apps in nextcloud, but since I am not timing it I am not certain what is the best practice. What is odd to me is that i have two users on here one as a overall admin and I was able to log in fine on that, but not on the one I primarily use.

Pushed an update with upgrade improvement (726). All updates are automatic so you should not do anything.

not sure what happened, but this update seems to have corrupted my Nextcloud instance. it’s still up and running and I can get to everything. But when I get into the files, directories are moved around and missing. almost like something got scrambled.

Is this correct?

snap run nextcloud.occ config:system:get datadirectory

If you list the directory shown above do you see your files?

ls -ls [datadirectory]

If you see them but not on nextcloud you can run this command:

snap run nextcloud.occ files:scan --all

And check again

the only difference in this update was the addition of this command as suggested by Nextcloud doc:

db:add-missing-primary-keys

snap run nextcloud.occ config:system:get datadirectory

/opt/disk/internal/nextcloud

snap run nextcloud.occ files:scan --all

An unhandled exception has been thrown:
Error: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation() in /snap/nextcloud/726/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:101
Stack trace:
#0 /snap/nextcloud/726/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1153): Doctrine\DBAL\Driver\PDO\Statement->execute()
#1 /snap/nextcloud/726/nextcloud/lib/private/DB/Connection.php(295): Doctrine\DBAL\Connection->executeStatement('UPDATE "oc_file...', Array, Array)
#2 /snap/nextcloud/726/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(354): OC\DB\Connection->executeStatement('UPDATE "oc_file...', Array, Array)
#3 /snap/nextcloud/726/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#4 /snap/nextcloud/726/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(326): OC\DB\QueryBuilder\QueryBuilder->execute()
#5 /snap/nextcloud/726/nextcloud/lib/private/Lock/DBLockingProvider.php(189): OC\DB\QueryBuilder\QueryBuilder->executeStatement()
#6 /snap/nextcloud/726/nextcloud/lib/private/Files/Storage/Common.php(798): OC\Lock\DBLockingProvider->releaseLock('files/215721961...', 1)
#7 /snap/nextcloud/726/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(618): OC\Files\Storage\Common->releaseLock('files/Joplin/92...', 1, Object(OC\Lock\DBLockingProvider))
#8 /snap/nextcloud/726/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(618): OC\Files\Storage\Wrapper\Wrapper->releaseLock('files/Joplin/92...', 1, Object(OC\Lock\DBLockingProvider))
#9 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(262): OC\Files\Storage\Wrapper\Wrapper->releaseLock('files/Joplin/92...', 1, Object(OC\Lock\DBLockingProvider))
#10 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(457): OC\Files\Cache\Scanner->scanFile('files/Joplin/92...', 3, 1452550, false, true, Array)
#11 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(397): OC\Files\Cache\Scanner->handleChildren('files/Joplin', true, 3, 1452550, true, 33015175)
#12 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(400): OC\Files\Cache\Scanner->scanChildren('files/Joplin', true, 3, 1452550, true, -1)
#13 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(400): OC\Files\Cache\Scanner->scanChildren('files', true, 3, 1452545, true, -1)
#14 /snap/nextcloud/726/nextcloud/lib/private/Files/Cache/Scanner.php(347): OC\Files\Cache\Scanner->scanChildren('', true, 3, 34, true, -1)
#15 /snap/nextcloud/726/nextcloud/lib/private/Files/Utils/Scanner.php(269): OC\Files\Cache\Scanner->scan('', true, 3)
#16 /snap/nextcloud/726/nextcloud/apps/files/lib/Command/Scan.php(164): OC\Files\Utils\Scanner->scan('/root', true, NULL)
#17 /snap/nextcloud/726/nextcloud/apps/files/lib/Command/Scan.php(219): OCA\Files\Command\Scan->scanFiles('root', '/root', false, Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false)
#18 /snap/nextcloud/726/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /snap/nextcloud/726/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /snap/nextcloud/726/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /snap/nextcloud/726/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /snap/nextcloud/726/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /snap/nextcloud/726/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /snap/nextcloud/726/nextcloud/console.php(100): OC\Console\Application->run()
#25 /snap/nextcloud/726/nextcloud/occ(11): require_once('/snap/nextcloud...')

Are you normally using external disk or not?
Currently you are on internal?

no external, just a single internal 500gb ssd

it’s interesting, i have ~50gb of data but my nextcloud screen says this:
zero