desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Log file cannot be opened for writing. The log output cannot be saved.

Open k-bx opened this issue 4 years ago • 14 comments

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:

Screenshot from 2022-01-28 10-50-49

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

k-bx avatar Jan 28 '22 08:01 k-bx

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.

k-bx avatar Jan 28 '22 08:01 k-bx

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".

glasen avatar Jan 30 '22 20:01 glasen

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!

github-actions[bot] avatar Feb 28 '22 01:02 github-actions[bot]

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

pfagomez avatar Feb 28 '22 15:02 pfagomez

Same to me, how can we modify the log directory folder please ?

FabienZa avatar Mar 03 '22 20:03 FabienZa

Same here.

sylock avatar Mar 19 '22 09:03 sylock

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!

github-actions[bot] avatar Apr 16 '22 16:04 github-actions[bot]

I still have this issue

pfagomez avatar Apr 18 '22 18:04 pfagomez

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!

github-actions[bot] avatar May 03 '22 00:05 github-actions[bot]

I have the same issue, someone have some fix?

imakecodes avatar May 13 '22 14:05 imakecodes

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

NaderJafari avatar May 14 '22 12:05 NaderJafari

@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!

villasenor avatar Aug 14 '22 23:08 villasenor

To me, the only solution was to don't use the snap version anymore... The .deb one works. =/

FabienZa avatar Aug 22 '22 14:08 FabienZa

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.

glasen avatar Sep 03 '22 15:09 glasen