-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: (Files) After uploading a file, the files list becomes empty #49830
Comments
Anything notable about the filename? What appears in your Nextcloud log? Also, check your browser inspector Console and Network tab for possible clues. |
Hi there. To fix it, we've done the following:
It's hackish but it seems to work. Any suggestions would be appreciated. However I find it very smelly that the parent column in the filecache table can receive -1 as a value. Is there a reason for using a negative value for signaling a missing parent? Why not just NULL? Assuming -2, -3... are not expected values, it also has the disadvantage of wasting half the space of the 64 bit representation space of the BIGINT. Even if it's probably not going to be used anyway, it kinda obscures the intention. |
Good catch, but according to your MariaDB bug report you're using MariaDB 11.1.2 which is not supported by MariaDB at this point (and Nextcloud Server never supported it).
This is short-term only release. And outdated even within the 11.1.x series, since the last bug fix release was 11.1.6. We only support the usage of long-term MariaDB database versions with Nextcloud Server. For what it's worth, the query as-is works for me in my test environments (in supported and up-to-date MariaDB versions). So it does appear to have been a MariaDB bug, but also one that is (a) since fixed; (b) possibly avoidable by sticking with supported long-term releases. ;-) Refs: |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
The files list becomes empty after uploading something to it.
I researched what was causing this and solved it by accessing the database and deleting some rows from the
oc_filecache
table.When I ran the query
DELETE FROM oc_filecache WHERE path LIKE '%preview%'
, the files appeared again, but sometimes I needed to runocc files:scan --all
to completely solve the problem.However, after some time, the list became empty again, probably due to a background job.
When I executed
occ preview:repair
, the problem reappeared.Before uploading:

After uploading:

I managed to simulate the problem using the upload button, but it seems to occur when I run the
files:scan
orpreview:repair
commands.I know it's confusing, but I don't know where to find the solution for this.
Steps to reproduce
Expected behavior
Upload the files and see them listed normally.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: