Zimbra 8.8.15 or 9.0 + drive 0.8.25 + Nextcloud 19 or 20

All about Zimbra Drive
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Zimbra 8.8.15 or 9.0 + drive 0.8.25 + Nextcloud 19 or 20

Postby alex70 » Tue Oct 06, 2020 8:42 am

Now tested with Nextcloud 20 as well.

Dear All,

after a long time in searching the way to make Zimbra 8.8.15 (recently installed 9.0) and Nextcloud 19 work with Zimbra drive 0.8.25... I found the solution

Everything was correctly configured, Zimbra side, Nextcloud side.
ZImbra was able to create users in Nextcloud but after that no way to access to Nextcloud folder directly in Zimbra and no way to access to Nextcloud directly from the Nextcloud login panel using Zimbra email address.
Quick fix: comment out part of the function in nextcloud/apps/zimbradrive/lib/auth/abstractzimbrausersbackend.php like that:



Code: Select all

    protected function insertUserInGroup(User $user, $groupName)
    {
        if(isset($user))
        {
            if(!$this->groupManager->groupExists($groupName))
            {
                $this->groupManager->createGroup($groupName);
            }
/**
            $targetGroup = $this->groupManager->get($groupName);
            if(!$targetGroup->inGroup($user))
            {
                $targetGroup->addUser($user);
            }
            **/
        }
    }




In case Zimbra has already created users in Nextcloud, remove "zimbra" group from each user.

@jorgedlcruz can you please take care of this issue and pass it to the lab. Thanks

A deep thanks to @Kleped for this hint reported on https://github.com/nextcloud/server/issues/21497
Last edited by alex70 on Sun Oct 25, 2020 8:47 am, edited 2 times in total.


User avatar
jasggomes
Advanced member
Advanced member
Posts: 85
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Zimbra 8.8.15 + drive 0.8.25 + Nextcloud 19 or 20

Postby jasggomes » Tue Oct 13, 2020 2:11 pm

Hi and thanks for this workaround.
I'm being 'forced' to replace the Goggle Drive service, and I think this can be a good solution but I cannot use the 'Open Drive' button on the Webmail GUI of Zimbra.
With this, I can open the 'Z' button on Nextcloud GUI of the user, but not the way around.

Zimbra 9 ZXtras build
Nextcloud 19 w/latest app

Any suggestions?

Regards.
JG
User avatar
rleiker
Advanced member
Advanced member
Posts: 83
Joined: Tue Jan 07, 2020 8:23 pm
Location: Kansas City
Contact:

Re: Zimbra 8.8.15 + drive 0.8.25 + Nextcloud 19 or 20

Postby rleiker » Wed Oct 14, 2020 4:11 am

Barry de Graaff, who is a longtime Zimlet developer, and an employee of Synacor, has some help on the way for integrating Nextcloud with Zimbra 9. He announced today that he has an updated Zimlet about to be released. There is a mention of it in this post: viewtopic.php?f=9&t=68823&p=299380#p299380 in the section titled: "Updated Zimlet For Integrating Nextcloud With Zimbra 9".
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 8.8.15 or 9.0 + drive 0.8.25 + Nextcloud 19 or 20

Postby alex70 » Tue Oct 27, 2020 10:13 am

Hi @jasggomes,

have you sorted out the issue related to connecting Zimbra to Nextcloud.
For me it worked well both sides (from Zimbra to Nextcloud and vice-versa) but now I'm experiencing the same problem as you.
I cannot connect anymore from Zimbra to NC but from NC to Zimbra. The Open Drive Button in Zimbra does nothing when hit.

I found the following message log in /opt/zimbra/mailbox.log generated when the button is pressed:

    2020-10-27 10:23:54,180 INFO [qtp2008966511-234:https://domain.xx:60443/service/soap/GetMiniCalRequest] [name=admin@domain.xxt;mid=2;ip=213.140.24.196;port=38400;ua=ZimbraWebClient - GC86 (Win)/9.0.0_GA_3976;soapId=2d66ea0;] soap - GetMiniCalRequest elapsed=0
    2020-10-27 10:23:54,476 INFO [qtp2008966511-295:https://domain.xx:60443/service/soap/BatchRequest] [ip=213.140.24.196;port=38402;] SoapEngine - BatchRequest [/service/soap/BatchRequest] contains 2 sub-request(s): GetAllFoldersRequest,SearchRequest
    2020-10-27 10:23:54,476 INFO [qtp2008966511-295:https://domain.xx:60443/service/soap/BatchRequest] [name=admin@domain.xx;mid=2;ip=213.140.24.196;port=38402;ua=ZimbraWebClient - GC86 (Win)/9.0.0_GA_3976;soapId=2d66ea1;] soap - BatchRequest
    2020-10-27 10:23:55,112 WARN [qtp2008966511-295:https://domain.xx:60443/service/soap/BatchRequest] [name=admin@domain.xx;mid=2;ip=213.140.24.196;port=38402;ua=ZimbraWebClient - GC86 (Win)/9.0.0_GA_3976;soapId=2d66ea1;] extensions - ZAL SOAP Unknown Exception: org.apache.http.client.HttpResponseException: Not Found
    at org.apache.http.impl.client.AbstractResponseHandler.handleResponse (AbstractResponseHandler.java:69)
    at org.apache.http.impl.client.BasicResponseHandler.handleResponse (BasicResponseHandler.java:65)
    at com.zextras.zimbradrive.soap.GetAllFoldersHdlr.privateHandleRequest (GetAllFoldersHdlr.java:61)
    at com.zextras.zimbradrive.soap.GetAllFoldersHdlr.handleRequest (GetAllFoldersHdlr.java:50)
    at org.openzal.zal.soap.InternalDocumentHelper.handle (InternalDocumentHelper.java:75)
    at org.openzal.zal.soap.InternalDocumentHandler.handle (InternalDocumentHandler.java:48)
    at com.zimbra.soap.SoapEngine.dispatchRequest (SoapEngine.java:646)
    at com.zimbra.soap.SoapEngine.dispatch (SoapEngine.java:471)
    at com.zimbra.soap.SoapEngine.dispatch (SoapEngine.java:278)
    at com.zimbra.soap.SoapServlet.doWork (SoapServlet.java:308)
    at com.zimbra.soap.SoapServlet.doPost (SoapServlet.java:217)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:707)
    at com.zimbra.cs.servlet.ZimbraServlet.service (ZimbraServlet.java:214)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:873)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1623)
    at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter (WebSocketUpgradeFilter.java:214)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.CsrfFilter.doFilter (CsrfFilter.java:175)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.RequestStringFilter.doFilter (RequestStringFilter.java:54)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.SetHeaderFilter.doFilter (SetHeaderFilter.java:59)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ETagHeaderFilter.doFilter (ETagHeaderFilter.java:47)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ContextPathBasedThreadPoolBalancerFilter.doFilter (ContextPathBasedThreadPoolBalancerFilter.java:107)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ZimbraQoSFilter.doFilter (ZimbraQoSFilter.java:125)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ZimbraInvalidLoginFilter.doFilter (ZimbraInvalidLoginFilter.java:117)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at org.eclipse.jetty.servlets.DoSFilter.doFilterChain (DoSFilter.java:482)
    at org.eclipse.jetty.servlets.DoSFilter.doFilter (DoSFilter.java:327)
    at org.eclipse.jetty.servlets.DoSFilter.doFilter (DoSFilter.java:297)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:540)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:146)
    at org.eclipse.jetty.security.SecurityHandler.handle (SecurityHandler.java:524)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:257)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:1700)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:255)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1345)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:203)
    at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:480)
    at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:1667)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:201)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1247)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:144)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:220)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle (HandlerCollection.java:152)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle (RewriteHandler.java:335)
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle (GzipHandler.java:753)
    at org.eclipse.jetty.server.handler.DebugHandler.handle (DebugHandler.java:83)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle (Server.java:505)
    at org.eclipse.jetty.server.HttpChannel.handle (HttpChannel.java:370)
    at org.eclipse.jetty.server.HttpConnection.onFillable (HttpConnection.java:267)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:305)
    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)
    at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable (SslConnection.java:427)
    at org.eclipse.jetty.io.ssl.SslConnection.onFillable (SslConnection.java:321)
    at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded (SslConnection.java:159)
    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run (ChannelEndPoint.java:117)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask (EatWhatYouKill.java:333)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (EatWhatYouKill.java:310)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce (EatWhatYouKill.java:168)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run (EatWhatYouKill.java:126)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run (ReservedThreadExecutor.java:366)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:698)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run (QueuedThreadPool.java:804)
    at java.lang.Thread.run (Thread.java:830)

    2020-10-27 10:23:55,112 INFO [qtp2008966511-295:https://domain.xx:60443/service/soap/BatchRequest] [name=admin@domain.xx;mid=2;ip=213.140.24.196;port=38402;ua=ZimbraWebClient - GC86 (Win)/9.0.0_GA_3976;soapId=2d66ea1;] soap - (batch) GetAllFoldersRequest elapsed=635
    2020-10-27 10:23:55,135 WARN [qtp2008966511-295:https://domain.xx:60443/service/soap/BatchRequest] [name=admin@domain.xx;mid=2;ip=213.140.24.196;port=38402;ua=ZimbraWebClient - GC86 (Win)/9.0.0_GA_3976;soapId=2d66ea1;] extensions - ZAL SOAP Unknown Exception: org.apache.http.client.HttpResponseException: Not Found
    at org.apache.http.impl.client.AbstractResponseHandler.handleResponse (AbstractResponseHandler.java:69)
    at org.apache.http.impl.client.BasicResponseHandler.handleResponse (BasicResponseHandler.java:65)
    at com.zextras.zimbradrive.soap.SearchRequestHdlr.privateHandleRequest (SearchRequestHdlr.java:96)
    at com.zextras.zimbradrive.soap.SearchRequestHdlr.handleRequest (SearchRequestHdlr.java:53)
    at org.openzal.zal.soap.InternalDocumentHelper.handle (InternalDocumentHelper.java:75)
    at org.openzal.zal.soap.InternalDocumentHandler.handle (InternalDocumentHandler.java:48)
    at com.zimbra.soap.SoapEngine.dispatchRequest (SoapEngine.java:646)
    at com.zimbra.soap.SoapEngine.dispatch (SoapEngine.java:471)
    at com.zimbra.soap.SoapEngine.dispatch (SoapEngine.java:278)
    at com.zimbra.soap.SoapServlet.doWork (SoapServlet.java:308)
    at com.zimbra.soap.SoapServlet.doPost (SoapServlet.java:217)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:707)
    at com.zimbra.cs.servlet.ZimbraServlet.service (ZimbraServlet.java:214)
    at javax.servlet.http.HttpServlet.service (HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:873)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1623)
    at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter (WebSocketUpgradeFilter.java:214)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.CsrfFilter.doFilter (CsrfFilter.java:175)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.RequestStringFilter.doFilter (RequestStringFilter.java:54)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.SetHeaderFilter.doFilter (SetHeaderFilter.java:59)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ETagHeaderFilter.doFilter (ETagHeaderFilter.java:47)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ContextPathBasedThreadPoolBalancerFilter.doFilter (ContextPathBasedThreadPoolBalancerFilter.java:107)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ZimbraQoSFilter.doFilter (ZimbraQoSFilter.java:125)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at com.zimbra.cs.servlet.ZimbraInvalidLoginFilter.doFilter (ZimbraInvalidLoginFilter.java:117)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at org.eclipse.jetty.servlets.DoSFilter.doFilterChain (DoSFilter.java:482)
    at org.eclipse.jetty.servlets.DoSFilter.doFilter (DoSFilter.java:327)
    at org.eclipse.jetty.servlets.DoSFilter.doFilter (DoSFilter.java:297)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1610)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:540)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:146)
    at org.eclipse.jetty.security.SecurityHandler.handle (SecurityHandler.java:524)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:257)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:1700)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (ScopedHandler.java:255)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1345)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:203)
    at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:480)
    at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:1667)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope (ScopedHandler.java:201)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1247)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:144)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:220)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle (HandlerCollection.java:152)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle (RewriteHandler.java:335)
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle (GzipHandler.java:753)
    at org.eclipse.jetty.server.handler.DebugHandler.handle (DebugHandler.java:83)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle (Server.java:505)
    at org.eclipse.jetty.server.HttpChannel.handle (HttpChannel.java:370)
    at org.eclipse.jetty.server.HttpConnection.onFillable (HttpConnection.java:267)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:305)
    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)
    at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable (SslConnection.java:427)
    at org.eclipse.jetty.io.ssl.SslConnection.onFillable (SslConnection.java:321)
    at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded (SslConnection.java:159)
    at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:103)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run (ChannelEndPoint.java:117)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask (EatWhatYouKill.java:333)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (EatWhatYouKill.java:310)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce (EatWhatYouKill.java:168)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run (EatWhatYouKill.java:126)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run (ReservedThreadExecutor.java:366)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:698)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run (QueuedThreadPool.java:804)
    at java.lang.Thread.run (Thread.java:830)


Can you please check whether the message above occurs to you as well?

Does anybody know how to fix?

Thanks

Alex

Return to “Zimbra Drive”

Who is online

Users browsing this forum: No registered users and 1 guest