NextCloud Installation Q & A

  • OwnCloud vhost setup is slow for NextCloud.
    You can test it, but don't use it for the long run.


    Double check your configuration.
    It may take more than 2 or 3 times to get it right.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

  • OwnCloud vhost setup is slow for NextCloud.
    You can test it, but don't use it for the long run.

    Would it make sense to do the setup with owncloud config and later paste the vhost config from the tutorial?


    The config is the only thing, that I have changed now...



    Double check your configuration.
    It may take more than 2 or 3 times to get it right.

    :D;( I am more around 10 to 15 times double checking and retrying. What else than the vhost config could I check/adapt? Could it also be an OMV3 vs OMV4 difference?

  • Would it make sense to do the setup with owncloud config and later paste the vhost config from the tutorial?

    No. That's the reason I wrote the tutorial.


    The tutorial work for OMV3 and OMV4.
    OMV4 just need to install additional dependencies.
    Check some the previous posts.



    By the way, check your NC permissions.
    Ensure it's www-data:www-data


    Since you aren't using SSL at the moment, set : fastcgi_param HTTPS off


    Copy and paste your vhost config here, maybe some other users can help you.


    I just looked page 1, and one of the users had the same error like yours: https://forum.openmediavault.o…xtCloud-Installation-Q-A/

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    2 Mal editiert, zuletzt von tinh_x7 ()

  • By the way, check your NC permissions.
    Ensure it's www-data:www-data

    Where exactly can I check this, here?

    There it looks like this:

    It looks similar with folder "www".


    My vhost config:



    Since you aren't using SSL at the moment, set : fastcgi_param HTTPS off

    Already applied.



    I just looked page 1, and one of the users had the same error like yours: forum.openmediavault.org/index…xtCloud-Installation-Q-A/

    I found that too, yet I have used the method to upload that install php file. In my next try (tries :P ) I will try to use the download method.


    If you find something wrong in the sharedfolders config or else, I am happy to learn by it!


    Thanks again.

  • Ok, couple steps ahead 8o I processed the downloader method, as described in the tutorial, from step 4 on, that worked finally! But I don't know why... ?(


    My procedure according to steps 4 to 7:

    Code
    cd /srv/dev-disk-by-label-Testraid/www/nextcloud
    wget https://download.nextcloud.com/server/releases/nextcloud-13.0.4.zip
    apt-get install unzip # because it told me first, "command not found"...?
    unzip nextcloud-13.0.4.zip
    cp -r nextcloud/. /srv/dev-disk-by-label-Testraid/www/nextcloud
    cd /srv/dev-disk-by-label-Testraid/www/nextcloud


    After that, I was able to execute and finish the NC setup.


    Next,I ran into problems with steps 8, 9 and 10 because I could not locate the files in my NC13 setup. I also had NC telling me in the security checks, that OPcache settings are not correct.


    Following, my steps in a short how it worked out for me (after fiddling a lot in this many config files):


    - after checking, installed redis-server and php7.0-redis
    - in my: /srv/dev-disk-by-label-Testraid/www/nextcloud
    - changed: config.php to (that is one part, that was quite unclear where and in which file to do)

    - removed nextcloud.zip and the nextcloud dir
    - created the script for strong permissions (which hopefully helps for something):


    - executed: bash setstrongpermissionnc (couple of times)
    - service nginx restart (couple of times)


    - opcache problem solved by editing: etc/php/70/mods-available/opcache.ini


    Now I need to take care about the message, that "files haven't passed the integrity check" - a lot of files indeed...
    And finally to enable SSL with my existing lets-encrypt certficate.


    If my notes help others, my pleasure.


    thanks especially to tinh_x7
    :thumbup:

  • Glad you got NC working.


    To view permissions, connect to your server via SSH with Putty or Terminal (Mac/Linux).


    1. cd srv/dev-disk-by-label-Testraid/www/nextcloud
    2. ls -la


    "files haven't passed the integrity check" : telling you that some files integrity don't match with it's original hash.
    You may have to copy & replace those files from the nextcloud-vXYZ.zip into your server. Next, chown entire NC dir to www-data:www-data.
    Then re-scan the files from NC admin panel.

    - executed: bash setstrongpermissionnc (couple of times)
    - service nginx restart (couple of times)

    When your NC is working like you wanted, then run this script only once.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Einmal editiert, zuletzt von tinh_x7 ()

  • Hi and thanks for the tutorial! It worked very well in omv 3, now I upgraded to omv 4 and I run into problems.


    Whenever I try to access nextcloud after the upgrade I get a bad gateway error which can be traced back to this (see below).


    Code
    2018/07/28 16:17:45 [crit] 2617#2617: *9 connect() to unix:/var/run/fpm-34c7e7c6-933e-424b-97ee-8b5c99892767.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.XXX, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/fpm-34c7e7c6-933e-424b-97ee-8b5c99892767.sock:", host: "192.168.XXX", referrer: "https://192.168.XXX/"

    I also tried to deinstall and reinstall nginx but the error is still the same. I assume there is something broken with php but I am still new to linux and not sure what to do. Any help is highly appreciated.

  • Thanks for the quick reply!
    Unfortunately, when I use fastcgi_pass $socket; the system tells me that the command cannot be found. I also went back to my working omv 3.0 installation and there I get the same error.


    Back in the upgraded omv 4 installation I found in etc/nginx/sites-available & etc/nginx/sites-enabled a zzz-omv-nginx file in which the broken sock file is mentioned set $socket "unix:/var/run/fpm-65c47d61-df16-43b9-bb80-e098bd11a952.sock";. I replaced it with set $socket "unix:/var/run/php/php7.0-fpm.sock but somehow it is not used. After restarting the whole system, again I find the old broken sock file in it.

  • Hi
    Same problem. I wrote a reply with my environment and summary at https://forum.openmediavault.org/index.php/SearchResult/1777880/?highlight=.
    In my case, replacing the line fastcgi_pass $socket; makes the OMV4 gui to stop working. I did not reset the system, just restarted nginx and php7.0-fpm

  • Guten Abend,


    Ich habe gestern ein Update auf die Version 13.0.5 gemacht.
    Und nun bekomme ich einen 500er Error gemeldet.


    Folgende Konfigurationen habe ich:


    OMW 4:


    Server:
    Zusätzliche Optionen:



    PHP Pool:


    Code
    env[HOSTNAME] = $HOSTNAME
    env[PATH] = /usr/local/bin:/usr/bin:/bin
    env[TMP] = /tmp
    env[TMPDIR] = /tmp
    env[TEMP] = /tmp


    Nextcloud Config:




    Hat jemand eine Idee woran es liegen kann das ich keinen Zugang mehr bekomme?


    Vielen Dank schon einmal für eure Hilfe.

  • How did you update? Web based or terminal?


    Try deactivating server in ngnix tab and reactivating it.

    Chaos is found in greatest abundance wherever order is being sought.
    It always defeats order, because it is better organized.
    Terry Pratchett

  • ich habe auf der web based versucht das update zu machen.
    Doch das Ergebniss ist diese Fehlermeldung.


    ngnix habe ich schon neu aufgesetzt und neugestartet.


    Das Problem tritt ja auch erst auf wenn man sich anmelden möchte.

  • do you use http or https ?

    omv 6.x | 64 bit | omvextrasorg 6.x |
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | nextcloud/all-in-one | linuxserver/swag | paperless-ngx | jellyfin/jellyfin | lmscommunity/logitechmediaserver | adguard/adguardhome |

  • I upgraded to nextcloud 14 and added


    Code
    add_header Referrer-Policy no-referrer always;





    to my nginx-config


    my config is:



    I get no errors within Nextcloud -> Settings ->Overview



    but checking Nextcloud Security Scan throws me:




    Changing my config to



    Gives me a positive check on Nextcloud Security Scan



    but within Nextcloud -> Settings -> Overview




    This is paradox! Whats wrong with my config? I am a little concerned about security of my cloud.


    Edit (2018-10-03):


    I figured out, that nextcloud security-scan is crap, I used securityheaders.com instead, which stated me an "A".
    I lack


    Code
    Content-Security-Policy
    Feature-Policy


    Has someone experience setting up these headers and can give me a little hint? I tried some recommendations I found on the internet, but it seems there is a synthax error in it.


    Example:

    Code
    add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com https://assets.zendesk.com https://connect.facebook.net; img-src 'self' https://ssl.google-analytics.com https://s-static.ak.facebook.com https://assets.zendesk.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://assets.zendesk.com; font-src 'self' https://themes.googleusercontent.com; frame-src https://assets.zendesk.com https://www.facebook.com https://s-static.ak.facebook.com https://tautt.zendesk.com; object-src 'none'";
    Code
    add_header Feature-Policy geolocation none;midi none;notifications none;push none;sync-xhr none;microphone none;camera none;magnetometer none;gyroscope none;speaker self;vibrate none;fullscreen self;payment none;


    It seems there is an problem with " " and ' ' signs.

    Chaos is found in greatest abundance wherever order is being sought.
    It always defeats order, because it is better organized.
    Terry Pratchett

    5 Mal editiert, zuletzt von riff-raff ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!