UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Nextcloud accounts and Invalid url host

    Scheduled Pinned Locked Moved Solved Support
    13 Posts 6 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        prog-amateur @poVoq
        last edited by prog-amateur

        @povoq Hello, thank you for helping me, I felt a bit alone with this issue.

        Actually, the first try was to use Settings>Accounts>Nextcloud and copy/paste my credentials as you said but this lead to the "invalid URL host" error message.

        This is why I have tried the workaround by @ernest but it doesn't work too.

        Then I have tried to use normal CalDAV credentials by using the calendar caldav url showed in my Nextcloud account but it doesn't work too.

        Then I have tried at least to import my calendar with an .ics format but the Agenda app does not recognize this file format !

        My agenda has many entries and, unfortunately, I can't enter each one manually from scratch.

        So I feel a bit stuck and I need help. I hope you or anybody else will be alble to confirm the issue and find a solution. Thank you very much !

        LakotaubpL poVoqP 2 Replies Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp @prog-amateur
          last edited by

          @prog-amateur All I can rember when I had the issue was that it was the second part of the url that I had wrong for my Generic CalDAV which is lakotaubp@-----------mail.com@------.thegood.cloud/caldev/ same for my Nextcloud but without /caldav/ at the end.
          I also kept putting a capital letter at the start of a password or email address which also got the error you are.

          1 Reply Last reply Reply Quote 1
          • poVoqP Offline
            poVoq @prog-amateur
            last edited by

            @prog-amateur Hmm, not sure... maybe check your .well-known settings Nextcloud side? Might be required for discovery.

            Fairphone 5 (waiting for port)

            1 Reply Last reply Reply Quote 0
            • P Offline
              prog-amateur
              last edited by prog-amateur

              Thanks to both of you, I can confirm that changing the password with the first letter to lower case does not solve the problem.

              In my Nextcloud account, the link for a specific calendar has this specific format :
              https://nextcloud.xxxx.fr/remote.php/dav/calendars/idname/calendar_name/
              While if I use the Nextcloud credential sync, I also
              https://nextcloud.xxxx.fr/remote.php/dav

              I have tried without success.

              But I discovered something interesting: the certificate is considered as not secure (red lock)... And I discovered that my French ISP has a bug: they are always in winter time instead of summer time.

              So I think when I requested a TLS certificate, it was issued in winter time, while the certificate authority validated it at the same time, but in summer time, which led to this atypical situation.

              I called my ISP and they said they didn't think this was the cause of my problem, and asked me to restart my router. However, his solution did not help.

              To summarize, it is like if I had no certificate, maybe that could be the issue ?

              arubislanderA 1 Reply Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander @prog-amateur
                last edited by

                @prog-amateur That is most probably the case...

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 1
                • P Offline
                  prog-amateur
                  last edited by

                  Thank you. I have investigated a bit more : my certificate is still the old one (self certificate, not the supposed TLS from ISP... very very strange.

                  I have decided to follow another workaround, which seems to work according to the member (Morph cannot take into account the self-certificate, but the CalDAV sync does work after this workaround and this is exactly what I want). The proposal is to move the own self-certificate into /usr/local/share/ca-certificates/. To do so, you have to have read and write permission in the folder by using sudo mount -o remount,rw /.

                  By doing so, the output of sudo mount -o remount,rw / is an unable to resolve host phablet@ubuntu error message. So I can't move my self certificate in this folder, I don't know why I have this error message (do you know if it is now impossible to get read and write permissions in OTA 16 ?). This is really frustrating.

                  Thank you

                  KenedaK 1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda @prog-amateur
                    last edited by Keneda

                    @prog-amateur
                    Try to use UT Tweak Tools to remount r/w maybe?

                    @prog-amateur said in Nextcloud accounts and Invalid url host:

                    do you know if it is now impossible to get read and write permissions in OTA 16 ?

                    Yes it is possible, see :
                    https://forums.ubports.com/topic/5981/messaging-app-colors/11?_=1618240021650

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                    πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                    1 Reply Last reply Reply Quote 1
                    • poVoqP Offline
                      poVoq
                      last edited by

                      Hmm, does the embedded Morph webview in the account manager use the same cache as the main Morph browser? I noticed that it stores old certificates really long. Maybe try deleting your Morph browser history and cache and see if that makes a difference for the certificates as well? A bit of a shot in the dark to be honest...

                      Fairphone 5 (waiting for port)

                      1 Reply Last reply Reply Quote 1
                      • P Offline
                        prog-amateur
                        last edited by prog-amateur

                        OK !

                        I have found the root cause of the issue ! First of all, thank you very much for your help and sorry for my late reply, I have checked your advises.

                        @Keneda, UT Tweak Tool allowed to switch successfully to read/write mode, but in the end moving the certificate to the folder did not solve the issue (still the Invalid url host error).

                        @poVoq thank you, it was a nice idea, but unfortunately, it didn't worked neither.

                        So I tried to figure out what conditions are needed to avoid this message:

                        1. you need an official certificate (ex : from Let's Encrypt) and not a self-certificate, otherwise Nextcloud sync does not work.
                        2. you have to open ports 80 to renew your certificate automatically, otherwise Let's Encrypt cannot issue/renew the certificate.
                        3. even with port 80 open, the certificate could not be installed (error message timeout error). So I checked the firewall: everything seemed to be normal.
                          However, I noticed that my Nextcloud settings had an https-only option enabled. Once I disabled the option, the certificate could be installed, and I was able to sync my Nextcloud account by entering the following format: https://mydomain.free.fr/ (no need for /nextcloud at the end)

                        What a challenge !!! Thank you very much all !!!

                        AppLeeA 1 Reply Last reply Reply Quote 0
                        • AppLeeA Offline
                          AppLee @prog-amateur
                          last edited by

                          @prog-amateur
                          Thanks for your feedback.
                          Hopefully it'll help others to avoid such trouble.

                          Can you please also change the topic to a question and then mark it solved ?
                          You can find the options in the cog wheel menu at the top of the page.

                          P 1 Reply Last reply Reply Quote 1
                          • P Offline
                            prog-amateur @AppLee
                            last edited by

                            @applee Yes with pleasure, I hope it will help

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post