Log file cannot be opened for writing. The log output cannot be saved.
Hi. I'm using https://sam.nl.tab.digital for a few days now. It's been working well so far. I'm using Ubuntu 20.04 and Nextcloud client installed via Snap (sudo snap install nextcloud-desktop-client).
The exact error is this:
File "/home/kb/snap/nextcloud-desktop-client/13/.config/Nextcloud//logs/20220128_1049_owncloud.log.0"
cannot be opened for writing.
The log output cannot be saved!
As shown on this screenshot:

Version info is this:
$ nextcloud-desktop-client.nextcloudcmd --version
Nextcloud version 3.4.2git
Git revision b0791e51ceebef3295b30dc596c391c077af1924
Using Qt 5.15.3, built against Qt 5.15.3
Using 'OpenSSL 1.1.1f 31 Mar 2020'
Running on Ubuntu Core 20, x86_64
Update: restart helped, it seems, and things were never really broken, so this is low priority. However, I think it'd be nice to fix this still.
This bug only occurs when using the snap package maintained by me. The bug is triggered when the snap package is updated in the background when the client is still running.
The only way to fix this, is changing the log directory from "~/snap/next-cloud-desktop-client/$snap_revision/.config/Nextcloud/logs" to "~/snap/next-cloud-desktop-client/common/Nextcloud/logs".
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
I have the same error Built from Git revision dacaf7 on Feb 19 2022, 08:59:16 using Qt 5.15.3, OpenSSL 1.1.1f 31 Mar 2020 I could not find the option to change the log directory
Same to me, how can we modify the log directory folder please ?
Same here.
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
I still have this issue
This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!
I have the same issue, someone have some fix?
I have the same issue, someone have some fix?
Nextcloud version 3.4.4git
Git revision a3ece50dd8ffb1d4156e32a3ff253e3f3e801d61
Using Qt 5.15.3, built against Qt 5.15.3
Using 'OpenSSL 1.1.1f 31 Mar 2020'
Running on Ubuntu Core 20, x86_64
@glasen - can we change the default log directory to avoid this? It's not clear from your comment what the correct configuration should be. Thanks!
To me, the only solution was to don't use the snap version anymore... The .deb one works. =/
I've made a patch to change to default log-dir in the snap-package. It now points to "~/snap/nextcloud-desktop-client/common/logs". This directory does not get touched when upgrading the snap.