• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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
      last edited by prog-amateur 4 Dec 2021, 16:17 12 Apr 2021, 16:12

      Re: Nextcloud accounts and Invalid url host

      Hello, the topic in the above link is quite old but I meet exactly the same issue so I would link it to mine.

      I have bought a Nexus 5 and when I try to setup the CalDAV through Nextcloud account, it says Invalid url host.

      • URL used is in https://nextcloud.xxxxxxxx.com/nextcloud format
      • I have also tried https://nextcloud.xxxxxxxx.com
      • Let's encrypt certificate is enabled and valid
      • Finally, I have tried the workaround proposed by @ernest :
      phablet@ubuntu-phablet:~$ export OAU_LOGGING_LEVEL=2
      phablet@ubuntu-phablet:~$ export OAU_DAEMON_TIMEOUT=9999
      phablet@ubuntu-phablet:~$ online-accounts-service
      

      however when I launch the 3rd command (online-accounts-service), I cannot use the keyboard anymore in the account settings.

      Do you have any idea about what is wrong ? Thank you very much for your help.

      P 1 Reply Last reply 13 Apr 2021, 12:59 Reply Quote 0
      • P Offline
        poVoq @prog-amateur
        last edited by 13 Apr 2021, 12:59

        @prog-amateur via cut and paste you can input your nextcloud credentials into the online accounts.

        Fairphone 5 (waiting for port)

        P 1 Reply Last reply 13 Apr 2021, 21:38 Reply Quote 1
        • P Offline
          prog-amateur @poVoq
          last edited by prog-amateur 13 Apr 2021, 21:38

          @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 !

          L P 2 Replies Last reply 14 Apr 2021, 05:58 Reply Quote 0
          • L Offline
            Lakotaubp @prog-amateur
            last edited by 14 Apr 2021, 05:58

            @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
            • P Offline
              poVoq @prog-amateur
              last edited by 14 Apr 2021, 18:33

              @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 14 Apr 2021, 21:07

                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 ?

                A 1 Reply Last reply 15 Apr 2021, 11:05 Reply Quote 0
                • A Offline
                  arubislander @prog-amateur
                  last edited by 15 Apr 2021, 11:05

                  @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 15 Apr 2021, 15:01

                    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

                    K 1 Reply Last reply 15 Apr 2021, 15:24 Reply Quote 0
                    • K Offline
                      Keneda @prog-amateur
                      last edited by Keneda 15 Apr 2021, 15:24

                      @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
                      • P Offline
                        poVoq
                        last edited by 15 Apr 2021, 23:37

                        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 18 Apr 2021, 17:57

                          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 !!!

                          A 1 Reply Last reply 18 Apr 2021, 21:16 Reply Quote 0
                          • A Offline
                            AppLee @prog-amateur
                            last edited by 18 Apr 2021, 21:16

                            @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 18 Apr 2021, 21:38 Reply Quote 1
                            • P Offline
                              prog-amateur @AppLee
                              last edited by 18 Apr 2021, 21:38

                              @applee Yes with pleasure, I hope it will help

                              1 Reply Last reply Reply Quote 1
                              2 out of 13
                              • First post
                                2/13
                                Last post