# Another missing .ocdata in the root of the data directory issue

**URL:** <https://help.nextcloud.com/t/another-missing-ocdata-in-the-root-of-the-data-directory-issue/169333>\
**Category:** ℹ️ Support\
**Created:** [September 2, 2023, 1:57am UTC](https://help.nextcloud.com/t/another-missing-ocdata-in-the-root-of-the-data-directory-issue/169333 "2023-09-02T01:57:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ITGuy1024](https://help.nextcloud.com/letter_avatar/itguy1024/32/6_22734026db12803ebb3e059622ac3534.png) [@ITGuy1024](https://help.nextcloud.com/u/ITGuy1024)\
**Post date:** [September 2, 2023, 7:01pm UTC](https://help.nextcloud.com/t/another-missing-ocdata-in-the-root-of-the-data-directory-issue/169333/3 "2023-09-02T19:01:33Z")

</div>

I _may_ have figured it out.

My mount seems to have stopped reconnecting after reboot. I guess that’s easy to miss (for me) if you are just browsing the folder structure via ssh gui. Everything was still showing up but not actually mapped to the network drive.  
I ran a “sudo mount -a” and got **error 2 (No such file or directory) opening credential file /.nascred**  
The password file I was using stopped working.

I put the username and password into the actual string and rebooted.  
Fixed that problem but got another one something like “ **can’t write to data directory** ”

Which lead me here:

> [@Can't create or write into the data directory stored on nfs share](https://help.nextcloud.com/t/cant-create-or-write-into-the-data-directory-stored-on-nfs-share/138743/11):
>
> Hello! Sorry for the delay, I had no time before. I managed to have everything working with NextcloudAIO, but the procedure should be almost the same for you. Here are the steps I used: First install Docker and docker-compose Then: Create a Nextcloud shared folder in your Synology NAS, and give the access to your Nextcloud machine using the following parameters (sorry in French): [2022-11-17\_10-25-53] Go back on the Nextcloud machine and install the required packages for nfs $ apt install…

I ran some chown 777 commands and got this error:  
**Please change the permissions to 0770 so that the directory cannot be listed by other users**

Eventually I found this:

> [@First time install, permissions 0770 error near the end](https://help.nextcloud.com/t/first-time-install-permissions-0770-error-near-the-end/45590):
>
> I was following this [installation guide](https://www.youtube.com/watch?v=QXfsi0pwgYw&t=510s). He uses apache2, mariadb, myphpadmin, and a bunch of PHP stuff. I am attempting the install on a fresh Ubuntu (normal desktop) install on an old (but wiped) PC. I am also hosting it on my own IP, and do not want to pay for a domain name. Instead of using the default /www/var/html/data folder, I am mounting an 8TB logical volume (comprised of 2 4TB HDDs) to /home/jollyj/server, and changed the web client accordingly. EDIT: Have just realised that these…

I changed my fstab to this replicating some examples other people have posted. Nextcloud loaded up fine with no GUI errors.

```auto
//172.30.1.111/DataA/NextCloudData /mnt/nasdata cifs username=nasuser,password=nasuserpassword,uid=33,dir_mode=0770,file_mode=0666

```

It’s probably better to use an NFS share rather then SMB from the NAS but that’s what I had setup already.

From my laptop I can open the Nextcloud “app” and create a new folder and I see it populate over to my NAS location. However if I UNC to the NAS data location and create a folder it doesn’t populate into Nextcloud - but I think that is expected behavior.

I need to try it with some test users and see if the folders / permissions are actually working. But so far, much better.

---

_[View the full topic](https://help.nextcloud.com/t/another-missing-ocdata-in-the-root-of-the-data-directory-issue/169333)._
