ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NextCloud alternate data location

    IT Discussion
    nextcloud nextcloud 14 storage
    4
    24
    2.0k
    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.
    • brandon220B
      brandon220 @travisdh1
      last edited by

      @travisdh1 My dilemma is that I am trying to set up NC with an alternate "data" location which is set as /data. I can install NC all day long without issue unless I try to move the data location during install. I have tried both ways - a data folder in the same partition as the OS and with a separate disk (virtual) that is mounted as /data. Neither of those will work. I get permission errors. Apache:Apache is the owner, etc. but it does not work. I can use the default location in /var/www/html....and it works fine. If I use fstab to mount /data to /var/www/nextcloud... it works. I have been pounding my head against the wall. Everything seems correct but it has the permission on the /data in the wizard. I want a small install for the OS and a large data drive (both virtual disks). I need to retire my old server but want to set up the new one following best practices. Not having any luck as you can see.

      travisdh1T 1 Reply Last reply Reply Quote 0
      • brandon220B
        brandon220 @travisdh1
        last edited by

        @travisdh1 On on one of the test instances I used Cockpit to mount the new vdisk as /data and that works fine. NC jsut doesn't like the permissions even though apache:apache is the owner.

        1 Reply Last reply Reply Quote 0
        • travisdh1T
          travisdh1 @brandon220
          last edited by

          @brandon220 said in NextCloud alternate data location:

          @travisdh1 My dilemma is that I am trying to set up NC with an alternate "data" location which is set as /data. I can install NC all day long without issue unless I try to move the data location during install. I have tried both ways - a data folder in the same partition as the OS and with a separate disk (virtual) that is mounted as /data. Neither of those will work. I get permission errors. Apache:Apache is the owner, etc. but it does not work. I can use the default location in /var/www/html....and it works fine. If I use fstab to mount /data to /var/www/nextcloud... it works. I have been pounding my head against the wall. Everything seems correct but it has the permission on the /data in the wizard. I want a small install for the OS and a large data drive (both virtual disks). I need to retire my old server but want to set up the new one following best practices. Not having any luck as you can see.

          I remember having issues, but they were with selinux, and @JaredBusch's guide steps through all the needed changes for that. I'll have to try a fresh install and see if I have problems with it.

          brandon220B 1 Reply Last reply Reply Quote 0
          • brandon220B
            brandon220 @travisdh1
            last edited by

            @travisdh1 I thought that was the issue as well and temporarily disabled selinux and it did not fix my issue.

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post