Giter Site home page Giter Site logo

docker-nextcloud's Introduction

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Nextcloud Docker image with advanced features.

Note

Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Features

Build locally

git clone https://github.com/crazy-max/docker-nextcloud.git
cd docker-nextcloud

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

Registry Image
Docker Hub crazymax/nextcloud
GitHub Container Registry ghcr.io/crazy-max/nextcloud

Following platforms for this image are available:

$ docker run --rm mplatform/mquery crazymax/nextcloud:latest
Image: crazymax/nextcloud:latest
 * Manifest List: Yes
 * Supported platforms:
   - linux/amd64
   - linux/arm/v6
   - linux/arm/v7
   - linux/arm64
   - linux/ppc64le
   - linux/s390x

Environment variables

General

  • TZ: The timezone assigned to the container (default UTC)
  • PUID: Nextcloud user id (default 1000)
  • PGID: Nextcloud group id (default 1000)
  • MEMORY_LIMIT: PHP memory limit (default 512M)
  • UPLOAD_MAX_SIZE: Upload max size (default 512M)
  • CLEAR_ENV: Clear environment in FPM workers (default yes)
  • OPCACHE_MEM_SIZE: PHP OpCache memory consumption (default 128)
  • LISTEN_IPV6: Enable IPv6 for Nginx (default true)
  • APC_SHM_SIZE: APCu memory size (default 128M)
  • REAL_IP_FROM: Trusted addresses that are known to send correct replacement addresses (default 0.0.0.0/32)
  • REAL_IP_HEADER: Request header field whose value will be used to replace the client address (default X-Forwarded-For)
  • LOG_IP_VAR: Use another variable to retrieve the remote IP address for access log_format on Nginx. (default remote_addr)

Nextcloud

  • HSTS_HEADER: HTTP Strict Transport Security header value (default max-age=15768000; includeSubDomains)
  • XFRAME_OPTS_HEADER: X-Frame-Options header value (default SAMEORIGIN)
  • RP_HEADER: Referrer Policy header value (default strict-origin)
  • SUBDIR: Subdir to use. Read this section for more info.
  • DB_TYPE: Database type (mysql, pgsql or sqlite) (default sqlite)
  • DB_NAME: Database name (default nextcloud)
  • DB_USER: Username for database (default nextcloud)
  • DB_PASSWORD: Password for database user
  • DB_HOST: Database host (default db)
  • DB_TIMEOUT: Time in seconds after which we stop trying to reach the database server. Only used for mysql and pgsql db type (default 60)

Note

DB_PASSWORD_FILE can be used to fill in the value from a file, especially for Docker's secrets feature.

Cron

Warning

Only used if you enable and run a sidecar cron container

  • SIDECAR_CRON: Set to 1 to enable sidecar cron mode (default 0)
  • CRON_PERIOD: Periodically execute Nextcloud cron (eg. */5 * * * *)

Previews generator

Warning

Only used if you enable and run a sidecar previews generator container

  • SIDECAR_PREVIEWGEN: Set to 1 to enable sidecar previews generator mode (default 0)
  • PREVIEWGEN_PERIOD: Periodically execute pre-generation of previews (eg. 0 * * * *)

News Updater

Warning

Only used if you enable and run a sidecar news updater container

  • SIDECAR_NEWSUPDATER: Set to 1 to enable sidecar news updater mode (default 0)
  • NC_NEWSUPDATER_THREADS: How many feeds should be fetched in parallel (default 10)
  • NC_NEWSUPDATER_TIMEOUT: Maximum number of seconds for updating a feed (default 300)
  • NC_NEWSUPDATER_INTERVAL: Update interval between fetching the next round of updates in seconds (default 900)
  • NC_NEWSUPDATER_LOGLEVEL: Log granularity, info will log all urls and received data, error will only log errors (default error)

Volumes

  • /data: Contains config, data folders, installed user apps (not core ones), session, themes, tmp folders

Warning

Note that the volume should be owned by the user/group with the specified PUID and PGID. If you don't give the volume correct permissions, the container may not start.

Ports

  • 8000: HTTP port

Usage

Docker Compose

Docker compose is the recommended way to run this image. Copy the content of folder examples/compose in /var/nextcloud/ on your host for example. Edit the compose and env files with your preferences and run the following commands:

docker compose up -d
docker compose logs -f

Command line

You can also use the following minimal command:

docker run -d -p 8000:8000 --name nextcloud \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

Upgrade

To upgrade to the latest version of Nextcloud, pull the newer image and launch the container. Nextcloud will upgrade automatically:

docker compose pull
docker compose up -d

Notes

First installation

If you run the container for the first time, the installation will be automatic using the DB_* environment variables. Then open your browser to configure your admin account.

OCC command

If you want to use the occ command to perform common server operations like manage users, encryption, passwords, LDAP setting, and more, type:

docker compose exec nextcloud occ

Cron sidecar

If you want to enable the cronjob, you have to run a "sidecar" container (see cron service in compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_cron \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_CRON=1" \
  -e "CRON_PERIOD=*/5 * * * *" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

And do not forget to choose Cron as background jobs:

Background jobs

Previews generator sidecar

To execute pre-generation of previews through the Preview Generator plugin, you have to run a "sidecar" container (see cron service in compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_previewgen \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_PREVIEWGEN=1" \
  -e "PREVIEWGEN_PERIOD=0 * * * *" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

Nextcloud News Updater

If you want to enable the Nextcloud News Updater, you have to run a "sidecar" container (see news_updater service in compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_news_updater \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_NEWSUPDATER=1" \
  -e "NC_NEWSUPDATER_THREADS=10" \
  -e "NC_NEWSUPDATER_TIMEOUT=300" \
  -e "NC_NEWSUPDATER_INTERVAL=900" \
  -e "NC_NEWSUPDATER_LOGLEVEL=error" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

And do not forget to disable Use system cron for updates in news settings:

Background jobs

Email server

You can use our SMTP relay msmtpd service published on port 2500 and declared in our compose.yml:

Email server config

Redis cache

Redis is recommended, alongside APCu to make Nextcloud faster. If you want to enable Redis, deploy a redis container (see compose file) and add this to your config.php:

    'memcache.local' => '\OC\Memcache\APCu',
    'memcache.distributed' => '\OC\Memcache\Redis',
    'memcache.locking' => '\OC\Memcache\Redis',
    'redis' => array(
        'host' => 'redis',
        'port' => 6379,
    ),

Running in a subdir

If you want to access your Nextcloud installation in a subdir (like /nextcloud), you have to set the SUBDIR environment variable and also add PathPrefixStrip:/nextcloud to your frontend rule if you use Traefik. Do not forget to remove includeSubDomains option in HSTS_HEADER if used.

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

docker-nextcloud's People

Contributors

crazy-max avatar dependabot[bot] avatar dpeukert avatar laurentlbm avatar thelittlefireman avatar whlsxl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-nextcloud's Issues

Nginx + Traefik redundant ?

ps thanks man great project, easy and not confusing, nginx + sqlite + alpine my small vps thanks you and i do too, need something lightweight only for personal use, out of curiosity why cant the nginx inside the image also do the proxing and certs? isnt it rebundant nginx+ traefik?

All 3 of the latest images are unusable

Behaviour

The latest 17.0.1, 16.0.6, and 15.0.13 images are unusable.

Steps to reproduce this issue

  1. Start with a working installation using the 16.0.4 image (Note that I used bind volumes)
  2. Stop the Docker compose docker-compose down
  3. Pull the latest 17.0.1 image docker-compose pull
  4. Start the Docker compose docker-compose up

Alternatively,
(The logs I provided are from this scenario using 17.0.1. The result is the same for all 3 images.)

  1. Start with a blank installation using the 17.0.1, 16.0.6, or 15.0.13 images. (Make sure to create the db and nextcloud directories in the same location as docker-compose.yml)
  2. Start the Docker compose docker-compose up

In either scenario, the container fails.

Expected behaviour

Nextcloud should be reachable in a web browser and the container based on the latest Nextcloud image should not constantly restart itself.

Actual behaviour

The container constantly restarts itself and only serves a 404 error page.

The heart of the problem appears to be

nextcloud  | chown: /var/run/nginx: No such file or directory
nextcloud  | chown: /var/run/php-fpm: No such file or directory
nextcloud_cron | chown: /var/run/nginx: No such file or directory
nextcloud_cron | chown: /var/run/php-fpm: No such file or directory

Configuration

  • Docker version (type docker --version) : 7f2769b/1.13.1
  • Docker compose version if applicable (type docker-compose --version) : 1.23.2, build 1110ad0
  • Platform (Debian 9, Ubuntu 18.04, ...) : CentOS 7
  • Include all necessary configuration files : docker-compose.yml, .env, ...

docker-compose.yml

version: "3.2"

services:
  traefik:
    image: traefik:alpine
    container_name: traefik
    command: --docker
    ports:
      - target: 80
        published: 80
        protocol: tcp
      - target: 443
        published: 443
        protocol: tcp
    volumes:
      - "./acme.json:/acme.json"
      - "./traefik.toml:/traefik.toml"
      - "/var/run/docker.sock:/var/run/docker.sock"
    restart: always

  db:
    image: yobasystems/alpine-mariadb
    container_name: nextcloud_db
    volumes:
      - type: bind
        source: ./db
        target: /var/lib/mysql
    env_file:
      - "./db.env"
    restart: always

  redis:
    image: redis:alpine
    container_name: nextcloud_redis
    restart: always

  nextcloud:
    image: crazymax/nextcloud:latest
    container_name: nextcloud
    depends_on:
      - db
      - redis
    volumes:
      - type: bind
        source: ./nextcloud
        target: /data
    labels:
      - "traefik.enable=true"
      - "traefik.backend=nextcloud"
      - "traefik.port=8000"
      - "traefik.frontend.rule=Host:nextcloud.example.com"
      - "traefik.frontend.redirect.permanent=true"
      - "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
    env_file:
      - "./nextcloud.env"
    restart: always

  cron:
    image: crazymax/nextcloud:latest
    container_name: nextcloud_cron
    depends_on:
      - nextcloud
    volumes:
      - type: bind
        source: ./nextcloud
        target: /data
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/15 * * * *"
    restart: always

traefik.toml

# defaultEntryPoints must be at the top
# because it should not be in any table below

defaultEntryPoints = ["http", "https"]

# Entrypoints, http and https
[entryPoints]
  # http should be redirected to https
  [entryPoints.http]
  address = ":80"

  [entryPoints.http.redirect]
  entryPoint = "https"

  # https is the default
  [entryPoints.https]
  address = ":443"

  [entryPoints.https.tls]

 [acme]
   email = "[email protected]"
   storage = "/acme.json"
   entryPoint = "https"
   onHostRule = true
   [acme.httpChallenge]
     entryPoint = "http"
   [[acme.domains]]
     main = "example.com"
     sans = ["nextcloud.example.com"]

[api]
  dashboard = true
  entryPoint = "traefik"

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "example.com"
watch = true
exposedbydefault = false

db.env

MYSQL_ALLOW_EMPTY_PASSWORD=yes
MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud
MYSQL_PASSWORD=asupersecretpassword

nextcloud.env

TZ=America/Chicago

MEMORY_LIMIT=512M
UPLOAD_MAX_SIZE=512M
OPCACHE_MEM_SIZE=128
APC_SHM_SIZE=128M

HSTS_HEADER=max-age=15768000; includeSubDomains
RP_HEADER=strict-origin
SUBDIR=

DB_TYPE=mysql
DB_HOST=db
DB_NAME=nextcloud
DB_USER=nextcloud
DB_PASSWORD=asupersecretpassword

Docker info

Containers: 7
 Running: 5
 Paused: 0
 Stopped: 2
Images: 7
Server Version: 1.13.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: false
 Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: /usr/libexec/docker/docker-init-current
containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 9c3c5f853ebf0ffac0d087e94daef462133b69c7 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 seccomp
  WARNING: You're not using the default seccomp profile
  Profile: /etc/docker/seccomp.json
Kernel Version: 3.10.0-1062.1.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 1
Total Memory: 991 MiB
Name: centos-1cpu-1gb-us-chi1
ID: HYSW:NYZ5:DM7S:LXCM:UUQI:S4XT:T5QJ:HLG4:2ENC:3ZWL:4CSG:LQVR
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Registries: docker.io (secure)

Logs

Attaching to traefik, nextcloud_db, nextcloud_redis, nextcloud, nextcloud_cron
nextcloud_db | [i] mysqld not found, creating....
nextcloud_db | [i] MySQL data directory not found, creating initial DBs
nextcloud_redis | 1:C 09 Dec 2019 20:24:08.580 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
nextcloud_redis | 1:C 09 Dec 2019 20:24:08.580 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
nextcloud_redis | 1:C 09 Dec 2019 20:24:08.580 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.581 * Running mode=standalone, port=6379.
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.581 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.581 # Server initialized
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.581 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.581 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.592 * DB loaded from disk: 0.011 seconds
nextcloud_redis | 1:M 09 Dec 2019 20:24:08.592 * Ready to accept connections
nextcloud    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud    | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud    | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud    | [fix-attrs.d] done.
nextcloud    | [cont-init.d] executing container initialization scripts...
nextcloud    | [cont-init.d] 00-fix-logs.sh: executing... 
nextcloud    | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: executing... 
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud    | [cont-init.d] 02-fix-perms.sh: executing... 
nextcloud    | Fixing perms...
nextcloud    | chown: /var/run/nginx: No such file or directory
nextcloud    | chown: /var/run/php-fpm: No such file or directory
nextcloud    | [cont-init.d] 02-fix-perms.sh: exited 1.
nextcloud    | [cont-finish.d] executing container finish scripts...
nextcloud    | [cont-finish.d] done.
nextcloud    | [s6-finish] waiting for services.
nextcloud    | [s6-finish] sending all processes the TERM signal.
nextcloud_cron | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud_cron | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud_cron | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud_cron | [fix-attrs.d] done.
nextcloud_cron | [cont-init.d] executing container initialization scripts...
nextcloud_cron | [cont-init.d] 00-fix-logs.sh: executing... 
nextcloud_cron | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud_cron | [cont-init.d] 01-fix-uidgid.sh: executing... 
nextcloud_cron | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud_cron | [cont-init.d] 02-fix-perms.sh: executing... 
nextcloud_cron | Fixing perms...
nextcloud_cron | chown: /var/run/nginx: No such file or directory
nextcloud_cron | chown: /var/run/php-fpm: No such file or directory
nextcloud_cron | [cont-init.d] 02-fix-perms.sh: exited 1.
nextcloud_cron | [cont-finish.d] executing container finish scripts...
nextcloud_cron | [cont-finish.d] done.
nextcloud_cron | [s6-finish] waiting for services.
nextcloud_cron | [s6-finish] sending all processes the TERM signal.
nextcloud_db | [i] MySQL root Password: phupieJ7zohsuGeb
nextcloud_db | [i] Creating database: nextcloud
nextcloud_db | [i] with character set: 'utf8' and collation: 'utf8_general_ci'
nextcloud_db | [i] Creating user: nextcloud with password asupersecretpassword
nextcloud_db | 2019-12-09 20:24:11 0 [Note] /usr/bin/mysqld (mysqld 10.3.17-MariaDB) starting as process 68 ...
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Using Linux native AIO
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Uses event mutexes
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Number of pools: 1
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Using SSE2 crc32 instructions
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: Completed initialization of buffer pool
nextcloud_db | 2019-12-09 20:24:11 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: Waiting for purge to start
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: 10.3.17 started; log sequence number 1630815; transaction id 21
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
nextcloud_db | 2019-12-09 20:24:12 0 [Note] InnoDB: Buffer pool(s) load completed at 191209 20:24:12
nextcloud_db | 2019-12-09 20:24:12 0 [Note] Plugin 'FEEDBACK' is disabled.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'user' entry 'root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'user' entry '@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'proxies_priv' entry '@% root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'user' entry 'root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'user' entry '@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:12 6 [Warning] 'proxies_priv' entry '@% root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud    | [s6-finish] sending all processes the KILL signal and exiting.
nextcloud_cron | [s6-finish] sending all processes the KILL signal and exiting.
nextcloud    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud_db | /scripts/run.sh: ignoring or entrypoint initdb empty /docker-entrypoint-initdb.d/*
nextcloud_db | 
nextcloud_db | 
nextcloud_db | MySQL init process done. Ready for start up.
nextcloud_db | 
nextcloud_db | exec /usr/bin/mysqld --user=mysql --console --skip-name-resolve --skip-networking=0
nextcloud    | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud    | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud    | [fix-attrs.d] done.
nextcloud    | [cont-init.d] executing container initialization scripts...
nextcloud    | [cont-init.d] 00-fix-logs.sh: executing... 
nextcloud    | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: executing... 
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud    | [cont-init.d] 02-fix-perms.sh: executing... 
nextcloud    | Fixing perms...
nextcloud_db | 2019-12-09 20:24:13 0 [Note] /usr/bin/mysqld (mysqld 10.3.17-MariaDB) starting as process 1 ...
nextcloud    | chown: /var/run/nginx: No such file or directory
nextcloud    | chown: /var/run/php-fpm: No such file or directory
nextcloud    | [cont-init.d] 02-fix-perms.sh: exited 1.
nextcloud    | [cont-finish.d] executing container finish scripts...
nextcloud    | [cont-finish.d] done.
nextcloud    | [s6-finish] waiting for services.
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Using Linux native AIO
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Uses event mutexes
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Number of pools: 1
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Using SSE2 crc32 instructions
nextcloud_db | 2019-12-09 20:24:13 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Completed initialization of buffer pool
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Waiting for purge to start
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: 10.3.17 started; log sequence number 1630824; transaction id 21
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
nextcloud_db | 2019-12-09 20:24:14 0 [Note] InnoDB: Buffer pool(s) load completed at 191209 20:24:14
nextcloud_db | 2019-12-09 20:24:14 0 [Note] Plugin 'FEEDBACK' is disabled.
nextcloud_db | 2019-12-09 20:24:14 0 [Note] Server socket created on IP: '::'.
nextcloud_db | 2019-12-09 20:24:14 0 [Warning] 'user' entry 'root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:14 0 [Warning] 'user' entry '@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:14 0 [Warning] 'proxies_priv' entry '@% root@51f572817815' ignored in --skip-name-resolve mode.
nextcloud_db | 2019-12-09 20:24:14 0 [Note] Reading of all Master_info entries succeeded
nextcloud_db | 2019-12-09 20:24:14 0 [Note] Added new Master_info '' to hash table
nextcloud_db | 2019-12-09 20:24:14 0 [Note] /usr/bin/mysqld: ready for connections.
nextcloud_db | Version: '10.3.17-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
nextcloud    | [s6-finish] sending all processes the TERM signal.
nextcloud_cron | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud_cron | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud_cron | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud_cron | [fix-attrs.d] done.
nextcloud_cron | [cont-init.d] executing container initialization scripts...
nextcloud_cron | [cont-init.d] 00-fix-logs.sh: executing... 
nextcloud_cron | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud_cron | [cont-init.d] 01-fix-uidgid.sh: executing... 
nextcloud_cron | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud_cron | [cont-init.d] 02-fix-perms.sh: executing... 
nextcloud_cron | Fixing perms...
nextcloud_cron | chown: /var/run/nginx: No such file or directory
nextcloud_cron | chown: /var/run/php-fpm: No such file or directory
nextcloud_cron | [cont-init.d] 02-fix-perms.sh: exited 1.
nextcloud_cron | [cont-finish.d] executing container finish scripts...
nextcloud_cron | [cont-finish.d] done.
nextcloud_cron | [s6-finish] waiting for services.
nextcloud_cron | [s6-finish] sending all processes the TERM signal.
nextcloud    | [s6-finish] sending all processes the KILL signal and exiting.
nextcloud exited with code 1
nextcloud_cron | [s6-finish] sending all processes the KILL signal and exiting.
nextcloud    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud_cron exited with code 1

[unRAID] Cron not working

Behaviour

Cron not working

Steps to reproduce this issue

  1. Create container
  2. create cron container

Expected behaviour

It should automatically run cron every 15 minutes

Actual behaviour

The cron container just gives me this error
2019-06-28 06:27:16,327 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) crond: USER nginx pid 26 cmd \ php -f /var/www/cron.php /bin/ash: php: not found

Configuration

  • Docker version (type docker --version) : Docker version 18.06.3-ce, build d7080c1
  • Platform (Debian 9, Ubuntu 18.04, ...) : Unraid 6.6.7
  • Include all necessary configuration files : docker-compose.yml, .env, ... I didn't use those, I just ran them manually by typing it into unraid, but it's the same commands as in the readme

Docker info

> Output of command `docker info`
Containers: 48
 Running: 31
 Paused: 0
 Stopped: 17
Images: 44
Server Version: 18.06.3-ce
Storage Driver: btrfs
 Build Version: Btrfs v4.7.3
 Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: a592beb5bc4c4092b1b1bac971afed27687340c5
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.18.20-unRAID
Operating System: Slackware 14.2 x86_64 (post 14.2 -current)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 11.72GiB
Name: Home-Server
ID: PU4F:T2WF:MNRF:ILAG:CVMF:4SDX:LFJA:VONS:M5PI:PBCK:HJ4D:L5BH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Logs

> Container logs (set LOG_LEVEL to debug if applicable)
Setting timezone to Australia/Sydney...
Setting PHP-FPM configuration...
Setting PHP configuration...
Setting Nginx configuration...
Initializing Nextcloud files / folders...
>>
>> Sidecar cron container detected for Nextcloud
>>
Creating Nextcloud cron task with the following period fields : */1 * * * * \
Fixing permissions...
2019-06-28 06:41:27,694 INFO Included extra file "/etc/supervisord/cron.conf" during parsing
2019-06-28 06:41:27,694 INFO Set uid to user 0 succeeded
2019-06-28 06:41:27,743 INFO RPC interface 'supervisor' initialized
2019-06-28 06:41:27,744 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-06-28 06:41:27,744 INFO supervisord started with pid 1
2019-06-28 06:41:28,746 INFO spawned: 'cron' with pid 25
crond: crond (busybox 1.30.1) started, log level 8
2019-06-28 06:41:29,761 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
crond: USER nginx pid 26 cmd \ php -f /var/www/cron.php
/bin/ash: php: not found
crond: USER nginx pid 27 cmd \ php -f /var/www/cron.php
/bin/ash: php: not found

I set it to 1 minute for testing.

Redis in config.php

Hi there,

first of all thank you for your great and easy working docker image.
I will use it in my production environment.

I just have one question, what is the best way to enable redis in config.php after initial/first install?

Thank you

NEWS_UPDATER Error: Did you mean this? maintenance:update

Behaviour

While starting up the docker-compose file news_updater errors and keeps erroring on the same message every 30s.

Steps to reproduce this issue

  1. Copy-Paste your example config
  2. Adjust for local use
  3. Run the docker-compose file

Expected behaviour

Don't show this error.

Actual behaviour

Error in news_updater: Did you mean this? maintenance:update

Configuration

  • Docker version (type docker --version) : Docker version 19.03.13, build 4484c46d9d
  • Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.27.4, build 40524192
  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian GNU/Linux 10 (buster)
  • System info (type uname -a) : Linux caradhras 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

Docker-Compose

version: "3.7"

services:
  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    ports:
      - 52480:8000
    depends_on:
      - postgres
      - redis
      - msmtpd
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud.entrypoints=websecure
      - traefik.http.routers.nextcloud.rule=Host(`cloud.example.com`)
      - traefik.http.routers.nextcloud.service=nextcloud
      - traefik.http.services.nextcloud.loadbalancer.server.port=8000
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
  
  postgres:
    container_name: nextcloud.524.postgres
    image: postgres:12
    restart: always
    expose:
      - 5432
    volumes:
      - $PWD/postgres:/var/lib/postgresql/data
    environment:
      - PUID=1000
      - PGID=994
      - POSTGRES_DB=${DB_NAME}
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_PASSWORD=${DB_PASSWORD}

  adminer:
    container_name: nextcloud.524.adminer.82
    image: adminer
    ports:
      - 52482:8080
    restart: always

  redis:
    container_name: nextcloud.524.redis
    image: redis:4.0-alpine
    environment:
      - "TZ"
    restart: always

  msmtpd:
    container_name: nextcloud.524.msmtpd
    image: crazymax/msmtpd:latest
    env_file:
      - "./msmtpd.env"
    environment:
      - "TZ"
    restart: always

  cron:
    container_name: nextcloud.524.cron
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/5 * * * *"
    restart: always

  previewgen:
    container_name: nextcloud.524.previewgen
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_PREVIEWGEN=1"
      - "PREVIEWGEN_PERIOD=0 * * * *"
    restart: always

  news_updater:
    container_name: nextcloud.524.news_updater
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always

  collabora:
    container_name: nextcloud.524.collabora
    image: collabora/code
    cap_add:
      - MKNOD
    expose:
      - 9980
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud-collabora.entrypoints=websecure
      - traefik.http.routers.nextcloud-collabora.rule=Host(`collabora.cloud.example.com`)
      - traefik.http.routers.nextcloud-collabora.service=nextcloud-collabora
      - traefik.http.services.nextcloud-collabora.loadbalancer.server.port=9980
    environment:
      - "domain=collabora.cloud.example.com"
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--disable-ssl"
    restart: always

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 69
  Running: 65
  Paused: 0
  Stopped: 4
 Images: 130
 Server Version: 19.03.13
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.19.0-12-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.93GiB
 Name: caradhras
 ID: 5OK4:ZOLQ:2ZF4:ST73:R4WC:DJMN:MJCQ:SJVZ:VTP4:KGXU:UKLW:OR6Y
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Logs

nextcloud.524.news_updater | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud.524.news_updater | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud.524.news_updater | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud.524.news_updater | [fix-attrs.d] done.
nextcloud.524.news_updater | [cont-init.d] executing container initialization scripts...
nextcloud.524.news_updater | [cont-init.d] 00-fix-logs.sh: executing...
nextcloud.524.news_updater | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 01-fix-uidgid.sh: executing...
nextcloud.524.news_updater | Switching to PGID 994...
nextcloud.524.news_updater | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 02-fix-perms.sh: executing...
nextcloud.524.news_updater | Fixing perms...
nextcloud.524.news_updater | [cont-init.d] 02-fix-perms.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 03-config.sh: executing...
nextcloud.524.news_updater | Setting timezone to Europe/Prague...
nextcloud.524.news_updater | Setting PHP-FPM configuration...
nextcloud.524.news_updater | Setting PHP configuration...
nextcloud.524.news_updater | Setting Nginx configuration...
nextcloud.524.news_updater | Initializing Nextcloud files/folders...
nextcloud.524.news_updater | [cont-init.d] 03-config.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 04-svc-main.sh: executing...
nextcloud.524.news_updater | [cont-init.d] 04-svc-main.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 05-svc-cron.sh: executing...
nextcloud.524.news_updater | [cont-init.d] 05-svc-cron.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 06-svc-previewgen.sh: executing...
nextcloud.524.news_updater | [cont-init.d] 06-svc-previewgen.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] 07-svc-news-updater.sh: executing...
nextcloud.524.news_updater | >>
nextcloud.524.news_updater | >> Sidecar news updater container detected for Nextcloud
nextcloud.524.news_updater | >>
nextcloud.524.news_updater | [cont-init.d] 07-svc-news-updater.sh: exited 0.
nextcloud.524.news_updater | [cont-init.d] ~-socklog: executing...
nextcloud.524.news_updater | [cont-init.d] ~-socklog: exited 0.
nextcloud.524.news_updater | [cont-init.d] done.
nextcloud.524.news_updater | [services.d] starting services
nextcloud.524.news_updater | [services.d] done.
nextcloud.524.news_updater |
nextcloud.524.news_updater |
nextcloud.524.news_updater |   There are no commands defined in the "news:updater" namespace.
nextcloud.524.news_updater |
nextcloud.524.news_updater |   Did you mean this? 
nextcloud.524.news_updater |       maintenance:update
nextcloud.524.news_updater |
nextcloud.524.news_updater |
nextcloud.524.news_updater | 2020-11-19 02:26:10,847 - Nextcloud News Updater - ERROR - Command '['php', '-f', '/var/www/occ', 'news:updater:before-update']' returned non-zero exit status 1.: Trying again in 30 seconds

Reverse-Proxy-Header-Configuration error

Hello,
after updating to NC 16 i get this message on my nextcloud instance:
The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud. Further information can be found in the documentation.

Any ideas?

Best regards

The reverse proxy header configuration is incorrect

Hi,

I am seeing this message in my overview:
The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy.

Wanted to ask what could be causing this sort of warning.. didnt appear before, just recently noticed.

My docker-compose file for nextcloud service (using traefik):

  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - postgres
      - redis
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"      
      #- "/lvm/raid/public/nextcloud/data/:/data/data"
    labels:
      - "com.ouroboros.enable=true"
      - "traefik.enable=true"
      - "traefik.port=8000"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:cloud.example.com"
      - "traefik.frontend.redirect.permanent=true"
      - "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
      - "traefik.backend=nextcloud.524"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
    environment:
      - PUID=1000
      - PGID=994
      - USERID=1000
    env_file:
      - "./nextcloud.env"

Thanks, Michal

404 on latest (15.2)

I don't know what the issue is. The logs say it's up, but it gives the traefik 404 message. It worked before I docker-compose up -d'd

I don't know what other info might help, so let me know. It's on ubuntu 16.04

Nextcloud broken after upgrade to the latest version

After upgrading nextcloud it started giving me this error message:

image

Whole directory is recursively root:root and 777..

And why after upgrade it initialised my config.php to the default values??? my whole config is now lost..

"Internal Server Error" after updating to the latest docker image

Behaviour

Hello! First of all thank you for the awesome docker image! It has made using NextCloud a breeze! :)

Steps to reproduce this issue

  1. docker stop image_id
  2. docker rm image_id
  3. docker pull crazymax/nextcloud:latest
  4. docker run --restart=always -d -p 8000:8000 --name nextcloud -v /home/pi/NextCloud/SSD:/data -e DB_PASSWORD=mypass crazymax/nextcloud:latest

Expected behaviour

I am able to access the nextcloud local address (e.g. 192.168.1.207:8000)

Actual behaviour

I am presented with "Internal Server Error" page.

Configuration

  • Docker version (type docker --version) : 20.10.2
  • Docker compose version if applicable (type docker-compose --version) : N/A
  • Platform (Debian 9, Ubuntu 18.04, ...) : Raspbian GNU/Linux 10 (buster)
  • System info (type uname -a) : Linux tinypiserver 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
  • Include all necessary configuration files : docker-compose.yml, .env, ...

Docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 3
 Server Version: 20.10.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.4.83-v7l+
 Operating System: Raspbian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 3.738GiB
 Name: tinypiserver
 ID: 3Y76:C54N:UPPO:UXIP:Y2AD:SWGO:5UUE:2WLG:VJSL:QSUM:OUYD:EVNA
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
WARNING: No blkio weight support
WARNING: No blkio weight_device support

Logs

I inspected the contents of the data/nextcloud.log file. I noticed that every time I navigate to the main page (e.g. 192.168.1.207:8000) I get this exception generated in the file:

{
    "reqId": "stxNvRdKjae9FCHhRe4k",
    "level": 3,
    "time": "2071-05-18 05:33:44",
    "remoteAddr": "192.168.1.117",
    "user": "[email protected]",
    "app": "index",
    "method": "GET",
    "url": "/apps/dashboard/",
    "message": {
        "Exception": "TypeError",
        "Message": "Return value of OC\\Security\\Bruteforce\\Throttler::getCutoffTimestamp() must be of the type int, bool returned",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/lib/private/Security/Bruteforce/Throttler.php",
                "line": 243,
                "function": "getCutoffTimestamp",
                "class": "OC\\Security\\Bruteforce\\Throttler",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/Security/Bruteforce/Throttler.php",
                "line": 270,
                "function": "getAttempts",
                "class": "OC\\Security\\Bruteforce\\Throttler",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/Security/Bruteforce/Capabilities.php",
                "line": 56,
                "function": "getDelay",
                "class": "OC\\Security\\Bruteforce\\Throttler",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/CapabilitiesManager.php",
                "line": 72,
                "function": "getCapabilities",
                "class": "OC\\Security\\Bruteforce\\Capabilities",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/Template/JSConfigHelper.php",
                "line": 183,
                "function": "getCapabilities",
                "class": "OC\\CapabilitiesManager",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/TemplateLayout.php",
                "line": 211,
                "function": "getConfig",
                "class": "OC\\Template\\JSConfigHelper",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/legacy/OC_Template.php",
                "line": 183,
                "function": "__construct",
                "class": "OC\\TemplateLayout",
                "type": "->"
            },
            {
                "file": "/var/www/lib/public/AppFramework/Http/TemplateResponse.php",
                "line": 210,
                "function": "fetchPage",
                "class": "OC_Template",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 172,
                "function": "render",
                "class": "OCP\\AppFramework\\Http\\TemplateResponse",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/AppFramework/App.php",
                "line": 157,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            },
            {
                "file": "/var/www/lib/private/Route/Router.php",
                "line": 302,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::"
            },
            {
                "file": "/var/www/lib/base.php",
                "line": 993,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->"
            },
            {
                "file": "/var/www/index.php",
                "line": 37,
                "function": "handleRequest",
                "class": "OC",
                "type": "::"
            }
        ],
        "File": "/var/www/lib/private/Security/Bruteforce/Throttler.php",
        "Line": 109,
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0",
    "version": "21.0.3.1"
}

Collabora : 502 Bad Gateway

Hello,
I launched you docker-compose.yml on my server. Nextcloud works fine, but, I can't get collabora to work.

I set https://office.mydomain.fr in nextcloud https://cloud.mydomain.fr/settings/admin/richdocuments'.

I got GuzzleHttp\Exception\ServerException: Server error: 'GET https://office.mydomain.fr/hosting/discovery' resulted in a 502 Bad Gatewayresponse: Bad Gateway

same with http:// . If I add port 9980 it's not responding (Connection refused)

My docker-compose.yml is exactly the same as your's except for domains. (nextcloud is working fine)

Add non-root var (UID/GID) to run docker-nextcloud

Hi,

Thx for your Nextcloud docker version,
I use it and i love it :)

I would like to run containers without root access

I would like to add Environment variables

  • UID : nextcloud user id
  • GID : nextcloud group id

Do you think it is possible ?

Regards,

Is a TURN server built-in for Nextcloud Talk?

Quoted from https://help.nextcloud.com/t/howto-setup-nextcloud-talk-with-turn-server/30794:

In some cases, e.g. in combination with firewalls or symmetric NAT 110 a STUN server will not work as well, and then a so called TURN 118 server is needed. Now no direct P2P connection is established, but all traffic is relayed through the TURN server, thus additional (at least internal) traffic and resources are needed.

I have attempted to host Nextcloud (using other images) before but unfortunately either I can't see or the participant can't see video of the other. Every Dockerized Nextcloud I've come across doesn't package a solution in. My own attempts have ended in failure.

15.0.1 Image not working...

After updating to the latest container (15.0.1) Nextcloud does not run. When I use the 15.0.0 image everything works fine. Nothing else has changed on my configuration. The docker-compose logs do not show any errors, I am happy to troubleshoot but would need some direction.

Reinstall nextcloud

Behaviour

  • 500 Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Steps to reproduce this issue

  1. Setup nextcloud
  2. Delete nextcloud config
  3. Get 500 error

Expected behaviour

Tell me what should happen
Should work, and get re-directeded to nextcloud

Actual behaviour

Get 500

Tell me what happens instead
Get 500

Configuration

  • Docker version (type docker --version) :
  • Docker compose version if applicable (type docker-compose --version) :
  • Platform (Debian 9, Ubuntu 18.04, ...) : Ubuntu 20.0.4
  • System info (type uname -a) :
  • Include all necessary configuration files : docker-compose.yml, .env, ... Nextcloud version 22.2.0

Docker info

> Output of command `docker info`

Logs

> Container logs (set LOG_LEVEL to debug if applicable)

Is there a way to regenerate the nextcloud config file?

Enabling Social results in an internal server error on access

I downloaded and enabled Nextcloud Social. All other services are functional. Accessing https://cloud.hansen.agency/apps/social/ I receive the following error:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.
Technical details

    Remote Address: 172.18.0.27
    Request ID: VwXTQqZJubODPDXcKjfZ

nextcloud.log

Unable to build on Kubuntu 20.4

Hello,

this looks like the best setup so far for me. Do you have an option for Ubuntu or Kubuntu? I don't have an Alpine here, so, can't use it.

If not, would it be possible to create it? Or, could you advise if I'll change the commands from Alpine to Ubuntu, which should work as well?

Thank you :).

Cron change directory error preventing start

Behaviour

Steps to reproduce this issue

  1. Try starting the stack by running docker-compose up -d
  2. Tail the logs and notice cron errors
  3. Nextcloud will not start

Expected behaviour

Nextcloud should start as normal.

Actual behaviour

containers exit with various exit codes

Configuration

  • Docker version (type docker --version) : 23.0.1
  • Docker compose version if applicable (type docker-compose --version) : 2.16.0
  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian LXC
  • System info (type uname -a) :
  • Include all necessary configuration files : docker-compose, .env, nextcloud.env all copied direct from examples.

I should not that the stack had been running correctly for months without issue. This was new after a reboot.

Container logs (set LOG_LEVEL to debug if applicable)

nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory

WebDAV & Traefik subfolder

Hello! First of all, thanks for an awesome package, I finally managed to find one decent and working docker image for Nextcloud!

I'm running my own docker compose setup. The Nextcloud container is running in a subfolder at https://local.domain/nextcloud. I managed to use Traefik for this, the config looks something like this:

    labels:
      - "traefik.enable=true"
      - "traefik.backend=nextcloud"
      - "traefik.port=80"
      - "traefik.frontend.redirect.regex=^(.*)/nextcloud$$"
      - "traefik.frontend.redirect.replacement=$$1/nextcloud/"
      - "traefik.frontend.rule=PathPrefix: /nextcloud; ReplacePathRegex: ^/nextcloud/(.*) /$$1"

All was fine until this point, until I tried to use WebDAV. The example from this repo didn't quite cut it, since it's meant to be used for a subdomain, not a subfolder. Besides, the current rules should suffice.

Then I did some digging and found nginx.conf which has these lines in it:

        location = /.well-known/carddav {
            return 301 $scheme://$host/remote.php/dav;
        location = /.well-known/caldav {
            return 301 $scheme://$host/remote.php/dav;

which basically forces the redirect back to "/" (https://local.domain/remote.php/dav) instead of /nextcloud/...

There is currently no way to rewrite this rule. I had to cat the nginx.conf file, save it on a host, update it to be something like this:

        location = /.well-known/carddav {
            return 301 $scheme://$host/nextcloud/remote.php/dav;
        location = /.well-known/caldav {
            return 301 $scheme://$host/nextcloud/remote.php/dav;

and then mount it, read only, because it kept getting rewritten, and that solved the issue.

Proposed solution: Either finding a traefik rule that would work or allowing an env variable that'd be able to do this dynamically.

The other issue I found is basically forcing HSTS. This kinda screwed me over, because it feels slightly too opinionated for a Nextcloud image to force HSTS (and permanent redirects as well, although that's more understandable). It resulted in my entire domain being HSTS enabled, which blocked an access to non-TLS services, including Traefik Web UI :(

Anyway, that's all my feedback, hopefully something can be worked out :) Thanks again!

Cannot run on RPi4

Behaviour

Fail to run docker image on RPi 4 and HyperiotOS.

Steps to reproduce this issue

  1. Run
docker run -d -p 8000:8000 --name nextcloud  -v "$(pwd)/nextcloud-data:/data"  crazymax/nextcloud:latest

Expected behaviour

It should run.

Actual behaviour

Exits, docker logs show:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
s6-svscan: warning: unable to iopause: Invalid argument
s6-svscan: warning: executing into .s6-svscan/crash
[s6-init] ensuring user provided files have correct perms...s6-svscan panicked! Dropping to a root shell.

/bin/sh: can't access tty; job control turned off
/run/s6/services # 

Configuration

  • Docker version (type docker --version) : Docker version 19.03.12, build 48a6621
  • Platform (Debian 9, Ubuntu 18.04, ...) : HyprioOS
  • System info (type uname -a) : Linux black-pearl 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 37
  Running: 11
  Paused: 0
  Stopped: 26
 Images: 77
 Server Version: 19.03.12
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.19.118-v7l+
 Operating System: Raspbian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 3.863GiB
 Name: black-pearl
 ID: YXJF:M53F:3I5O:VSF7:2K3E:ZUZS:5MFB:FZLX:2BYB:EF3X:SCZP:ESVV
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: psamim
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support

Logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
s6-svscan: warning: unable to iopause: Invalid argument
s6-svscan: warning: executing into .s6-svscan/crash
[s6-init] ensuring user provided files have correct perms...s6-svscan panicked! Dropping to a root shell.

/bin/sh: can't access tty; job control turned off
/run/s6/services #

Several Bugs due to HTTP(S)

Behaviour

I had several issues, since my Nextcloud is running with Docker:

  • Federation sharing isn't working
  • Some icons can't be loaded:
    No pictures

Reason

It turned out, Nextcloud tries to load some stuff over http and can't reach it.

Solution

I found the solution here: https://goneuland.de/nextcloud-server-mit-docker-compose-und-traefik-installieren/#6_3_Nextcloud_komplett_auf_HTTPs_umstellen

(I can translate it, if needed)

After this steps are are, federation and icons are working.

Redis version

Hi.

Is it safe to set the Redis docker image to use the latest alpine image which is redis:7-alpine or is there a specific reason for the old image being used, perhaps incompability?

I also set mariadb to the latest image supported by Nextcloud which is mariadb:10.5 and that seems to work fine.

sed fails if TZ has a slash "/" in the name

in the shell script at rootfs/etc/cont-init.d/03-config.sh on line 68 you have

sed -e "s/@MEMORY_LIMIT@/$MEMORY_LIMIT/g" -e "s/@TIMEZONE@/$TZ/g" \ /tpls/etc/php7/conf.d/override.ini > /etc/php7/conf.d/override.ini

this fails if I set TZ to "Asia/Kokata"

[cont-init.d] 03-config.sh: executing... Setting timezone to "Asia/Kolkata"... Setting PHP-FPM configuration... Setting PHP configuration... sed: bad option in substitution expression Setting Nginx configuration... Initializing Nextcloud files/folders... Creating automatic configuration... [cont-init.d] 03-config.sh: exited 0. [cont-init.d] 04-svc-main.sh: executing...

and the consequence is that the database is not setup so on the first login user creation fails

but if I change TZ=UTC with no slash it works OK

[cont-init.d] 03-config.sh: executing... Setting timezone to "UTC"... Setting PHP-FPM configuration... Setting PHP configuration... Setting Nginx configuration... Initializing Nextcloud files/folders... Creating automatic configuration... [cont-init.d] 03-config.sh: exited 0. [cont-init.d] 04-svc-main.sh: executing...

the db is created and I can create the root user too

can you change the sed delimiter from / to #

Thanks

Folder/File Sharing is cleared after couple minutes (on External Storage only)

Behaviour

I noticed that for Folders/Files on External Storage Sharing via link is reset/cleared after couple minutes from generating it.. It does not happen for sharing a content from "local" folder like Documents..

Its what I reported back in summer and you couldn't replicate. Just realized it is happening for folders/files on the External storage's:
image

Then share some subfolder from the external storage:
image

After (like 5-10 mins or so) it will "expire":
image

Steps to reproduce this issue

  1. Copy-Paste your example config
  2. Adjust for local use
  3. Run the docker-compose file

Expected behaviour

Keep sharing the content until manually cleared or file is deleted.

Actual behaviour

Sharing of the file/folder is cleared after couple minutes on its own.

Configuration

  • Nextcloud: 20.0.1
  • Docker version (type docker --version) : Docker version 19.03.13, build 4484c46d9d
  • Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.27.4, build 40524192
  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian GNU/Linux 10 (buster)
  • System info (type uname -a) : Linux caradhras 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

Docker-Compose

version: "3.7"

services:
  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    ports:
      - 52480:8000
    depends_on:
      - postgres
      - redis
      - msmtpd
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud.entrypoints=websecure
      - traefik.http.routers.nextcloud.rule=Host(`cloud.example.com`)
      - traefik.http.routers.nextcloud.service=nextcloud
      - traefik.http.services.nextcloud.loadbalancer.server.port=8000
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
  
  postgres:
    container_name: nextcloud.524.postgres
    image: postgres:12
    restart: always
    expose:
      - 5432
    volumes:
      - $PWD/postgres:/var/lib/postgresql/data
    environment:
      - PUID=1000
      - PGID=994
      - POSTGRES_DB=${DB_NAME}
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_PASSWORD=${DB_PASSWORD}

  adminer:
    container_name: nextcloud.524.adminer.82
    image: adminer
    ports:
      - 52482:8080
    restart: always

  redis:
    container_name: nextcloud.524.redis
    image: redis:4.0-alpine
    environment:
      - "TZ"
    restart: always

  msmtpd:
    container_name: nextcloud.524.msmtpd
    image: crazymax/msmtpd:latest
    env_file:
      - "./msmtpd.env"
    environment:
      - "TZ"
    restart: always

  cron:
    container_name: nextcloud.524.cron
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/5 * * * *"
    restart: always

  previewgen:
    container_name: nextcloud.524.previewgen
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_PREVIEWGEN=1"
      - "PREVIEWGEN_PERIOD=0 * * * *"
    restart: always

  news_updater:
    container_name: nextcloud.524.news_updater
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always

  collabora:
    container_name: nextcloud.524.collabora
    image: collabora/code
    cap_add:
      - MKNOD
    expose:
      - 9980
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud-collabora.entrypoints=websecure
      - traefik.http.routers.nextcloud-collabora.rule=Host(`collabora.cloud.example.com`)
      - traefik.http.routers.nextcloud-collabora.service=nextcloud-collabora
      - traefik.http.services.nextcloud-collabora.loadbalancer.server.port=9980
    environment:
      - "domain=collabora.cloud.example.com"
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--disable-ssl"
    restart: always

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 69
  Running: 65
  Paused: 0
  Stopped: 4
 Images: 130
 Server Version: 19.03.13
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.19.0-12-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.93GiB
 Name: caradhras
 ID: 5OK4:ZOLQ:2ZF4:ST73:R4WC:DJMN:MJCQ:SJVZ:VTP4:KGXU:UKLW:OR6Y
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

After Cronjob UI will error "File not found" / All shares are reset

Behaviour

After cronjob is executed UI will reset all sahres links and when still on the page it will error file not found and returns you to the homepage.

Steps to reproduce this issue

  1. Basic install.
  2. Share file via link.
  3. Wait after cron job will be executed.
  4. UI will pop up error message File not foud
  5. All shares via link are lost..

Configuration

  • Docker version (type docker --version) : Docker version 19.03.12, build 48a66213fe
  • Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.26.2, build eefe0d31
  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian 10
  • System info (type uname -a) : Linux caradhras 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
  • Include all necessary configuration files : docker-compose.yml, .env, ...

docker-compose.yml:

version: "3.7"

services:
  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    ports:
      - 52480:8000
    depends_on:
      - postgres
      - redis
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"
    labels:
      - "com.ouroboros.enable=true"
      - "traefik.enable=true"
      - "traefik.port=8000"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:cloud.example.com"
      - "traefik.frontend.redirect.permanent=true"
      - "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
      - "traefik.backend=nextcloud.524"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
    environment:
      - PUID=1000
      - PGID=994
    env_file:
      - "./nextcloud.env"
  
  postgres:
    container_name: nextcloud.524.postgres
    image: postgres:latest
    restart: always
    expose:
      - 5432
    volumes:
      - $PWD/postgres:/var/lib/postgresql/data
    environment:
      - PUID=1000
      - PGID=994
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud
      - POSTGRES_PASSWORD=****************************

  adminer:
    container_name: nextcloud.524.adminer.82
    image: adminer
    restart: always
    ports:
      - 52482:8080

  redis:
    container_name: nextcloud.524.redis
    image: redis:4.0-alpine
    restart: always

  collabora:
    container_name: nextcloud.524.collabora
    image: collabora/code
    restart: always
    cap_add:
      - MKNOD
    expose:
      - 9980
    labels:
      - "com.ouroboros.enable=true"
      - "traefik.enable=true"
      - "traefik.port=9980"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:collabora.cloud.example.com"
      - "traefik.backend=nextcloud.524.collabora"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
    environment:
      - "domain=cloud.example.com"
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--disable-ssl"
      #- "extra_params=--o:ssl.enable=false"

  cron:
    container_name: nextcloud.524.cron
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    #command:
    #  - "/usr/local/bin/cron"
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/15 * * * *"

  news_updater:
    container_name: nextcloud.524.news_updater
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always

nextcloud.env:

TZ=Europe/Prague

PUID=1000
PGID=994

MEMORY_LIMIT=4096M
UPLOAD_MAX_SIZE=10G
OPCACHE_MEM_SIZE=1024
APC_SHM_SIZE=1024M

REAL_IP_FROM=0.0.0.0/32
REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=http_x_forwarded_for

HSTS_HEADER=max-age=15768000; includeSubDomains
RP_HEADER=strict-origin
SUBDIR=

DB_TYPE=pgsql
DB_HOST=postgres
DB_NAME=nextcloud
DB_USER=nextcloud
DB_PASSWORD=****************************

Thank you, Michal

new release for 25.0.3 ? 🙏

I ran into issues with nextcloud/server#36245. The devs asked me to upgrade to latest.

Also, I am since today running into this annoying error message when accessing any of these pages:

  • admin settings
  • personal settings
  • appearance and accessibility
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". �����}�v�H��盛ࣧ��}N�F¸��t�1�0���&@Ss|����������y�y�y��7"$$��v��9]��R��޸k�E��?n��ٷF������/����5����L��b�P#��'�nZ�1��l��1��U����Q��u�tyC��*1����p�(�������T V��fp]t� ���Xtf�!L�sU�z�hu���y���#6�(�V�{]�
...

I saw that you already upgraded to PHP v8.1 in 3774934, so I'd like to try a newer image for that purpose as well and see if it is resolved.

Contrib help

If you give me a few quick pointers how I could try this locally and even PR your repo, then I can help out 😉

Future docker compose file postgre?

Hi
I was wondering if its possible to add with postgre?
i was looking at the redis container would it be recommend to add also add this part for the cache?

 redis:
    image: redis:6-alpine
    container_name: nextcloud_redis
    environment:
      - "TZ"
    restart: always
     mem_limit: 2048m
    mem_reservation: 512m

Direct access to the database (set up from docker compose example)

I need direct access to the database to fix timestamps after a scan, but noticed that the usual place is empty:

docker exec -it -u root compose_mariadb_1 sh
# mysql -u nextcloud -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 17
Server version: 10.2.20-MariaDB-1:10.2.20+maria~bionic mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| nextcloud          |
+--------------------+
2 rows in set (0.00 sec)

MariaDB [(none)]> use nextcloud
Database changed
MariaDB [nextcloud]> show tables;
Empty set (0.01 sec)

MariaDB [nextcloud]>

my docker-compose is same as example regarding the database:

 mariadb:
    image: mariadb:10.2
    volumes:
      - "db:/var/lib/mysql"
    environment:
      - "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
      - "MYSQL_DATABASE=nextcloud"
      - "MYSQL_USER=nextcloud"
      - "MYSQL_PASSWORD=****"
    restart: always

nextcloud.env:

DB_TYPE=mysql
DB_HOST=db
DB_NAME=nextcloud
DB_USER=nextcloud
DB_PASSWORD=****

Any way I can access it to perform the UPDATE action on a table?

Persistent OPcache warning message

Behaviour

Nextcloud still report a warning about OPcache even though I already have added the suggested configuration inside php.ini and opcache.ini
Probably is just some misconfiguration at my hand but I can't find a way to fix it.

The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini:

opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

Steps to reproduce this issue

  1. Brand new Nextcloud docker image installation with SSL enabled
  2. Add the suggested configuration to php.ini and opcache.ini inside the nextcloud container
  3. Restart all nextcloud containers or reload php config with kill -USR2 1 command.
  4. Open the admin page under the Security & setup warnings section.

Expected behaviour

The warning message should be gone.

Actual behaviour

Still see the warning.

Configuration

  • Docker version: 19.03.2

  • Platform: GNU/Linux CentOS 7

  • /etc/php7/conf.d/opcache.ini

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=256M
opcache.save_comments=1
opcache.revalidate_freq=1
  • /etc/php7/php.ini
....
....
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
opcache.max_accelerated_files=10000

; The maximum percentage of "wasted" memory until a restart is scheduled.
;opcache.max_wasted_percentage=5

; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;opcache.use_cwd=1

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
opcache.revalidate_freq=1

; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0

; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
opcache.save_comments=1

; Allow file existence override (file_exists, etc.) performance feature.
;opcache.enable_file_override=0

; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
;opcache.optimization_level=0x7FFFBFFF

;opcache.dups_fix=0

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x  blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
;opcache.blacklist_filename=

; Allows exclusion of large files from being cached. By default all files
; are cached.
;opcache.max_file_size=0

; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;opcache.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;opcache.force_restart_timeout=180

; OPcache error_log file name. Empty string assumes "stderr".
;opcache.error_log=

; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;opcache.log_verbosity_level=1

; Preferred Shared Memory back-end. Leave empty and let the system decide.
;opcache.preferred_memory_model=

; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;opcache.protect_memory=0

; Allows calling OPcache API functions only from PHP scripts which path is
; started from specified string. The default "" means no restriction
;opcache.restrict_api=

; Mapping base of shared memory segments (for Windows only). All the PHP
; processes have to map shared memory into the same address space. This
; directive allows to manually fix the "Unable to reattach to base address"
; errors.
;opcache.mmap_base=

; Enables and sets the second level cache directory.
; It should improve performance when SHM memory is full, at server restart or
; SHM reset. The default "" disables file based caching.
;opcache.file_cache=

; Enables or disables opcode caching in shared memory.
;opcache.file_cache_only=0

; Enables or disables checksum validation when script loaded from file cache.
;opcache.file_cache_consistency_checks=1

; Implies opcache.file_cache_only=1 for a certain process that failed to
; reattach to the shared memory (for Windows only). Explicitly enabled file
; cache is required.
;opcache.file_cache_fallback=1

; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
; This should improve performance, but requires appropriate OS configuration.
;opcache.huge_code_pages=1

; Validate cached file permissions.
;opcache.validate_permission=0

; Prevent name collisions in chroot'ed environment.
;opcache.validate_root=0

; If specified, it produces opcode dumps for debugging different stages of
; optimizations.
;opcache.opt_debug_level=0
....
....

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 10
  Running: 8
  Paused: 0
  Stopped: 2
 Images: 13
 Server Version: 19.03.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-957.27.2.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.701GiB
 Name: guybrush
 ID: XSD2:FHPJ:D2MC:RG3V:36YZ:D7OY:AWFP:SHGG:2YJM:CRMU:JTJZ:6FMB
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Folder/File Sharing is cleared after couple minutes

Behaviour

I noticed that for Folders/Files on External Storage Sharing via link is reset/cleared after couple minutes from generating it.. It does not happen for sharing a content from "local" folder like Documents..

Its what I reported back in summer and you couldn't replicate. Just realized it is happening for folders/files on the External storage's:
image

Then share some subfolder from the external storage:
image

After (like 5-10 mins or so) it will "expire":
image

Steps to reproduce this issue

  1. Copy-Paste your example config
  2. Adjust for local use
  3. Run the docker-compose file

Expected behaviour

Keep sharing the content until manually cleared or file is deleted.

Actual behaviour

Sharing of the file/folder is cleared after couple minutes on its own.

Configuration

  • Nextcloud: 20.0.1
  • Docker version (type docker --version) : Docker version 19.03.13, build 4484c46d9d
  • Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.27.4, build 40524192
  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian GNU/Linux 10 (buster)
  • System info (type uname -a) : Linux caradhras 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

Docker-Compose

version: "3.7"

services:
  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    ports:
      - 52480:8000
    depends_on:
      - postgres
      - redis
      - msmtpd
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud.entrypoints=websecure
      - traefik.http.routers.nextcloud.rule=Host(`cloud.example.com`)
      - traefik.http.routers.nextcloud.service=nextcloud
      - traefik.http.services.nextcloud.loadbalancer.server.port=8000
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
  
  postgres:
    container_name: nextcloud.524.postgres
    image: postgres:12
    restart: always
    expose:
      - 5432
    volumes:
      - $PWD/postgres:/var/lib/postgresql/data
    environment:
      - PUID=1000
      - PGID=994
      - POSTGRES_DB=${DB_NAME}
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_PASSWORD=${DB_PASSWORD}

  adminer:
    container_name: nextcloud.524.adminer.82
    image: adminer
    ports:
      - 52482:8080
    restart: always

  redis:
    container_name: nextcloud.524.redis
    image: redis:4.0-alpine
    environment:
      - "TZ"
    restart: always

  msmtpd:
    container_name: nextcloud.524.msmtpd
    image: crazymax/msmtpd:latest
    env_file:
      - "./msmtpd.env"
    environment:
      - "TZ"
    restart: always

  cron:
    container_name: nextcloud.524.cron
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/5 * * * *"
    restart: always

  previewgen:
    container_name: nextcloud.524.previewgen
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_PREVIEWGEN=1"
      - "PREVIEWGEN_PERIOD=0 * * * *"
    restart: always

  news_updater:
    container_name: nextcloud.524.news_updater
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "TZ"
      - "PUID"
      - "PGID"
      - "DB_TYPE=${DB_TYPE}"
      - "DB_HOST=${DB_HOST}"
      - "DB_NAME=${DB_NAME}"
      - "DB_USER=${DB_USER}"
      - "DB_PASSWORD=${DB_PASSWORD}"
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always

  collabora:
    container_name: nextcloud.524.collabora
    image: collabora/code
    cap_add:
      - MKNOD
    expose:
      - 9980
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud-collabora.entrypoints=websecure
      - traefik.http.routers.nextcloud-collabora.rule=Host(`collabora.cloud.example.com`)
      - traefik.http.routers.nextcloud-collabora.service=nextcloud-collabora
      - traefik.http.services.nextcloud-collabora.loadbalancer.server.port=9980
    environment:
      - "domain=collabora.cloud.example.com"
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--disable-ssl"
    restart: always

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 69
  Running: 65
  Paused: 0
  Stopped: 4
 Images: 130
 Server Version: 19.03.13
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.19.0-12-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.93GiB
 Name: caradhras
 ID: 5OK4:ZOLQ:2ZF4:ST73:R4WC:DJMN:MJCQ:SJVZ:VTP4:KGXU:UKLW:OR6Y
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Bad Gateway after update

Behaviour

Steps to reproduce this issue

  1. Update
  2. Be sad

Expected behaviour

It works....

Actual behaviour

Bad Gateway

Configuration

  • Docker version (type docker --version) : 19.03.3, build a872fc2f86
  • Docker compose version if applicable (type docker-compose --version) : 1.23.1, build b02f1306
  • Platform (Debian 9, Ubuntu 18.04, ...) : Ubuntu 20 dev build
  • Include all necessary configuration files : docker-compose.yml, .env, ...
version: "3.2"

services:
  traefik:
    image: traefik:1.6-alpine
    command:
      - "--logLevel=DEBUG"
      - "--defaultentrypoints=http,https"
      - "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
      - "--entryPoints=Name:https Address::443 TLS"
      - "--docker"
      - "--docker.exposedbydefault=false"
      - "--docker.domain=da3dsoul.shokoanime.com,da3dsoul.strangled.net"
      - "--acme=true"
      - "--acme.acmelogging=true"
      - "[email protected]"
      - "--acme.storage=acme.json"
      - "--acme.entryPoint=https"
      - "--acme.onhostrule=true"
      - "--acme.httpchallenge=true"
      - "--acme.httpchallenge.entrypoint=http"
    ports:
      - target: 80
        published: 80
        protocol: tcp
      - target: 443
        published: 443
        protocol: tcp
    volumes:
      - "./acme.json:/acme.json"
      - "/var/run/docker.sock:/var/run/docker.sock"
    restart: always

  db:
    image: mariadb:10.2
    volumes:
      - "/home/da3dsoul/nextcloud_data/db:/var/lib/mysql"
      - "/home/da3dsoul/nextcloud_data/maria_config:/etc/mysql"
    environment:
      - "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
      - "MYSQL_DATABASE=nextcloud"
      - "MYSQL_USER=nextcloud"
      - "MYSQL_PASSWORD=akJSFHKASDJ"
    ports:
      - "3306:3306"
    restart: always

  redis:
    image: redis:4.0-alpine
    restart: always

  app:
    image: crazymax/nextcloud:latest
    depends_on:
      - db
      - redis
    volumes:
      - "/media/da3dsoul/Golias:/mediavolume"
      - "/home/da3dsoul/nextcloud_data/data:/data"
    labels:
      - "traefik.enable=true"
      - "traefik.backend=nextcloud"
      - "traefik.port=8000"
      - "traefik.frontend.rule=Host:da3dsoul.shokoanime.com,da3dsoul.strangled.net"
      - "traefik.frontend.redirect.permanent=true"
      - "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
    env_file:
      - "./nextcloud.env"
    restart: always

  cron:
    image: crazymax/nextcloud:latest
    depends_on:
      - app
    volumes:
      - "/home/da3dsoul/nextcloud_data/data:/data"
      - "/home/da3dsoul/nextcloud_data/apps:/var/www/apps"
    command: "/usr/local/bin/cron"
    env_file:
      - "./nextcloud.env"
    restart: always
    
  news_updater:
    image: crazymax/nextcloud:latest
    container_name: nextcloud_news_updater
    depends_on:
      - app
    volumes:
      - "/home/da3dsoul/nextcloud_data/data:/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always
TZ=America/Indianapolis

PUID=1000
PGID=1000

LOG_LEVEL=DEBUG

MEMORY_LIMIT=8192M
UPLOAD_MAX_SIZE=10G
OPCACHE_MEM_SIZE=4096
APC_SHM_SIZE=1024M

REAL_IP_FROM=0.0.0.0/32
REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=http_x_forwarded_for

HSTS_HEADER=max-age=15768000; includeSubDomains
RP_HEADER=strict-origin
SUBDIR=

SIDECAR_CRON=1
CRON_PERIOD=*/15 * * * * \

DB_TYPE=mysql
DB_HOST=db
DB_NAME=nextcloud
DB_USER=nextcloud
DB_PASSWORD=asfjhs8934uhsgf-as908dha

I set the data folder uid:gid as the changelog says.

Docker info

Client:
 Debug Mode: false

Server:
 Containers: 9
  Running: 5
  Paused: 0
  Stopped: 4
 Images: 27
 Server Version: 19.03.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.6-050406-generic
 Operating System: Ubuntu Focal Fossa (development branch)
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 31.34GiB
 Name: THE-THRONE
 ID: 2D5T:JP75:HA62:DD7Z:MK7V:PNJN:MQCR:KYG7:TVFY:4DX5:TT7C:T6A6
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Logs

This log? nextcloud.log is 0 bytes.....

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-fix-logs.sh: executing... 
[cont-init.d] 00-fix-logs.sh: exited 0.
[cont-init.d] 01-fix-uidgid.sh: executing... 
[cont-init.d] 01-fix-uidgid.sh: exited 0.
[cont-init.d] 02-fix-perms.sh: executing... 
Fixing perms...
[cont-init.d] 02-fix-perms.sh: exited 0.
[cont-init.d] 03-config.sh: executing... 
Setting timezone to America/Indianapolis...
Setting PHP-FPM configuration...
Setting PHP configuration...
sed: bad option in substitution expression
Setting Nginx configuration...
Initializing Nextcloud files/folders...
[cont-init.d] 03-config.sh: exited 0.
[cont-init.d] 04-svc-main.sh: executing... 
[cont-init.d] 04-svc-main.sh: exited 0.
[cont-init.d] 05-svc-cron.sh: executing... 
>>
>> Sidecar cron container detected for Nextcloud
>>
Creating Nextcloud cron task with the following period fields : */15 * * * * \
Fixing crontabs permissions...
[cont-init.d] 05-svc-cron.sh: exited 0.
[cont-init.d] 06-svc-news-updater.sh: executing... 
[cont-init.d] 06-svc-news-updater.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
crond: crond (busybox 1.30.1) started, log level 8
[services.d] done.
^C
That's it. Maria and Traefik start as expected

I don't know what else to look for. Bad Gateway tells me nothing other than it's somewhere in the nextcloud container. The logs are useless to me, as it doesn't report an error.

Loggin in stuck at loading (chrome)

Hi,

After upgrading to 17.0.1 and setting everything from scratch I noticed that logging into app gets stuck for the chrome and android mobile app (after a while it offers old interface and it goes through). When then the site is refreshed again it redirects me into app successfully. For the Firefox it goes through as expected just after hitting submit. Tested it in incognito modes without any add-ons.

image

Steps to reproduce this issue

  1. use latest docker image
  2. use traefik example
  3. go through the initial setup
  4. try to log in via chrome..

Expected behaviour

Redirect to app..

Actual behaviour

Stuck at loading the login - see scrennshot.

Configuration

System info

root@caradhras:[/docker/nextcloud]: docker --version
Docker version 19.03.5, build 633a0ea838
root@caradhras:[/docker/nextcloud]: docker-compose --version
docker-compose version 1.23.2, build 1110ad01
root@caradhras:[/docker/nextcloud]: uname -a
Linux caradhras 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

My docker-compose.yml is build upon your traefik version:

TZ=Europe/Prague

UID=1000
GID=994

MEMORY_LIMIT=4096M
UPLOAD_MAX_SIZE=10G
OPCACHE_MEM_SIZE=1024
APC_SHM_SIZE=1024M

REAL_IP_FROM=0.0.0.0/32
REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=http_x_forwarded_for

HSTS_HEADER=max-age=15768000; includeSubDomains
RP_HEADER=strict-origin
SUBDIR=

DB_TYPE=pgsql
DB_HOST=postgres
DB_NAME=nextcloud
DB_USER=nextcloud
DB_PASSWORD==********************
version: "3.7"

services:
  nextcloud:
    container_name: nextcloud.524
    image: crazymax/nextcloud:latest
    restart: always
    ports:
      - 52480:8000
    depends_on:
      - postgres
      - redis
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
      - "/lvm/raid/private/backups/:/mnt/private/backups"
      - "/lvm/raid/private/data/:/mnt/private/data"
      - "/lvm/raid/private/drive/:/mnt/private/drive"
      - "/lvm/raid/private/media/:/mnt/private/media"
      - "/lvm/raid/public/backups/:/mnt/public/backups"
      - "/lvm/raid/public/drive/:/mnt/public/drive"
      - "/lvm/raid/public/ftp/:/mnt/public/ftp"
    labels:
      - "com.ouroboros.enable=true"
      - "traefik.enable=true"
      - "traefik.port=8000"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:cloud.example.com"
      - "traefik.frontend.redirect.permanent=true"
      - "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
      - "traefik.backend=nextcloud.524"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
    environment:
      - PUID=1000
      - PGID=994
    env_file:
      - "./nextcloud.env"
  
  postgres:
    container_name: nextcloud.524.postgres
    image: postgres:latest
    restart: always
    expose:
      - 5432
    volumes:
      - $PWD/postgres:/var/lib/postgresql/data
    environment:
      - PUID=1000
      - PGID=994
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud
      - POSTGRES_PASSWORD=********************
      #docker exec -it nextcloud.524.postgres bash
      #su postgres
      #createuser -P nextcloud
      #createdb -O nextcloud nextcloud

  adminer:
    container_name: nextcloud.524.adminer.82
    image: adminer
    restart: always
    ports:
      - 52482:8080

  redis:
    container_name: nextcloud.524.redis
    image: redis:4.0-alpine
    restart: always

  collabora:
    container_name: nextcloud.524.collabora
    image: collabora/code
    restart: always
    cap_add:
      - MKNOD
    expose:
      - 9980
    labels:
      - "com.ouroboros.enable=true"
      - "traefik.enable=true"
      - "traefik.port=9980"
      - "traefik.frontend.entryPoints=https"
      - "traefik.frontend.rule=Host:collabora.cloud.example.com"
      - "traefik.backend=nextcloud.524.collabora"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
    environment:
      - "domain=cloud.example.com"
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--disable-ssl"
      #- "extra_params=--o:ssl.enable=false"

  cron:
    container_name: nextcloud.524.cron
    image: crazymax/nextcloud:latest
    restart: always
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    #command:
    #  - "/usr/local/bin/cron"
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_CRON=1"
      - "CRON_PERIOD=*/15 * * * *"

  news_updater:
    container_name: nextcloud.524.news_updater
    image: crazymax/nextcloud:latest
    depends_on:
      - nextcloud
    volumes:
      - "$PWD/nextcloud:/data"
      - "/lvm/raid/public/nextcloud/data/:/data/data"
    env_file:
      - "./nextcloud.env"
    environment:
      - "SIDECAR_NEWSUPDATER=1"
      - "NC_NEWSUPDATER_THREADS=10"
      - "NC_NEWSUPDATER_TIMEOUT=300"
      - "NC_NEWSUPDATER_INTERVAL=900"
      - "NC_NEWSUPDATER_LOGLEVEL=error"
    restart: always

Docker info

root@caradhras:[/docker/nextcloud]: docker info
Client:
 Debug Mode: false

Server:
 Containers: 60
  Running: 57
  Paused: 0
  Stopped: 3
 Images: 82
 Server Version: 19.03.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.19.0-6-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.36GiB
 Name: caradhras
 ID: BJXV:ZBFE:E2PV:3L5L:BHXJ:7ZCU:ANZ6:S7O5:PC2H:WQUH:HXDV:TLE5
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Logs

Configured debug level 0 and not much happening:

root@caradhras:[/docker/nextcloud]: dcl nextcloud
Attaching to nextcloud.524
nextcloud.524   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud.524   | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud.524   | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud.524   | [fix-attrs.d] done.
nextcloud.524   | [cont-init.d] executing container initialization scripts...
nextcloud.524   | [cont-init.d] 00-fix-logs.sh: executing...
nextcloud.524   | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud.524   | [cont-init.d] 01-fix-uidgid.sh: executing...
nextcloud.524   | Switching to PGID 994...
nextcloud.524   | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud.524   | [cont-init.d] 02-fix-perms.sh: executing...
nextcloud.524   | Fixing perms...
nextcloud.524   | [cont-init.d] 02-fix-perms.sh: exited 0.
nextcloud.524   | [cont-init.d] 03-config.sh: executing...
nextcloud.524   | Setting timezone to Europe/Prague...
nextcloud.524   | Setting PHP-FPM configuration...
nextcloud.524   | Setting PHP configuration...
nextcloud.524   | sed: bad option in substitution expression
nextcloud.524   | Setting Nginx configuration...
nextcloud.524   | Initializing Nextcloud files/folders...
nextcloud.524   | [cont-init.d] 03-config.sh: exited 0.
nextcloud.524   | [cont-init.d] 04-svc-main.sh: executing...
nextcloud.524   | Bootstrapping configuration...
nextcloud.524   | The current PHP memory limit is below the recommended value of 512MB.
nextcloud.524   | Upgrading Nextcloud...
nextcloud.524   | The current PHP memory limit is below the recommended value of 512MB.
nextcloud.524   | Nextcloud is already latest version
nextcloud.524   | [cont-init.d] 04-svc-main.sh: exited 0.
nextcloud.524   | [cont-init.d] 05-svc-cron.sh: executing...
nextcloud.524   | [cont-init.d] 05-svc-cron.sh: exited 0.
nextcloud.524   | [cont-init.d] 06-svc-news-updater.sh: executing...
nextcloud.524   | [cont-init.d] 06-svc-news-updater.sh: exited 0.
nextcloud.524   | [cont-init.d] done.
nextcloud.524   | [services.d] starting services
nextcloud.524   | [services.d] done.
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: using the "epoll" event method
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: nginx/1.16.1
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: OS: Linux 4.19.0-6-amd64
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker processes
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 321
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 322
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 323
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 324
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 325
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 327
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 333
nextcloud.524   | 2019/12/18 14:50:14 [notice] 304#304: start worker process 339
nextcloud.524   | [18-Dec-2019 14:50:14] NOTICE: fpm is running, pid 305
nextcloud.524   | [18-Dec-2019 14:50:14] NOTICE: ready to handle connections
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:41 +0100] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:41 +0100] "GET /login HTTP/1.1" 200 3814 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:42 +0100] "GET /apps/theming/styles?v=0 HTTP/1.1" 200 377 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:42 +0100] "GET /js/core/merged-template-prepend.js?v=9327e1de-0 HTTP/1.1" 200 2950 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:44 +0100] "GET /apps/theming/js/theming?v=0 HTTP/1.1" 200 232 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:44 +0100] "GET /svg/core/logo/logo?color=fff&v=1 HTTP/1.1" 200 194 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:44 +0100] "GET /apps/accessibility/js/accessibility?v=0 HTTP/1.1" 200 65 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nextcloud.524   | 192.168.255.1 - - [18/Dec/2019:14:50:54 +0100] "POST /login HTTP/1.1" 303 0 "https://cloud.example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"

Thanks

cURL timeout / php.ini settings

Behaviour

Steps to reproduce this issue

  1. install fresh nextcloud via docker
  2. try to install "Collabora online"

Expected behaviour

App gets installed

Actual behaviour

Fails with error
cURL error 28: Operation timed out after 30000 milliseconds with 556618 out of 882318 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Is it possible to change php.ini settings or increase the cURL timeout?

Cannot login, Refused to execute inline script because it violates the following Content Security Policy directive

Behaviour

Nextcloud appears to be installed and configured fine, no obvious errors in the docker logs, but I can't login.

Steps to reproduce this issue

  1. Installed everything from scratch, using https://github.com/crazy-max/docker-nextcloud/blob/master/examples/compose/docker-compose.yml
  2. Successfully ran the pre-configiuration (i.e. register admin user, waited for "Installing..." completion
  3. Tried to login

Expected behaviour

Being able to actually log in

Actual behaviour

After clicking login, I just get back to the login screen again. Error in the console:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'nonce-VzdtY3lOL0Zia1BrNnBvYjJ3Y2xOZWFlOERsYm1OMEhyVnRSNVl6K0Yrbz06Yk5QbWpvMldXbWlOck5STjRtaFNUYlBYczJ3MXFhNVI1eUZvb2NyTldvOD0='". Either the 'unsafe-inline' keyword, a hash ('sha256-rwMOiOeVICH7/Cjy5SkreID3OOi5HTrit357k22hUDQ='), or a nonce ('nonce-...') is required to enable inline execution.

Removing RP_HEADER from .env and restarting the containers didn't make a difference.
Happens in Firefox, Brave and Chrome - all most current version.

Configuration

  • Docker version (type docker --version) : 20.10.5+dfsg1, build 55c4c88
  • Docker compose version if applicable (type docker-compose --version) : 1.25.0
  • Platform (Debian 9, Ubuntu 18.04, ...) : Raspberry Debian 11 Bullseye
  • System info (type uname -a) : Linux pi4 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
  • Include all necessary configuration files : docker-compose.yml, .env, ... -> basically the same as in examples, just changed the volumes

Docker info

Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 17
  Running: 17
  Paused: 0
  Stopped: 0
 Images: 68
 Server Version: 20.10.5+dfsg1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1.4.13~ds1-1~deb11u1
 runc version: 1.0.0~rc93+ds1-5+b2
 init version: 
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.15.32-v8+
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 3.706GiB
 Name: pi4
 ID: TPZD:GIGK:IEF6:ESYA:RNI3:VFDE:HIDT:F7NB:72EA:EE7P:TFCP:Q2I5
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: Support for cgroup v2 is experimental

Logs

> Container logs (set LOG_LEVEL to debug if applicable)

Collabora not working: Saved with error..

When saving settings for Collabora I am getting:
Saved with error: Collabora Online should use the same protocol as the server installation.

When opening odp or ods document nothing happens, just blank loading screen..

Logs:

Error	lib	ResourceLocator can not find a web root (root: /data/userapps/richdocuments, file: css/richdocuments/5946-8205-admin.css?v=db81cddf52fdb3c8ca1e4c859e214124, webRoot: , throw: true)

Error	lib	ResourceLocator can not find a web root (root: /data/userapps/richdocuments, file: css/richdocuments/5946-8205-admin.css?v=db81cddf52fdb3c8ca1e4c859e214124, webRoot: , throw: true)

...

Versions:
Nextcloud: latest
Collabora: latest

FQDN:
Nextcloud: cloud.example.com
Collabora: collabora.cloud.example.com

image

Any ideas? Posted on the official nextcloud forum no response after over a month..
Thanks a lot, Michal

NEXTCLOUD_TRUSTED_DOMAINS

Sorry I am a bit of a noob with all this and maybe the question is too obvious.

  • Where do you add the NC_TRUSTED_DOMAINS?

Thanks is Advance

Can you switch the symlink from config.php to config dir

Instead of linking /data/data/config/config.php to /var/www/html/nextcloud/config/config.php if the link was from /data/data/config to /var/www/html/nextcloud/config then we could easily add redis.config.php and email.confg.php to the data dir to simplify the setup?

Problems when importing .ics file to Calendar app

Hi,

I'm trying to import a .ics file in Calendar app and I have many failures after process.
It worked with default nextcloud docker image and same docker-compose-yml configuration.
I'm using your image because cron works very well for the News app.
While importing I see many Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored. warning in debugging console.

Do you have any issue like that? Could you please try to import e.g. a .ics exported from Google Calendar?
Thanks

Help!! Why my nextcloud after success create admin and it will change from https to http?

Behaviour

Steps to reproduce this issue

  1. Success setup.
  2. Create an admin from the nextcloud.
  3. Redirect to main page of success login to nextcloud

Expected behaviour

The url supposingly will continue as https

Actual behaviour

The url from https will change back to http

Configuration

  • Docker version (type docker --version) : Docker version 18.09.2, build 6247962
  • Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.23.2, build 1110ad01
  • Platform (Debian 9, Ubuntu 18.04, ...) : windows
  • Include all necessary configuration files : docker-compose.yml, .env, ...

Docker info

> Output of command `docker info`

Containers: 7
Running: 7
Paused: 0
Stopped: 0
Images: 44
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.768GiB
Name: linuxkit-00155d009001
ID: BKIK:ZFGK:Z7RQ:HIBA:3QSH:UITO:RAMB:XFST:MKN3:O23A:4GUE:KHOY
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 81
Goroutines: 98
System Time: 2019-05-17T09:28:31.1989298Z
EventsListeners: 3
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

Upgrade 16.0.1 -> 17.0.x fails

Behaviour

Steps to reproduce this issue

  1. Initialize a docker-container with crazy-max/nextcloud:16.0.1
  2. Build the same container again with crazy-max/nextcloud:17.0.1 or 17.0.2
  3. Start the container

Expected behaviour

Server migrates everything and resumes normal operation.

Actual behaviour

Something in the startup script goes wrong. I think this is how things go down:

  1. The initialization scripts are launched, all starts well
  2. 03-config.sh starts execution
  3. When Setting PHP configuration, things go south I think:
    1. sed: bad option in substitution expression
    2. and later nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied), which keeps repeating from there on.

The failure of the startup scripts happens both in the cron container, as well as in the actual nextcloud container.

Configuration

  • Docker version: 17.09.1-ce, build 0a5102e
  • Docker compose version if applicable: 1.22.0, build f46880f
  • Platform (Debian 9, Ubuntu 18.04, ...): QNAP OS
  • Include all necessary configuration files: See patzm/dockerfiles@9142e90 in the nextcloud subfolder

Docker info

Containers: 14
 Running: 13
 Paused: 0
 Stopped: 1
Images: 41
Server Version: 17.09.1-ce
Storage Driver: overlay
 Backing Filesystem: extfs
 Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6c000fd07a23e5904618abdbb31f75c44865ef13 (expected: 06b9cb35161009dcb7123345749fef02f7cea8e0)
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.2.8
Operating System: QTS 4.3.5 (20181013)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.682GiB
Name: tatooine
ID: U4RN:HMOX:E2W7:EW7U:XFQX:ARB7:NLRS:PT44:BWF6:RFAO:5XHH:RVKJ
Docker Root Dir: /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 215
 Goroutines: 199
 System Time: 2020-01-20T23:04:39.292518799+01:00
 EventsListeners: 3
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No kernel memory limit support

Logs

...
nextcloud    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud    | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud    | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud    | [fix-attrs.d] done.
nextcloud    | [cont-init.d] executing container initialization scripts...
nextcloud    | [cont-init.d] 00-fix-logs.sh: executing...
nextcloud    | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: executing...
nextcloud    | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud    | [cont-init.d] 02-fix-perms.sh: executing...
nextcloud    | Fixing perms...
nextcloud    | [cont-init.d] 02-fix-perms.sh: exited 0.
nextcloud    | [cont-init.d] 03-config.sh: executing...
nextcloud    | Setting timezone to Europe/Berlin...
nextcloud    | Setting PHP-FPM configuration...
nextcloud    | Setting PHP configuration...
nextcloud    | sed: bad option in substitution expression
nextcloud    | Setting Nginx configuration...
nextcloud    | Initializing Nextcloud files/folders...
nextcloud    | [cont-init.d] 03-config.sh: exited 0.
nextcloud    | [cont-init.d] 04-svc-main.sh: executing...
nextcloud    | Bootstrapping configuration...
nextcloud    | The current PHP memory limit is below the recommended value of 512MB.
nextcloud    | [cont-init.d] 04-svc-main.sh: exited 0.
nextcloud    | [cont-init.d] 05-svc-cron.sh: executing...
nextcloud    | [cont-init.d] 05-svc-cron.sh: exited 0.
nextcloud    | [cont-init.d] 06-svc-news-updater.sh: executing...
nextcloud    | [cont-init.d] 06-svc-news-updater.sh: exited 0.
nextcloud    | [cont-init.d] done.
nextcloud    | [services.d] starting services
nextcloud    | [services.d] done.
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | [20-Jan-2020 22:40:16] NOTICE: fpm is running, pid 293
nextcloud    | [20-Jan-2020 22:40:16] NOTICE: ready to handle connections
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
nextcloud    | nginx: [emerg] mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied)
...

Can't connect to nextcloud

Hey,
Basically I had and power outage at home yesterday, when the server started again, I couldn't connect to the nextcloud. This is what I got on the web:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Then I checked the instance logs, this were the logs providede:

Setting PHP-FPM configuration...


Setting PHP configuration...


Setting Nginx configuration...


Initializing Nextcloud files / folders...


Bootstrapping configuration...


Fixing permissions...


Fixing permissions in /data/config...


Permissions already fixed in /data/data.


Permissions already fixed in /data/session.


Permissions already fixed in /data/themes.


Permissions already fixed in /data/tmp.


Permissions already fixed in /data/userapps.


2019-09-28 15:27:51,194 INFO Included extra file "/etc/supervisord/nginx.conf" during parsing


2019-09-28 15:27:51,195 INFO Included extra file "/etc/supervisord/php.conf" during parsing


2019-09-28 15:27:51,195 INFO Set uid to user 0 succeeded


2019-09-28 15:27:51,213 INFO RPC interface 'supervisor' initialized


2019-09-28 15:27:51,213 CRIT Server 'unix_http_server' running without any HTTP authentication checking


2019-09-28 15:27:51,213 INFO supervisord started with pid 1


2019-09-28 15:27:52,217 INFO spawned: 'nginx' with pid 50


2019-09-28 15:27:52,220 INFO spawned: 'php' with pid 51


2019/09/28 15:27:52 [notice] 50#50: using the "epoll" event method


2019/09/28 15:27:52 [notice] 50#50: nginx/1.16.1


2019/09/28 15:27:52 [notice] 50#50: OS: Linux 4.9.0-9-amd64


2019/09/28 15:27:52 [notice] 50#50: getrlimit(RLIMIT_NOFILE): 1048576:1048576


2019/09/28 15:27:52 [notice] 50#50: start worker processes


2019/09/28 15:27:52 [notice] 50#50: start worker process 52


2019/09/28 15:27:52 [notice] 50#50: start worker process 53


2019/09/28 15:27:52 [notice] 50#50: start worker process 54


2019/09/28 15:27:52 [notice] 50#50: start worker process 55


[28-Sep-2019 15:27:52] NOTICE: fpm is running, pid 51


[28-Sep-2019 15:27:52] NOTICE: ready to handle connections


2019-09-28 15:27:53,399 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)


2019-09-28 15:27:53,399 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)


2019/09/28 15:28:10 [info] 52#52: *5 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.28.0.16, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", host: "nextcloud.miguelndecarvalho.pt"


172.28.0.16 - - [28/Sep/2019:15:28:10 +0100] "GET / HTTP/1.1" 499 0 "-" "Go-http-client/1.1"


2019/09/28 15:28:15 [info] 52#52: *9 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.28.0.16, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", host: "nextcloud.miguelndecarvalho.pt"


172.28.0.16 - - [28/Sep/2019:15:28:15 +0100] "GET / HTTP/1.1" 499 0 "-" "Go-http-client/1.1"


2019/09/28 15:28:15 [info] 52#52: *11 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.28.0.16, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", host: "nextcloud.miguelndecarvalho.pt"


172.28.0.16 - - [28/Sep/2019:15:28:15 +0100] "GET / HTTP/1.1" 499 0 "-" "Go-http-client/1.1"


172.28.0.16 - MiguelNdeCarvalho [28/Sep/2019:15:28:21 +0100] "GET /status.php HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Linux) mirall/2.5.3git (Nextcloud)"


2019/09/28 15:28:41 [info] 52#52: *18 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.28.0.16, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", host: "nextcloud.miguelndecarvalho.pt"


172.28.0.16 - - [28/Sep/2019:15:28:41 +0100] "GET / HTTP/1.1" 499 0 "-" "Go-http-client/1.1"


172.28.0.16 - MiguelNdeCarvalho [28/Sep/2019:15:28:48 +0100] "GET /status.php HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Linux) mirall/2.5.3git (Nextcloud)"


2019/09/28 15:29:15 [info] 52#52: *30 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.28.0.16, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", host: "nextcloud.miguelndecarvalho.pt"


172.28.0.16 - - [28/Sep/2019:15:29:15 +0100] "GET / HTTP/1.1" 499 0 "-" "Go-http-client/1.1"

Thanks,
Miguel de Carvalho

News Updater error

Behaviour

Steps to reproduce this issue

  1. docker compose pull
  2. docker compose up -d
  3. docker compose logs -f

Expected behaviour

News Updater should not produce an error in the logs, effectively not running its command.

Actual behaviour

The News Updater container produces the error shown in the logs below.

Configuration

  • Docker version (type docker --version) : Docker version 20.10.14, build a224086
  • Docker compose version if applicable (type docker-compose --version) : Docker compose is installed with DNF as 'docker-compose-plugin'
  • Platform (Debian 9, Ubuntu 18.04, ...) : AlmaLinux 8.5
  • System info (type uname -a) : Linux my.host.name 4.18.0-348.23.1.el8_5.x86_64 SMP Wed Apr 27 05:47:31 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.8.1-docker)
  compose: Docker Compose (Docker Inc., v2.3.3)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
 Containers: 8
  Running: 8
  Paused: 0
  Stopped: 0
 Images: 5
 Server Version: 20.10.14
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc version: v1.0.3-0-gf46b6ba
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.18.0-348.23.1.el8_5.x86_64
 Operating System: AlmaLinux 8.5 (Arctic Sphynx)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.748GiB
 Name: my.host.name
 ID: YIKC:JVDO:3CJ5:ING5:LDN7:CV4Y:IMA5:HHQX:7IO5:KALW:52MI:SRSK
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Logs

news_updater  |
news_updater  |
news_updater  |   There are no commands defined in the "news:updater" namespace.
news_updater  |
news_updater  |   Did you mean this?
news_updater  |       maintenance:update
news_updater  |
news_updater  |
news_updater  | 2022-05-03 20:13:00,587 - Nextcloud News Updater - ERROR - Command '['php', '-f', '/var/www/occ', 'news:updater:before-update']' returned non-zero exit status 1.: Trying again in 30 seconds
news_updater  | Traceback (most recent call last):
news_updater  |   File "/usr/lib/python3.9/site-packages/nextcloud_news_updater/api/updater.py", line 69, in run
news_updater  |     self.before_update()
news_updater  |   File "/usr/lib/python3.9/site-packages/nextcloud_news_updater/api/cli.py", line 103, in before_update
news_updater  |     self.cli.run(self.api.before_cleanup_command)
news_updater  |   File "/usr/lib/python3.9/site-packages/nextcloud_news_updater/api/cli.py", line 12, in run
news_updater  |     return check_output(commands)
news_updater  |   File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
news_updater  |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
news_updater  |   File "/usr/lib/python3.9/subprocess.py", line 528, in run
news_updater  |     raise CalledProcessError(retcode, process.args,
news_updater  | subprocess.CalledProcessError: Command '['php', '-f', '/var/www/occ', 'news:updater:before-update']' returned non-zero exit status 1.

Storage quote warning when set to unlimited...

Not sure if this is a container issue or a nextcloud issue, but I have users sync from LDAP and storage quota set to unlimited. However, I am getting a warning that my storage is 95% full, however there is plenty of space on the disk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.