hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

App causes invalid signature errors after installation. #46

Open zetix opened 3 years ago

zetix commented 3 years ago

After installing External Storage: OneDrive, you cannot install any other app. The error message you'll get is:

App with id [app name] has invalid signature

Posts with this issue:

  1. https://help.nextcloud.com/t/cannot-install-or-update-any-app-invalid-signature/101783
  2. https://www.reddit.com/r/NextCloud/comments/kh5zdm/all_apps_fail_to_install_with_error_app_has/

Error log downloading OneDrive integration as an example:

[settings] Error: Exception: App with id integration_onedrive has invalid signature at <<closure>>

0. /snap/nextcloud/24940/htdocs/apps/settings/lib/Controller/AppSettingsController.php line 445
   OC\Installer->downloadApp("integration_onedrive")
1. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/Http/Dispatcher.php line 169
   OCA\Settings\Controller\AppSettingsController->enableApps(["integration_onedrive"], [])
2. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/Http/Dispatcher.php line 100
   OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "enableApps")
3. /snap/nextcloud/24940/htdocs/lib/private/AppFramework/App.php line 152
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "enableApps")
4. /snap/nextcloud/24940/htdocs/lib/private/Route/Router.php line 308
   OC\AppFramework\App::main("OCA\\Settings\\ ... r", "enableApps", OC\AppFramework\ ... {}, {action: null,_r ... "})
5. /snap/nextcloud/24940/htdocs/lib/base.php line 1008
   OC\Route\Router->match("/settings/apps/enable")
6. /snap/nextcloud/24940/htdocs/index.php line 37
   OC::handleRequest()

POST /index.php/settings/apps/enable
thekarinka commented 3 years ago

I can confirm this issue. As workaround is disabling onedrive app, update other apps and after enable onedrive app.

nunesgh commented 3 years ago

I have also experienced this issue (https://github.com/nextcloud/files_antivirus/issues/182 and https://github.com/nextcloud/guests/issues/522) and I can confirm @thekarinka's workaround solves this.

Does anyone know why this is happening?

hevelius commented 3 years ago

Hi guys,

@ZetiX in your logs the app id integration_onedrive belongs to another app. This -> https://apps.nextcloud.com/apps/integration_onedrive. It's not files_external_onedrive. During the tests I did not encounter the same problem. I suppose the workaround proposed by @thekarinka solves.

And remember integration_onedrive is not files_external_onedrive.

KnudH commented 3 years ago

integration_onedrive does not encounter the bug, it is the files_external_onedrive app. I never installed the integration but having the same issue with the files_external_onedrive app.

So pls reopen, as long as the bug is not solved.

zetix commented 3 years ago

@hevelius As I mention in the post, I'm only using the OneDrive integration as an example as the error produced is the same for any other app you're trying to install with files_external_onedrive app enabled.

It's not really a huge issue as it's not like admins on nextcloud are installing and removing apps daily and if needed, disabling files_external_onedrive would resolve the issue.

The problem is that some users aren't aware that files_external_onedrive is the culprit and would go down a rabbit hole trying to solve it. If they aren't able to find a fix, the only other solution would be to do a complete reinstall. It would be great if you add the possibility of this issue occurring as a note to the app description if you are unable to encounter the same problem.

hevelius commented 3 years ago

Interesting discussion. Before reopen this issue please tell me

so I can do more tests replicating your same issue.

zetix commented 3 years ago

OS: Ubuntu 20.04 Server

Snap Nextcloud info: Nextcloud 20.0.4 Apache 2.4 PHP 7.3 MySQL 5.7 Redis 5.0

Apps:

Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - bruteforcesettings: 2.0.1
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.4.2
  - contactsinteraction: 1.1.0
  - dav: 1.16.2
  - duplicatefinder: 0.0.4
  - epubreader: 1.4.5
  - federatedfilesharing: 1.10.2
  - files: 1.15.0
  - files_downloadactivity: 1.9.0
  - files_external: 1.11.1
  - files_pdfviewer: 2.0.1
  - files_retention: 1.9.0
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.1
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - keeweb: 0.6.4
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - maps: 0.1.8
  - metadata: 0.12.0
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - photos: 1.2.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - quickaccesssorting: 1.1.2
  - recommendations: 0.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - side_menu: 1.21.0
  - socialsharing_email: 2.1.0
  - suspicious_login: 3.2.1
  - systemtags: 1.10.0
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_admin: 3.0.0
  - twofactor_backupcodes: 1.9.0
  - twofactor_nextcloud_notification: 3.1.0
  - twofactor_totp: 5.0.0
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0

However, based on the posts and threads on other forums regarding this topic, it also occurs on docker and manual installations as well, though I do not have the complete details of their configuration.

nunesgh commented 3 years ago

The problem is that some users aren't aware that files_external_onedrive is the culprit and would go down a rabbit hole trying to solve it. If they aren't able to find a fix, the only other solution would be to do a complete reinstall.

Exactly! If I did not find this issue here (thank you @ZetiX, by the way), the next step would be exactly to do a complete reinstall.

As I have mentioned above, I had signature errors with two other apps and even bothered to open issues on their respective repos (https://github.com/nextcloud/files_antivirus/issues/182 and https://github.com/nextcloud/guests/issues/522).

But what really solved those errors was to remove files_external_onedrive --not integration_onedrive, which wasn't even installed.

Here is my server configuration as well:

And here are the errors caused by the presence of files_external_onedrive:

hevelius commented 3 years ago

Ok guys, I have replicated the issue and I'm working on a solution to resolve. Issue repoened. Thanks for testing.