NC11 files missing from gui, but available on disk and in shared link

So I have a share for the NCBox image, which consists of two image files and two text files (showing perfectly fine):

However today when looking to edit one of the text files via my private account (ie not public share), they’re not showing:

I’ve checked and they’re there on disk, and links from the activity app take me to the proper folder but they don’t show in that directory.

I’ve run an occ files:scan just in case, no change.

Some interesting logs (loads of mysql, the remote mariadb server is up and fine):

PDOStatement::execute(): MySQL server has gone away at /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#91

Also,

Error	no app in context	InvalidArgumentException: The given author user is invalidN;
/var/www/html/apps/activity/lib/FilesHooks.php - line 889: OC\Activity\Event->setAuthor(NULL)
/var/www/html/apps/activity/lib/FilesHooks.php - line 749: OCA\Activity\FilesHooks->addNotificationsForUser('jason', 'link_expired', Array, 81981, '/Multimedia/201...', true, true, 3600)
/var/www/html/apps/activity/lib/FilesHooks.php - line 565: OCA\Activity\FilesHooks->shareFileOrFolderByLink(81981, 'file', 'jason', false)
/var/www/html/apps/activity/lib/FilesHooksStatic.php - line 101: OCA\Activity\FilesHooks->unShare(Array)
/var/www/html/lib/private/legacy/hook.php - line 106: OCA\Activity\FilesHooksStatic unShare(Array)
/var/www/html/lib/private/Share/Share.php - line 1541: OC_Hook emit('OCP\\Share', 'pre_unshare', Array)
/var/www/html/lib/private/Share/Share.php - line 977: OC\Share\Share unshareItem(Array, NULL)
/var/www/html/lib/public/Share.php - line 290: OC\Share\Share unshare('file', '81981', 3, NULL, 'jason')
/var/www/html/apps/files_sharing/lib/ExpireSharesJob.php - line 72: OCP\Share unshare('file', '81981', 3, NULL, 'jason')
/var/www/html/lib/private/BackgroundJob/Job.php - line 53: OCA\Files_Sharing\ExpireSharesJob->run(NULL)
/var/www/html/lib/private/BackgroundJob/TimedJob.php - line 54: OC\BackgroundJob\Job >execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
/var/www/html/cron.php - line 121: OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
{main}

And

Warning	no app in context	Missing expected parameters in change user hook

Reboot (of both server and db server) hasn’t resolved either :frowning:

Errors above may be red herrings.

One for @nickvergessen or @MorrisJobke maybe? CC @tflidd

The activity error should at least not cause the files to be missing from the list. I will have a look, but link expiry hooks are missing in 11, so an update should fix that at least :stuck_out_tongue:

1 Like

After the initial horror of thinking my files are being deleted (which is not the case as they’re just not showing in the gui) it’s mostly a question of why those files don’t show up in the standard file view of the relevant folder(s)… which I guess may not be related to the activity app (where the files are still referenced, because they exist).

Here’s a terrible example of what’s happening:

The mobile client shows the files normally. This weird behaviour is happening in many folders, the trashbin for example suggests I’ve got 20 folders and 169 files, but only 30 or so pictures are shown, unless I toggle the sortby fields.

I’ve also flushed the redis database.

What, well when sorting changes it there is something wrong in the web UI.
Does the browser console say anything?

Around 0:28 you can also see the sortby fields vanish all together. Chrome, IE, Chrome for Android, all affected so far (different machines).

Console shows this, directly referencing a file that will not show up at all:

Uncaught (in promise) Error: Syntax error, unrecognized expression: tr[data-file="Please choose one installation type and click it\. Don't use the "Download" button as it'll download an 8GB zip for no reason\.txt"]
at Function.ga.error (https://domain.org/core/vendor/jquery/dist/jquery.min.js?v=ed8adad59d9a4125e09667bd0327d1c1:2:12481)
at ga.tokenize (https://domain.org/core/vendor/jquery/dist/jquery.min.js?v=ed8adad59d9a4125e09667bd0327d1c1:2:18408)
at Function.ga [as find] (https://domain.org/core/vendor/jquery/dist/jquery.min.js?v=ed8adad59d9a4125e09667bd0327d1c1:2:6830)
at a.fn.init.find (https://domain.org/core/vendor/jquery/dist/jquery.min.js?v=ed8adad59d9a4125e09667bd0327d1c1:2:23410)
at a.fn.init.a.fn.find (https://domain.org/core/vendor/jquery-migrate/jquery-migrate.min.js?v=ed8adad59d9a4125e09667bd0327d1c1:2:8507)
at FileList._createRow (https://domain.org/apps/files/js/filelist.js?v=ed8adad59d9a4125e09667bd0327d1c1:1178:43)
at FileList.fileList._createRow (https://domain.org/apps/files/js/tagsplugin.js?v=ed8adad59d9a4125e09667bd0327d1c1:142:28)
at FileList.fileList._createRow (https://domain.org/apps/comments/js/filesplugin.js?v=ed8adad59d9a4125e09667bd0327d1c1:77:28)
at FileList.fileList._createRow (https://domain.org/apps/files_sharing/js/share.js?v=ed8adad59d9a4125e09667bd0327d1c1:38:27)
at FileList._renderRow (https://domain.org/apps/files/js/filelist.js?v=ed8adad59d9a4125e09667bd0327d1c1:1364:18)

How did you upload the file with a quote in the name?

+ > Text file > tappy tappy type type > save

I’ll edit that file, though it wasn’t an issue in 10.* :confused:

Yeah found it, should be easy to fix.

1 Like

It was happening in other folders also with quotes in names, so I’ve gone through the server and done a blanket text replace on the CLI, then a files:scan and all looking good now :smiley:

Thank you!

Could this possibly be connected to this issue?


I am experiencing the problem in the other link, too.
And somehow it is affecting several other users now, too.

And to me, from an administrators (non-coder) perspective it looks similar: MobileApps showing the data, Desktop Apps syncing without problems, just the WebGui not showing them.