NextCloud Installation Q & A

    • OMV 3.x
    • New

      Stramm wrote:

      In LE the web root is
      the domain your noip domain

      In nginx extra options the server_name is your noip domain.
      The rest as described in this thread.
      Yes, i've done it in that way. Only other thing i have changed in nginx options is the access permission for the '.well-known' directory otherwise i received a 403 permission denied error.
      I added these lines before generating certificate ;

      Display Spoiler

      location ^~ /.well-known/ {
      [*]allow all;
      [*]root /var/www/openmediavault;
      [*]try_files $uri =404;
    • New

      Just to recap on 404 Not Found issue
      if you get something like this:
      2018/04/11 14:34:03 [error] 2292#0: *1057 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client:, server: , request: "GET /setup-nextcloud.php HTTP/1.1", upstream: "fastcgi://unix:/run/fpm-32a2476e-7999-4df4-99b9-53432153b9b2.sock:", host: ""
      with file name that you are looking for that can be sorted with changing PHP Default seting turning ON and OFF, strangely i had to try few times, and for me it works with setting turned ON.
      if you get something like this:
      2018/04/10 18:39:24 [error] 29588#0: *4 open() "/srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud/robots.txt" failed (13: Permission denied), client:, server: , request: "GET /robots.txt HTTP/1.1", host: ""
      2018/04/11 07:26:17 [crit] 23485#0: *4 stat() "/srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud/favicon.ico" failed (13: Permission denied), client:, server: , request: "GET /favicon.ico HTTP/1.1", host: ""20
      that is permission issue, www-data:www-data has to have permission on entire path to Nextcloud folder. you can chek that by issiuing:
      sudo -g www-data stat /path/to/your/nextcloud
      for group and
      sudo -u www-data stat /path/to/your/nextcloud
      for user
      I had
      root@openmediavault:~# sudo -u www-data stat /srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud

      stat: cannot stat '/srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud': Permission denied
      for user
      root@openmediavault:~# sudo -g www-data stat /srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud
      File: /srv/dev-disk-by-id-md-name-openmediavault-0/www/nextcloud

      Size: 432 Blocks: 0 IO Block: 4096 directory

      Device: 2ch/44d Inode: 319444 Links: 1

      Access: (2775/drwxrwsr-x) Uid: ( 33/www-data) Gid: ( 33/www-data)

      Access: 2018-04-15 20:27:24.195046030 +0200

      Modify: 2018-03-31 19:52:47.175290573 +0200

      Change: 2018-04-15 21:47:41.786165039 +0200

      Birth: -
      for group
      the solution is to change permission for each folder in the path:
      chmod +x /path
      chmod +x /path/to
      chmod +x /path/to/your
      chmod +x /path/to/your/nextcloud
      you can use g+x for group and u+x for user
      unfortunately for me none of those worked and i have created new place for nextcloud, it doesnt have to be in www folder.
    • Users Online 2

      2 Guests