Hi. I have been using nextcloud 13.0.5 for quite a while and decided to upgrade to 14.0.12. My kernel is 4.19.45 php version is 7.2 and my apache version is 2.4.39. I am using postgresql 10.8 as my database. I am using gentoo updated to a few weeks ago. Now when I upgrade to 14.0.12, when I log in and go to one of my files which is shared, the share link is checked, but the link itself is not visible. Also, if I unckeck the share link checkbox, I get erros about duplicate entries in some lock table and if I check the box, I get those errors again. The errors are not on the page, but in one of my logs.
Anyone have any ideas as to what to do about this problem? I went back to 13.0.5 and restored the database and all is back to normal.
If I try upgrading again what logs would you need? Also, how can I
get the shared link to appear in the gui? I had to go back to 13
because I have to share out links and I would not be able to do so
under 14.0.12.
In general, I would recommend to use redis for file locking. It’s just very slow on a sql database and uses a lot of resources.
Once you are in maintenance mode, the locking is lost anyway, so you should be able to empty the oc_file_locks table. Why you have duplicates is hard to say, perhaps a cleanup routine didn’t work properly or some other problems.
Well, I do think there is a bug here: I did the following:
put the system into maintainance mode. Then I delete everything from
the oc_file_locks table (there were 4 rows). Then I turned
maintainance mode off and found a file and clicked shared (the link
had been shared already) and got the following messages from
postgresql and nothing in the nextcloud.log: