Nextcloud plugin woes

All about Zimbra Drive
User avatar
Gummikavalier
Posts: 1
Joined: Tue Apr 04, 2017 3:15 pm

Nextcloud plugin woes

Postby Gummikavalier » Tue Apr 04, 2017 4:02 pm

We have trouble with the brand new ZimbraDrive plugin for Nextcloud.
(We followed instructions here: https://wiki.zimbra.com/wiki/Zimbra_Dri ... mbra_Drive)

The plugin does not seem to be able to save its configuration. The configuration under Admin settings turn into blank again if you leave the page.

So I tried to get around the problem by typing the url directly into the PHP code responsible for generating the URL based on those values.

nextcloud/apps/zimbradrive/lib/Auth/OC_User_Zimbra.php:

```php
$this->url = sprintf("https://zebra.csc.fi:443/service/extension/ZimbraDrive_NcUserZimbraBackend");
// "http" . ($this->use_ssl ? "s" : ""),
// $this->zimbra_url,
// $this->zimbra_port
// );
```

This does get us further. However, still when I select 'Drive' tab in the Web client we get this in the Nextcloud logs:

`Error index Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO `oc_zimbradrive_users` ( `uid`, `display_name` ) VALUES( ?, ? )' with params [null, null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null`

So no luck there. Latter one could depend on the first problem saving the settings in the first place. Anyone else in the same boat?


ZS-Man
Posts: 11
Joined: Sat Sep 13, 2014 3:11 am

Re: Nextcloud plugin woes

Postby ZS-Man » Wed Apr 05, 2017 7:41 am

Hi,
same problem on NextCloud 11.0.2. Configuration is not saved.
juliano.morona
Posts: 3
Joined: Fri May 12, 2017 4:58 pm

Re: Nextcloud plugin woes

Postby juliano.morona » Fri May 12, 2017 5:05 pm

Hi, same problem on NextCloud 11.0.3
justin_hearn
Posts: 3
Joined: Sat Sep 13, 2014 2:23 am

Re: Nextcloud plugin woes

Postby justin_hearn » Sun May 21, 2017 11:17 am

I'm having the same problem, and can't get the zimbra details saved in nextcloud. Has anyone been able to solve this?

Update: Values are in the database now

The file /var/www/nextcloud/apps/zimbradrive/lib/Settings/Admin.php shows these database values:
"zimbra_url" => $this->config->getAppValue('zimbradrive', 'zimbra_url'),
"zimbra_port" => $this->config->getAppValue('zimbradrive', 'zimbra_port'),
"use_ssl" => $this->config->getAppValue('zimbradrive', 'use_ssl', 'true') == 'true',
"trust_invalid_certs" => $this->config->getAppValue('zimbradrive', 'trust_invalid_certs', 'false') == 'true',
"preauth_key" => $this->config->getAppValue('zimbradrive', 'preauth_key'),


Using mysql/phpmyadmin to modify the owncloud\oc_appconfig table (I upgraded owncloud to nextcloud)

Code: Select all

UPDATE `owncloud`.`oc_appconfig` SET `configvalue` = 'localhost' WHERE `oc_appconfig`.`appid` = 'zimbradrive' AND `oc_appconfig`.`configkey` = 'zimbra_url';


Values are remaining in the database now. Previously when I clicked on Drive in Zimbra an error would occur. That doesn't happen now, although I have another problem as nothing happens / no files are displayed.
budy
Posts: 26
Joined: Sat Sep 13, 2014 2:07 am

Re: Nextcloud plugin woes

Postby budy » Mon Jun 05, 2017 2:12 pm

I had the same issue on a Mac. Using Chrome did the trick for me.

Cheers,
budy
senyapsudah
Posts: 14
Joined: Thu Jul 21, 2016 12:49 am

Re: Nextcloud plugin woes

Postby senyapsudah » Wed Jun 28, 2017 6:43 am

Hi Guys,


configure zimbra drive app using chrome solve the issue.

thanks.
juliano.morona
Posts: 3
Joined: Fri May 12, 2017 4:58 pm

Re: Nextcloud plugin woes

Postby juliano.morona » Thu Jul 06, 2017 4:39 pm

Solved, with Chrome/Chromium. Thanks.

Return to “Zimbra Drive”

Who is online

Users browsing this forum: No registered users and 1 guest