Docker with nextcloud help

    • Docker with nextcloud help

      Hi
      I followed the tdl life video to install nextcloud.
      all seemed to go good, but when i log in and check overview i have some recommendations to fix.

      There are some warnings regarding your setup.
      • The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗.

      • Your web server is not properly set up to resolve "/.well-known/caldav". Further information can be found in the documentation.
      • Your web server is not properly set up to resolve "/.well-known/carddav". Further information can be found in the documentation.
      Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running 'occ db:convert-filecache-bigint' those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this.[*]filecache.mtime
      [*]filecache.storage_mtime
      [/list]Can someone point me in the right direction on how to edit what needs to be edited.
    • Its possible either way.
      1. Option: Login in to NC via the GUI with an admin-account. Install the occ-web app and execute the command there.
      2. Option:

      peterparker wrote:

      Hi,
      Im running nextcloud in docker as well. When I want to excute an 'occ' command for some reason, I do it from 'within' the docker container:

      Source Code

      1. docker exec -it nextcloud bash
      where 'nextcloud' is the name of the container. when Im doing a 'ls -l' it looks like this:

      Source Code

      1. total 4
      2. drwxr-xr-x 1 abc abc 0 Feb 9 00:17 app
      3. drwxr-xr-x 1 root root 6 Feb 9 00:51 bin
      4. drwxr-sr-x 1 abc abc 48 Jan 5 14:15 config
      5. drwxrwx--- 1 abc abc 268 Mar 20 11:01 data
      6. drwxr-xr-x 1 abc abc 0 Jan 25 20:08 defaults
      7. drwxr-xr-x 5 root root 320 Mar 31 13:18 dev
      8. drwxr-xr-x 1 root root 136 Mar 31 13:18 etc
      9. drwxr-xr-x 1 root root 0 Feb 9 00:16 home
      10. -rwxr-xr-x 1 root root 389 Sep 9 2018 init
      11. drwxr-xr-x 1 root root 190 Feb 9 00:52 lib
      12. drwxr-xr-x 1 root root 104 Sep 9 2018 libexec
      13. drwxr-xr-x 1 root root 28 Feb 9 00:16 media
      14. drwxr-xr-x 1 root root 0 Feb 9 00:16 mnt
      15. dr-xr-xr-x 257 root root 0 Mar 31 13:18 proc
      16. drwx------ 1 root root 26 Apr 1 13:29 root
      17. drwxr-xr-x 1 root root 64 Mar 31 13:18 run
      18. drwxr-xr-x 1 root root 152 Feb 9 00:17 sbin
      19. drwxr-xr-x 1 root root 0 Feb 9 00:16 srv
      20. dr-xr-xr-x 12 root root 0 Apr 1 13:09 sys
      21. drwxrwxrwt 1 root root 2790 Apr 2 14:45 tmp
      22. drwxr-xr-x 1 root root 68 Feb 9 00:52 usr
      23. drwxr-xr-x 1 root root 18 Feb 9 00:51 var
      Display All
      as you can see, the owner of the 'data' folder is 'abc' in my case. I can execute an 'occ' command then like:

      Source Code

      1. sudo -u abc /config/www/nextcloud/occ status
      the result would be:

      Source Code

      1. - installed: true
      2. - version: 15.0.5.3
      3. - versionstring: 15.0.5
      4. - edition:
      hope that helps.

      p.parker

      There the command would be sudo -u abc /config/www/nextcloud/occ db:convert-filecache-bigint
    • Users Online 1

      1 Guest