desktop
desktop copied to clipboard
[Bug]: client app on M1 mac won't launch after reboot
⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a bug, not a question or a configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct
Bug description
After first installation of a fresh nexcloud client on an M1 mac, it will launch correctly and everything is working. After a reboot of the system, the app won't launch again and showing an error like reported here: https://help.nextcloud.com/t/macos-client-wont-launch-after-reboot/136662
The "solution" is to set "open with rosetta" in the information dialog of the app in macOS, then it will launch again. I assume the app kind of "forgets" the info it should run on the M1 hardware after the reboot and hence won't launch again. I further assume that this information is provided during the installation process correctly, because it always works after a fresh install of the client (same version).
Steps to reproduce
- Install client software on an M1 mac
- launch the app, this will work
- reboot the mac
- launch of the client app will fail with an error
- right click the app symbol in finder, open "information" dialog, activate "open with rosetta"
- launch app, it will work now but you will have to log in again
Expected behavior
The client app should natively work on an M1 mac after reboot without any manual settings.
Which files are affected by this bug
nextcloud.app
Operating system
Mac OS
Which version of the operating system you are running.
macOS 12.4 Monterey
Package
Appimage
Nextcloud Server version
23
Nextcloud Desktop Client version
3.5.4
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
- [x] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
No response
Additional info
No response
I cannot reproduce on my M1 Mac, do any debug logs get generated when the client tries to launch? If so, could you share them? Thanks!
Sure. Where can find it?
Sure. Where can find it?
On macOS it is tricky to find the log folder as the system assigns a random temp location each time...
Your best bet is to try to launch the client without Rosetta first, and once you have tried and the client has failed, to run it with Rosetta using your workaround and then generate a debug archive from the settings dialog
Hi 👋! I have the exact same problem. Here are the debug archives: before restart.zip after restart - rosetta.zip
I also have a debug archive but as there is some sensitive information included about our instance (URL, Username, ...), I would like to not share this publicly. I can send it via email somewhere or upload it, but I won't share it here.
@mgrundkoetter feel free to upload your logs here: https://cloud.nextcloud.com/s/FM7cKJ5tYaQg2gp
Might be a bit of an obvious question but -- could yoy try removing the desktop client from your system entirely and then installing a fresh version of 3.6.0?
I have uploaded the debug archive. This was after the first successful start after the relaunch.
No, I haven't removed it before I re-installed it, I just downloaded the installer and finished this process.
What do you mean by "removing entirely"? Is there more to do than moving the app to the trash?
I am experiencing exactly the same issue with Nextcloud Desktop v3.6 on MacMini M1 and MacOS 12.5.1. When enabling system logs collection in the "Console" application while launching the Nextcloud Client, I am getting the error messages attached. Maybe this helps?
Same issue here. Ventura 13.1 latest NextCloud-Client
Same issue here. With Ventura 13.1 and Nextcloud 3.6.6.
After fresh install, all is fine. After a reboot, the app can no longer be opened. Remove and fresh install, all is fine.
I think it is a Time Machine Arch upgrade problem. I upgrade my mac-system from intel x64 to apple m1 arm 2 months ago and have restored my TimeMachine backup. Somewhere in ~/Library or wherever, there will be a config file with the architecture that the app should use when it starts.
Hi 👋!
I just did another try of completely uninstalling the Nextcloud Desktop App - including deleting everything in /Library
and ~/Library
referencing com.nextcloud.desktop
and running sudo pkgutil --forget com.nextcloud.desktopclient
(not that I really know what that even does 😬 but it was solving an issue elsewhere so I gave it a shot).
Then I reinstalled 3.7.3 and it seems to be working fine now. 🎉
Many thanks @farmio - that resolved the issue for me as well! 😃
Hi 👋! I just did another try of completely uninstalling the Nextcloud Desktop App - including deleting everything in
/Library
and~/Library
referencingcom.nextcloud.desktop
and runningsudo pkgutil --forget com.nextcloud.desktopclient
(not that I really know what that even does 😬 but it was solving an issue elsewhere so I gave it a shot). Then I reinstalled 3.7.3 and it seems to be working fine now. 🎉
I followed you steps and can confirm that everything works fine now. Thanks.
Glad to hear a clean install fixed the issue :)
Same problem with M3, after wakeup the NExtcloud client crashes.