Giter VIP home page Giter VIP logo

docker-nextcloud's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

Nextcloud gives you access to all your files wherever you are.

Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home.

nextcloud

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/nextcloud:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf

Version Tags

This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.

Tag Available Description
latest Stable Nextcloud releases
develop Beta Nextcloud pre-releases only

Application Setup

Access the webui at https://<your-ip>:443, for more information check out Nextcloud.

Note: occ should be run without prepending with sudo -u abc php or sudo -u www-data php ie; docker exec -it nextcloud occ maintenance:mode --off

Updating Nextcloud

Updating Nextcloud is done by pulling the new image, and recreating the container with it.

It is only possible to upgrade one major version at a time. For example, if you want to upgrade from version 14 to 16, you will have to upgrade from version 14 to 15, then from 15 to 16.

Since all data is stored in the /config and /data volumes, nothing gets lost. The startup script will check for the version in your volume and the installed docker version. If it finds a mismatch, it automatically starts the upgrade process.

Collaborative Editing

Nextcloud's built-in collaborative editing packages (Collabora/CODE and OnlyOffice) only work on x86_64 systems with glibc, and therefore they are not compatible with our images. You should create separate containers for them and set them up in Nextcloud with their respective connector addons.

If (auto) installed, those built-in packages may cause instability and should be removed.

HEIC Image Previews

In order to enable HEIC image preview generation you will need to add the following to your config.php file in your `config/www/nextcloud/config' directory;

  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    'OC\Preview\PNG',
    'OC\Preview\JPEG',
    'OC\Preview\GIF',
    'OC\Preview\BMP',
    'OC\Preview\XBitmap',
    'OC\Preview\MP3',
    'OC\Preview\TXT',
    'OC\Preview\MarkDown',
    'OC\Preview\OpenDocument',
    'OC\Preview\Krita',
    'OC\Preview\HEIC',
  ),

You may need to log out and back in for the changes to come in to effect.

This fix was sourced from Nextcloud Documentation

Nextcloud state that HEIC preview is disabled by default due to performance or privacy concerns, so enable this at your own risk.

Custom App Directories

If you are using custom app directories you will need to make the custom folder(s) you are using available to the web server. The recommended way to do this with our container is to add a volume. Ex:

    volumes:
      - /path/to/your_custom_apps_folder:/app/www/public/your_custom_apps_folder

Afterwards, you can set "path" => OC::$SERVERROOT . "/your_custom_apps_folder", in your config.php file, per the official documentation.

Strict reverse proxies

This image uses a self-signed certificate by default. This naturally means the scheme is https. If you are using a reverse proxy which validates certificates, you need to disable this check for the container.

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

docker-compose (recommended, click here for more info)

---
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/nextcloud/config:/config
      - /path/to/data:/data
    ports:
      - 443:443
    restart: unless-stopped
docker run -d \
  --name=nextcloud \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -p 443:443 \
  -v /path/to/nextcloud/config:/config \
  -v /path/to/data:/data \
  --restart unless-stopped \
  lscr.io/linuxserver/nextcloud:latest

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 443 WebUI
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Etc/UTC specify a timezone to use, see this list.
-v /config Persistent config files
-v /data Your personal data.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running:

    docker exec -it nextcloud /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f nextcloud
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' nextcloud
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/nextcloud:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull nextcloud
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d nextcloud
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull lscr.io/linuxserver/nextcloud:latest
  • Stop the running container:

    docker stop nextcloud
  • Delete the container:

    docker rm nextcloud
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

tip: We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-nextcloud.git
cd docker-nextcloud
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/nextcloud:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 19.05.24: - Added util-linux package required for taskset.
  • 10.04.24: - Added imagemagick-pdf.
  • 05.04.24: - Added imagemagick-heic. Manual update to config.php required - see above.
  • 02.04.24: - Existing users should update: site-confs/default.conf - Add support for the Client Push (notify_push) plugin and the new mod.
  • 22.03.24: - Add imagemagick-svg module.
  • 06.03.24: - Rebase to Alpine 3.19 with php 8.3.
  • 02.01.24: - Existing users should update: site-confs/default.conf - Cleanup default site conf.
  • 22.12.23: - Site default conf updating to include mime.types for js and mjs and update location to include more file types.
  • 28.10.23: - Disable web upgrades using occ during init.
  • 31.08.23: - Re-add updatenotification app. This allows users to be notified for app updates, but also notifies for NextCloud updates. Updating NextCloud via the web UI is not supported when using this image.
  • 14.08.23: - Add develop branch.
  • 25.06.23: - Move Nextcloud installation inside container. Remove CLI updater. See changes announcement.
  • 21.06.23: - Existing users should update /config/nginx/site-confs/default.conf - Security fix for real ip settings.
  • 25.05.23: - Rebase to Alpine 3.18, deprecate armhf.
  • 13.04.23: - Move ssl.conf include to default.conf.
  • 21.03.23: - Add php81-sysvsem as new dep for v26. Update default X-Robots-Tag to `noindex, nofollow``.
  • 02.03.23: - Set permissions on crontabs during init.
  • 20.01.23: - Rebase to alpine 3.17 with php8.1.
  • 10.10.22: - Rebasing to alpine 3.15 with php8. Restructure nginx configs (see changes announcement).
  • 30.09.22: - Disabled output_buffering as per [nextcloud docs](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html
  • 21.05.22: - Update version check endpoint.
  • 28.04.22: - Increase OPCache interned strings buffered setting to 16.
  • 14.04.22: - Nginx default site config updated for v23 (existing users should delete /config/nginx/site-confs/default.conf and restart the container). Fix LDAP connection.
  • 11.09.21: - Rebasing to alpine 3.14
  • 21.03.21: - Publish php8 tag for testing.
  • 25.02.21: - Nginx default site config updated for v21 (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 21.01.21: - Fix php iconv (was breaking the mail addon). If installed, attempt to remove broken CODE Server app during startup.
  • 20.01.21: - Increase php fcgi timeout to prevent 504 Gateway timeout errors (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 16.01.21: - Rebasing to alpine 3.13. Users with issues on 32-bit arm, see this article.
  • 12.08.20: - Various updates to default site config, including added support for webfinger (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 03.06.20: - Rebasing to alpine 3.12
  • 03.06.20: - Add php7-bcmath and php7-fileinfo
  • 31.05.20: - Add aliases for occ and updater.phar
  • 31.03.20: - Allow crontab to be user customized, fix logrotate.
  • 17.01.20: - Updated php.ini defaults and site config, including an optional HSTS directive (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 19.12.19: - Rebasing to alpine 3.11.
  • 18.11.19: - Nginx default site config updated for v17 (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 28.10.19: - Change cronjob to run every 5 minutes.
  • 24.10.19: - Nginx default site config updated due to CVE-2019-11043 (existing users should delete /config/nginx/site-confs/default.conf and restart the container).
  • 14.07.19: - Download nextcloud during build time.
  • 28.06.19: - Rebasing to alpine 3.10.
  • 23.03.19: - Switching to new Base images, shift to arm32v7 tag.
  • 27.02.19: - Updating base nginx config to sync up with v15 requirements.
  • 22.02.19: - Rebasing to alpine 3.9.
  • 28.01.19: - Add pipeline logic and multi arch.
  • 25.01.19: - Add php7-phar for occ upgrades.
  • 05.09.18: - Rebase to alpine 3.8.
  • 11.06.18: - Use latest rather than specific version for initial install.
  • 26.04.18: - Bump default install to 13.0.1.
  • 06.02.18: - Bump default install to 13.0.0.
  • 26.01.18: - Rebase to alpine 3.7, bump default install to 12.0.5.
  • 12.12.17: - Bump default install to 12.0.4, fix continuation lines.
  • 15.10.17: - Sed php.ini for opcache requirements in newer nextcloud versions.
  • 20.09.17: - Bump default install to 12.0.3.
  • 19.08.17: - Bump default install to 12.0.2.
  • 25.05.17: - Rebase to alpine 3.6.
  • 22.05.17: - Update to nextcloud 12.0, adding required dependecies and note about commenting out SAMEORIGIN; line.
  • 03.05.17: - Use community repo of memcache.
  • 07.03.17: - Release into main repository and upgrade to php7 and Alpine 3.5.

docker-nextcloud's People

Contributors

alex-phillips avatar aptalca avatar axelsimon avatar calvin-li-developer avatar chbmb avatar drizuid avatar fletchto99 avatar homerr avatar j0nnymoe avatar linuxserver-ci avatar matteocavestri avatar miguelndecarvalho avatar nemchik avatar noblekangaroo avatar quietsy avatar sparklyballs avatar stavros-k avatar techash avatar thelamer avatar thespad avatar tokugero avatar tomtom5152 avatar wmutschl 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  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

docker-nextcloud's Issues

Uploading large files fails

Uploading large files fails with

172.17.0.1 - aaxjDd3W5Dkn8xm [22/Mar/2018:19:18:19 +0200] "PUT /public.php/webdav/PSC_1718_PMW2_1777.MXF HTTP/1.1" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"

172.17.0.1 - aaxjDd3W5Dkn8xm [22/Mar/2018:19:31:10 +0200] "PUT /public.php/webdav/PSC_1718_PMW2_1777.MXF HTTP/1.1" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"

PHP upload limit is set to 128GB and file-size is 20GB. Nothing in the error or nextcloud.log files. What can be done to aid this?

Crons stopped worked after updating Nextcloud

After updating Nextcloud to the latest stable (12.0.4) 4 days ago, I've just noticed Background jobs Last job execution ran 4 days ago. Something seems wrong. in the admin panel. Any ideas?

Caddy proxy keeps redirecting to ip:port

Hey there, thanks for all your work on creating these docker images and for your 2017 media server blog post. I used it and a few of your docker images to set my new server up 😄

I've got a bit of an issue with setting Nextcloud up with Caddy server as a proxy.

This is my Caddyfile code:

nextcloud.mydomain.com {
  proxy / https://10.0.1.25:8443 {
    insecure_skip_verify
  }
}

This is my docker-compose.yml for Nextcloud

nextcloud:
  image: linuxserver/nextcloud
  container_name: nextcloud
  volumes:
    - /opt/appdata/nextcloud:/config
    - /opt/appdata/nextcloud-data:/data
  ports:
    - 8443:443
  restart: always
  environment:
    - PUID=${PUID}
    - PGID=${PGID}

When I go to access the domain (for this example nextcloud.mydomain.com), it redirects me to https://10.0.1.25:8443/index.php/login which my browser then complains about an invalid SSL cert. I've tried changing the config.php file in Nextcloud to add my domain in the trusted_domains option as well as changing overwrite.cli.url to my domain.

Ideally I'd rather the Nextcloud image just listens on 80/8080 and I can just do a normal proxy like I have with all the other docker containers.

Any ideas or is this more an issue with Nextcloud? 😄

s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied

new image getting permission issue: get the following s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied

 nextcloud:
    logging: *default-logging
    image: linuxserver/nextcloud
    container_name: nextcloud
    environment:
      PUID: 5001
      PGID: 5001
      TZ: America/Chicago
      NEXTCLOUD_TRUSTED_DOMAINS: # not sure gets passed in 
      NEXTCLOUD_DATA_DIR: /data # not sure gets passed in 
    volumes:
      - nextcloud:/var/www/html
      - nexctcloud_config:/var/www/html/config
      - nexctcloud_config2:/config # not sure if the same as /var/www/html/config
      - nexctcloud_custom_apps:/var/www/html/custom_apps
      - nextcloud_data:/data
      - nextcloud_media:/ncmedia
    # ports:
    #   - 443:80
    restart: unless-stopped
    networks:
      - nextcloud
      - public
    labels:
      traefik.enable: "true"
      traefik.docker.network: "public"
      traefik.backend: "nextcloud"
      traefik.frontend.rule: "Host:"
      traefik.port: "80"
      traefik.protocol: "http"
    user: "5001:5001"

Ubuntu 18.04

s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied
s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied

Avatar generation does not work

Using latest stable Nextcloud with the latest container image and upon creation, user avatars look like

image

Nothing related in the logging section of Nextcloud

Path to map for MariaDB database?

The official NextCloud container allows mapping the mysql database /var/lib/mysql to a host folder. I don't see a way to do this with this build, is it possible?

NextCloud pm.max_children, consider raising it

When trying to load several documents to NextCloud at once through the web gui (clicking and dragging), the following error appears in the php error log:

WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

This parameter resides in the following dir, however I cannot seem to mount it, resulting in the need to manually update on every restart:
/etc/php7/php-fpm.d

Is there anyway this can be more automatically set, perhaps by an environment variable?

Thanks!

Alpine 3.6 update - webpage not able to log in

linuxserver.io

Unraid

no errors in the unraid log...

After the latest update to Alpine 3.6 I can no longer login to the web client...
Login button does not function any longer...

Android and desktop clients still work...

Need Nextcloud + MariaDb + Airsonic + LetsEncrypt docker-compose.yaml, please

I have been trying to "migrate" from Nextcloud Snap with LetsEncrypt + Ampache setup wth no avail. My current setup is a modified methods from https://arielelkin.github.io/articles/easily-sync-and-stream-your-entire-music-collection-using-docker.html (please see my comment there).

I have said migrate, but in reality, I am starting from blank data.

linuxserver.io

I have tried a modification from https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/ with no avail. :(

An example docker-compose.yaml file with tutorial for Nextcloud + MariaDB + LetsEncrypt, preferably including AirSonic would be highly appreciated.

Renan

Thanks, team linuxserver.io

Unable to install imagick

Hello,

Thanks for your nice container shipped with smb support but i'm to the docker universe and PHP and i can't find a way to install imagick extension in the container to use this nextcloud extension Camera RAW Previews

Maybe i missed something but after some long hours of googling my issue i've done nothing, i'm stuck with answer where you have to use apt-get and pecl, which are not in the container.

Cheers.

trying to configure netxtcloud with lets encrypt

I have successfully installed linuxserver/letsencrypt and I am trying to configure it to work with linuxserver/nextcloud

The instructions in /var/lib/docker/volumes/letsencrypt/_data/nginx/proxy-confs/nextcloud.subdomain.conf.sample simply say that all I have to do is modify this file /config/www/nextcloud/config/config.php like this:

<?php
$CONFIG = array (
  'memcache.local' => '\OC\Memcache\APCu',
  'datadirectory' => '/data',
   array (
 0 => '192.168.1.23:444',
 1 => 'nextcloud.mydomain.com',
 ),
'overwrite.cli.url' => 'https://nextcloud.mydomain.com',
'overwritehost' => 'nextcloud.mydomain.com',
'overwriteprotocol' => 'https',
);

So I did that, and restarted both containers. No luck though. All I get is the default letsencrypt message saying:

Welcome to our server
The website is currently being setup under this address.
For help and support, please contact: [email protected]

Image Tag Naming

I have noticed since June this image is using the latest Nextcloud installation and that the published images are tagged using an incrementing number and it's also not easy at all to know which Nextcloud version has been used for which image in the end. This makes it very hard to distinguish between major version changes - and could lead to a possible break in existing installations.

What was the reason behind using latest and an incrementing number as the image's tag? Is it possible to restructure this to either build images with a certain release version or tag them correctly according to the version latest belongs to? Another option could be to keep latest with incrementing tags but add builds for explicit releases having a better tag name.

Is binlog format still relevant?

Looking at the readme, the following is mentioned:

Please note you will need a MySQL/MariaDB or other backend database to set this up. Also please look here for how to configure your database with regard to binlog format and installation.

This links to a guide that's for Nextcloud 11 (Current is 14). I note this guide also shows you how to enable Emoji (UTF8 4-byte) support with MySQL / MariaDB. I had major issues with this with the MariDB docker (See: linuxserver/docker-mariadb#22). A title change by @sparklyballs suggests this is actually considered experimental.

So I'm checking is to see if the documentation is out of date. I have already followed the guide for changing the binlog format, and now I'm wondering if I should revert/restart the database. At the moment I wouldn't face major loss, as I'm having other issues at present as well.

not reachable since some updates

Hello,
my nextcloud container ran for month without issues. After watchtower update to latest (83) it is tricky.
I am not able to access it. nginx settings unchanged.
I deleted the 83 and went back to 82. After new installation it is accessable but after approx 5-10 minutes it isn't

This is to fin in the container logs before no accessability:
24T18:48:00.687729031Z crond[293]: wakeup dt=60
24T18:48:00.687804496Z crond[293]: file root:
24T18:48:00.687826422Z crond[293]: line s6-setuidgid abc php7 -f /config/www/nextcloud/cron.php

Ubuntu Server 16.04

docker run -it -d
--name nextcloud
--restart=always
-p 82:80
-p 4432:443
-e PUID=33 -e PGID=33
-e TZ=Europe/Berlin
-v /docker/config/nextcloud:/config
-v /docker/data/nextcloud/:/data
linuxserver/nextcloud:82

Any ideas what could be wrong?

Safety and facility warnings

Nextcloud indicates to me:
"There are some warnings with your system configuration.

Some columns in the database are not converted to big int. Due to the fact that changing column types for large tables can take some time, they were not changed automatically. By executing "occ db:convert-filecache-bigint"; these outstanding changes can be applied manually. This operation must be performed while the instance is offline. Further details can be found on the corresponding documentation page.
filecache. mtime
filecache. storage_mtime
The "referrer policy"; HTTP header is not set to "no-referrer";, "no-referrer-when-downgrade";, "strict-origin";, "strict-origin-when-cross-origin"; or "same-origin";. This allows reference information to be disclosed. See the W3C recommendation.

Please review the installation instructions ? and check the log for possible errors or warnings.

Check the security of your Nextcloud with our security scanner ?. ."

SSL should be optional.

SSL should be optional. There is no point to double SSL offloading (more performance impact), In case if You want to use custom reverse proxy like Traefik, etc.
Most users will run this on localhost even with reverse proxy anyway.

For example:

docker run -e DONT_USE_SSL=true linuxserver/docker-nextcloud
if [ "${DONT_USE_SSL,,}" == true ];then
   rm -rf ..../default_https
else
   rm -rf ..../default_http
fi

default_http should contain nginx config for http listerner only
default_https should contain nginx config for http(redirect)->https(SSL)

https://github.com/linuxserver/docker-baseimage-alpine-nginx should be edited for /default_https and /default_http

nextcloud | tar: <path> Cannot change ownership to uid 65534, gid 65533: Operation not permitted

I'm running a FreeNAS | Rancher VM setup. I have created several NFS shares and have them mounted on the Rancher Host VM and now trying to use the linuxserver | nextcloud docker container in a docker-compose setup.

My docker-compose.yml file.

version: "2"
services:
  nextcloud:
    image: linuxserver/nextcloud
    container_name: nextcloud
    restart: unless-stopped
    depends_on:
      - mariadb
    links:
      - mariadb
    environment:
      - TZ=America/New_York 
      - PUID=10001
      - PGID=10001
    ports:
      - 8443:443
    volumes:
      - /mnt/cloud/config:/config
      - /mnt/cloud/data:/data
  mariadb:
    image: linuxserver/mariadb
    container_name: nextcloud-mariadb
    restart: unless-stopped
    environment:
      - PUID=1100
      - PGID=1100
      - TZ=America/New_York
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=password
    volumes:
      - /mnt/docker/nextcloud/mariadb:/config
    ports:
      - 3308:3306

As you can see I'm mounting from the host rancher vm's nfs folders. When I run a docker-compose up and I check the logs docker-compose logs -f I can see a endless loop of this error message when the nextcloud tar is being extracted.

nextcloud | tar: <path> Cannot change ownership to uid 65534, gid 65533: Operation not permitted

I suppose this has to do with the root user in the nextcloud container extracting and my nfs setup is using no_squash.

Is there any NFS tips for the community on how to get this container to work with NFS shares as volume bind mounts? Perhaps untar locally first and then share the folder?

FreeNAS dataset -> RancherVM Host NFS Mount -> Nextcloud container bind volume mount.

Thanks for your time and another excellent docker container :)

Adding Apps within Nextcloud gives error

When I try to add any app inside of nextcloud (External Storage support for example) it sits for a minute then says "Error while enabling app"

Are apps supported with this container? Am I missing something? Thanks!

linuxserver.io

unRAID
nextcloud

Thanks, team linuxserver.io

Not able to logout

Hi,
I'm using your container together with official nginx container which working as a reverse proxy. I'm having the above issue (after clicking on logout i'm being diverted to the Files page) when I'm accessing Nextcloud from outside of the local network. However, it's working perfectly fine when i'm accessing via local network. Could you please advise if I have to add something to my nginx container configuration?

Nginx container configuration (part for the NextCloud server):

server
	{
		listen 443 ssl http2;
		server_name nc.xxxx.com;

		add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
		add_header X-Content-Type-Options nosniff;
		add_header X-Frame-Options "SAMEORIGIN";
		add_header X-XSS-Protection "1; mode=block";
		add_header X-Robots-Tag none;
		add_header X-Download-Options noopen;
		add_header X-Permitted-Cross-Domain-Policies none;
	
		proxy_set_header Host $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-Proto $scheme;

		location / {
    		proxy_pass https://172.17.0.1:8000;
			http2_push_preload on;
			auth_basic "Restricted";
			auth_basic_user_file  /config/.htpasswd;
		}
	}

Thank you.

How to access without SSL ?

I'm trying to configure a docker which should work without SLL for testing purpose. I tried to access throught port 80 without success. Here is the command I'm using

docker run --name=nextcloud -e PUID=1000 -e PGID=1000 -e TZ=Europe/Paris -p 443:443 -v /home/foo/nextcloud/config:/config -v /home/foo/data:/data --restart unless-stopped linuxserver/nextcloud

I know that port 443 is for https but how can I access in http ?

Similar issue : #65

Expose www.conf to config volume

Per the server tuning guide for Nextcloud, this requires access to the following file inside the container:

/etc/php7/php-fpm.d/www.conf

However, there is no way to override this configuration from the /config volume. Please add a way to specify this configuration from the mounted volume for more control over the performance of Nextcloud.

Unraid docker not pulling latest tag

I'm running this in Unraid, but it still says that I'm running 16.0.1 and the updater isn't working through webui

Is this your issue or Unraids?

TIA

HDD spindown issue on /data

Hi all, i noticed that the nextcloud docker is preventing my HDD's from spinning down. When i stop the docker container they (obviously) spin down. At the moment this happens no connections are made or files are accessed in nextcloud.

Host OS: Ubuntu server 18.04 LTS
/data mount on: /mnt/storage, which is a mergerfs pool
/config mount on OS install SSD

Is there some setting i can change so nextcloud won't actively access my storage pool unless it's needed?

EDIT: it is possible to change the cron tasks in the settings menu of nextcloud.

Internal Server Error after updating container

After updating the container through the unRAID Docker UI, the server responds with Internal Server Error when logging in. Nothing useful in the logs presumingly due to php.ini configuration.

Update: Checking nextcloud.log reveals:

{
   "reqId":"DTcN5xlX9kwrlLj1Kqns",
   "level":3,
   "time":"2017-12-30T05:45:43+00:00",
   "remoteAddr":"172.17.0.1",
   "user":"admin",
   "app":"index",
   "method":"POST",
   "url":"\/index.php\/login",
   "message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\DriverException\",\"Message\":\"An exception occurred while executing 'DELETE FROM `oc_authtoken` WHERE `token` = ?' with params [\\\"00843faaf1babb3488a005f813cd2cfc5f44c2b4d57b85bbd28a962aa24c4dff62ef89e37b829773a1e7dd63f4f5b9b1a89bbb1f3218287529534e321038bf09\\\"]:\\n\\nSQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.\",\"Code\":0,\"Trace\":\"#0 \\\/config\\\/www\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(128): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/config\\\/www\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(1015): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOMySql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'DELETE FROM `oc...', Array)\\n#2 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/Connection.php(213): Doctrine\\\\DBAL\\\\Connection->executeUpdate('DELETE FROM `oc...', Array, Array)\\n#3 \\\/config\\\/www\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(208): OC\\\\DB\\\\Connection->executeUpdate('DELETE FROM `oc...', Array, Array)\\n#4 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(213): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#5 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Authentication\\\/Token\\\/DefaultTokenMapper.php(48): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#6 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Authentication\\\/Token\\\/DefaultTokenProvider.php(238): OC\\\\Authentication\\\\Token\\\\DefaultTokenMapper->invalidate('00843faaf1babb3...')\\n#7 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(825): OC\\\\Authentication\\\\Token\\\\DefaultTokenProvider->invalidateToken(*** sensitive parameters replaced ***)\\n#8 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(250): OC\\\\User\\\\Session->logout()\\n#9 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(223): OC\\\\User\\\\Session->validateSession()\\n#10 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(319): OC\\\\User\\\\Session->getUser()\\n#11 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(110): OC_App::getEnabledApps()\\n#12 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/user.php(128): OC_App::loadApps(Array)\\n#13 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/base.php(743): OC_User::setupBackends()\\n#14 \\\/config\\\/www\\\/nextcloud\\\/lib\\\/base.php(1086): OC::init()\\n#15 \\\/config\\\/www\\\/nextcloud\\\/index.php(46): require_once('\\\/config\\\/www\\\/nex...')\\n#16 {main}\",\"File\":\"\\\/config\\\/www\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractMySQLDriver.php\",\"Line\":116}",
   "version":"12.0.4.3"
}

PS: The mariadb container from linuxserver was updated prior updating the nextcloud one.
PSS: Downgrading mariadb to version tagged 96 or 95 does not change anything.
PSSS: Issue narrowed down to linuxserver/docker-mariadb#19

nfs share of /data breaks update from 15.0.2 to 15.0.5

Bug: Install 15.0.2 and update to 15.0.5 stalls at step "Backing up data folder" (step 3)

Steps to Reproduce:

  • Install linuxserver/nextcloud docker container
  • mount a nfs share to /data
  • update 15.0.2 -> 15.0.5

cheers.

Cannot start the app, Issue with PHP

2017/03/12 02:54:06 [error] 305#305: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: Could not gather sufficient random data in /config/www/nextcloud/lib/private/Security/SecureRandom.php:81
Stack trace:
#0 /config/www/nextcloud/lib/private/Security/SecureRandom.php(81): random_int(0, 63)
#1 /config/www/nextcloud/lib/private/AppFramework/Http/Request.php(576): OC\Security\SecureRandom->generate(20)
#2 /config/www/nextcloud/lib/private/Log/File.php(93): OC\AppFramework\Http\Request->getId()
#3 [internal function]: OC\Log\File::write('PHP', 'Exception: Coul...', 3)
#4 /config/www/nextcloud/lib/private/Log.php(301): call_user_func(Array, 'PHP', 'Exception: Coul...', 3)
#5 /config/www/nextcloud/lib/private/Log.php(159): OC\Log->log(3, 'Exception: Coul...', Array)
#6 /config/www/nextcloud/lib/private/Log/ErrorHandler.php(81): OC\Log->critical('Exception: Coul...', Array)
#7 [internal function]: OC\Log\ErrorHandler::onException(Object(Exception))
#8 {main}
thrown in /config/www/nextcloud/lib/private/Security/SecureRandom.php on line 81
PHP message: PHP Fatal error: Uncaught Exception: Could not gather sufficient random data in /config/www/nextcloud/lib/private/Security/SecureRandom.php:81
Stack trace:
#0 /config/www/nextcloud/lib/private/Security/SecureRandom.php(81): random_int(0, 63)
#1 /config/www/nextcloud/lib/private/AppFramework/Http/Request.php(576): OC\Security\SecureRandom->generate(20)
#2 /config/www/nextcloud/lib/private/Log/File.php(93): OC\AppFramework\Http\Request->getId()
#3 [internal function]: OC\Log\File::write('PHP', 'Uncaught Except...', 3)
#4 /config/www/nextcloud/lib/private/Log.php(301): call_user_func(Array, 'PHP', 'Uncaught Except...', 3)
#5 /config/www/nextcloud/lib/private/Log.php(159): OC\Log->log(3, 'Uncaught Except...', Array)
#6 /config/www/nextcloud/lib/private/Log/ErrorHandler.php(68): OC\Log->critical('Uncaught Except...', Array)
#7 [internal function]: OC\Log\ErrorHandler::onShutdown()
#8 {main}
thrown in /config/www/nextcloud/lib/private/Security/

linuxserver.io

Debian 8

Default docker command in README

Nothing in the docker log

Thanks, team linuxserver.io

New install "File not found."

New install "File not found."
Provide a general summary of the issue in the Title above

Host OS

OMV
Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings.

2019-07-12

Docker log output, docker log
`[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] 10-adduser: executing...
usermod: no changes


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/

GID/UID

User uid: 911
User gid: 911

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
........+++++
...................................................................................+++++
writing new private key to '/config/keys/cert.key'

[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 4 58.7M 4 2720k 0 0 5250k 0 0:00:11 --:--:-- 0:00:11 5240k 80 58.7M 80 47.0M 0 0 30.9M 0 0:00:01 0:00:01 --:--:-- 30.9M100 58.7M 100 58.7M 0 0 33.1M 0 0:00:01 0:00:01 --:--:-- 33.1M
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.`

Mention if you're using symlinks on any of the volume mounts.
None

https://10.0.0.22:444/ gives File not found.

Mobile App Timeout issues. Nothing is syncing or saving.

Only on mobile app, I am seeing timeout issues and the following in the screenshot. I have 0 errors using desktop app or web gui on laptop/PC.

img_2206

Running unRAID.

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
(Nothing past this since started up)

Just have linuxserver mariadb and letsencrypt containers running. Nothing else.

ERROR: unsatisfiable constraints while do Docker build

Hello,

I copied github files and did build image
with
docker build -t nextcloud .

But I am receiving this error:

fetch http://nl.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
so:libcrypto.so.41 (missing):
required by:
php7-ftp-7.0.17-r5[so:libcrypto.so.41]
so:libssl.so.43 (missing):
required by:
php7-ftp-7.0.17-r5[so:libssl.so.43]

Custom cron job to scan all files

Hi there,

We use a central NAS, shared via NFS and mounted in Nextcloud for every user in an specific group. If a file is created or deleted in the NAS (outside Nextcloud), Nextcloud will not be able to see these changes.

Is it possible to create a new cron job to scan all files every night? How can I do it?

Thanks,
Best regards

Configuration mess

I know that a lot of this is down to Nextcloud file structure, but it would be great if the the dockerised version could cut a cleaner path through their configuration mess. It would be nice to simply bind the relevant config from the host without ending up with the entire Nextcloud source code getting saved to the host volume into the bargain.

Update results in next cloud not loading due to PHP fatal error

Recent update results in white blank page on load with the following fatal error message in Nginx error.log

2018/09/11 16:14:23 [error] 307#307: *151 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of OC\Files\Storage\Local::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) must be compatible with OC\Files\Storage\Common::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) in /config/www/nextcloud/lib/private/Files/Storage/Local.php on line 44" while reading response header from upstream, client: 192.168.2.2, server: _, request: "GET /index.php/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "10.0.10.3:8000", referrer: ""

Error may be related to: nextcloud/server#5072

OS: Unraid_ 6.5.3

Error downloading the nextcloud archive

Using docker-compose on a QNAP NAS: Here are the logs :

$ dc up nextcloud
Creating nextcloud
Attaching to nextcloud
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] 10-adduser: executing... 
nextcloud       | 
nextcloud       | -------------------------------------
nextcloud       |           _     _ _
nextcloud       |          | |___| (_) ___
nextcloud       |          | / __| | |/ _ \ 
nextcloud       |          | \__ \ | | (_) |
nextcloud       |          |_|___/ |_|\___/
nextcloud       |                |_|
nextcloud       | 
nextcloud       | Brought to you by linuxserver.io
nextcloud       | We gratefully accept donations at:
nextcloud       | https://www.linuxserver.io/donations/
nextcloud       | -------------------------------------
nextcloud       | GID/UID
nextcloud       | -------------------------------------
nextcloud       | User uid:    1001
nextcloud       | User gid:    100
nextcloud       | -------------------------------------
nextcloud       | 
nextcloud       | [cont-init.d] 10-adduser: exited 0.
nextcloud       | [cont-init.d] 20-config: executing... 
nextcloud       | [cont-init.d] 20-config: exited 0.
nextcloud       | [cont-init.d] 30-keygen: executing... 
nextcloud       | using keys found in /config/keys
nextcloud       | [cont-init.d] 30-keygen: exited 0.
nextcloud       | [cont-init.d] 40-config: executing... 
nextcloud       | [cont-init.d] 40-config: exited 0.
nextcloud       | [cont-init.d] 50-install: executing... 
nextcloud       |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nextcloud       |                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0/var/run/s6/etc/cont-init.d/50-install: line 17:   253 Killed                  curl -o /tmp/nextcloud.tar.bz2 -L https://download.nextcloud.com/server/releases/nextcloud-"${NEXTCLOUD_VER}".tar.bz2
nextcloud       | tar: /tmp/nextcloud.tar.bz2: Cannot open: No such file or directory
nextcloud       | tar: Error is not recoverable: exiting now
nextcloud       | [cont-init.d] 50-install: exited 0.
nextcloud       | [cont-init.d] 60-memcache: executing... 
nextcloud       | cp: cannot create regular file '/config/www/nextcloud/config/config.php': No such file or directory
nextcloud       | chown: cannot access '/config/www/nextcloud/config/config.php': No such file or directory
nextcloud       | [cont-init.d] 60-memcache: exited 1.
nextcloud       | [cont-init.d] done.
nextcloud       | [services.d] starting services
$ dc version
docker-compose version 1.12.0dev, build unknown
docker-py version: 2.1.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016

Upgrade to Nextcloud 10

Hello,

Version 10 has been released 20 days ago.

It would be great to update this Dockerfile to use the latest version :)

Increase PHP memory limit to 512MB

Calling occ says that The current PHP memory limit is below the recommended value of 512MB. Appending memory_limit = 512M to php-local.ini fixes this.

[Request] Make the `php occ` tool available to configure Nextcloud.

I'm new on Docker containers, this is the first time that I use Docker so I don't have much experience.
Lots of stuff is done by using the occ tool in the Nextcloud install dir. I tried to get a shell but the docker attach command doesn't do what I expected.

I also tried the command docker exec -it <id> bash but in this case, I cannot run the command due to the fact that I'm not user abc.

Is this a bug, my fault or a missing feature of this docker?

Getting apps directory not found!

I'm running my container with the following command:

docker run -d --network nextcloud_network --name nextcloud -v /home/foo/data:/data -v /home/foo/nextcloud:/config -e PUID=1000 -e PGID=1000 -p 80:80 -p 443:443 --restart unless-stopped linuxserver/nextcloud

After the successful command, I'm going on a web browser to access Nextcloud.
And I'm getting the following error :

apps directory not found! Please put the Nextcloud apps folder in the Nextcloud folder or the folder above. You can also configure the location in the config.php file.

total 132
drwxrwxr-x. 11 foo foo  4096 Aug  9 08:54 .
drwxrwxr-x.  3 foo foo  4096 Aug  9 08:54 ..
drwx-w----. 20 foo foo  4096 Aug  9 08:55 3rdparty
-rw-rw-r--.  1 foo foo 12063 Jul  9 11:59 AUTHORS
drwxrwxr-x.  2 foo foo  4096 Aug  9 08:55 config
-rw-rw-r--.  1 foo foo  3805 Jul  9 11:59 console.php
-rw-rw-r--.  1 foo foo 34520 Jul  9 11:59 COPYING
drwxrwxr-x. 23 foo foo  4096 Jul  9 12:03 core
-rw-rw-r--.  1 foo foo  2388 Jul  9 11:59 .htaccess
-rw-rw-r--.  1 foo foo  3172 Jul  9 11:59 index.php
drwxrwxr-x.  6 foo foo  4096 Jul  9 11:59 lib
-rw-rw-r--.  1 foo foo   283 Jul  9 11:59 occ
drwxrwxr-x.  2 foo foo  4096 Jul  9 11:59 ocs
drwxrwxr-x.  2 foo foo  4096 Jul  9 11:59 ocs-provider
-rw-rw-r--.  1 foo foo  5139 Jul  9 11:59 remote.php
-rw-rw-r--.  1 foo foo    26 Jul  9 11:59 robots.txt
drwxrwxr-x. 12 foo foo  4096 Jul  9 12:03 settings
-rw-rw-r--.  1 foo foo  2232 Jul  9 11:59 status.php
drwxrwxr-x.  3 foo foo  4096 Jul  9 11:59 themes
drwxrwxr-x.  2 foo foo  4096 Jul  9 12:00 updater
-rw-rw-r--.  1 foo foo   101 Jul  9 11:59 .user.ini
-rw-rw-r--.  1 foo foo   362 Jul  9 12:03 version.php

Why I'm missing the apps folder ?

I'm using CentOS 7.6.

Thanks for any help

Nextcloud unable to connect to MySQL container

linuxserver.io

Hello, I have recently modified the port mapping for my Nextcloud container, so I restarted the NC container and since then it is unable to connect to the MySQL DB.

OS: Debian GNU/Linux 8 (jessie)

NC container logs:

PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again in /config/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array in /config/www/nextcloud/lib/private/DB/Connection.php on line 64

My config file:

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
  'datadirectory' => '/data',
  'instanceid' => 'ocq371i1672w',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '192.168.0.66'
  ),
  'overwrite.cli.url' => 'https://192.168.0.66',
  'dbtype' => 'mysql',
  'version' => '15.0.2.0',
  'dbname' => 'nextcloud',
  'dbhost' => 'mysql',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin2',
  'dbpassword' => '',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_smtpsecure' => 'ssl',
);

I linked the NC container to the DB container using --link mysqldb:mysql where mysqldb is the name of the mysql container. I have checked that the DB container is up and running and I am able to ping it from the NC container.

Any help is appreciated

Update to 15.0.2?

Dear linuxxerver team,

I just noticed, that my nextcloud image was from april last year. After pulling a new one, it is version 13.0.1.

Iooking at nextcloud homepage, current stable version is 15.0.2.

Are there any plans to upgrade the version?

Thanks
Michael

PHP fastcgi - failed (13: Permission denied) while reading upstream

linuxserver.io
I found the below permission issue with this container while trying to download a file:

2017/07/17 20:45:34 [crit] 305#305: *23 open() "/var/tmp/nginx/fastcgi/4/00/0000000004" failed (13: Permission denied) while reading upstream, client: <xx.xx.xx.xx>, server: _, request: "GET /<url> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "<host:port>"

The issue seems, as the error itself says, a permission issue, and therefore an issue with container permissions.
A similar problem was found in another container linuxserver/docker-muximux#6
Both the php-fpm process and the nginx worker process are running as $PUID:$PGID:

# ps -eo pid,user,group,comm,args
...
  283 root     root     php-fpm7         {php-fpm7} php-fpm: master process (/etc/php7/php-fpm.conf)
  286 root     root     nginx            nginx: master process /usr/sbin/nginx -c /config/nginx/nginx.conf
  293 abc      users    nginx            nginx: worker process
  294 abc      users    nginx            nginx: worker process
  295 abc      users    nginx            nginx: worker process
  296 abc      users    nginx            nginx: worker process
  306 abc      users    php-fpm7         {php-fpm7} php-fpm: pool www
  307 abc      users    php-fpm7         {php-fpm7} php-fpm: pool www
  308 abc      users    php-fpm7         {php-fpm7} php-fpm: pool www
...

The permission of the path that nginx uses as temp path are:

# ls -lah /var/tmp/nginx/
total 24K
drwx------ 6 abc  users 4.0K Jul 17 21:16 .
drwxr-xr-x 4 root root  4.0K Jul 17 21:16 ..
drwxr-xr-x 2 abc  users 4.0K Jul 17 21:16 client_body
drwx------ 2 abc  root  4.0K Jul 17 21:16 fastcgi
drwx------ 2 abc  root  4.0K Jul 17 21:16 proxy
drwx------ 2 abc  root  4.0K Jul 17 21:16 scgi
drwx------ 2 abc  root  4.0K Jul 17 21:16 uwsgi

There are a couple of questions on StackExchange that seem to solve this:

In particular it seems that the <var>_temp_path directories need specific permissions.
Below are the default nginx configure options on alpine:

--http-client-body-temp-path=/var/tmp/nginx/client_body
--http-proxy-temp-path=/var/tmp/nginx/proxy
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi
--http-scgi-temp-path=/var/tmp/nginx/scgi

My personal fix, which is a bit of a hack, was to add the following line to the /config/nginx/nginx.conf:

    fastcgi_temp_path /tmp/fastcgi_temp 1 2;

Since /tmp is writable by all this seems to solve it.

Thanks, team linuxserver.io

Issues using LDAP

This is a cross issue from nextcloud/server#12026. They closed the issue but it's not resolved. The issue is still present for me and I'm wondering if it has to do anything with the docker image itself.

Steps to reproduce

  1. Have the following: FreeIPA server for LDAP, MariDB database, fresh Nextcloud installation.
  2. Connect Nextcloud to freeIPA
  3. Navigate site with LDAP user

Expected behaviour

For everything to work smoothly.

Actual behaviour

LDAP user logins can take a very long time. Like 10 mins+
If a user manages to login, navigating the site is a nightmare, page loads can take 10 mins+, sometimes never loading.

The logging reports that the LDAP server cannot be connected to at times, despite testing settings seems to work, and other services can talk to my LDAP server fine.

image

Server configuration

Operating system:
Docker
Web server:
Docker
Database:
MariDB docker: linuxserver/mariadb:latest
PHP version:
Docker
Nextcloud version: (see Nextcloud admin page)
14.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
fresh
Where did you install Nextcloud from:
docker: linuxserver/nextcloud
Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
root@731d76274957:/config/www/nextcloud$ sudo -u abc php occ app:list
The current PHP memory limit is below the recommended value of 512MB.
Enabled:
  - accessibility: 1.0.1
  - activity: 2.7.0
  - cloud_federation_api: 0.0.1
  - comments: 1.4.0
  - dav: 1.6.0
  - federatedfilesharing: 1.4.0
  - federation: 1.4.0
  - files: 1.9.0
  - files_pdfviewer: 1.3.2
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_versions: 1.7.1
  - files_videoplayer: 1.3.0
  - firstrunwizard: 2.3.0
  - gallery: 18.1.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - nextcloud_announcements: 1.3.0
  - notifications: 2.2.1
  - oauth2: 1.2.1
  - password_policy: 1.4.0
  - provisioning_api: 1.4.0
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - support: 1.0.0
  - survey_client: 1.2.0
  - systemtags: 1.4.0
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - updatenotification: 1.4.1
  - user_ldap: 1.4.0
  - workflowengine: 1.4.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_external
root@731d76274957:/config/www/nextcloud$

Nextcloud configuration:

Config report
root@731d76274957:/config/www/nextcloud$ sudo -u abc php occ config:list system
The current PHP memory limit is below the recommended value of 512MB.
{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "10.1.1.101:10443",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "dbtype": "mysql",
        "version": "14.0.3.0",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory"
    }
}
root@731d76274957:/config/www/nextcloud$

Please note, this is not the configuration I'd use when I make it web accessible, this is just while setting up the nextcloud server

Are you using external storage, if yes which one: local/smb/sftp/...
None currently

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory

LDAP configuration (delete this part if not used)

LDAP config
root@731d76274957:/config/www/nextcloud$ sudo -u abc php occ ldap:show-config
The current PHP memory limit is below the recommended value of 512MB.
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 | s01                                                                                                                             |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                               |
| hasPagedResultSupport         |                                                                                                                                 |
| homeFolderNamingRule          | attr:uid                                                                                                                        |
| lastJpegPhotoLookup           | 0                                                                                                                               |
| ldapAgentName                 | uid=sys-nextcloud,cn=users,cn=accounts,dc=int,dc=site,dc=xyz                                                                 |
| ldapAgentPassword             | ***                                                                                                                             |
| ldapAttributesForGroupSearch  |                                                                                                                                 |
| ldapAttributesForUserSearch   |                                                                                                                                 |
| ldapBackupHost                |                                                                                                                                 |
| ldapBackupPort                |                                                                                                                                 |
| ldapBase                      | dc=int,dc=site,dc=xyz                                                                                                        |
| ldapBaseGroups                | cn=groups,cn=accounts,dc=int,dc=site,dc=xyz                                                                                  |
| ldapBaseUsers                 | cn=users,cn=accounts,dc=int,dc=site,dc=xyz                                                                                   |
| ldapCacheTTL                  | 600                                                                                                                             |
| ldapConfigurationActive       | 1                                                                                                                               |
| ldapDefaultPPolicyDN          |                                                                                                                                 |
| ldapDynamicGroupMemberURL     |                                                                                                                                 |
| ldapEmailAttribute            | mail                                                                                                                            |
| ldapExperiencedAdmin          | 1                                                                                                                               |
| ldapExpertUUIDGroupAttr       | ipaUniqueID                                                                                                                     |
| ldapExpertUUIDUserAttr        | ipaUniqueID                                                                                                                     |
| ldapExpertUsernameAttr        | uid                                                                                                                             |
| ldapGidNumber                 | gidNumber                                                                                                                       |
| ldapGroupDisplayName          | cn                                                                                                                              |
| ldapGroupFilter               | (&(|(objectclass=ipausergroup))(|(cn=nextcloud_users)))                                                                         |
| ldapGroupFilterGroups         | nextcloud_users                                                                                                                 |
| ldapGroupFilterMode           | 0                                                                                                                               |
| ldapGroupFilterObjectclass    | ipausergroup                                                                                                                    |
| ldapGroupMemberAssocAttr      | member                                                                                                                          |
| ldapHost                      | ldap://10.1.1.17                                                                                                                |
| ldapIgnoreNamingRules         |                                                                                                                                 |
| ldapLoginFilter               | (&(&(&(|(objectclass=posixaccount))(|(memberof=cn=nextcloud_users,cn=groups,cn=accounts,dc=int,dc=site,dc=xyz))))(uid=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                                                 |
| ldapLoginFilterEmail          | 0                                                                                                                               |
| ldapLoginFilterMode           | 0                                                                                                                               |
| ldapLoginFilterUsername       | 1                                                                                                                               |
| ldapNestedGroups              | 0                                                                                                                               |
| ldapOverrideMainServer        |                                                                                                                                 |
| ldapPagingSize                | 500                                                                                                                             |
| ldapPort                      | 389                                                                                                                             |
| ldapQuotaAttribute            |                                                                                                                                 |
| ldapQuotaDefault              |                                                                                                                                 |
| ldapTLS                       | 0                                                                                                                               |
| ldapUserAvatarRule            | default                                                                                                                         |
| ldapUserDisplayName           | displayname                                                                                                                     |
| ldapUserDisplayName2          | uid                                                                                                                             |
| ldapUserFilter                | (&(|(objectclass=posixaccount))(|(memberof=cn=nextcloud_users,cn=groups,cn=accounts,dc=int,dc=site,dc=xyz)))                 |
| ldapUserFilterGroups          |                                                                                                                                 |
| ldapUserFilterMode            | 0                                                                                                                               |
| ldapUserFilterObjectclass     |                                                                                                                                 |
| ldapUuidGroupAttribute        | auto                                                                                                                            |
| ldapUuidUserAttribute         | auto                                                                                                                            |
| turnOffCertCheck              | 1                                                                                                                               |
| turnOnPasswordChange          | 0                                                                                                                               |
| useMemberOfToDetectMembership | 1                                                                                                                               |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
root@731d76274957:/config/www/nextcloud$

Client configuration

Browser:
Chrome
Operating system:
Windows 10

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
530 {"reqId":"1ftuquNu4GS9B1pzWc8G" "level":2 "time":"2018-10-25T01:31:06+00:00" "remoteAddr":"10.1.1.30" "user":"admin" "app":"user_ldap" "method":"POST" "url":"\/index.php\/apps\/user_ldap\/ajax\/wizard.php" "message":"Configuration Error (prefix s01): login filter does not contain %uid place holder." "userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/69.0.3497.100 Safari\/537.36","version":"14.0.3.0"}
531 {"reqId":"1ftuquNu4GS9B1pzWc8G" "level":3 "time":"2018-10-25T01:31:06+00:00" "remoteAddr":"10.1.1.30" "user":"admin" "app":"PHP" "method":"POST" "url":"\/index.php\/apps\/user_ldap\/ajax\/wizard.php" "message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/config\/www\/nextcloud\/apps\/user_ldap\/lib\/LDAP.php#293" "userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/69.0.3497.100 Safari\/537.36","version":"14.0.3.0"}
532 {"reqId":"F1kRtfBAYzImccusmSQF" "level":3 "time":"2018-10-25T01:34:31+00:00" "remoteAddr":"10.1.1.30" "user":"admin" "app":"index" "method":"GET" "url":"\/index.php\/css\/core\/cd70-223a-css-variables.css?v=69d704817ee3ec6f31757bcc44ae316e?reload=1540431268553" "message":{"Exception":"Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException" "Message":"An exception occurred while executing 'INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`parent`,`checksum`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0' with params [\"9\", \"17\", 1540431271, 0, \"fa1d296f6e0f27fdbf30e45dc9b84c1b\", 1540431271, 27, 68, \"\", \"55fe6589a928695b32fbf34448db32d2\", \"appdata_ocw34hgpuveh\\\/css\\\/core\\\/cd70-223a-jquery.ocdialog.css\", \"cd70-223a-jquery.ocdialog.css\", 1, 1, \"55fe6589a928695b32fbf34448db32d2\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-55fe6589a928695b32fbf34448db32d2' for key 'fs_storage_path_hash'","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php","line":128,"function":"convertException","class":"Doctrine\\DBAL\\Driver\\AbstractMySQLDriver","type":"->","args":["An exception occurred while executing 'INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`parent`,`checksum`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0' with params [\"9\", \"17\", 1540431271, 0, \"fa1d296f6e0f27fdbf30e45dc9b84c1b\", 1540431271, 27, 68, \"\", \"55fe6589a928695b32fbf34448db32d2\", \"appdata_ocw34hgpuveh\\\/css\\\/core\\\/cd70-223a-jquery.ocdialog.css\", \"cd70-223a-jquery.ocdialog.css\", 1, 1, \"55fe6589a928695b32fbf34448db32d2\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-55fe6589a928695b32fbf34448db32d2' for key 'fs_storage_path_hash'",{"errorInfo":["23000",1062,"Duplicate entry '1-55fe6589a928695b32fbf34448db32d2' for key 'fs_storage_path_hash'"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"}]},{"file":"\/config\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":1015,"function":"driverExceptionDuringQuery","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["23000",1062,"Duplicate entry '1-55fe6589a928695b32fbf34448db32d2' for key 'fs_storage_path_hash'"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`parent`,`checksum`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0",{"1":"9","2":"17","3":1540431271,"4":0,"5":"fa1d296f6e0f27fdbf30e45dc9b84c1b","6":1540431271,"7":27,"8":68,"9":"","10":"55fe6589a928695b32fbf34448db32d2","11":"appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","12":"cd70-223a-jquery.ocdialog.css","13":1,"14":1,"15":"55fe6589a928695b32fbf34448db32d2"}]},{"file":"\/config\/www\/nextcloud\/lib\/private\/DB\/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`parent`,`checksum`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0",["9","17",1540431271,0,"fa1d296f6e0f27fdbf30e45dc9b84c1b",1540431271,27,68,"","55fe6589a928695b32fbf34448db32d2","appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","cd70-223a-jquery.ocdialog.css",1,1,"55fe6589a928695b32fbf34448db32d2"],[]]},{"file":"\/config\/www\/nextcloud\/lib\/private\/DB\/Adapter.php","line":114,"function":"executeUpdate","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`parent`,`checksum`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0",["9","17",1540431271,0,"fa1d296f6e0f27fdbf30e45dc9b84c1b",1540431271,27,68,"","55fe6589a928695b32fbf34448db32d2","appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","cd70-223a-jquery.ocdialog.css",1,1,"55fe6589a928695b32fbf34448db32d2"]]},{"file":"\/config\/www\/nextcloud\/lib\/private\/DB\/Connection.php","line":254,"function":"insertIfNotExist","class":"OC\\DB\\Adapter","type":"->","args":["*PREFIX*filecache",{"mimepart":"9","mimetype":"17","mtime":1540431271,"size":0,"etag":"fa1d296f6e0f27fdbf30e45dc9b84c1b","storage_mtime":1540431271,"permissions":27,"parent":68,"checksum":"","path_hash":"55fe6589a928695b32fbf34448db32d2","path":"appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","name":"cd70-223a-jquery.ocdialog.css","storage":1},["storage","path_hash"]]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Cache.php","line":272,"function":"insertIfNotExist","class":"OC\\DB\\Connection","type":"->","args":["*PREFIX*filecache",{"mimepart":"9","mimetype":"17","mtime":1540431271,"size":0,"etag":"fa1d296f6e0f27fdbf30e45dc9b84c1b","storage_mtime":1540431271,"permissions":27,"parent":68,"checksum":"","path_hash":"55fe6589a928695b32fbf34448db32d2","path":"appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","name":"cd70-223a-jquery.ocdialog.css","storage":1},["storage","path_hash"]]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Cache.php","line":229,"function":"insert","class":"OC\\Files\\Cache\\Cache","type":"->","args":["appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css",{"mimetype":"text\/css","mtime":1540431271,"size":0,"etag":"fa1d296f6e0f27fdbf30e45dc9b84c1b","storage_mtime":1540431271,"permissions":27,"parent":68,"checksum":"","path":"appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css","name":"cd70-223a-jquery.ocdialog.css"}]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Scanner.php","line":292,"function":"put","class":"OC\\Files\\Cache\\Cache","type":"->","args":["appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css",{"mimetype":"text\/css","mtime":1540431271,"size":0,"etag":"fa1d296f6e0f27fdbf30e45dc9b84c1b","storage_mtime":1540431271,"permissions":27,"parent":68,"checksum":""}]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Scanner.php","line":221,"function":"addToCache","class":"OC\\Files\\Cache\\Scanner","type":"->","args":["appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css",{"mimetype":"text\/css","mtime":1540431271,"size":0,"etag":"fa1d296f6e0f27fdbf30e45dc9b84c1b","storage_mtime":1540431271,"permissions":27,"parent":68,"checksum":""},-1]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Scanner.php","line":336,"function":"scanFile","class":"OC\\Files\\Cache\\Scanner","type":"->","args":["appdata_ocw34hgpuveh\/css\/core\/cd70-223a-jquery.ocdialog.css",3,68,false,false]},{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/Cache\/Updater.php","line":124,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->","args":["appdata_ocw34hgpuveh\/css\/core...
533 {"reqId":"uA0AVlqs03qnp81hB32O" "level":2 "time":"2018-10-25T01:48:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
534 {"reqId":"uA0AVlqs03qnp81hB32O" "level":2 "time":"2018-10-25T01:48:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
535 {"reqId":"uA0AVlqs03qnp81hB32O" "level":2 "time":"2018-10-25T01:48:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"core" "method":"GET" "url":"\/index.php\/204" "message":"Login failed: 'ryonez' (Remote IP: '172.17.0.1')" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
536 {"reqId":"GCl9j6znwQDKORSUKnV1" "level":2 "time":"2018-10-25T01:54:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
537 {"reqId":"GCl9j6znwQDKORSUKnV1" "level":2 "time":"2018-10-25T01:54:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
538 {"reqId":"GCl9j6znwQDKORSUKnV1" "level":2 "time":"2018-10-25T01:54:38+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"core" "method":"GET" "url":"\/index.php\/204" "message":"Login failed: 'ryonez' (Remote IP: '172.17.0.1')" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
539 {"reqId":"NbkZEOy3RcjEnhpgoBUA" "level":2 "time":"2018-10-25T01:54:39+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
540 {"reqId":"NbkZEOy3RcjEnhpgoBUA" "level":2 "time":"2018-10-25T01:54:39+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"user_ldap" "method":"GET" "url":"\/index.php\/204" "message":"Bind failed: 49: Invalid credentials" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}
541 {"reqId":"NbkZEOy3RcjEnhpgoBUA" "level":2 "time":"2018-10-25T01:54:39+00:00" "remoteAddr":"172.17.0.1" "user":"--" "app":"core" "method":"GET" "url":"\/index.php\/204" "message":"Login failed: 'ryonez' (Remote IP: '172.17.0.1')" "userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.0","version":"14.0.3.0"}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Unable to connect using http

I'm sorry to create a new issue, the last one didn't resolve it. I created a new image. The file default contain this :

upstream php-handler {
    server 127.0.0.1:9000;
}
server {
    listen 80;
    listen [::]:80;
    server_name _;
    return 301 http://$server_name$request_uri;
}

And I mapped the port 80 like :

docker run --name=nextcloud -e PUID=1000 -e PGID=1000 -e TZ=Europe/Paris -p 80:80 -p 443:443 -v /home/foo/nextcloud/config:/config -v /home/foo/data:/data --restart unless-stopped nextcloud

I can't access it on port 80.

I'm always redirected to https://_/

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.