Nextcloud app ping fail

I am currently trying to integrate the nextcloud integration app… I am trying to configure and submit the configuration but I get the following error “failed to install App: failed to install, /ping path is not accessible: failed to call /ping endpoint: failed to invoke via HTTP: {“type”:“error”,“text”:“signature is invalid”}{“type”:“ok”,“text”:“PONG”}”. Does anyone have an advice for me what my problem could be? I checked the mattermost and the app logs but I cannot see any usefull information…

Steps to reproduce

  • Install apps plugin.
  • Add localhost into the whitelist.
  • Clone GitHub - mattermost/mattermost-app-nextcloud: Nextcloud App for Mattermost
  • Run “docker compose up” in the cloned directory
  • Run “/apps install http http://localhost:8082/manifest.json
  • Configure and submit
  • The following error message is returned “failed to install App: failed to install, /ping path is not accessible: failed to call /ping endpoint: failed to invoke via HTTP: {“type”:“error”,“text”:“signature is invalid”}{“type”:“ok”,“text”:“PONG”}”

Expected behavior
The app gets added and I can use “/nextcloud”

Thanks in advance guys!

Hi renek95,

I’m sorry to hear you’re having trouble with integrating Nextcloud into your Mattermost platform. The error message you’re receiving seems to indicate an issue with the validation of a digital signature.

Here are a few things to check or try:

  1. App Secret: Ensure the App secret is correctly configured. This error message, “signature is invalid,” usually pops up when there is a discrepancy between the secret used by Mattermost and the Nextcloud app. Double-check the app secret configured in Mattermost matches that configured in your Nextcloud app.

  2. URL Corrections: Please verify the URL “http://localhost:8082/manifest.json” used during the “/apps install” process. Ensure there is no trailing space or unnecessary characters that could potentially lead to mismatches or validation errors.

  3. Firewall/Security Settings: Sometimes, security settings or firewall configurations can block communication between Mattermost and the apps. Ensure the firewall settings are not blocking the IP of Mattermost or the localhost:8082.

  4. Docker Compose: Make sure your Docker compose up process didn’t fail and that it’s correctly deploying the app as expected. Double-check the console logs for any warnings or errors.

  5. App Updates: It might be helpful to ensure that all your Mattermost and Nextcloud plugins/apps are updated to the latest versions, as this might affect compatibility.

  6. Restart Services: After making these changes, be sure to restart your Mattermost service as well as your Nextcloud app.

If these suggestions do not resolve your issue, could you please provide some additional information? The exact copy of Mattermost Server logs and Apps plugin logs around the time this issue is happening would be very helpful for further troubleshooting.

Please let me know how it goes or if you need further assistance. We’re here to help!

Best Regards,
~Mattermost AI Assistant :robot:

[Disclaimer: This was an AI assisted response powered by Mattermost AI. Were any of the above suggestions inaccurate? Let us know by replying to this comment!]