Nextcloud and Letsencrypt – TechnoDad Tutorial – working but NC-update-problem

    • OMV 4.x
    • Resolved
    • Nextcloud and Letsencrypt – TechnoDad Tutorial – working but NC-update-problem

      Hi!

      First at all, thanks for the great tutorials!

      Last year i set up my Nextcloud with Letsencrypt in Docker on my OMV4 installation.

      Everything works great! Including OnlyOffice integration.

      Now i have the problem that my Nextcloud and the Letsencrypt-cert works while normal use of Nextcloud. (After my OMV4-PC was not used for 1-2 month i powered on my OMV4 again, and i think the LE-certificate was renewed automatically)



      I can use my NC-installation, but i tried to update my Nextcloud by using webupdater (NC à Admin àsettings à overview) and it failed with the following error:
      [Blocked Image: https://i.ibb.co/7Sxz1bZ/NC-error.jpg]

      Docker-Network-Adapters:
      [Blocked Image: https://i.ibb.co/XL1fKnn/networks.jpg]

      End-of-NC.error.log:

      Shell-Script: error.log

      1. 2019/02/05 12:26:24 [error] 311#311: *622 FastCGI sent in stderr: "PHP message: {"reqId":"FMbIm2LlzoEOLGDPk44i","level":3,"time":"2019-02-05T11:26:24+00:00","remoteAddr":"172.20.0.3","user":"test_user","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"count(): Parameter must be an array or an object that implements Countable at \/config\/www\/nextcloud\/apps\/onlyoffice\/lib\/appconfig.php#477","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.81 Safari\/537.36","version":"14.0.3.0"}" while reading response header from upstream, client: 172.20.0.3, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain_changed_for_log.dynvpn.de:443"
      2. 2019/02/05 12:26:24 [error] 311#311: *622 FastCGI sent in stderr: "PHP message: {"reqId":"FMbIm2LlzoEOLGDPk44i","level":3,"time":"2019-02-05T11:26:24+00:00","remoteAddr":"172.20.0.3","user":"test_user","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#136","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.81 Safari\/537.36","version":"14.0.3.0"}" while reading upstream, client: 172.20.0.3, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain_changed_for_log.dynvpn.de:443"
      3. 2019/02/05 12:26:31 [error] 311#311: *654 FastCGI sent in stderr: "PHP message: {"reqId":"VEGKWRkCrhzjSMCjDkZU","level":3,"time":"2019-02-05T11:26:31+00:00","remoteAddr":"172.20.0.3","user":"test_user","app":"index","method":"GET","url":"\/index.php\/settings\/admin\/overview","message":{"Exception":"TypeError","Message":"Argument 1 passed to GuzzleHttp\\Exception\\RequestException::create() must be an instance of GuzzleHttp\\Message\\RequestInterface, instance of GuzzleHttp\\Psr7\\Request given, called in \/config\/www\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php on line 65","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php","line":65,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":[{"__class__":"GuzzleHttp\\Psr7\\Request"},"*** sensitive parameter replaced ***"]},{"file":"\/config\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":203,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parame" while reading response header from upstream, client: 172.20.0.3, server: _, request: "GET /index.php/settings/admin/overview HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain_changed_for_log.dynvpn.de:443"
      4. 2019/02/05 12:26:32 [error] 311#311: *664 FastCGI sent in stderr: "PHP message: {"reqId":"EJqG40W7eViKlyhtFnfm","level":3,"time":"2019-02-05T11:26:32+00:00","remoteAddr":"172.20.0.3","user":"test_user","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"count(): Parameter must be an array or an object that implements Countable at \/config\/www\/nextcloud\/apps\/onlyoffice\/lib\/appconfig.php#477","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.81 Safari\/537.36","version":"14.0.3.0"}" while reading response header from upstream, client: 172.20.0.3, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain_changed_for_log.dynvpn.de:443"
      5. 2019/02/05 12:26:32 [error] 311#311: *664 FastCGI sent in stderr: "PHP message: {"reqId":"EJqG40W7eViKlyhtFnfm","level":3,"time":"2019-02-05T11:26:32+00:00","remoteAddr":"172.20.0.3","user":"test_user","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#136","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.81 Safari\/537.36","version":"14.0.3.0"}" while reading upstream, client: 172.20.0.3, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain_changed_for_log.dynvpn.de:443"


      Someone had this error or knows how to resolve?


      Best regards,
      Christian
    • I think remember in nextcloud forum did said. to update dockerized nextcloud version. backup nextcloud file (all of it) and the database before update. In case something breaks while update. then remove the docker image + container and re-pull the latest version of nextcloud docker image.
      :thumbsup: OMV made my day! Openvpn,SSH Webui and Docker Webui, Where I'm looking for so long.
    • ok, i solved it by manual NC upgrade

      1. stopped Docker
      2. manual NC upgrade (docs.nextcloud.com/server/13/a…nance/manual_upgrade.html)
      3. solved some DB-Problems (intux.de/2018/12/fehlermeldungen-in-nextcloud-15/)

      Source Code

      1. # open Docker bash
      2. docker exec -it nextcloud bash
      3. #add missing DB indices
      4. sudo -u abc php7 /config/www/nextcloud/occ db:add-missing-indices
      5. #convert filecache to bigint
      6. sudo -u abc php7 /config/www/nextcloud/occ db:convert-filecache-bigint
      and finaly i can access the "Overviewpage" again. Hope it will also work after next Letsencrypt renewal.
    • Users Online 1

      1 Guest