NextCloud Installation Q & A

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • If OMV4 using PHP 7, then php5-curl will not work.

      Therefore, it should be like this, use the below commands according to your needs:

      Source Code

      1. php7.0-apcu
      2. php7.0-apcu-bc
      3. php7.0-cli
      4. php7.0-common
      5. php7.0-curl
      6. php7.0-gd
      7. php7.0-igbinary
      8. php7.0-imagick
      9. php7.0-imap
      10. php7.0-intl
      11. php7.0-json
      12. php7.0-mbstring
      13. php7.0-mcrypt
      14. php7.0-mysql
      15. php7.0-opcache
      16. php7.0-phpdbg
      17. php7.0-readline
      18. php7.0-redis
      19. php7.0-sqlite3
      20. php7.0-xml
      Display All
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10
    • i switched the language now to english

      i tried to use a different source list, what i found on the net, but still no success

      Brainfuck Source Code

      1. #------------------------------------------------------------------------------#
      2. # OFFICIAL DEBIAN REPOS
      3. #------------------------------------------------------------------------------#
      4. ###### Debian Main Repos
      5. deb http://deb.debian.org/debian/ oldstable main contrib non-free
      6. deb-src http://deb.debian.org/debian/ oldstable main contrib non-free
      7. deb http://deb.debian.org/debian/ oldstable-updates main contrib non-free
      8. deb-src http://deb.debian.org/debian/ oldstable-updates main contrib non-free
      9. deb http://deb.debian.org/debian-security oldstable/updates main
      10. deb-src http://deb.debian.org/debian-security oldstable/updates main
      11. deb http://ftp.debian.org/debian jessie-backports main
      12. deb-src http://ftp.debian.org/debian jessie-backports main
      Display All
      apt-get update





      Source Code

      1. root@openmediavault:~# apt-get update
      2. Err http://deb.debian.org oldstable InRelease
      3. Err http://deb.debian.org oldstable-updates InRelease
      4. Err http://deb.debian.org oldstable/updates InRelease
      5. Err http://ftp.debian.org jessie-backports InRelease
      6. Err http://httpredir.debian.org jessie-backports InRelease
      7. Ign file: InRelease
      8. Err http://packages.openmediavault.org erasmus InRelease
      9. Err http://ftp.debian.org jessie-backports Release.gpg
      10. Temporary failure resolving 'ftp.debian.org'
      11. Err http://httpredir.debian.org jessie-backports Release.gpg
      12. Temporary failure resolving 'httpredir.debian.org'
      13. Ign file: Release.gpg
      14. Err http://packages.openmediavault.org erasmus Release.gpg
      15. Temporary failure resolving 'packages.openmediavault.org'
      16. Err http://deb.debian.org oldstable Release.gpg
      17. Temporary failure resolving 'deb.debian.org'
      18. Ign file: Release
      19. Err http://deb.debian.org oldstable-updates Release.gpg
      20. Temporary failure resolving 'deb.debian.org'
      21. Err http://deb.debian.org oldstable/updates Release.gpg
      22. Temporary failure resolving 'deb.debian.org'
      23. Ign file: Translation-en
      24. Ign file: Translation-de
      25. Reading package lists... Done
      26. W: Failed to fetch http://deb.debian.org/debian/dists/oldstable/InRelease
      27. W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/InReleas e
      28. W: Failed to fetch http://deb.debian.org/debian-security/dists/oldstable/updates /InRelease
      29. W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/InRelease
      30. W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/InR elease
      31. W: Failed to fetch http://packages.openmediavault.org/public/dists/erasmus/InRel ease
      32. W: Failed to fetch http://deb.debian.org/debian/dists/oldstable/Release.gpg Tem porary failure resolving 'deb.debian.org'
      33. W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/Release. gpg Temporary failure resolving 'deb.debian.org'
      34. W: Failed to fetch http://deb.debian.org/debian-security/dists/oldstable/updates /Release.gpg Temporary failure resolving 'deb.debian.org'
      35. W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/Release.g pg Temporary failure resolving 'ftp.debian.org'
      36. W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/Rel ease.gpg Temporary failure resolving 'httpredir.debian.org'
      37. W: Failed to fetch http://packages.openmediavault.org/public/dists/erasmus/Relea se.gpg Temporary failure resolving 'packages.openmediavault.org'
      38. W: Some index files failed to download. They have been ignored, or old ones used instead.
      Display All
    • hi guys,
      i solved the issue, the problem was:
      i forgot to put a dns server in omv ... i thought this will be done by my router anyway.

      but now i stopped at point 4

      4. Open your Putty, and go to your share drive. ie. /media/UUID/....
      UUID is a long characters such as 54321abcdfgh977.....

      The version may change from time to time.
      You might want to check there before do the installation.

      nextcloud.com/install/#instructions-server


      Update: NC v11.0.2

      Note: You can use the this script for this step if you like: forum.openmediavault.org/index…?postID=138230#post138230 or else follow below steps>>

      according to a different thread
      forum.openmediavault.org/index…mfiles-already-installed/
      i used this functio

      Source Code

      1. root@openmediavault:~# blkid /dev/sda1
      2. /dev/sda1: LABEL="slot1" UUID="d0978d3d-013d-4b07-9a15-b9f6be4657f9" TYPE="ext4" PARTUUID="53ce6d9e-05a6-4d51-8758-95df3da44741"
      but i don`t know how to go to the shared drive tried it with cd /media/UUID and also cd /dev/UUID


      can somebody please help me :)
    • Try this: cd /media/d0978d3d-013d-4b07-9a15-b9f6be4657f9

      lsblk
      This command will list all your drives and mount points.

      I assume your NextCloud folder is under www folder.

      NC v12.0.3 download.nextcloud.com/server/releases/nextcloud-12.0.3.zip
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 2 times, last by tinh_x7 ().

    • Hi thanks for your post, i tried this already several times yesterday, but i get also this error...

      Source Code

      1. root@openmediavault:~# cd /media/d0978d3d-013d-4b07-9a15-b9f6be4657f9
      2. -bash: cd: /media/d0978d3d-013d-4b07-9a15-b9f6be4657f9: No such file or directory

      if i use the lsblk command:
      sda 8:0 0 2.7T 0 disk
      `-sda1 8:1 0 2.7T 0 part /srv/dev-disk-by-label-slot1


      yes my nextcloud folder is:
      www/nextcloud

      the thing what is a bit strange in my opinion, if open nginix --> servers
      at the column root is written:
      /srv/dev-disk-by-label-slot1/www/nextcloud

      The post was edited 2 times, last by Lucas.kr ().

    • yes i know that @tinh_x7 recommended this command, but i was so focused on the uuid :(

      i downloaded the new version of nextcloud (NC v12.0.3) unzipped and followed the instruction, but at the step 7

      7. open your browser and enter your local ip such as: 192.168.1.10:90 to begin the installation.

      502 Bad Gateway

      nginx/1.6.2


      i tried also the script of @tinh_x7 but their i get every time a permission error message

      Source Code

      1. root@openmediavault:/srv/dev-disk-by-label-slot1/www# ls -l
      2. total 12
      3. -rwxrwx--x 1 root users 1482 Sep 25 21:54 nc_installation.sh
      4. drwxrws---+ 2 www-data www-data 4096 Sep 25 21:38 nextcloud
    • I don't know how your system is setup.
      My NextCloud is installed on a RAID10, therefore it's under /media/UUID....
      After you logged into Putty via SSH, run lsblk, then post the result here.
      You should able to get the UUID after you ran lsblk command.


      Also post a screenshot of Physical Disks, File Systems, and RAID Management here, so others can help you.
      /dev/sda1 = omv OS


      You need to get the correct info about your system first before you can install any web server.
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 1 time, last by tinh_x7 ().

    • Thank you very much, my omv OS is installed on sdc, don`t know why and how i can change this


      Source Code

      1. root@openmediavault:~# lsblk
      2. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      3. sdb 8:16 0 698.7G 0 disk
      4. └─sdb1 8:17 0 698.7G 0 part /srv/dev-disk-by-label-slot4
      5. sdc 8:32 0 232.9G 0 disk
      6. ├─sdc2 8:34 0 1K 0 part
      7. ├─sdc5 8:37 0 8G 0 part [SWAP]
      8. └─sdc1 8:33 0 225G 0 part /
      9. sda 8:0 0 2.7T 0 disk
      10. └─sda1 8:1 0 2.7T 0 part /srv/dev-disk-by-label-slot1
      Images
      • file_system.JPG

        36.81 kB, 932×272, viewed 30 times
      • physical.JPG

        28.56 kB, 631×270, viewed 30 times
      • raid.JPG

        23.69 kB, 792×287, viewed 31 times
    • as i have some sparefime, i try to install omv on my virtual machine, because i like omv much more then freenas!
      and when i understand how it works, or why it was not working before i do the same on my real nas :)

      @tinh_x7
      i tried your command, and finaly i got the UUID nummber

      root@openmedia:/srv/dev-disk-by-label-data# sudo blkid -o list

      Brainfuck Source Code

      1. root@openmedia:~# sudo blkid -o list
      2. device fs_type label mount point UUID
      3. ----------------------------------------------------------------------------------------------------------
      4. /dev/sda1 ext4 / 304f6850-f452-47ff-ab87-b85eee8e248c
      5. /dev/sda5 swap <swap> 544635cb-8952-4686-a057-8c6b0b20feca
      6. /dev/sdb1 ext4 data /srv/dev-disk-by-label-data 644c035f-afc8-4774-a01c-fae719f51e1d
      7. root@openmedia:~#

      but if i try to acces this folder now via
      /media/64........1d
      or
      /srv/64.......1d (as recommended by @macom)
      does not work

      Source Code

      1. root@openmedia:~# cd /srv/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud
      2. -bash: cd: /srv/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud: No such file or directory
      3. root@openmedia:~# cd /media/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud
      4. -bash: cd: /media/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud: No such file or directory
    • Since 12.0.3 I get a lot of Errors in my logs:

      Source Code

      1. Error PHP Exception: The requested uri(/check_proxy) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      2. Error PHP Exception: The requested uri(/blog/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      3. Error PHP Exception: The requested uri(/forum/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      4. Error PHP Exception: The requested uri(/shop/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      5. Error PHP Exception: The requested uri(/test/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      6. Error PHP Exception: The requested uri(/store/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      7. Error PHP Exception: The requested uri(/site/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      8. Error PHP Exception: The requested uri(/drupal/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      9. Error PHP Exception: The requested uri(/CHANGELOG.txt) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      10. Error PHP Exception: The requested uri(/CFIDE/administrator/) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      11. Error PHP Exception: The requested uri(/MyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      12. Error PHP Exception: The requested uri(/myadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      13. Error PHP Exception: The requested uri(/pma/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      14. Error PHP Exception: The requested uri(/phpmyadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      15. Error PHP Exception: The requested uri(/phpMyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      16. Error PHP Exception: The requested uri(/muieblackcat) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 a day ago
      17. Error PHP Exception: The requested uri(/xxbb) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 2 days ago
      18. Error PHP Exception: The requested uri(/manager/html) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      19. Error PHP Exception: The requested uri(/cgi-bin/webcm) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      20. Error PHP Exception: The requested uri(/cgi-bin/webcm) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      21. Error PHP Exception: The requested uri(/admin/config.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      22. Error PHP Exception: The requested uri(/phpmyadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      23. Error PHP Exception: The requested uri(/manager/html) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      24. Error PHP Exception: The requested uri(/phpmyadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      25. Error PHP Exception: The requested uri(/MyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      26. Error PHP Exception: The requested uri(/myadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      27. Error PHP Exception: The requested uri(/pma/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      28. Error PHP Exception: The requested uri(/phpmyadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      29. Error PHP Exception: The requested uri(/phpMyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      30. Error PHP Exception: The requested uri(/muieblackcat) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      31. Error PHP Exception: The requested uri(/MyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      32. Error PHP Exception: The requested uri(/myadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      33. Error PHP Exception: The requested uri(/pma/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      34. Error PHP Exception: The requested uri(/phpmyadmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      35. Error PHP Exception: The requested uri(/phpMyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      36. Error PHP Exception: The requested uri(/muieblackcat) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      37. Error PHP Exception: The requested uri(/CGI/Execute) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      38. Error PHP Exception: The requested uri(/recordings/theme/main.css) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 3 days ago
      39. Error PHP Exception: The requested uri(/phpMyAdmin/scripts/setup.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 4 days ago
      40. Error PHP Exception: The requested uri(/admin/config.php) cannot be processed by the script '/core/templates/404.php') at /srv/dev-disk-by-label-Storage/nextcloud/lib/private/AppFramework/Http/Request.php#729 4 days ago
      Display All
      What is this? Attempts to access files in the webroot?
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett
    • Lucas.kr wrote:

      as i have some sparefime, i try to install omv on my virtual machine, because i like omv much more then freenas!
      and when i understand how it works, or why it was not working before i do the same on my real nas :)

      @tinh_x7
      i tried your command, and finaly i got the UUID nummber

      root@openmedia:/srv/dev-disk-by-label-data# sudo blkid -o list

      Brainfuck Source Code

      1. root@openmedia:~# sudo blkid -o list
      2. device fs_type label mount point UUID
      3. ----------------------------------------------------------------------------------------------------------
      4. /dev/sda1 ext4 / 304f6850-f452-47ff-ab87-b85eee8e248c
      5. /dev/sda5 swap <swap> 544635cb-8952-4686-a057-8c6b0b20feca
      6. /dev/sdb1 ext4 data /srv/dev-disk-by-label-data 644c035f-afc8-4774-a01c-fae719f51e1d
      7. root@openmedia:~#
      but if i try to acces this folder now via
      /media/64........1d
      or
      /srv/64.......1d (as recommended by @macom)
      does not work

      Source Code

      1. root@openmedia:~# cd /srv/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud
      2. -bash: cd: /srv/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud: No such file or directory
      3. root@openmedia:~# cd /media/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud
      4. -bash: cd: /media/644c035f-afc8-4774-a01c-fae719f51e1d/www/nextcloud: No such file or directory

      Don't cd the entire path, how about just cd /media/644c035f-afc8-4774-a01c-fae719f51e1d/
      Ensure the www folder is exist, else create one.

      The easy method is to create www folder, and nextcloud as a subfolder under www in OMV web gui under Shared Folders tab.
      Then use SSH into the data drive to continue the installation.

      @riff-raff

      I don't have any error in v12.0.3

      Are you using phpmyadmin ?
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 3 times, last by tinh_x7 ().

    • macom wrote:

      cd /srv/dev-disk-by-label-data

      befor OMV 3.0.68 (approx) new devices were mounted under /media/....UUID....
      after that version new devices are mounted under /srv/dev-disk-by-label-...

      thank you, this definitely does work, but i have to add the full path
      root@openmedia:/srv/dev-disk-by-label-data/www/nextcloud#

      i downloaded the new version (12.03), unzipt it, i unzipped them already in the folder i created online, changed the owner.
      but still i get the 502 bad gateway from ngnix

      here is my foder structure
      Images
      • folders_acl.JPG

        61.07 kB, 701×599, viewed 40 times
    • Hi,

      I tried to install according to the guide, but during installation I got error 502, still, I see that tables in the MySQL database were created.

      Additionally, I changed in /etc/php5/fpm/pool.d/www.conf the listen parameter from

      Source Code

      1. listen = /var/run/php5-fpm.sock
      to

      Source Code

      1. listen = 127.0.0.1:90

      Now, when I try to launch the page I get "This page isn’t working 10.103.210.3 redirected you too many times ERR_TOO_MANY_REDIRECTS" on Chrome, and blank page on any other browser. Nginx log does not show any errors, nextcloud log is not created. Any clues? Should I provide some of my config files?
    • Users Online 2

      2 Guests