NextCloud Installation Q & A

    • OMV 3.x

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

    • Hey,
      Thank you in advance for your guide. I've read it would also be possible with php 7(.2).
      I would like to install nc13 on my odroid hc2 with omv4. My plan is to install nc12 first and then update to 13, but unfortunately I am a beginner with linux,php an omv.
      I would be very happy if someone could give me the commands to run it with php7 and I could then upgrade to nc13 (Pre-Installation Steps 1a and if more customization is necessary)
      Many thanks in advance
    • brotbox wrote:

      Hey,
      Thank you in advance for your guide. I've read it would also be possible with php 7(.2).
      I would like to install nc13 on my odroid hc2 with omv4. My plan is to install nc12 first and then update to 13, but unfortunately I am a beginner with linux,php an omv.
      I would be very happy if someone could give me the commands to run it with php7 and I could then upgrade to nc13 (Pre-Installation Steps 1a and if more customization is necessary)
      Many thanks in advance
      Why would you want to install NC12 first? You could as well install NC13 directly (link). Botch support PHP 5.6 & 7.x
      As I remember these steps are quite acurate for later versions as well.
      I'm planning to install OMV4 on an odroid (XU4q) as well in the coming weeks so maybe I can help later on.
    • Thanks for the warning and tip. That's what I'll do then. Now I just need to know if it works with arm64.?
      Unfortunately this is my first contact with docker, too bad that there is no guide yet. Where do I write all the config/variables?
      Display Spoiler

      For example

      version: '2'volumes: nextcloud: db:services: db: image: mariadb restart: always volumes: - db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD= - MYSQL_PASSWORD= - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud app: image: nextcloud:fpm links: - db volumes: - nextcloud:/var/www/html restart: always web: image: nginx ports: - 8080:80 links: - app volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro volumes_from: - app restart: always



      and sry for my stupid questions
    • I hope it's ok if I post this here because I don't want to hijack this thread.

      This was my first try with docker too and I'm not sure if I can help you with that.
      Docker should run on ARM64 but as far as I know the docker images are not cross platform compatible.

      The Nextcloud GitHub has a directory .examples where the compose configs and a manual are located. I just downloaded the whole example directory, decided that I want an nginx proxy with apache, changed the necessary parts in the config files and executed the commands docker-compose build --pull and docker-compose up -d. Here are my configs. Maybe they will help you.

      Source Code: docker-compose.yml

      1. version: '3'
      2. services:
      3. db:
      4. image: mariadb
      5. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
      6. restart: always
      7. volumes:
      8. - db:/var/lib/mysql
      9. environment:
      10. - MYSQL_ROOT_PASSWORD=secret
      11. env_file:
      12. - db.env
      13. app:
      14. image: nextcloud:apache
      15. restart: always
      16. volumes:
      17. - nextcloud:/var/www/html
      18. - apps:/var/www/html/custom_apps
      19. - config:/var/www/html/config
      20. - /srv/dev-disk-by-label-MainPool/nextcloud_data:/var/www/html/data
      21. environment:
      22. - VIRTUAL_HOST=mydomain.spdns.org
      23. - LETSENCRYPT_HOST=mydomain.spdns.org
      24. - LETSENCRYPT_EMAIL=mymail@gmail.com
      25. - MYSQL_HOST=db
      26. env_file:
      27. - db.env
      28. depends_on:
      29. - db
      30. networks:
      31. - proxy-tier
      32. - default
      33. proxy:
      34. build: ./proxy
      35. restart: always
      36. ports:
      37. - 80:80
      38. - 443:443
      39. labels:
      40. com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
      41. volumes:
      42. - certs:/etc/nginx/certs:ro
      43. - vhost.d:/etc/nginx/vhost.d
      44. - html:/usr/share/nginx/html
      45. - /var/run/docker.sock:/tmp/docker.sock:ro
      46. networks:
      47. - proxy-tier
      48. letsencrypt-companion:
      49. image: jrcs/letsencrypt-nginx-proxy-companion
      50. restart: always
      51. volumes:
      52. - certs:/etc/nginx/certs
      53. - vhost.d:/etc/nginx/vhost.d
      54. - html:/usr/share/nginx/html
      55. - /var/run/docker.sock:/var/run/docker.sock:ro
      56. networks:
      57. - proxy-tier
      58. letsencrypt-companion:
      59. image: jrcs/letsencrypt-nginx-proxy-companion
      60. restart: always
      61. volumes:
      62. - certs:/etc/nginx/certs
      63. - vhost.d:/etc/nginx/vhost.d
      64. - html:/usr/share/nginx/html
      65. - /var/run/docker.sock:/var/run/docker.sock:ro
      66. networks:
      67. - proxy-tier
      68. depends_on:
      69. - proxy
      70. volumes:
      71. db:
      72. nextcloud:
      73. apps:
      74. config:
      75. certs:
      76. vhost.d:
      77. html:
      78. networks:
      79. proxy-tier:
      Display All

      Source Code: db.env

      1. MYSQL_PASSWORD=secret
      2. MYSQL_DATABASE=nextcloud
      3. MYSQL_USER=nextcloud
      It is a good idea to remove all docker compose parts that are left with docker-compose down --rmi all -v if you want to start from scratch. And please take my advice with a grain of salt as I don't really know what I'm doing. :D
    • brotbox wrote:

      Thanks for the quick answer. That sounds good. To be honest, I have to read myself a little bit, as the guide assumes more basic knowledge than I expected at first^^.
      Maybe I will simply get nextcloudplus(pi) via docker. I was already enthusiastic about the ncp panel. Do you think this would run on our h2/XU4q: ownyourbits/nextcloudplus-armhf or must it be special for arm64?^^
      I really doubt this will work for odroid. This sit ementions it's compiled for rpi. So most probably this will not run on odroid because it's not compiled for this soc.

      You can try the 'normal' way. It sounds difficult at first, but once you understand the logic behind a LAMP/LEMP you can do many nice projects in the future.
    • Hallo zusammen,

      leider finde ich keine Lösung für mein Problem aber evtl. kann mir ja jemand helfen.

      Ausgangssituation:
      OMV 3 [192.168.178.31]
      mysql per plugin [192.168.178.31/mysql]
      NC per Docker [192.168.178.31:81]

      Ich kann mich im der DB verbinden wenn die NC installation lokal ist, bei einer Installation über Docker bekomme ich immer folgende Fehlermeldung von NC zurück:

      Fehler Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused

      was mache ich falsch?

      Danke schonmal vorab für die Unterstützung.
      Images
      • 2018-05-21 00_59_31-Nextcloud.png

        80.25 kB, 357×892, viewed 38 times
    • I migrated from OMV3 to OMV4 with some challenges, but everything works like it is supposed to be, except the point, that I get this warning from nextcloud:



      Source Code

      1. The test with getenv(\"PATH\") only returns an empty response


      a configuration problem in php.ini or php-pool?

      seems to occur after setting

      Source Code

      1. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
      in server config to avoid 502 Bad Gateway

      Nextcloud security check gives me

      Source Code

      1. Rating A+
      2. Running Nextcloud 13.0.0.14
      3. NOT on latest patch level
      but I installed latest 13.0.2 already?!
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett

      The post was edited 1 time, last by riff-raff ().

    • the getenv is fixable.
      Look in the config pool that I've posted in the tutorial
      and check your /etc/php-fpm.d/www.conf

      Source Code

      1. env[HOSTNAME] = $HOSTNAME
      2. env[PATH] = /usr/local/bin:/usr/bin:/bin
      3. env[TMP] = /tmp
      4. env[TMPDIR] = /tmp
      5. env[TEMP] = /tmp
      However, I recommend do a new installation since you're migrated from OMV3 to OMV4.
      OMV v4.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10
    • What way would you recommend to migrate all data, calendar, kontacts, users and so on?

      I have round about 200 GB in my cloud, lots of pictures and videos made by mobile devices and auto-uploaded through nextcloud app from 15 users. They sync to their stationary devices, so if timestamp changes, all clients would redownload all the stuff. I have a good connection (40 Mbit up), but it would still take quite a while. Most important would be calendar settings, my wife would panic when she looses all of her appointments. :/

      Edit:
      I use exact your provided

      Source Code

      1. env[HOSTNAME] = $HOSTNAME
      2. env[PATH] = /usr/local/bin:/usr/bin:/bin
      3. env[TMP] = /tmp
      4. env[TMPDIR] = /tmp
      5. env[TEMP] = /tmp
      to define my php-pool in nginx-settings.
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett

      The post was edited 1 time, last by riff-raff ().

    • You should back up your data before you do a clean installation.

      Try this:

      1. Put NC in Maintenance mode.
      2. rename your NC folder to Nextcloud-old
      3. Download the current NC
      4. Extract the downloaded file
      5. Copy the config.php, apps, and data folder to the new NC directory.
      6. Test NC.

      FYI: I'm not responsible for data loss.


      Your path may be different.

      I did a few times in the path, there is no re-download data like you mentioned.

      The data folder is in : /srv/dev-disk-by-label-Data/www/nextcloud/data
      OMV v4.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10
    • I extracted my /nextcloud/data to a different location, my shares are

      /Storage/nextcloud/nextcloud
      /Storage/nextcloud/nextcloud_data

      Is it neccessary to install nc fresh or just unzip the package, since all relevant installation information such as database access, data dir, user is already set in my backuped config.php?

      Since both folders are on ZFS and daily snapshots are done, easy to set back if something goes wrong. I have daily backups of SQL as well.
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett
    • riff-raff wrote:

      I extracted my /nextcloud/data to a different location, my shares are

      /Storage/nextcloud/nextcloud
      /Storage/nextcloud/nextcloud_data

      Is it neccessary to install nc fresh or just unzip the package, since all relevant installation information such as database access, data dir, user is already set in my backuped config.php?

      Since both folders are on ZFS and daily snapshots are done, easy to set back if something goes wrong. I have daily backups of SQL as well
      Just unzip the package, and copy all your necessary settings to the new directory. It should be enough.
      OMV v4.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10
    • I did a fresh install, copied my config.php to the dir and deleted data (since i specified another path for that), works, but gave me a data integrity error. Rechecking solved the problem (mainly app data was wrong)

      I managed to get rid of the

      Source Code

      1. The test with getenv(\"PATH\") only returns an empty response


      message by uncommenting

      Source Code

      1. clear_env = no
      in

      Source Code

      1. /etc/php/7.0/fpm/pool.d/www.conf

      I still have the issue with security scan detecting wrong version
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett
    • Hey there!

      I'm new to Docker and upgraded just a day ago from OMV 2.0 to OMV 4.0 (new installation). So I pulled the official NextCloud-Image, that worked. But when I click on "run image" - I got no clue what to select. Everything I tried (which was logical to me), failed.

      Can anybody please take a screenshot for me? I want to have it "bridged", if possible.

      And what about Watchtower? Should I use it? Help would be also nice. :)

      Thank you in advance!
      Mark

      - Meine Kenntnisse in der englischen Sprache sind leider sehr begrenzt. -
    • I tried installing the newest version 13.0.3 of NC on my fresh OMV install (4.1.7) and I also ran into the "permission denied" error with Nginx when trying to open 192.168.0.xx:90/. Turns out that you need to set every folder in the entire path to +x for Nginx to work...

      Also, can someone tell me why NC should be installed on the shared folder/drive of the storage disk(s) instead of the OS drive? Everything else is installed on the OS drive so why not NC?
    • Because many people use a small SSD or even a flash drive for OMV OS with small capacity. NC data dir is placed within web root (but can be moved). So when your NC users up a lot of files, your OS drive will flood. For example, my NC users consume >100 GB of space.
      Chaos is found in greatest abundance wherever order is being sought.
      It always defeats order, because it is better organized.
      Terry Pratchett
    • Users Online 2

      2 Guests