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

    Install Nextcloud 13.0.0 on Fedora 27

    IT Discussion
    how to nextcloud nextcloud 13 real instructions guide fedora 27
    21
    188
    30.8k
    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.
    • scottalanmillerS
      scottalanmiller @NashBrydges
      last edited by

      @nashbrydges said in Install Nextcloud 13.0.0 on Fedora 27:

      I have a Nextcloud instance running on Hyper-V using a 500GB dynamically expanding disk that is working perfectly. I can see that it's barely using any of the space. I followed these instructions for creating a Nextcloud instance on Fedora and when I use a dynamically expanding disk, for some reason, the install does not recognize it as a full 500GB disk so after uploading a few large test files, I'm out of space at around 10GB. The Nextcloud instance is on a Fedora 27 minimal install.

      Any ideas where I may have gone wrong? I used this command to create the disk:

      New-VHD -Path C:\MyVHDs\nextcloud.vhdx -SizeBytes 500GB -Dynamic -BlockSizeBytes 1MB

      Does Fedora not play well with dynamically expanding disks? I could instead create a fixed disk but I'd like to avoid that if I can.

      Haven't tried that, but I would not expect it to like that.

      NashBrydgesN 1 Reply Last reply Reply Quote 0
      • NashBrydgesN
        NashBrydges @scottalanmiller
        last edited by

        @scottalanmiller said in Install Nextcloud 13.0.0 on Fedora 27:

        Haven't tried that, but I would not expect it to like that.

        So you're suggesting I'd stick to fixed disk instead? Curious as to why Ubuntu seems ok with it but Fedora isn't.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @NashBrydges
          last edited by

          @nashbrydges said in Install Nextcloud 13.0.0 on Fedora 27:

          @scottalanmiller said in Install Nextcloud 13.0.0 on Fedora 27:

          Haven't tried that, but I would not expect it to like that.

          So you're suggesting I'd stick to fixed disk instead? Curious as to why Ubuntu seems ok with it but Fedora isn't.

          Requires a hook. I'm sure that there is a way to do it.

          1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @NashBrydges
            last edited by black3dynamite

            @nashbrydges said in Install Nextcloud 13.0.0 on Fedora 27:

            I have a Nextcloud instance running on Hyper-V using a 500GB dynamically expanding disk that is working perfectly. I can see that it's barely using any of the space. I followed these instructions for creating a Nextcloud instance on Fedora and when I use a dynamically expanding disk, for some reason, the install does not recognize it as a full 500GB disk so after uploading a few large test files, I'm out of space at around 10GB. The Nextcloud instance is on a Fedora 27 minimal install.

            Any ideas where I may have gone wrong? I used this command to create the disk:

            New-VHD -Path C:\MyVHDs\nextcloud.vhdx -SizeBytes 500GB -Dynamic -BlockSizeBytes 1MB

            Does Fedora not play well with dynamically expanding disks? I could instead create a fixed disk but I'd like to avoid that if I can.

            Last time I check, the default Fedora Server install will only partition enough for its need. But leave the rest untouched.

            NashBrydgesN 1 Reply Last reply Reply Quote 1
            • NashBrydgesN
              NashBrydges @black3dynamite
              last edited by

              @black3dynamite said in Install Nextcloud 13.0.0 on Fedora 27:

              Last time I check, the default Fedora Server install will only partition enough for its need. But leave the rest untouched.

              Looks like you might be right. Cockpit only shows the root and boot mounts for a total of 16GB.

              0_1518620343168_7faf06f5-7912-428e-8eb2-5931a33867a6-image.png

              1 Reply Last reply Reply Quote 1
              • NashBrydgesN
                NashBrydges
                last edited by

                I used Cockpit to expand the root folder to the max allowable which recognized the 500GB disk. Now shows correctly:

                0_1518620655044_fbcab4d9-7029-4940-aed4-8a8b60f97126-image.png

                Logged back into Nextcloud and I've now got access to the expanded storage. Sweet!

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

                  @nashbrydges I had the same issue on a Fedora install. I created a 3Tb dynamic disk and had to manually partition Fedora to get the full disk for /. This was Hyper-V 2016.

                  JaredBuschJ NashBrydgesN 2 Replies Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @brandon220
                    last edited by

                    @brandon220 said in Install Nextcloud 13.0.0 on Fedora 27:

                    @nashbrydges I had the same issue on a Fedora install. I created a 3Tb dynamic disk and had to manually partition Fedora to get the full disk for /. This was Hyper-V 2016.

                    This is a normal Fedora tactic. I'll make a guide on this later or something.

                    NashBrydgesN 1 Reply Last reply Reply Quote 1
                    • NashBrydgesN
                      NashBrydges @brandon220
                      last edited by

                      @brandon220 Using Cockpit was ridiculously easy,

                      1 Reply Last reply Reply Quote 0
                      • NashBrydgesN
                        NashBrydges @JaredBusch
                        last edited by

                        @jaredbusch Good to know. This was my first time using Fedora.

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

                          I have a 2 Tb Nextcloud install on Ubuntu (16.04) from a couple years ago. I need to migrate everything to a new server using Fedora but a migration seems harder than it should be. Hopefully I will tackle it soon. I've not had any issues with Ubuntu but everyone here seems to dislike it.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • ObsolesceO
                            Obsolesce
                            last edited by Obsolesce

                            @NashBrydges

                            The default behaviour of a Fedora Server install is to just use what's needed. During install, you need to select the "custom" option and add space to your / partition and/or add a /home if you desire.

                            See the first section of my post here: https://mangolassi.it/topic/16084/installing-fedora-27-lamp-stack-plus-wordpress

                            1 Reply Last reply Reply Quote 3
                            • scottalanmillerS
                              scottalanmiller @brandon220
                              last edited by

                              @brandon220 said in Install Nextcloud 13.0.0 on Fedora 27:

                              I have a 2 Tb Nextcloud install on Ubuntu (16.04) from a couple years ago. I need to migrate everything to a new server using Fedora but a migration seems harder than it should be. Hopefully I will tackle it soon. I've not had any issues with Ubuntu but everyone here seems to dislike it.

                              "Dislike" is strong. "Don't like compared to common alternatives" is better.

                              1 Reply Last reply Reply Quote 3
                              • M
                                mattbagan
                                last edited by

                                Whats the best way to configure the data directory? Do I create a large VM or a separate disk mounted on the data folder?

                                ObsolesceO scottalanmillerS 2 Replies Last reply Reply Quote 0
                                • ObsolesceO
                                  Obsolesce @mattbagan
                                  last edited by

                                  @mattbagan said in Install Nextcloud 13.0.0 on Fedora 27:

                                  Whats the best way to configure the data directory? Do I create a large VM or a separate disk mounted on the data folder?

                                  For a file server, I'd have a separate .VHDX for the file storage, and mount it as /DATA

                                  1 Reply Last reply Reply Quote 1
                                  • scottalanmillerS
                                    scottalanmiller @mattbagan
                                    last edited by

                                    @mattbagan said in Install Nextcloud 13.0.0 on Fedora 27:

                                    Whats the best way to configure the data directory? Do I create a large VM or a separate disk mounted on the data folder?

                                    Varies on your needs. NextCloud recommends separate BtrFS volume. I like a separate LVM2 volume with XFS.

                                    1 Reply Last reply Reply Quote 1
                                    • M
                                      mattbagan
                                      last edited by

                                      @scottalanmiller @Tim_G Thanks for the info. I will have a separate disk for the data. I will be using this guide to migrate from ubuntu to fedora.

                                      1 Reply Last reply Reply Quote 2
                                      • S
                                        sopdahl
                                        last edited by

                                        Very nice! I've done this before on Fedora 23 with OwnCloud, but the procedure was confusing.

                                        I wanted to add something for users who might have an issue like I did. I have a separate physical disk I wanted to setup for the data disk, but found myself running through most of your procedure without having setup or mounted the disk. I took your advice and used the default /var/www/html/nextcloud/data path.

                                        At the NextCloud wizard, I received a "can't read or write into the data directory" message. I knew it had something to do with permissions. First, I had to re-issue the chown apache:apache -R /var/www/html/nextcloud command because once the disk was mounted the data folder reverted back to root:root - that's a given. But the same error came up. So, I figured it was SELINUX and I re-ran the selinux_config.sh script, which gave me an error for each folder saying it was already defined. Even so, I tried NextCloud again and had the same data directory error.

                                        A little poking around and I found this out: you have 2 commands in SELINUX: "semanage fcontext" and "restorecon" ...
                                        The "already defined" error was coming from the semanage fcontext command, so I read a bit about restorecon and discovered that if you add an "-F" parameter, it will force the command rather than bypass it if it's already been run. There is no error from restorecon, it just silently doesn't work. Adding the -F parameter worked: restorecon -R -F ${ocpath}/data.

                                        Thank you, I have a nicely running NextCloud system now!

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

                                          @sopdahl said in Install Nextcloud 13.0.0 on Fedora 27:

                                          Very nice! I've done this before on Fedora 23 with OwnCloud, but the procedure was confusing.

                                          I wanted to add something for users who might have an issue like I did. I have a separate physical disk I wanted to setup for the data disk, but found myself running through most of your procedure without having setup or mounted the disk. I took your advice and used the default /var/www/html/nextcloud/data path.

                                          At the NextCloud wizard, I received a "can't read or write into the data directory" message. I knew it had something to do with permissions. First, I had to re-issue the chown apache:apache -R /var/www/html/nextcloud command because once the disk was mounted the data folder reverted back to root:root - that's a given. But the same error came up. So, I figured it was SELINUX and I re-ran the selinux_config.sh script, which gave me an error for each folder saying it was already defined. Even so, I tried NextCloud again and had the same data directory error.

                                          A little poking around and I found this out: you have 2 commands in SELINUX: "semanage fcontext" and "restorecon" ...
                                          The "already defined" error was coming from the semanage fcontext command, so I read a bit about restorecon and discovered that if you add an "-F" parameter, it will force the command rather than bypass it if it's already been run. There is no error from restorecon, it just silently doesn't work. Adding the -F parameter worked: restorecon -R -F ${ocpath}/data.

                                          Thank you, I have a nicely running NextCloud system now!

                                          No problem. I am happy you figured it out.

                                          I did not think about the -F paramter to force it to redo it. That is a good idea to add to the instructions in case someone redoes something like you did.

                                          1 Reply Last reply Reply Quote 1
                                          • NashBrydgesN
                                            NashBrydges
                                            last edited by

                                            The one additional step I also did was to have what Nextcloud calls "pretty URLs"

                                            Add these lines to the config.php file (https if you've secured your instance with certs, http if you haven't)

                                            'overwrite.cli.url' => 'https://www.mydomain.com',
                                              'htaccess.RewriteBase' => '/',
                                              'overwriteprotocol' => 'https',
                                            

                                            Then from terminal, run this command.

                                            sudo -u apache php /var/www/nextcloud/occ maintenance:update:htaccess
                                            

                                            My URL then changed from https://www.mydomain.com/nextcloud to https://www/mydomain.com and it removed the "index.php" from shared links.

                                            B 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 9
                                            • 10
                                            • 2 / 10
                                            • First post
                                              Last post