CloudDAVMod v1.1 for WD My Cloud firmware V4

CloudDAVMod v1.1

For those who’s following WD My Cloud‘s post, a new APP has been added to the installer, a newer improved CloudDAVMod v1.1 for firmware V4. This is my original release (-:

Remote Drive Mapping

On top of re-enabling the remote drive mapping which WD has unexpectedly removed from MyCloud, this mod provides a basic WebDAV webGUI based file manager that integrates seamlessly beneath the existing WD MyCloud Dashboard.

Advanced Features
Advanced Features

No additional backend daemons. Fast, secure, light-weight yet powerful and easy to use (-:

Features:-

  • Completely bypass MyCloud.com account login. It’s directly between you and your MyCloud NAS. With a personal DDNS 3rd party service, CloudDAVMod should work well even behind strict corporate firewalls or computers that blocks cloud services.
  • Unlimited filesize transfers where the usual mapped drives has a platform specific WebDAV filesize limit.
  • Common file/folder functions such as copy/paste/move/delete/rename/mkdir and advanced search/properties/export with keyboard shortcuts to these functions.
  • Multiple uploads via single mass selection OR Drag&Drop files from the desktop directly into a supported HTML5 browser.
  • HTML5 image previewer with navigation/zoom/pan/rotate support, HTML5 audio streamer with matching filename M3U playlist track order and track title support and HTML5 video streamer with matching filename SRT subtitles support.
  • System panel for MyCloud Dashboard admins; CPU/RAM/Disk/Network/Process usage, S.M.A.R.T. temperature, run simple WWW-SSH commands with simple color support, remote reboot/shutdown and download system logs.
  • MyCloud file/folder auto expiring URL links sharing with captcha and password protected zip. Safely share your selected files and/or folders with anyone!

Notes:-

This version of CloudDAVMod is only compatible with WD MyCloud firmware version 04.05.00-334 (21st Feb 2019). You will not be able to install otherwise. An updated CloudDAVMod version will be released soon upon newer firmware updates.

Disclaimer: As I’m frequently updating the original guides and installers here on TeaNazaR.com, I will not be responsible for any brick issues if you were to follow my obsolete guides copied elsewhere. Thus subscribe to this post to get latest updates. Modifying any part of a device may void its warranty.

This will install new and modify existing MyCloud core files, hence may void its warranty. After installing, open your browser and point to the local URL stated in the installer.

Note that you’ll see HTTPS security error prompt, just proceed, on some browsers, you’ll need to click on ‘advanced’ prior.

Chrome Cert Error
Chrome Cert Error
IE Cert Error
IE Cert Error

Login using any of your existing WD MyCloud Dashboard accounts then click on the ‘?’ help icon for usage details. Extremely slow browsing after initial installation? Or what is the remote URL to access externally? Please carefully read and understand the notes section from the ‘?’ help window as they covers most of these questions.

Why is browsing slow on both WebGUI and network drive?

You need to build the WebDAV cache for the first time. Details found on the WebGUI itself in the “?” help notes section.

How to remotely access CloudDAVMod or map MyCloud to a network drive?

First of all, CloudDAVMod will NOT work if your MyCloud is in “relay mode”, check the WD MyCloud Dashboard network settings. This is usually the case if you’re in multi-NAT environment. If so, you’ll then need to manually forward the relevant ports from your router. Refer to the ‘?’ help notes section for the port details.

The remote URL to access CloudDAVMod externally or to map a network drive remotely is clearly stated in the ‘?’ help notes section mentioned above, so again please read them carefully. It’s something like:

HTTPS://device#######-########.wd2go.com[:PORT]/HOSTNAME

  • Take note of the required ‘HTTPS‘.
  • The ‘:PORT‘ is optionally omitted if it’s port 443.
  • And ‘HOSTNAME‘ is case-sensitive.

To access from the browsers i.e. Chrome, Firefox, IE, Edge, Opera, Safari or mobile browsers, just go to the specified URL stated in the help section. Best to bookmark them for easy access. To map onto a network drive, use the simple similar methods on different OSes described below providing the same URL. Note that the default port is ‘443’ if requested unless stated otherwise.

  • Windows (Explorer): From menu, click Computer, Map network drive (or right-click on ‘This PC’ icon).
  • Mac (Finder): From menu, click Go, Connect to Server (or Command-K).
  • Linux (Nautilus): From menu, click File, Connect to Server.

If this the first time you’ve heard about WebDAV network drive mapping, please do some research about it. Example there’s a known 4GB file size limit for mapped network drive. A work around is to use the CloudDAVMod WebGUI instead. The network drive is best used for smaller files like editing documents, pictures and music files. If you’re dealing with larger files i.e. few hundreds megabytes to gigabytes in size, certain OS like Windows may stall for a while e.g. trying to right-click on a 1GB video file. So best is to stick with the more responsive CloudDAVMod WebGUI.

As promised, my donors will get the priority to install my newer builds. I will post a new comment when it’s released to the public to be used with the anonymous credentials. Donors with donation credentials, please use this installer code on your WDMyCloud:

For the older firmware, refer to the previous CloudDAVMod v1.0. If you’re upgrading, remember to clear your browser’s cache i.e. CTRL+SHIFT+F5.


For firmware 04.05.00-334:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.05.00-334|sh;

Fixed: Fullscreen toggle, ‘about:blank’ and ‘ResizeObserver loop limit exceeded’ errors.


For firmware 04.05.00-327:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.05.00-327|sh;

Updated: JQuery v3.3.1.

Fixed: Possible scheduler issue causing drive not going to sleep.


For firmware 04.05.00-320:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.05.00-320|sh;

Fixed: Issue starting server due to paths with spaces. Settings changed scheduler not triggered due to wrong permissions.


For firmware 04.05.00-315:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.05.00-315|sh;

Updated: JQuery v3.2.1. Folders are now grouped top of the list for all manual sorting and search functions which should be the normal behavior.

Fixed: Error on browsers with plugins that modifies or broke user agent strings. Issues with parts display global array not reinitialized in new search results. Search list not displaying the first result. Cleanup ANSI color/style character leftovers from WWW-SSH Panel. Media streamer status still fading away even there’s mouse movements.


For firmware 04.04.05-101:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.04.05-101|sh;

New: System panel for MyCloud Dashboard admin. MyCloud file/folder auto expiring links sharing with captcha and password protected zip. Search recursively by any type/size/modified deep into paths via Unix find . Detailed properties and folder usage via Unix stat / du  in Context-Menu. Image previewer with navigation/zoom/pan/rotate support. M3U playlist track order and track title support. Used and total share sizes in stats panel. Root shares sizes on home page size column. Range selections to expand or reverse with [SHIFT] or Context-Menu. Export selections to CSV formatted file.

Updated: JQuery v3.1.0. Improved help sections, subtitle error detection and page loadings. Changed to client side column sortings to adapt the new search and range select functions, hence toggling selections are now affected only on visible parts/filtered items and all selections will now reset during filtering. Allow browser’s autocomplete in inputs. Allow text selections in help dialog. Visual alerts when certain functions are restricted. Filesize in media streamer status. To allow play next events, clicking on any stream media during a non-stop loop play mode will now continue the playback from there instead of previously ending the loop mode. Tooltips will many infos will now stay visible unless page scrolled or cursor moved. List tooltips will now show root share sizes in home page or show track order and track title when the new available M3U playlist support loads. Retain copied item selections when navigating back to its originating path. The top selected/copied cursor hovered list indicator will now reveal which are the copied items among selected ones. Folder size column are now displayed as 4K block size unless populated from shares in the home page. WebDAV caches are now automatically updated if required by just opening the help section.

Fixed: Minor installer bug, codes cleanup and UI performance. Parts display exceeding item list. Keyboard sort tooltips typo. Tooltips appearing fixed top-left on certain mobile browsers. Stats size not including less than 1Kbytes items. [CTRL]+A, [CTRL]+C and [CTRL]+V shortcuts behavior when there’s text input. Vary header Chrome caching issues. Case-sensitive and folder rename. Further sanitization of URIs with non-standard or controlled characters that caused file/media operation failures. RegExp filter results count should reflect as per-row. AJAX array issues, changed to hash object. Scroll and click events triggered more than once. Context-Menu hidden on fullscreen video stream, hence missing out the ‘Lock screen’ feature. Media streamer doesn’t stop loading current data on next or close events, had to unload by force on buggy browsers. Forced logout for browsers caching the credentials. WebDAV permissions sometimes not reloaded.


For firmware 04.04.04-101:
curl teanazar.com/installer.fcgi?clouddavmod_1.1-04.04.04-101|sh;

64 thoughts on “CloudDAVMod v1.1 for WD My Cloud firmware V4”

  1. It works perfectly, but the only detail I do not see the button to access the admin panel, and is the same account that I access the administration panel WdMycloud

  2. Hello Felipe,

    This has been tested on the latest firmware 04.04.04-101 (20th Sep 2016) by one of the testers.

    The button to access the admin panel is located top-right of the “help” section, refer screenshot below. It’s only visible there if you login using the same account as the one for MyCloud Dashboard.

    If you still can’t get it right, please send me an email or feedback form request as I’ll need to review what’s the cause.

      1. No problem. I had it placed in the help window as there’s not enough room in the menus while in mobile portrait view even in my 5.7″, priority given to other buttons. Furthermore regular non-admin users don’t need it.

  3. Dear Nazar,

    Thanks lot lot for the great work. I installed and it works. I can access vie webdav from the ipad on the wdmycloud. The link which is shown in the help file rocks. I also tried to connect via webdav giving the local IP adress but unfortunately this is not working. I received an Error 405. Do you know the reason for that

    1. Hello Michael,

      No problem glad you like it 🙂 When you tried WebDAV using the local IP address, have you tried with https://192.168.1.2/wdmycloud (or whatever your local IP is, take note of the required HTTPS, need no :port if any stated in the “link” since it’s local and case sensitive path /wdmycloud or whatever your MyCloud has been renamed)?

      Actually even if you’re accessing locally, you can always use the “link” shown in the help file. This will still route back to your local network because it’s just an external DNS but the IP will resolve back to your router. I mean your router will be smart enough to know it’s your own public IP then just route it back internally when you’re accessing it locally.

      Anyway using the DNS method is much preferred than IP because on some systems i.e. Windows, you will not be able to connect to WebDAV using its IP due to the mismatched SSL certificate (unless you install the certificate manually).

    1. Hello Josten,

      For the error, which browser/version is this, looks like Chrome, which version? It has been tested working with some of the major browsers, even the latest Chrome. Perhaps you could try opening in incognito mode with no extensions see if it helps. Else I’ll need to help you debug, let me know when you’re free later today.

      Edited: I suspect one of your Chrome extensions is modifying your browser user agent, see the top blue text on this page, What’s My User Agent. It should read something like Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; MDDCJS; rv:11.0) like Gecko.

      As for the mismatch disk space, it’s not a bug. This is normal for any WebDAV mapped drives. See WebDav mapped drive reports incorrect drive capacity.

  4. I updated My WD Cloud firmware today. Now I couldn’t install the CloudDAVMod v1.1 on my firmware 04.04.04-101 because of “Error-10: Unable to retrieve required files!” and I couldn’t install CloudDAVMod v1.0 because of “Error-1: This CloudDAVMod version is not compatible with your MyCloud firmware 04.04.04-101!”. It is a dead end. Dear Nazar78, please leave us any possibility to use the CloudDAVMod on firmware 04.04.04-101. Thank you for your work.

    1. The latest CloudDAVMod v1.1 is currently only available to donors. I’ll release it to the public once majority of the donors has installed.

  5. CloudDAVMod Updated! [20161221] Version 1.1-04.04.05-101 released. If you’re using the WebGUI, clear your browser’s cache i.e. CTRL+SHIFT+F5.

    1. Hi Nazar, i have installed the latest Version above but i am stuck with url. can not open webdav on browser. Attached is the image…

      1. Hello Himanshu,

        Do you have a plugin that modifies your browser's user agent? Take a look at this page here. For Chrome, it should look something like Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36.

        Try starting the browser in incognito/private mode without any plugins/add-ons, it should work. Then you can isolate the problematic plugin. Any plugin that modifies a browser's user agent is considered inappropriate unless in development mode because it may break some sites trying to guess your browser.

        1. Thank You Nazar! It is working now. Issue was with my browser Chrome. I have install Firefox browser and while opening the link it give me option to add some certification. Now it is working perfectly. Thanks !!

          1. No problem glad it helps (-:

            Like most of the major modern browsers, it should also work in Chrome which has been tested. Just find out which plugin causes the issue. You can also try uninstall then reinstall Chrome.

  6. Hi,
    After a lot of seraching over the net, I just found your workaround in order for me to access WDMy Cloud unit from outside my local network. I have donated and installed the NAVMod with success. But, I’m lost a little bit.

    I’m able to map the drive usind the command found in the ? help panel but my goal is to add a URL source using webdav option in Kodi and I cannot find the URL to use in order for Kodi to connect. Also, I assume the port would be 9446. Could you help me with this?

    1. Hello Jean,

      The URL you need for Kodi is similar to the one you use to map the drive, found in the “?” help panel. Only that in Kodi it’s interpreted as davs://hostname:[port]/path/ where davs with the “s” is for HTTPS, hostname is your MyCloud DNS, port in your case 9446 and path is your case-sensitive hostname prefix.

      E.g. from Kodi’s main page, click Music > Files > Add Music… > Browse > scroll down and click “Add network location…” > scroll the “Protocol” to “WebDAV server (HTTPS)”.

      In the “Server address”, enter your MyCloud DNS found in the “?” help panel without the “DAVS|HTTPS://” protocol prefix i.e. device#######-########.wd2go.com.

      In the “Remote path”, enter your case-sensitive MyCloud hostname found in the “?” help panel as the prefix followed by the full media path i.e. Jean-MyCloud/Jean/My-Music/. You can also use the browse button but you’ll need to provide the hostname prefix Jean-MyCloud prior and of course accompanied by user/pass.

      In the “Port”, enter the port number you see from the “?” help panel. If you don’t see any port, it’s by default 443.

      Refer to the screenshot attached.

      1. Hi Nazar,

        Great, thanks for the tip. It worked on the first shot I tried. I used 9446 for the port. I didn’t try 443.

        What about if my ISP IP change. Will it still work? I guess so since it’s connect to the wd2go site… Am I right?

        I have a DDNS address for my WD My Cloud unit, in this situation could I use it anywhere in the URL link of the WEBDAV source for KODI?

        Suggestion: Maybe you could add such instructions for KODI users in the ? help file…

        1. Hi Jean,

          No problem glad it helps (-:

          It’s not connected to the wd2go site, you’re just using WD’s DDNS forwarded to your MyCloud that will update itself whenever your ISP IP change.

          You can try using your personal DDNS but some WebDAV clients (like Windows map network drive) will not allow you to do this. You’ll get SSL errors due to mismatched hostname between the domain and SSL certificate.

          Suggestion noted, there’s many WebDAV clients out there (i.e. Kodi, Plex, desktop/mobile media/file player/managers) but the WebDAV connection basics are similar.

          1. Oh, I see. Then, I can stick with the actual URL and it will always connect even if my ISP changes my IP. This is great.

            Thanks again because I’m glad I can now make my family members use my other server, on top of my Synology NAS to watch movies from their homes. I made a lot of Google searches before I found your MOD. This gave me a lot of headaches before finding your great modification…

            I couldn’t figure out why I was able to use SMB/CIFS protocol with nPlayer app on my iPhone and access my WD My Cloud unit remotely but not with KODI on my PC. It’s now resolved because of you! I’m very happy.

            1. I’m glad you seems satisfied!

              Just a recommendation, since you’re sharing with your family members remotely, to minimize disruption, disable your MyCloud’s auto update feature from the WD’s Dashboard because every modification will revert. When there’s a firmware update, you could manually trigger the update then after the upgrade, just simply run CloudDAVMod’s installer (I’ll release the newer version A.S.A.P, it needs to match the firmware number) and you’re good to go.

              Also avoid SMB/CIFS remotely unless tunneled i.e. SSH/VPN as they are insecure and prone to dictionary brute attacks.

              1. I turned the auto-update off right after I had install your MOD. I didn’t want to lose my access after an update…

                Yeah, I always use a VPN when connecting with the SMB/CIFS protocol. I was aware of this but that was the only way to connect with that app before I found your great mod.

                Also, it looks like the wd2go site (for the DDNS) is down since I was configuring the access for my family members in KODI and after adding a couple of sources with success, I couldn’t add more suddenly. Is there a way to know when that site is down?

                1. I’m able to access my WD’s DDNS. You could try ping it and see if it resolves to your public IP?

                  You could also test both the URL from the “?” help panel and your personal DDNS in the web browser and see if you can view your files.

                  It could be the device itself is stalling, sometimes it happens when there’s lots of stuffs going on in the NAS. Try SSH to it and check with the top command if there’s anything rogue running. This site and the installers are also running on the MyCloud and sometimes it slows down too if I’m doing something aggressive.

                  ps: Appreciate you’d click on the “reply” button else everyone will get notified 🙁

                  1. I can access using the browser URL but it’s very slow. I guess that’s why I can’t access it for now with WEBDAV in KODI. It’s strange because it was working very well this morning. But now, I can’t do anything.

                    BTW: I still can access my device using my iPhone using SMB/CIFS without any problem and the access is fast.

                    So, I don’t know what’s going on.

                    1. I still can’t get the WEBDAV access in KODI at all. I tried all afternoon and it still doesn’t work after 5 hours of wait. Is this happening very often? Once this is resolved, will my family members be able to watch a movie whithout the connection crashing like it seems to be?

                      I was happy to finally have a connection this morning but I’m not sure anymore. Is there anything blocked?

                    2. The questions you asked not sure I could answer because WebDAV, part of Debian Wheezy Apache module, already exists in the MyCloud but disabled by WD when they upgraded to OS3 firmware. My mod just brings it back to life.

                      So far I have no issues with WebDAV also the rest who has been using it but you need to realise MyCloud is not a powerful NAS and user experience may vary depending on the usage.

                      If the WebDAV slows down, the rest including SMB/CIFS should be crawling as well, this is well known for this NAS. What is your top results? How about your memory usage? free -h I suspect your Kodi is still doing some stuffs to the MyCloud such as indexing? How large is your media library and what’s in the Kodi debug log? Strange is that you can browse the URL though it’s slow but Kodi can’t now connect? Have you tried restarting Kodi?

                      The last resort is for your to restart the service service apache2 restart or reboot the NAS.

                      If you still have issues, contact me directly and send me your Kodi (debug on) and Apache logs.

  7. OK, first I’m not a Linux or Unix expert (too bad I’m not) so I have not much ideas of what I’m doing with all this but I’ll try.

    Now, I have to tell you that my WD My Cloud unit is not physically with me now. (Actually, it’s at 1800 km away at my home!) I am at work but, I have access to a laptop at my home using TeamViewer so I can access the unit locally… sort of. The only thing I can’t do is power it off unplugging the device!

    I cannot access the unit anymore with a browser using the device URL. If I connect with the local IP to the regular admin panel, I cannot access it anymore as well. It was working yesterday. But I can use putty and I typed the “top” command. I see results. However, how can I give you the results of the “top” command? Is there a way to copy these? ANyhow, I took some screenshots if this can help.

    What I don’t understand, is that I still can access my device with my iPhone, again using the SMB/CIFS protocol at top speed!

    Now, I did not try the “service apache2 restart” command yet and I don’t know how to reboot the unit with a command. I wanted to wait for your recommandations before going further.

    Note: Just found out I cannot upload more than one image in one shot so I will add another post.

      1. Your process list and memory usage seems ok. The NAS will crawl if you see the swap usage hitting 200-300MB+. Try restarting the apache service, service apache2 restart, note this only restarts the HTTP server not the NAS.

        Before you decide to connect with Kodi again, try re-organize your media library prior. Those shares with large list (hundreds over) separate them into subfolders. Then when you add the shares, trying pointing them directly into the subfolders and do this gradually (check if everything is ok before adding more).

        I suspect Kodi is hammering the NAS with indexes on top of extracting details from each files during the library update. If possible turn off all these features.

        As I mentioned in the guide:

        The network drive is best used for smaller files like editing documents, pictures and music files. If you’re dealing with larger files i.e. few hundreds megabytes to gigabytes in size, certain OS like Windows may stall for a while e.g. trying to right-click on a 1GB video file. So best is to stick with the more responsive CloudDAVMod WebGUI.

        1. OK, restarting the Apache server gave the access back. But, I finally think that like you said, this WD MyCloud device don’t have enough power to do what I wanna do so, I will buy a true second NAS in order to achieve the tasks properly under Kodi.

          I’ll keep it for local access only .

          Thanks for your support. I gave your mod a try but it’s not for me because of the use I want to do with it.

          1. Ok noted, let me know if you need anything else.

            With this kinda application, I think we’ll need a NAS with gigs of ram, MyCloud only has 256MB. Even my i7 16GB Win10 sometimes struggle with WebDAV when tasked to demanding apps with many huge files.

            I don’t use Kodi, I usually stream directly from the CloudDAVMod WebGUI or mobile file manager via WebDAV, they are faster because no indexing involved but I just installed and tried for the sake of testing. I loaded my entire collection of music and videos via WebDAV from the MyCloud to Kodi. The library update was slow at first then when done everything seems good.

            1. This is strange. How many movies or TV series do you have in your WD My Cloud device when scanning with Kodi? Also, did you add the WEBDAV source locally or remotely AND scan locally or remotely?

              Also, each of my family members have their own database. I maybe should use OPENELEC or have a centralized SQL database instead, which would avoid the many scans all the time as I would be the one making the scans only once. But, this would implies a lot of changes on my part… and I’m too lazy to do it!

              I think I will stick with my idea to buy another Synology NAS, because the one I have is starting to be a little bit old but I never had any problems with all the WEBDAV access remotely before with it. I also use the Surveillance Station app in it (IP cameras) etc. It’s built for that…

              1. Not sure how many files but about 1.52TB of videos and I only tried remotely from my home fiber 1Gbps uplink. Measured the MyCloud uploads, it’s about 13MB/s (104Mbps) in SSL encrypted WebDAV protocol (half of non-encrypted connections mainly due to the weak CPU). In an uncompressed SOCKS proxy directly to the MyCloud I can achieve similar results you see on the speedtest.net top-right image of this site. Not bad for an underpowered NAS.

                If you still have faith, try WebDAV in Nginx? Besides Nginx being light-weight great as a front-end reverse proxy to all my back-end stuffs (like exposing WD’s Dashboard to the internet in SSL), I find its WebDAV is slightly reliable than Apache’s but you’ll need to get your hands dirty with all the manual changes to the MyCloud as it doesn’t sync accounts/shares unlike CloudDAVMod, refer to my WebHosting mods as a start.

                Edited: To save you all the hassle why not just locally mount the MyCloud to your Synology via NFS/SMB/CIFS then share the WebDAV from there?

  8. Hello. I’m new user of 1st gen wd my cloud. Still learning and looking for apps which could extend its functionality. Is there any chance for public release of CloudDAVMod v1.1 any time soon ? I have read that it’s available for donors for few months but still not available for anonymous use. Thank you for answer.

    1. Hello Karol,

      The version 1.1 is currently reserved for donors. I will probably only release it when there’s newer version but not anytime soon.

      Version 1.0 (without advanced functions like search/system panel) is available to public but you’ll need to downgrade to older firmware that match its version.

  9. CloudDAVMod Updated! [20170420] Version 1.1-04.05.00-315 released. If you’re using the WebGUI, clear your browser’s cache i.e. CTRL+SHIFT+F5.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax