-
Notifications
You must be signed in to change notification settings - Fork 5
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
Integrity check shows error even if no errors are there #8
Comments
I also experience this - the problem seems to be that the # sudo -u www-data php occ integrity:check-app apporder
- EXCEPTION:
- class: OC\IntegrityCheck\Exceptions\InvalidSignatureException
- message: Signature data not found. which is also what we get in the return value from ansible. We however don't parse the result and check for success. I also see that when rescanning from the Admin panel, it works just fine. I could not find a nextcloud bug report for this behavior - does this have to do with the way we install apps? Rught now we just download and unzip, in principle we could use |
It could very well be the way the role installs the apps. Again, I do not remember why I chose this way of installing apps. That part of the role was written against version 12, I think, that according to the documentation did not have If we do so, perhaps the integrity check will be gone. It will also make the role's logic less dependent on the internal implementation of Nextcloud (getting a json file, parsing it, etc which might change in the future). Yet, the option for the user to specify a specific app version to download will also be gone. I haven't found an option in Of course, we could try to find a way to have the integrity checks succeed with the role as it is now. I am not sure what the best approach is. |
Indeed the What we could still retain despite switching to For me this wouldn't matter that much, not sure if others would have this as requirement. I just noticed that currently updating seems to be completely broken, I'm still trying to find out why. |
I dug a bit around in the server code, thinking we could maybe add the possibility to install different version - but they filter for the newest the lowest level already, namely when they fetch the information from the store: https://github.com/nextcloud/server/blob/18d85d46d19ab5b8629fc3b0f46518e3a4ff240b/lib/private/App/AppStore/Fetcher/AppFetcher.php#L121 I guess a PR changing this would not be welcome. |
I guess so too. I suggest that we leave the functionality as is until it breaks due to nextcloud changing the internal implementation that we replicate. At that point we will have to make a decision again, re-implement it or use In the mean time, we can have the extra functionality of specifying an app version. Let's see if there is a way to fix the integrity issues. |
Okay, agreed. Integrity but also app updates need fixing, the Admin panel shows me available updates while the role happily plows on... |
I am currently a bit swamped and drowning, so I will have to look into it in the weekend. If you want to look into it, I would start from this conditional: ansible-role-nextcloud/tasks/core/apps.yml Lines 108 to 155 in 31364c1
I already see some improvements to be made:
|
Jup, will look into this later and have also found these issues already. No worries, I'll come up with a new PR. ;) |
I found out why the integrity is failing from the command line while working from the Admin panel: in the rescan they simply ignore all apps without We should probably file a bug report against the server because this means that the cli integrity check (which doesn't have this option) will always fail for unsigned apps. |
Sometimes, even after the role has taken care of integrity errors, an error message is shown in the admin interface. If I click rescan, the error is gone.
The text was updated successfully, but these errors were encountered: