NextCloud apps - cal/cardDAV

Status
Not open for further replies.

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Hello,

I've installed the NextCloud plugin and all the file sharing side of things appears to work very well.
I have found many mentions on line of apps for contacts and calendar however these don't appear in the apps list from the plugin, is this normal? Perhaps the apps are removed as the functionality has been moved to the core?

I'm also trying to sync contacts & calendar using card/calDAV and it seems to work on my Android phone, however I can't connect from the Evolution mail client under Ubuntu 16.04 LTS.

The error is "Method not allowed" or alternatively "PROPFIND on webdav failed with HTTP status 405 (Method Not Allowed)" if I close Evolution, reopen it, then refresh the contact list.
The same errors occur when attempting to use calDAV.

Cheers
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I remember on OwnCloud---which is kind of the genetic predecessor of NextCloud---if you were using the DAV stuff, you had to specify a different.....URL or whatever. Some of the Android apps "already knew this". So the situation was as you describe above. Could you be experiencing a similar problem?
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
That sounds like exactly it, I did see references to specific URL's but nothing definite.
I found this 'https://host/remote.php/carddav/addressbooks/username/contacts' at https://docs.nextcloud.com/server/9/user_manual/pim/sync_thunderbird.html but I get a "bad request' error. There seems to be no mention of contacts/calendars within the NextCloud UI at all.
I've searched and searched and found nothing useful on this at all, I've tried every variation of the above URL to make it work, still nothing. I'll reinstall the OwnCloud plugin and see if the options for cal/card are present there.
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Hmmm, using the plain, webDAV URL seems to connect, ie. it doesn't throw any errors, but I don't seem to be syncing contacts between my phone and my mail client either
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
You might want to ask on the nextcloud forums/github. I also don't see any of the usual app categories under Nextcloud's "Apps" page on my production install (which is not using the FreeNAS plugin).

I assume Nextcloud changed over to stop using apps.owncloud.org but has yet to setup their own repo. You probably have to manually install any apps not included with nextcloud.
See https://github.com/nextcloud/calendar/releases
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Actually... I noticed this in my logs.
{core} Could not get application: cURL error 60: SSL certificate problem: unable to get local issuer certificate
Maybe the plugin has the same issue. I'll investigate when I get a chance.
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Can confirm, adding the line 'appstoreurl' => 'https://apps.nextcloud.com/api/v0', to config.php under /usr/pbi/nextcloud-amd64/www/nextcloud/config now means that there is a list of app types and apps rather than only "enabled", "not enabled" and "documentation"
After making any changes the web service needs to be restarted, or just restart the jail.
It is however throwing an error saying the signature could not get checked, so I'll keep working through the link above.
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
The app needs to be signed by the author it would seem. Other apps seem to work fine. I've now installed the calendar app and it is syncing with evolution mail client caldav calendar.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
great find!
So is there something wrong with the packaging of the plugin, or is this an issue that nextcloud has to fix?

This command should work with the plugin
Code:
su -m www -c '/usr/pbi/nextcloud-amd64/bin/php /usr/pbi/nextcloud-amd64/www/nextcloud/occ config:system:set appstoreurl --value="https://apps.nextcloud.com/api/v0"'
 
Last edited:

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
From what I've found, it seems the app author, a Mr Alexander Weidinger, needs to update the app, presumably from when it was published under OwnCloud. There doesn't seem to be a way of disabling app signing or any other trickery to get around it. I'd be happy to be proven wrong though :)
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Sorry to keep adding to this thread... It seems the contacts app is working now, I haven't changed anything so I can only assume that the author did what he had to do...
 
Status
Not open for further replies.
Top