I recently inherited responsibility for a NC 24.0.4 instance (running on snap) when our entire DevOPS team left the company. Quite frankly, I haven’t done any Linux sysadmin work in over a decade, so to say that I am rusty would be a significant understatement.
We are having the invalid modification time error with the Windows desktop client, so I am trying to run the solvable_files.sh script to fix the issue, albeit without success. I was able to find most of the information I needed from the NC config.php, but I cannot get it to find the database host properly.
I verified that we are running MySQL, and that the mysql.sock file is in the /tmp/snap.nextcloud/tmp/sockets folder, but when I run the script I get the following error:
ERROR 2005 (HY000): Unknown MySQL server host ‘localhost:/tmp/snap.nextcloud/tmp/sockets/mysql.sock’
I am running the following:
./solvable_files.sh /var/snap/nextcloud/common/nextcloud/data mysql localhost:/tmp/snap.nextcloud/tmp/sockets/mysql.sock nextcloud ###### nextcloud list scan
I’ve tried multiple variations of the command (e.g., localhost:/tmp/sockets/mysql.sock), and using 127.0.0.1 instead of localhost. I have zero experience with snap, so I’m guessing I’m missing something there, but I really have no idea what.
Any assistance you could provide would be greatly appreciated!
Can you share the source of this script? I can already point to a problem with your command, but even if you fix it I’m not sure it will work without looking at it.
@gmarques - I have the same issue. I suspect that solvable_files.sh doesn’t support snap installations, but I’m out of my depth trying to modify it to do so. With snap you need to use nextcloud.mysql-client to access the database.
In my case I have broken mdates on both client and server files. Updating the client files’ mdate didn’t fix the problem (although I do now get green ticks), nor did updating the server files’ mdate.