-
Notifications
You must be signed in to change notification settings - Fork 817
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]: macOS client code signature broken #5526
Comments
I've just run my workaround – reinstalling nextcloud from the website via % codesign --verify nextcloud.app
nextcloud.app: a sealed resource is missing or invalid
% codesign --verify nextcloud.app/Contents/MacOS/nextcloud
nextcloud.app/Contents/MacOS/nextcloud: invalid Info.plist (plist or signature have been modified)
In architecture: arm64 |
I've done one more test, deleting the nextcloud.app binary first, and then running the said installer again. This time, it seems the code signature is, in fact, fine. The issue seems to be resolved for me, for the time being. I guess my local install must have been corrupted by some means and neither the auto-update nor the regular installer were able to fix this. At this point I am not sure, if you consider this a bug or user error. My gut feeling would be that the installer should always install a clean binary, namely first deleting the current install and then replacing it with a fresh one. But you may have your reasoning for doing things differently. |
Not sure offhand why you're experiencing this. If it was systemic I'd expect us to get a lot of reports about it. That doesn't seem to be the case. Not my area of expertise, however. We did recently change the building/signing for macOS (#6830), but that wasn't in response to bunch of bug reports as far as I can tell. Refs: |
It might have been just my setup, after all. Any stray file inside an app bundle will make the signature invalid. I didn't diff it, but that's most likely the cause. From my side, you can consider this case closed. Should somebody else ever face a similar problem, maybe this ticket already helps. |
Bug description
The macOS client application seems to break its code signature from time to time, causing macOS to refuse to open the app. The user-visible error looks like this, not adding much detail:
The issue is reported from the system log like so:
Checking the signature in detail reveals the following:
Steps to reproduce
I have no steps to reproduce, the issue happened to me multiple times, at seemingly random moments. I guess this might be linked to either the auto-update mechanism, or a device reboot.
Since the app was working at some point before, the code signature seems to have become broken at some point. This issue does not happen with a clean install, which is also the workaround. I've re-installed the nextcloud client at least a dozen times over the past couple of months.
Expected behavior
The Info.plist not getting modified, I guess?
Which files are affected by this bug
nextcloud.app
Operating system
Mac OS
Which version of the operating system you are running.
macOS 13.2.1
Package
Appimage
Nextcloud Server version
25.0.2
Nextcloud Desktop Client version
3.7.4git
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: