Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nextcloud Desktop crashes shortly after start in version 3.13.0 #6793

Closed
4 of 8 tasks
claell opened this issue Jun 4, 2024 · 26 comments
Closed
4 of 8 tasks

[Bug]: Nextcloud Desktop crashes shortly after start in version 3.13.0 #6793

claell opened this issue Jun 4, 2024 · 26 comments

Comments

@claell
Copy link

claell commented Jun 4, 2024

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I know, one should maybe not update to the ...0 releases of Nextcloud Desktop.

Still, I took the risk. Now, the client closes itself/crashes after launching it.

Steps to reproduce

Unknown

Expected behavior

No crash

Which files are affected by this bug

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Other

Nextcloud Server version

Nextcloud Desktop Client version

3.13.0

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 3.3.6 to 3.4.0)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@schliesser
Copy link

schliesser commented Jun 9, 2024

Heyho,

my 3.13.0 Desktop client on Windows 11 (Version 10.0.22631 Build 22631) also crashes.

So far I've investigated the following behaviour:

  • ✅ Pausing all syncs immediatly after start -> Client keeps running
  • ✅ Enable Sync for a folder that has no changes -> Client keeps running
  • ✅ Enable Sync for a folder that has only local updates on my Windows machine -> Syncs to NC Server correctly -> No crash
  • ❌ Enable Sync for a folder that has updates on server side -> Client crashes on file write

Hope that helps.

Maybe related to #6566 ?


Edit: Downgraded client to 3.12.1 with winget -> everything works fine again

@Aesculapius
Copy link

Aesculapius commented Jun 11, 2024

I'm seeing the same behavior with 3.13.0. with the same results as far as pausing sync keeping the client running.
I inspected the local log files but there's nothing interesting in it; the last lines read

2024-06-11 22:38:54:894 [ info nextcloud.sync.statustracker C:\Users\User\AppData\Local\Temp\windows-22489\client-building\desktop\src\libsync\syncfilestatustracker.cpp:239 ]: Investigating "InstantUpload/Camera/2024/06/20240609_184323.jpg" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_NEW OCC::SyncFileItem::Down

Server-side, I'm seeing these lines at the end:

{"reqId":"g8mdSCV8TBQIyVoMtVna","level":0,"time":"2024-06-11T20:49:17+00:00","remoteAddr":"masked","user":"Laurens","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/Laurens/InstantUpload/Camera/2024/05","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22631 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.1.1","data":{"app":"workflowengine","level":"0"}}

{"reqId":"g8mdSCV8TBQIyVoMtVna","level":0,"time":"2024-06-11T20:49:18+00:00","remoteAddr":"masked","user":"Laurens","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/Laurens/InstantUpload/Camera/2024/05","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22631
ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.1.1","data":{"app":"workflowengine","level":"0"}}

Finally, these are on the server configuration logging page:
image

Not sure if it relates...
I'm running NC 29.0.1 and will now try to update to latest 29.0.2

@Aesculapius
Copy link

Aesculapius commented Jun 12, 2024

The problem still persists in 29.0.2...
For now I've downgraded to 3.12.5 and the problem went away...

@mgscreativa
Copy link

mgscreativa commented Jun 12, 2024

Same here, had to downgrade to v3.4.2

@rosa2
Copy link

rosa2 commented Jun 25, 2024

Same problem with Ubuntu 22.04.4.
It freezes with large folders. I have several servers. I have to stop sync for all and then, one by one re-enable the sync.
It gets very slow.
Is it a way to downgrade with not loosing all the configuration? Thanks

@mgscreativa
Copy link

I can't find any old packages in PPA archives!

@Phx01
Copy link

Phx01 commented Jun 26, 2024

Also the same on Fedora 40 with Nextcloud client v3.13.0.

Downgrading to 3.12.1 generally works. However, even that version goes haywire if you start entirely unrelated applications, e.g. Steam client. Once Steam is started, the Nextcloud client (v3.12.1) can be started again and it behaves normal going forward. However, it can as well be reproduced 100% by simply quitting Steam and restarting it. I honestly do not know what is going on at the start of Steam, but it is likely the Nextcloud client is writing to memory it shouldn’t and then when the Steam client starts, it itself writes to that address making the Nextcloud client unstable.

While it is absolutely possible that the Steam client is doing something wrong, since only the Nextcloud client is affected and only during Steam startup, I tend to believe that it is likely caused by the Nextloud client, which with v3.13.0 expanded this pre-existing memory leak.

@janarzz
Copy link

janarzz commented Jun 26, 2024

Latest Nextcloud desktop still not work.
When i open it, then immediately crash.
I updated Nextcloud server to 29.0.3, but desktop still crash.

@Matth3wW
Copy link

Downgrading to 3.12.1 generally works. However, even that version goes haywire if you start entirely unrelated applications, e.g. Steam client.

I'm having this issue as well.

  • Operating System: Fedora 40 (latest as of 2024-06-25)
    
  • Nextcloud Client: 3.13.0
    
  • Nextcloud Server: 29.0.2 selfhosted on a proxmox debian LXC running LAMP stack.
    

Downgrading to 3.12.1 fixes the issue. Upgrading back to 3.13.0 has the issue return.

However, on 3.12.1, I do not have the issue you have while launching steam.

@janarzz
Copy link

janarzz commented Jun 26, 2024

I hope next desktop update fix this issue.

@mgscreativa
Copy link

Using alpha 3.13.50 from alpha PPA hangs too https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client-alpha

@EddyXorb
Copy link

EddyXorb commented Jun 27, 2024

I confirm the issue for Windows 11 23H2 Build 22631.3737 and nextcloud client 3.13.0. Crashes after less than a minute after start, blocking the windows file explorer completely and making it impossible to open programs via right-click on the lower windows task list, which is very annoying.

@claell
Copy link
Author

claell commented Jul 2, 2024

This seems to have gotten resolved for me after updating to 3.13.1. Possibly related to a host that isn't reachable anymore.

@janarzz
Copy link

janarzz commented Jul 3, 2024

This seems to have gotten resolved for me after updating to 3.13.1. Possibly related to a host that isn't reachable anymore.

Hi, i tryng to use latest version 3.13.1.
Still crashing! I downgraded my desktop back to 3.12.4 version

@steumac
Copy link

steumac commented Jul 4, 2024

Hi, 3.13.0 and 3.13.1 Windows 11 still crashing. Server version 27.1.11. Downgraded to 3.12.3 and working good so far.

@frivascl
Copy link

frivascl commented Aug 7, 2024

I had the same problem. Just delete .sync* and ._sync* and worked again.

@hdeppert
Copy link

hdeppert commented Aug 8, 2024

I had the same problem. Just delete .sync* and ._sync* and worked again.

This is the solution! The sync files are located inside the top level directory where you sync your Nextcloud files.

In addition, you can clean up some old config and log files folder located in %UserFolder%\AppData\Roaming\Nextcloud

This issue should can be solved if the Nextcloud client make some checks of the sync database and config files before it uses some corrupt files and crashes.

@joshtrichards
Copy link
Member

Closing since OP's issue appears fixed as of 3.13.1:

#6793 (comment)

So anyone else on this thread likely has different underlying cause(s). Please create dedicated issues with their unique details so those situations can be looked into.

@janarzz
Copy link

janarzz commented Sep 1, 2024

Hi,
version 3.13.3 still crashing.

@rosa2
Copy link

rosa2 commented Sep 3, 2024

after some days working, it started to crash again.

i have 3.13.3 and still crashing in Ubuntu 22.10
if i start it from terminal, i get
nextcloud.gui.application: Migrating old config from "/myhome/.local/share/Nextcloud" to "/myhome/.config/Nextcloud"
nextcloud.gui.application: Failed to move the old config directory to its new location ( "/myhome/.local/share/Nextcloud" to "/myhome/.config/Nextcloud" )
nextcloud.gui.application: Will move the individual files ("site_1_sync.log", "site_2_sync.log", "site_3_sync.log", "site_4_sync.log", "nextcloud_sync.log", "site_5_sync.log")
nextcloud.gui.application: Fallback move of "site_1_sync.log" also failed
nextcloud.gui.application: Fallback move of "site_2_sync.log" also failed
nextcloud.gui.application: Fallback move of "site_3_sync.log" also failed
nextcloud.gui.application: Fallback move of "site_4_sync.log" also failed
nextcloud.gui.application: Fallback move of "nextcloud_sync.log" also failed
nextcloud.gui.application: Fallback move of "site_5_nextcloud_sync.log" also failed

i could pass the freezing by pausing the sincronization and sincronize one by one.
if i delete the files in .local/share/Nextcloud then they get copied but the last.

@metapublic-gbr
Copy link

Nextcloud-desktop crashes after approx. 3 seconds.
I have ubuntu 22.04, nextcloud 3.13.3.

Moving everything out of /myhome/.local/share/Nextcloud and removing the folder doesn't help: The folder will be recreated containing a file "Cloud_sync.log"

@TaegonChung
Copy link

Hi, 3.13.0 and 3.13.1 Windows 11 still crashing. Server version 27.1.11. Downgraded to 3.12.3 and working good so far.

This was the solution. I've upgrade Nextcloud to 3.14.0 on two Windows computers and both had problems. One kept shutting down immediately after boot and the other never have shown main dialog window. Downgraded to 3.12.7 and both work fine.

@rosa2
Copy link

rosa2 commented Sep 28, 2024

Again I had problems. I tested Nextcloud-3.14.1-x86_64.AppImage that didn't resolve the problem.
Then I downgrade to Nextcloud-3.13.4-x86_64.AppImage in Ubuntu 22.04.5 LTS and now no problem.
Just in case people want to downgrade, here you can find the apps
https://download.nextcloud.com/desktop/releases/

I have to teach this app to people that just started with NextCloud... I hope that you can fix this before because they have different operative systems and they will not get a good image on NextCloud, will they? :)

Thanks developers and maintainers.

@rosa2
Copy link

rosa2 commented Oct 9, 2024

The problem keeps returning, even with the downgrade. I found
#4661
I hope this works and can upgrade o keep the Nextcloud-3.13.4-x86_64.AppImage without problems.

@rosa2
Copy link

rosa2 commented Oct 16, 2024

I think that i found my problem: in the last release the NextCloud server started to disallow illegal characters nextcloud/server#38614 and the synchronization was crashing my client. Now i am testing it but it looks that it was my problem.
I hope this will help anybody :)
After renaming the files and folders through the browser and reinstalling the last version, it seems to be working well.
I also configured the server with this new feature https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#forbidden-filename-characters

@raychani
Copy link

raychani commented Dec 3, 2024

I upgraded to version 3.15, but the program still crashes. Version 3.12.8 works fine.
My server version is 30.0.2, and I'm using client on Windows 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests