Nextcloud version = 15
Ubuntu version = 16.04 lts
PHP version = 7.3
We deleted the log file in nexcloud to clear it, we where expecting that nextcloud would create it again but no ! we now have an infinite loading and no logs
How can we repair that ?
Check your filesystem.
Do you have an Nextcloud.log file?
I’m not sure where I can find it, since we deleted it
The file will be recreated after your system generates first log message again.
Maybe you do not have any log message?
Yeah but shouldn’t it be empty instead of going in an edless loading !?
Yes, you are right.
That’s why I was asking you if the file was recreated and is present at your file system.
If this is the case it is time to file an issue at GitHub.
Please check your file system right now
I don’t know if Nextcloud checks the filesystem every time it writes ro the logfile. If not then Nextcloud tries to use an obsolete filedescriptor after you deleted the logfiles. You should restart your webserver.
Running those steps has resolved my problem !
sudo -u www-data php occ log:file
sudo -u www-data php occ log:file --file "/var/www/nextcloud-data/nextcloud2.log"
sudo -u www-data php occ log:file --file "/var/www/nextcloud-data/nextcloud.log"
it was corrupted probably because i used veam to restore our vm !
Deleting log file during session is fine. Done this many times over the last years