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.
    • black3dynamiteB
      black3dynamite @brandon220
      last edited by

      @brandon220 said in NC alternate data location:

      @black3dynamite I currently have /dev/sdb1 mounted as /ncdata. I did not edit the fstab file yet.

      /dev/sdb1 133102084 165696 132936388 1% /ncdata

      Should I change this first or leave as it is? Seeing that it already has a mount point, I didn't know if it will cause errors.

      Your mount is fine.

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

        @black3dynamite I have it working now. Thank you very much for the advice. What I cannot seem to understand is why it won't work by pointing to the /data location in the wizard. It seems from all the reading I have done that it should be possible. Yet, I always fail to make it work that way. Also, in @JaredBusch guide he states "Leave the data folder alone unless you know that you changed it when going through the above instructions." I thought this would be way easier but yet fails.

        JaredBuschJ 1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @brandon220
          last edited by JaredBusch

          @brandon220 said in NC alternate data location:

          @black3dynamite I have it working now. Thank you very much for the advice. What I cannot seem to understand is why it won't work by pointing to the /data location in the wizard. It seems from all the reading I have done that it should be possible. Yet, I always fail to make it work that way. Also, in @JaredBusch guide he states "Leave the data folder alone unless you know that you changed it when going through the above instructions." I thought this would be way easier but yet fails.

          What you did is how it is supposed to work. I’ve done it. But not recently. I will try and set up a test instance at some point, but SW is next week.... yeah, you are going to have to remind me.

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

            @jaredbusch Sure thing. Running Fedora Server 28 minimal from net install image and NC 14.0.1.
            I have tried multiple times and it always fails if I try to move the data location.

            1 Reply Last reply Reply Quote 1
            • brandon220B
              brandon220
              last edited by

              @JaredBusch I am sure you forgot about this by now... I was looking at @scottalanmiller script at https://gitlab.com/scottalanmiller/nextcloud_fedora_installer and it appears to do what I was doing manually following your guide. He has the script creating /data. I have not run the script on Fedora 28 and changed it to reflect NC 14.0.1 to see if it will work. Ultimately, I want the data on a separate partition. Still cannot get it to work without using fstab to mount my data folder.

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

                @brandon220 said in NextCloud alternate data location:

                @JaredBusch I am sure you forgot about this by now... I was looking at @scottalanmiller script at https://gitlab.com/scottalanmiller/nextcloud_fedora_installer and it appears to do what I was doing manually following your guide. He has the script creating /data. I have not run the script on Fedora 28 and changed it to reflect NC 14.0.1 to see if it will work. Ultimately, I want the data on a separate partition. Still cannot get it to work without using fstab to mount my data folder.

                If you want to manually mount a partition using something other than fstab, then you'd also have to manually start the web server Nextcloud is running on. It's just how the boot process works, fstab is the proper place to mount any drive or partitions.

                brandon220B 2 Replies Last reply Reply Quote 0
                • 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