Can't sync calendar(android/Caylx OS)

[/details]

Nextcloud version (eg, 20.0.5): 24.0.1
Operating system and version (eg, Ubuntu 20.04): ubuntu20.04
Apache or nginx version (eg, Apache 2.4.25): apache
PHP version (eg, 7.4): 8.1

The issue you are facing:

I can’t sync my calendar on my android phone to DAVx5

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

Try useing the andriod phone app (F-droid) to sync calander

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "172.16.52.43",
            "[nextcloud server]",
            "jon"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "24.0.1.1",
        "overwrite.cli.url": "https:\/\/jon\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": false,
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 0,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "mail_smtpmode": "smtp",
        "remember_login_cookie_lifetime": "1800",
        "log_rotate_size": "10485760",
        "trashbin_retention_obligation": "auto, 180",
        "versions_retention_obligation": "auto, 365",
        "simpleSignUpLink.shown": false,
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0.5,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "default_phone_region": "us",
        "logtimezone": "Etc\/UTC",
        "htaccess.RewriteBase": "\/",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\Movie",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF"
        ],
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "updater.release.channel": "beta",
        "app_install_overwrite": [
            "user_saml",
            "integration_whiteboard",
            "end_to_end_encryption"
        ]
    }
}

The output of your Apache/nginx/system log in /var/log/____:

[Wed May 25 00:00:15.458222 2022] [mpm_event:notice] [pid 1075:tid 140554189347904] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 00:00:15.458322 2022] [core:notice] [pid 1075:tid 140554189347904] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 25 13:53:44.965812 2022] [mpm_event:notice] [pid 1075:tid 140554189347904] AH00491: caught SIGTERM, shutting down
[Wed May 25 13:53:45.773006 2022] [mpm_event:notice] [pid 438849:tid 140106588240960] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 13:53:45.773120 2022] [core:notice] [pid 438849:tid 140106588240960] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 25 13:58:17.334012 2022] [mpm_event:notice] [pid 438849:tid 140106588240960] AH00491: caught SIGTERM, shutting down
[Wed May 25 13:58:17.938016 2022] [mpm_event:notice] [pid 439539:tid 140343305075776] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 13:58:17.938097 2022] [core:notice] [pid 439539:tid 140343305075776] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 25 13:59:45.241603 2022] [mpm_event:notice] [pid 439539:tid 140343305075776] AH00491: caught SIGTERM, shutting down
[Wed May 25 13:59:45.811940 2022] [mpm_event:notice] [pid 439888:tid 140017025952832] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 13:59:45.812020 2022] [core:notice] [pid 439888:tid 140017025952832] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 25 14:08:23.535489 2022] [mpm_event:notice] [pid 439888:tid 140017025952832] AH00491: caught SIGTERM, shutting down
[Wed May 25 14:08:24.124251 2022] [mpm_event:notice] [pid 441144:tid 139783842597952] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 14:08:24.124339 2022] [core:notice] [pid 441144:tid 139783842597952] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 25 14:09:24.665088 2022] [mpm_event:notice] [pid 441144:tid 139783842597952] AH00491: caught SIGTERM, shutting down
[Wed May 25 14:09:25.253743 2022] [mpm_event:notice] [pid 441459:tid 140671988259904] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed May 25 14:09:25.253831 2022] [core:notice] [pid 441459:tid 140671988259904] AH00094: Command line: '/usr/sbin/apache2'

This is the error I’m geting

--- BEGIN DEBUG INFO --- EXCEPTION java.net.UnknownHostException: Unable to resolve host "nextcloud.jonsweb.io": No address associated with hostname at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156) at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103) at java.net.InetAddress.getAllByName(InetAddress.java:1152) at okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:1) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:66) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:20) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:231) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:37) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:36) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14) at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:36) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:25) at okhttp3.internal.connection.RealCall.execute(RealCall.kt:12) at at.bitfire.davdroid.ui.setup.NextcloudLoginFlowFragment$LoginFlowModel.postForJson(NextcloudLoginFlowFragment.kt:6) at at.bitfire.davdroid.ui.setup.NextcloudLoginFlowFragment$LoginFlowModel.access$postForJson(NextcloudLoginFlowFragment.kt:1) at at.bitfire.davdroid.ui.setup.NextcloudLoginFlowFragment$LoginFlowModel$setUrl$1.invokeSuspend(NextcloudLoginFlowFragment.kt:7) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:18) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:2) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:1) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:10) Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) at libcore.io.Linux.android_getaddrinfo(Native Method) at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136) at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:221) at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136) at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135) ... 25 more SOFTWARE INFORMATION ...

update caldav dose not seem to be working

Fix your DNS name resolution and you should be able to access your server :wink:

I’m sorry but that did not work. Anything else?

In this case I would recommend to start a new discussion in the DAVx5 group (Discussions · bitfireAT/davx5-ose · GitHub) and ask for help. BTW, check-out the FAQ first, because many issues have already been reported and answered :wink: