Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardDAV contacts module does not work #640

Closed
robert-winkler opened this issue Oct 15, 2022 · 13 comments · Fixed by #674
Closed

CardDAV contacts module does not work #640

robert-winkler opened this issue Oct 15, 2022 · 13 comments · Fixed by #674

Comments

@robert-winkler
Copy link

Hi, I installed the Cypht master of 2022/10/13 on an Ubuntu 20.04 LTS web server.
I would like to use my 1,000+ CardDAV contacts that are hosted on a different NextCloud server.
Thus, I

  • enabled the modules 'contacts' and 'contacts_carddav' in the hm3.ini
  • copied the carddav.ini to the app_data directory, renamed the [Personal] to [CardDAV NextCloud] and added http of my CardDAV server (the exact address, without port, works e.g. with vdirsyncer).
  • run PHP ./scripts/config-gen.php
  • login to Cypht.
  • in contacts, I can see the error: "No contact backends are enabled!
    At least one backend must be enabled in the hm3.ini file to use contacts.", However, I have the option to add contacts to the [Contacts NextCloud]
  • In Settings, I found the section CardDAV; added username and password, save the settings and site settings, log out and log in; same symptoms.

I have the impression, there are 2 different problems:

  • The check for a valid backend fails, if there is no local, LDAP or Gmail backend (CardDAV is not in the checked backends?)
  • The connection to the CardDAV server fails. Is there any way to find out the reason (http or user validation)?
@marclaporte
Copy link
Member

Related: #120

@marclaporte
Copy link
Member

@marclaporte
Copy link
Member

@ElvisAns will work on this.

@ElvisAns
Copy link
Member

I'm working on it.

Hope we fix it soon. Stay tuned!

The original thread about the integration : #120

@marclaporte
Copy link
Member

@robert-winkler Please test

@ElvisAns
Copy link
Member

@robert-winkler
Copy link
Author

Dear @ElvisAns and @marclaporte, I watched the video twice, but it only shows the client side (the user's web interface). What do I need to do on the server? Changing any .PHP files; install a new version of Cypht? How do I have to configure the CardDAV connection?

@marclaporte
Copy link
Member

@robert-winkler Please change PHP files as per https://github.com/jasonmunro/cypht/pull/674/files

@robert-winkler
Copy link
Author

Dear @marclaporte and @ElvisAns:
Yes, with the modified PHP I can see my NextCloud CardDAV server.

carddav

I still got two problems:

  1. How do I authenticate to my server?

I added to the carddav.ini:

server="https://server.org/...contacts/"
user="Robert"
pass="A very long password"
  1. Cypht complains about a missing contacts module.

But my hm3.ini contains:

modules[]=contacts
modules[]=carddav_contacts

of course, I could uncomment the local_contacts, but just carddav_contacts should be sufficient.

@ElvisAns
Copy link
Member

ElvisAns commented Mar 1, 2023

@robert-winkler it's still complaining because your enabled contact backend is not yet authenticated.

@ElvisAns
Copy link
Member

ElvisAns commented Mar 1, 2023

Go to Site Settings and then put your username / password under the Carddav Adressbooks section and hit save.
Dont forget to read #674 (comment)

@robert-winkler
Copy link
Author

Thanks for the quick reply, @ElvisAns!

I added my credentials and now the error disappeared. We are getting closer.
However, I still cannot see/ add/ edit my NextCloud contacts.
In the carddav.ini I put the server link. Is there any port needed (in other programs, the CardDAV connection works with this location.)
Any idea what I might have forgotten?

@ElvisAns
Copy link
Member

ElvisAns commented Mar 1, 2023

You are much welcome Dear @robert-winkler
Now I think there is an issue with the NextCloud configuration.
The port is not necessary unless NextCloud recommend some

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants