9
submitted 2 years ago* (last edited 2 years ago) by electric_nan@lemmy.ml to c/selfhosted@lemmy.world

I am having some trouble with a Nextcloud server. I set up a digitalocean droplet to test contact syncing for work. I went with the setup that I use at home, which is Yunohost and Nextcloud. This was/is working fine to sync contacts with iOS using the built-in support for CardDav accounts in iOS.

I made a snapshot of the server and rebuilt it on a work account (also Digital ocean). I reconfigured it for a new domain name, and got a letsencrypt cert. I can login and manage the admin and user accounts.

I set up an iPad to use the new server, and it seemed to work fine. However, I subsequently tried a couple other iPhones, and it won't connect to the account.

It isn't a fail2ban thing, because on the same apple devices that I can't connect to the accounts on, I can go login to Nextcloud in their browser.

What is happening?

Edit: I seem to have fixed it by reinstalling the server from scratch. I wanted to eliminate any problems that may have been caused by restoring from a snapshot previously linked to another domain. Everything is working at least for now.

top 7 comments
sorted by: hot top controversial new old
[-] themachine@lemmy.world 4 points 2 years ago

Error message? Nextcloud logs?

Can't tell you whats happening without information about what's happening other than "it doesn't work".

[-] electric_nan@lemmy.ml 1 points 2 years ago* (last edited 2 years ago)

I am not seeing anything (relevant) in the Nextcloud logs (as viewed from the web app). In iOS I get a message about SSL verification failed, and do I want to try connecting without it. Either way it cannot validate credentials. I know the username and password are correct (tested multiple times/work to login in the browser), and the SSL cert is valid.

Also /var/log/Nextcloud/ is empty. Where else should I look for logs?

[-] mhzawadi@lemmy.horwood.cloud 2 points 2 years ago

Is the caldev URL somehow wrong? SSL verification could be wrong URL or wrong date even

[-] electric_nan@lemmy.ml 1 points 2 years ago

I don't think so. As I said, this server is a copy of one on another domain that is still working. Also, this new server was able to validate at least once.

[-] homegrowntechie@lemmy.world 2 points 2 years ago

The issue could still be a fail-to-band issue if fail-to-band is looking at the user agent string (I'm not sure fail to ban looks at the user agent string, but it might be worth checking out.). The user agent string would likely be different on a mobile app versus a browser login.

[-] electric_nan@lemmy.ml 1 points 2 years ago

I did not see the iPad IP address in the fail2ban logs.

[-] tagginator@utter.online 1 points 2 years ago

New Lemmy Post: Nextcloud/CardDav/iOS trouble (https://lemmy.world/post/11062239)
Tagging: #SelfHosted

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md

this post was submitted on 23 Jan 2024
9 points (100.0% liked)

Selfhosted

60093 readers
767 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 30 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS