zimbra-zimlet-nextcloud fails to login to nextcloud

Interested in talking about Mash-up's? This is the place.
Post Reply
marcelo
Posts: 1
Joined: Thu Nov 11, 2021 8:59 am

zimbra-zimlet-nextcloud fails to login to nextcloud

Post by marcelo »

Hello Everyone,

I installed the zimbra-zimlet-nextcloud on our Zimbra Server. I followed the steps mentioned in https://blog.zimbra.com/2020/12/zimbra- ... ud-zimlet/.
When I try to activate the nextcloud-connection for a user I get redirected correctly to the login-page of nextcloud where I can grant access to the nextcloud account.
However when granting access it seems to time out and after a few minutes I get redirected back to the zimbra inbox.

The nextcloud.log shows following entries:
{"reqId":"yGYsxGjC4pCe7JY3Utot","level":2,"time":"2021-12-21T15:39:32+00:00","remoteAddr":"192.168.172.13","user":"--","app":"core","method":"POST","url":"/nextcloud/index.php/apps/oauth2/api/v1/token","message":"Login failed: 'oEPVppurFNK9pL1Y82SaIJzuGI7sl3p0MJLg8FbXLp8qunZs8289k3a9NdtNDSyj' (Remote IP: '192.168.172.13')","userAgent":"Apache-HttpClient/4.5.8 (Java/13.0.1)","version":"21.0.7.0"}

I already double-checked the Oauth identifier and secret.

What could be the issue?

Zimbra OS: Ubuntu 18.04 LTS 64-bit
Zimbra Version: 9.0.0 GA Patch 20 (2021-10-25)
Nextcloud Version: 21.0.7.0

Thanks,
Marcelo
User avatar
jholder
Ambassador
Ambassador
Posts: 4824
Joined: Fri Sep 12, 2014 10:00 pm

Re: zimbra-zimlet-nextcloud fails to login to nextcloud

Post by jholder »

{"reqId":"yGYsxGjC4pCe7JY3Utot","level":2,"time":"2021-12-21T15:39:32+00:00","remoteAddr":"192.168.172.13","user":"--","app":"core","method":"POST","url":"/nextcloud/index.php/apps/oauth2/api/v1/token","message":"Login failed: 'oEPVppurFNK9pL1Y82SaIJzuGI7sl3p0MJLg8FbXLp8qunZs8289k3a9NdtNDSyj' (Remote IP: '192.168.172.13')","userAgent":"Apache-HttpClient/4.5.8 (Java/13.0.1)","version":"21.0.7.0"}
There is no user unless you removed it. If you removed it, I don't know why you'd keep your IP but not the user.
User avatar
Rony
Posts: 45
Joined: Fri Jan 27, 2017 3:50 pm
Location: Canada-Montreal
ZCS/ZD Version: Zimbra 9.0.0_GA_4174
Contact:

Re: zimbra-zimlet-nextcloud fails to login to nextcloud

Post by Rony »

Hi,
I followed the same steps and I have been encountering the same issue so Activate doesn't work.
Then I created a test email account and could Activate it in NextCloud, which means that old accounts need to have the NextCloud oauthToken reset.
Any tip how to do that?

Thank you
Post Reply