SSL problem with Owncloud and Nextcloud

    • OMV 3.x
    • SSL problem with Owncloud and Nextcloud

      I followed the tuto to get Owncloud using nginx and mysql.

      Then I tryed to instal docker manually and it seems I have broken something in my OMV system because I can't get access to Owncloud. Then I installed Nextcloud but I had the same problem, and I get an SSL error, so I cant log in to my owncloud.

      This is the thing I did that it may have caused the problem (I was trying to install manually Docker cause I didn't reallyze it was on repo in OMV3):

      apt-get update
      apt-get install apt-transport-https ca-certificates
      apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

      Then I aded this repo:

      deb [arch=armel,armhf] debian-jessie main

      Then I did:

      apt-get update and got some error and I didn't go ahead.

      Please help.

      (I promise once this plugin is working I won't touch my NAS) ;) ;) ;)
    • /var/log/nginx/openmediavault-webgui_error.log

      Source Code

      1. 2016/10/25 07:01:19 [error] 951#0: *2249 FastCGI sent in stderr: "PHP message: Invalid IP address" while reading response header from upstream, client: ::ffff:, server: openmediavault-webgui, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-openmediavault-webgui.sock:", host: "", referrer: ""
    • Dropkick Murphy wrote:

      Some errors...fine...the Pros may find a solution...
      No errors from the sources i asked?

      My Odroid does not have a folder called "syslog" nor "messages" in /var/log/ so what I did is search for logs related with nginx and mysql, and nextcloud.

      This error is very strange because I can get Nextcloud from outside, I put my user and password and the reply leads me to the https version of nextcloud and I have the SSL error, so I can't access the web with my data.

      And this is keeping in mind that I did a new installation of OMV3.

      So I do not know what to do.

      Thanks for your help anyway.
    • Well

      I am stubborn as a mule so after many attempts I finally found my problem with nextcloud / owncloud.

      The problems I did have were (I am refering from now on to nextcloud because owncloud 9.1.1. has a bug and I went with nextcloud):

      1.- Access blocked from outside my network giving SSL error even I had not configured the server with SSL.

      To solve this problem you have to add the following line to the config.php file of your nextcloud:

      'overwriteprotocol' => 'http',

      2.- Upload limit of files using web access.

      To sort out this you need to change the following parameters in the /etc/php5/fpm/pool.d/ *.conf files

      php_value[post_max_size] = 25G
      php_value[upload_max_filesize] = 25G

      watch out because there are several files and not all of them affect nextcloud I reallized which was mine because of the date and also because it had mysql on the name, and I only use myswl for the nextcloud app.

      That's all, right now I have my OMV3 runing everything I need.

      Best regards.