Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Windows can connect to Nextcloud WebDav but then loses the connection and can't reconnect

    Nextcloud
    5
    20
    1693
    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.
    • marcusquinn
      marcusquinn last edited by

      I'm getting this error from Nextcloud WebDav on Windows:

      Windows cannot access
      \\cloud.example.com@SSL\DavWWWRoot\remote.php\dav\files\marcus
      

      Now, I can connect fine, but it loses the connection at some point overnight and won't reconnect without re-setting-up.

      For those that haven't connected to Nextcloud this way from Windows, here's the instructions I wrote on this for our internal Knowledgebase:


      This will only work if you have the "WebClient" Service running in Windows.

      If you are using Citrix Windows Desktops provided by the company, this part has already been done for you, and you can skip to the next section.

      If you are using a home Windows PC, or setting up Windows Server for Virtual Desktops, this isn't done by default, so we will need to do this first:


      Search > Services > WebClient

      e88ecf14-ba8e-4f8f-8fc8-15a53f9b149c-image.png

      If not, then you can install and get it running by following the instructions taken from here:

      https://support.logmeininc.com/pro/help/why-do-i-see-the-webclient-service-is-not-allowing-logmein-files-to-connect-error-message

      Search > Windows Powershell

      Copy/Paste/Hit-Enter this (exactly from between the ``):

      Install-WindowsFeature WebDAV-Redirector –Restart

      Wait, then Copy/Paste/Hit-Enter this:

      Set-Service WebClient -StartupType Automatic

      and this:

      Set-Service MRxDAV -StartupType Automatic

      Reboot.


      Whether you had that running, or now have, the next bit is pretty easy:

      Windows Explorer > This PC > Computer > Add a Network Location

      9aae2b20-205c-45d5-9ec5-052da834f613-image.png

      2a4d1add-f7bd-4378-8f7f-60ccc400cd9a-image.png

      Next

      f8ff426e-6a2a-471c-808b-dab8cdef63aa-image.png

      Click "Choose a custom network location" > Next

      c9c1ab42-579b-48d7-a8ca-e40ee02f0d98-image.png

      Copy/Paste the URL from Nextcloud > Files > Settings (bottom left) > WebDav

      19241b6d-fee0-423e-a371-767a90fc2c75-image.png

      Next

      Tick Remember credentials > Enter your Nextcloud Username & Password > OK/Enter

      Next > Finish > Ta Da!


      If you use Desktop shortcuts, then right-click on the cloud.example.com in the Windows Explorer left sidebar > Sent to... > Desktop (create shortcut)

      Perhaps also do the same, right-click > Pin to Start

      In the top-left you can also "Pin to Quick access"

      Magic, remote files and sharing everywhere, almost as-if they were local 🙂


      Except for the bug mentioned above! ^

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      1 Reply Last reply Reply Quote 0
      • marcusquinn
        marcusquinn last edited by marcusquinn

        Apparently Mac native OS WebDav connections has the same issue.

        However, I use Mountain Duck on Mac, and that never forgets.

        I wonder if the port need specifying?

        Therefore, I wonder if the Cloudron-specific Nextcloud setup needs any settings to either not need that in the URL, or to add it to the URL that is given under Files > Settings > WebDav?

        https://www.webdavsystem.com/server/access/windows

        We're not here for a long time - but we are here for a good time :)
        Jersey/UK
        Work & Ecommerce Advice: https://brandlight.org
        Personal & Software Tips: https://marcusquinn.com

        jdaviescoates 1 Reply Last reply Reply Quote 0
        • jdaviescoates
          jdaviescoates @marcusquinn last edited by

          @marcusquinn said in Windows can connect to Nextcloud WebDav but then loses the connection and can't reconnect:

          Apparently Mac and Linus native OS WebDav connections have the same issue.

          Just for info I don't seem to have this problem on Ubuntu (not that that helps you to solve your issue with Windows).

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply Reply Quote 1
          • marcusquinn
            marcusquinn last edited by

            I seem to remember having a similar issue with ExpanDrive on Linux (ZorinOS, Ubuntu-based) but never went back to it since I have working with Mountain Duck on Mac - but other users and OSes do have this issue, and search engines aren't throwing up any answers.

            We're not here for a long time - but we are here for a good time :)
            Jersey/UK
            Work & Ecommerce Advice: https://brandlight.org
            Personal & Software Tips: https://marcusquinn.com

            1 Reply Last reply Reply Quote 0
            • marcusquinn
              marcusquinn last edited by

              Others having the same issue, saying it is Nginx related, and using Apache solves:

              • https://github.com/nextcloud/server/issues/16438

              We're not here for a long time - but we are here for a good time :)
              Jersey/UK
              Work & Ecommerce Advice: https://brandlight.org
              Personal & Software Tips: https://marcusquinn.com

              1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff last edited by

                The Cloudron app is using apache actually.

                marcusquinn 1 Reply Last reply Reply Quote 1
                • marcusquinn
                  marcusquinn @nebulon last edited by

                  @nebulon OK, maybe not that then, but the issue remains. Still investigating and testing, this comment on this thread seems relevant:

                  https://help.nextcloud.com/t/unable-to-use-webdav-mount-on-windows-8-1/23676/14

                  What I experienced is that Windows is not able to mount webdav volumes behind a Reverse Proxy and SSL Because the SNI (Server Name Indication) is still not supported by the Windows Explorer (not like Internet Explorer, which does support SNI). I think Google might have a Reverse Proxy for all of their cloud services so they don’t have to assign 1 IP for every single customer and therefore you’re not able to mount it.

                  There’s more information about this: https://www.vioreliftode.com/index.php/microsoft-windows-webdav-client-does-not-support-server-name-indication-sni/

                  That seems to be the problem - but what is the solution?

                  We're not here for a long time - but we are here for a good time :)
                  Jersey/UK
                  Work & Ecommerce Advice: https://brandlight.org
                  Personal & Software Tips: https://marcusquinn.com

                  nebulon 1 Reply Last reply Reply Quote 0
                  • nebulon
                    nebulon Staff @marcusquinn last edited by

                    @marcusquinn that SNI issue seems to be related to the mounting itself, but if I understood you correctly, then you can mount successfully, but after time the connection gets lost?

                    1 Reply Last reply Reply Quote 0
                    • marcusquinn
                      marcusquinn last edited by

                      @nebulon Correct, mounting 1st time works, then it won't restore after waking from sleep or a reboot.

                      We're not here for a long time - but we are here for a good time :)
                      Jersey/UK
                      Work & Ecommerce Advice: https://brandlight.org
                      Personal & Software Tips: https://marcusquinn.com

                      nebulon 1 Reply Last reply Reply Quote 0
                      • nebulon
                        nebulon Staff @marcusquinn last edited by

                        @marcusquinn that sounds very much like a client issue though.

                        robi marcusquinn 2 Replies Last reply Reply Quote 1
                        • robi
                          robi @nebulon last edited by

                          @nebulon Right.. if it doesn't unmount properly, it can't mount on resume/reboot.

                          @marcusquinn look into a sleep/shutdown script that unmounts properly.

                          Unless there is a service that does that, which isn't enabled.

                          Life of Advanced Technology

                          marcusquinn 1 Reply Last reply Reply Quote 0
                          • marcusquinn
                            marcusquinn @nebulon last edited by

                            @nebulon No idea, but it is an issue without a resolution at present, and WebDav is the preferred way to connect to remote file servers, no-one wants to use web interfaces for file servers when they will never be as integrated to workflow and flexibility as a locally mounted drive.

                            We're not here for a long time - but we are here for a good time :)
                            Jersey/UK
                            Work & Ecommerce Advice: https://brandlight.org
                            Personal & Software Tips: https://marcusquinn.com

                            1 Reply Last reply Reply Quote 0
                            • marcusquinn
                              marcusquinn @robi last edited by marcusquinn

                              @robi The way I see it is, if the Nextcloud official instructions on connecting to WebDav from each OS don't work as they have tried, tested and suggested, then it is our Cloudron implementation that is lacking, not Nextcloud or the User.

                              We're not here for a long time - but we are here for a good time :)
                              Jersey/UK
                              Work & Ecommerce Advice: https://brandlight.org
                              Personal & Software Tips: https://marcusquinn.com

                              robi necrevistonnezr 2 Replies Last reply Reply Quote 0
                              • robi
                                robi @marcusquinn last edited by

                                @marcusquinn That's a lot of assumptions and variables.

                                This is specifically for windows right?

                                MacOS and Linux clients work ok?

                                Life of Advanced Technology

                                1 Reply Last reply Reply Quote 0
                                • necrevistonnezr
                                  necrevistonnezr @marcusquinn last edited by

                                  @marcusquinn I use Total Commander with the WebDAV plug-in on Windows 10 and it works without fault.
                                  Your issue is Windows OS related, for sure.

                                  marcusquinn 1 Reply Last reply Reply Quote 1
                                  • marcusquinn
                                    marcusquinn @necrevistonnezr last edited by

                                    @necrevistonnezr Thanks, looks kind a like Cyberduck or Filezilla , whereas I'm looking for Windows Explorer volume mounts, which will work with Mountain Duck (prob the best of the bunch for personal use) or Expandrive (prob the best of the bunch for enterprise), but not natively.

                                    We're not here for a long time - but we are here for a good time :)
                                    Jersey/UK
                                    Work & Ecommerce Advice: https://brandlight.org
                                    Personal & Software Tips: https://marcusquinn.com

                                    necrevistonnezr 1 Reply Last reply Reply Quote 0
                                    • necrevistonnezr
                                      necrevistonnezr @marcusquinn last edited by

                                      @marcusquinn Well, TotalCMD is a 28 year old still updated Swiss Army Knife for all sorts of things, it’s jus happens to have a WebDAV plugin….

                                      marcusquinn 1 Reply Last reply Reply Quote 2
                                      • marcusquinn
                                        marcusquinn @necrevistonnezr last edited by marcusquinn

                                        @necrevistonnezr Sure, I'm old also.

                                        Maybe I missed something from their website or your linking to it. Does it mount volumes in Windows Explorer?

                                        The point of Windows Explorer mounded volumes is that for users there is no noticeable download/upload or drag & drop necessary to edit files. they just double-click to open, and save to save.

                                        This avoids the data mess that happens when people work on files locally and forget to re-upload, or forked data where open files aren't locked.

                                        WebDav and ExpanDrive accomodate for file-locking to prevent data forking or accidental overwrites of another user's edits.

                                        Basically, and thing that works like Filezilla or Cyberduck, despite being able to connect to WebDav services, is not a solution, because it misses the important features that local volume mountain offers in making collaboration on files less risky for data-loss or spread beyond where it should be, and saves from user training, where remote volumes "just work" as-if local.

                                        I'm afraid "good enough for techies" isn't "good enough for everyone" in many cases, it is these subtle things that may seem like conveniences, that add up to solve a hell of a lot of wasted time on issues that can be better spent on designing more useful services.

                                        We're not here for a long time - but we are here for a good time :)
                                        Jersey/UK
                                        Work & Ecommerce Advice: https://brandlight.org
                                        Personal & Software Tips: https://marcusquinn.com

                                        1 Reply Last reply Reply Quote 0
                                        • Referenced by  marcusquinn marcusquinn 
                                        • marcusquinn
                                          marcusquinn last edited by marcusquinn

                                          I might have a partial solution to this:

                                          1. Go to "This PC"
                                          2. Computer tab > Map network drive > use any drive letter and use the path \\cloud.example.com@SSL\DavWWWRoot\remote.php\dav\files\{username} where cloud.example.com is the url for your Nextcloud instance.
                                          3. Enter your username & password, and tick to remember.

                                          Now, this doesn't completely survive a restart and auto-mount, because it wants you to click on the path and re-confirm submitting your remembered login and password each time - but ti is better than the total fail and not being able to reconnect ever again that the other "Add network location" way results in.

                                          So it's possible to access this way, and speed is good - just not perfect as it should work both ways and auto-mount after reboots or sleep & wake.

                                          We're not here for a long time - but we are here for a good time :)
                                          Jersey/UK
                                          Work & Ecommerce Advice: https://brandlight.org
                                          Personal & Software Tips: https://marcusquinn.com

                                          1 Reply Last reply Reply Quote 1
                                          • marcusquinn
                                            marcusquinn last edited by

                                            This can also be scripted or done via cmd Command Prompt / Powershell for Windows Desktop / Server users:

                                            https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn789190(v=ws.11)

                                            Login script

                                            net use I: https://cloud.example.com/remote.php/dav/files/{username}/

                                            Logoff script

                                            net use I: /delete

                                            We're not here for a long time - but we are here for a good time :)
                                            Jersey/UK
                                            Work & Ecommerce Advice: https://brandlight.org
                                            Personal & Software Tips: https://marcusquinn.com

                                            1 Reply Last reply Reply Quote 1
                                            • Referenced by  marcusquinn marcusquinn 
                                            • First post
                                              Last post
                                            Powered by NodeBB