Giter Site home page Giter Site logo

owncloud's Introduction

DEPRECATED

This image has been deprecated in favor of the official owncloud/server image provided, maintained, and supported by ownCloud upstream. The images found here will receive no further updates after 2018-12-31 (Dec 31, 2018). Please adjust your usage accordingly.

Maintained by: the Docker Community

This is the Git repo of the Docker "Official Image" for owncloud (not to be confused with any official owncloud image provided by owncloud upstream). See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.

The full description from Docker Hub is generated over in docker-library/docs, specifically in docker-library/docs/owncloud.

See a change merged here that doesn't show up on Docker Hub yet?

Check the "library/owncloud" manifest file in the docker-library/official-images repo, especially PRs with the "library/owncloud" label on that repo.

For more information about the official images process, see the docker-library/official-images readme.


Build Status Badges (per-arch)
amd64
build status badge
arm32v5
build status badge
arm32v7
build status badge
arm64v8
build status badge
i386
build status badge
ppc64le
build status badge
s390x
build status badge

owncloud's People

Contributors

biaxz avatar daghack avatar docker-library-bot avatar headbanger84 avatar htiz avatar j0wi avatar lazyfrosch avatar maxnoe avatar pierreozoux avatar tianon avatar yosifkit 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

owncloud's Issues

Built in SSL support

Is this something that you're planning to add in? If so, do you have a an ETA?

Request Entity Too Large

When using desktop client (for OSX) big files (>1mb) not uploaded to server.
I see a lot of "Request Entity Too Large" errors in log

problem with owncloud:8.1.3-fpm

docker run -d -p 80:80 owncloud:8.1.3-fpm

In browser on http://localhost there is ERR_CONNECTION_RESET error.
Can you help to fix this?

For example, this dont work too.

docker run -d -p 8099:80 owncloud:8.1.3-fpm

OwnCloud image does not work with mounted volume

My docker-compose.yml file (I also use nginx proxy)

vdata:
  image: busybox
  volumes:
    - /var/www/html

owncloud:
  hostname: owncloud
  image: owncloud:8.1.0
  volumes_from:
    - vdata
  environment:
    - VIRTUAL_HOST=owncloud.example.com
    - VIRTUAL_PORT=80
  mem_limit: 4g
  cpu_shares: 512
  restart: always

Logs shows me

owncloud_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.192. Set the 'ServerName' directive globally to suppress this message
owncloud_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.192. Set the 'ServerName' directive globally to suppress this message
owncloud_1 | PHP Warning:  Module 'curl' already loaded in Unknown on line 0
owncloud_1 | PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
owncloud_1 | PHP Warning:  Module 'json' already loaded in Unknown on line 0
owncloud_1 | PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
owncloud_1 | PHP Warning:  Module 'xml' already loaded in Unknown on line 0
owncloud_1 | PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
owncloud_1 | [Tue Jul 28 16:44:21.068950 2015] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.4.43 configured -- resuming normal operations
owncloud_1 | [Tue Jul 28 16:44:21.068978 2015] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
owncloud_1 | [Tue Jul 28 16:44:35.703072 2015] [autoindex:error] [pid 7] [client 172.17.0.115:42909] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
owncloud_1 | 172.17.0.115 - - [28/Jul/2015:16:44:35 +0000] "GET / HTTP/1.1" 403 400 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
owncloud_1 | 172.17.0.115 - - [28/Jul/2015:16:44:35 +0000] "GET /favicon.ico HTTP/1.1" 404 400 "https://owncloud.outcold.net/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"

I manually did the steps from entrypoint

tar cf - --one-file-system -C /usr/src/owncloud . | tar xf -
chown -R www-data /var/www/html

And now everything works

Seems like this if does not work https://github.com/docker-library/owncloud/blob/master/8.1/docker-entrypoint.sh#L4

No idea why

Shutdown after creating account

Created new container using Latest and went thru the web setup, creating an account. Get this error now.

[Fri Dec 18 02:27:28.779221 2015] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully

Any thoughts?

Activate PHP-Opcacheing

Hello,

could you add opcache to the docker-php-ext-install line? PHP 5.6 comes with the zend opcache bundled, all you need to do is to add this line. I could also fork an make a pull request if you like.

Kind regards
Florian

empty document root

By default the owncloud installation is not copied/tared to /var/www/html

The entrypoint expects it for at least something to be inside the root to run the copy.

Is that as it should be? Should we document that?

Failed to connect to the database

Hi guys,

Using the example "docker-compose.yml" and setting owncloud initial setup as suggested, gives the
following error:
"Error while trying to create admin user:
Failed to connect to the database: An
exception occured in driver:
SQLSTATE[HY000][1045]Access denied
for user 'root'@'172.17.0.3' (using
password:YES)

Tried to run containers separately:
% docker run --name some-db -e MYSQL_ROOT_PASSWORD=dbroot -d mariadb
% docker run --name cloud-app -p 8080:80 --link some-db:mysql -d owncloud
but the result is the same.

I believe I'm missing some setting/option/etc., but it is strange that following
exactly the official way of running owncloud container doesn't work.
I'm using docker ver.1.12.0, build 8eab29e and docker-compose version 1.8.0, build f3628c7

Any help is highly appreciated.
-Konstantin

Postgres doesn't work

The Dockerfile needs pdo_pgsql added to the docker-php-ext-install line (pgsql alone isn't enough - it failed to connect to the db with an 'Unable to find driver' error without it).

Presumably the same is also true for mysql/pdo_mysql, but I didn't try that, not having a mysql instance handy.

HowTo use owncloud:fpm?

I have no idea how to use the container labeled "owncloud:fpm" and google turns up a total of 7 hits on "owncloud:fpm" - is it possible to get some more information on how to use it?

is the latest commit pushed to the hub?

I get a strange error:

Pulling app (owncloud:9.0.4-fpm)...
Pulling repository docker.io/library/owncloud
ERROR: Tag 9.0.4-fpm not found in repository docker.io/library/owncloud

Owncloud and LDAP: internal server error

I have try to make a docker-compose with owncloud, postgres, ldap and phpldapadmin. Everything went ok, until i configure LDAP in owncloud. Now restarting the dockers make owncloud go internal server error 500, if i delete the persistent data on my machine it starts correctly.

Here is my docker-compose.yml:

owncloud:
  image: owncloud
  ports:
   - 80:80
  volumes_from:
    - owncloudData
  links:
   - postgres:owncloud-db
   - ldap:owncloud-ldap
  hostname: cloud
  domainname: cloud.example.org

postgres:
  image: postgres
  environment:
    - POSTGRES_USER=root
    - POSTGRES_PASSWORD=password
  volumes:
    - /etc/postgresql:/etc/postgresql
    - /var/lib/postgresql:/var/lib/postgresql

phpldapadmin:
  image: osixia/phpldapadmin
  links:
   - ldap:ldap-host
  environment:
   - PHPLDAPADMIN_LDAP_HOSTS=ldap-host
  hostname: phpldapadmin-service
  
ldap:
  image: osixia/openldap
  volumes:
   - /var/lib/ldap:/var/lib/ldap
   - /etc/ldap/slapd.d:/etc/ldap/slapd.d
  hostname: ldap-service

owncloudData:
  image: owncloud
  command: /bin/bash -c "/bin/chown -R 33 /var/www/html/data && /bin/chown -R 33 /var/www/html/config && /bin/chown -R 33 /var/www/html/apps"
  volumes:
    - /var/www/html/data:/var/www/html/data
    - /var/www/html/config:/var/www/html/config
    - /var/www/html/apps:/var/www/html/apps

and the server notification when trying to acces to the cloud :
[12/Dec/2016:13:24:05 +0000] "GET /favicon.ico HTTP/1.1" 404 502 "http://172.17.0.1/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36"

Warning in admin panel using current latest docker image

Seems like I posted this issue initially at the wrong place (owncloud/administration):

I'm using the official dockerfile tagged "8.1.3, 8.1, 8, latest (8.1/Dockerfile)".

In the admin panel I get following warning:

Your data directory and your files are probably accessible from the Internet. The .htaccess file is not
working. We strongly suggest that you configure your web server in a way that the data directory is no
longer accessible or you move the data directory outside the web server document root.

This seems to be a false warning since I tested to access my files via "http://example.com/data/$username/files/known_file.txt" which was blocked as it should.

Any help is welcome.

can't adjust quota.

Hi,

I can't change the quota for any user.

I'm running the docker on a Mac (Version 10.11.14).
On my HD are 990 GB available and I didn't specify the memory size for the docker.

Maybe anyone can help.

Use MySQL by default instead of SQLite

SQLite is installed by default when you do a fresh docker run owncloud:9:

image

Is this a sane default? Bad for scaling and for most normal uses...

Shouldn't MySQL be bundled in instead?

Owncloud 9.1

Is Owncloud 9.1 coming as a docker image soon?
Thanks for the work!

Is it a good idea to automaticly update the docker container?

I was thinking about maybe automatically updating the OwnCloud docker container once a week, so that I don't have to manually delete/update/start it every time.

Should this be a good idea? The owncloud repo seems to be official, so I guess there is no security risk there, but is it possible that some updates require manual handlings (such as clicking buttons etc.). I basiclly never use the WebGUI and only use the desktop sync ability of owncloud.

Example of script to update

#!/bin/bash
# Update docker container for owncloud (in crontab once a week).
docker pull owncloud:latest | grep 'Status: Image is up to date for' &> /dev/null
if [ $? == 0 ]; then
        echo "Owncloud is still up to date, no update needed."
else
        echo "Restarting owncloud docker container with owncloud:latest."
        docker stop owncloud
        docker rm owncloud
        docker run -d -p 127.0.0.1:8783:80 -v /var/owncloud:/var/www/html --name="owncloud" owncloud:latest
fi

Upgrading existing image

Hi guys,

I wonder how the upgrade is handled. Let's say I'm running owncloud image 7.0 and I want to upgrade to the latest. How should one handle that?
I assume a volume container should be used for data but will new image over the data from older image able to handle the (if necessary) upgrade?

LDAP user and group backend doesn't work

I can't install the LDAP backend app.

This app cannot be installed because the following dependencies are not fulfilled: The library ldap is not available.

Installing the php5-ldap package doesn't solve the issue.

Error trying to create admin user: failed to connect to the database

  1. Create a fresh new container with ownCloud: $ docker run owncloud:9,
  2. Open browser, go to owncloud URL, Create an admin account
  3. Click "Storage & database", select MySQL/MariaDB
  4. Fill in all fields.
  5. Click Finish setup.
  6. Get error: Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000][2002] No such file or directory.

image

"Invalid Mutex Directory"-error on starup

I just downloaded the docker image for owncloud. When starting it, it stops with the following error.

Jan 04 22:19:22 hostname docker[20057]: AH00526: Syntax error on line 3 of /etc/apache2/apache2.conf:
Jan 04 22:19:22 hostname docker[20057]: Invalid Mutex directory in argument file:/var/lock/apache2

Does a RUN mkdir -p /var/lock/-command is missing in the Dockerfile?

Could not execute the `php occ` inside the container

To easyly update a config value I want to use the occ CLI (see
https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/occ_command.html#setting-an-array-configuration-value) but as the image do not provide sudo it's impossible.

From inside the container:

$ php occ
Console has to be executed with the user that owns the file config/config.php
Current user: root
Owner of config.php: www-data
Try adding 'sudo -u www-data ' to the beginning of the command (without the single quotes)

$ sudo
/bin/sh: 3: sudo: not found

Own could I use the occ CLI with owncloud in a container?

apps and data permissions 777

When I start the owncloud:9.0-fpm container, it changes the permissions of apps and config to 777 and the group to 65534 (nfsnobody, nogroup). config.php is setting umask(027), which is working for the data directory, but not apps and config.

# ls -altr
total 10
drwxr-x--- 26 www-data www-data  26 Mar  8 06:55 apps
drwxr-xr-x 37 root     root      39 Apr  9 18:36 ..
drwxr-x---  4 www-data www-data   8 Apr  9 18:40 data
drwxr-x---  5 www-data www-data   6 Apr 10 10:53 .
-rw-r--r--  1 www-data www-data 362 Apr 10 10:53 init.log
drwxr-x---  2 www-data www-data   6 Apr 10 11:06 config
# service owncloud start
Starting owncloud:  OK
# ls -altr
total 10
drwxrwxrwx  2 www-data nfsnobody   6 Mar  8 06:54 config
drwxrwxrwx 26 www-data nfsnobody  26 Mar  8 06:55 apps
drwxr-xr-x 37 root     root       39 Apr  9 18:36 ..
drwxr-x---  4 www-data www-data    8 Apr  9 18:40 data
drwxr-x---  5 www-data www-data    6 Apr 10 11:07 .
-rw-r--r--  1 www-data www-data  362 Apr 10 11:07 init.log

php-fpm version?

Hi,

I was working on an owncloud image to PR from owncloud but you were faster ;)

Anyway, I noticed that it is using apache and you don't offer a php-fpm alternative (as for wordpress for instance).

Would you be interested in me PRing for a php-fpm version?

Best!

Pierre

News App doesn't work

can you please install requirements for News App. It is an official Owncloud-App and would be really useful:

Dependencies for News-App

  • ownCloud >= 8.1
  • libxml >= 2.7.8 (2.9 recommended)
  • php-curl
  • iconv
  • SimpleXML
  • PHP >= 5.5

get full information: https://github.com/owncloud/news#readme

Umlaut not working

I tried to migrate my owncloud docker data from my old server onto a new one with docker. I was able to use the image from the docker hub and copy my data over, but the synchronization with my computer broke down as soon as owncloud encountered a filename containing an Umlaut. Can you help me to get this problem fixed?

Some quick googling said something about locales and I found out that the docker container only has a POSIX locale installed. I am, however, not experienced enough to determine if that is indeed the underlying problem and how to fix it.

recommended nginx-configuration not working with this image

I'm running the image with persistent data, conf and app volumes. I am dealing the classic "blank page" scenario so I have followed the documentation on owncloud.org that suggests using the following configuration for owncloud 8.2-fpm:

upstream php-handler {
  server 127.0.0.1:9000;
  #server unix:/var/run/php5-fpm.sock;
}

server {
  listen 80;
  server_name cloud.example.com;
  # enforce https
  return 301 https://$server_name$request_uri;
}

server {
  listen 443 ssl;
  server_name cloud.example.com;

  ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
  ssl_certificate_key /etc/ssl/nginx/cloud.example.com.key;

  # Add headers to serve security related headers
  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;

  # Path to the root of your installation
  root /var/www/owncloud/;
  # set max upload size
  client_max_body_size 10G;
  fastcgi_buffers 64 4K;

  # Disable gzip to avoid the removal of the ETag header
  gzip off;

  # Uncomment if your server is build with the ngx_pagespeed module
  # This module is currently not supported.
  #pagespeed off;

  index index.php;
  error_page 403 /core/templates/403.php;
  error_page 404 /core/templates/404.php;

  rewrite ^/.well-known/carddav /remote.php/carddav/ permanent;
  rewrite ^/.well-known/caldav /remote.php/caldav/ permanent;

  # The following 2 rules are only needed for the user_webfinger app.
  # Uncomment it if you're planning to use this app.
  #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
  #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

  location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
  }

  location ~ ^/(build|tests|config|lib|3rdparty|templates|data)/ {
    deny all;
  }

  location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
    deny all;
  }

  location / {
    rewrite ^/remote/(.*) /remote.php last;
    rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
    try_files $uri $uri/ =404;
  }

  location ~ \.php(?:$|/) {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param HTTPS on;
    fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
    fastcgi_pass php-handler;
    fastcgi_intercept_errors on;
  }

  # Adding the cache control header for js and css files
  # Make sure it is BELOW the location ~ \.php(?:$|/) { block
  location ~* \.(?:css|js)$ {
    add_header Cache-Control "public, max-age=7200";
    # Add headers to serve security related headers
    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;
    # Optional: Don't log access to assets
    access_log off;
  }

  # Optional: Don't log access to other assets
  location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|swf)$ {
    access_log off;
  }
}

This is pretty much exactly my configuration at the moment where root is changed to /var/www/html/, upstream php-handler (server) is changed to owncloud:9000 (as my nginx-container has linked this service) and my ssl-keys and the server names to the correct domain. (refered to example.com henceforth)

This setup gives me a blank page on the https://example.com/ but shows me the first-time form on https://example.com/index.php however the css, js and images are not loaded.

logs show the following when requesting "https://example.com/":

Nginx:

director_1 | 192.168.1.1 - - [22/Feb/2016:10:49:12 +0000] "GET / HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
(owncloud logs show no activity)

logs show the following when requesting https://example.com/index.php:
nginx:

director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:58 +0000] "GET /core/js/avatar.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
director_1 | 2016/02/22 10:54:58 [error] 6#6: *259 open() "/var/www/html/core/vendor/strengthify/jquery.strengthify.js" failed (2: No such file or directory), client: 192.168.1.1, server: example.com, request: "GET /core/vendor/strengthify/jquery.strengthify.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1", host: "example.com"
director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:58 +0000] "GET /core/vendor/strengthify/jquery.strengthify.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
director_1 | 2016/02/22 10:54:58 [error] 6#6: *259 open() "/var/www/html/core/js/setup.js" failed (2: No such file or directory), client: 192.168.1.1, server: example.com, request: "GET /core/js/setup.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1", host: "example.com"
director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:58 +0000] "GET /core/js/setup.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
director_1 | 2016/02/22 10:54:58 [error] 6#6: *259 open() "/var/www/html/core/js/jquery-showpassword.js" failed (2: No such file or directory), client: 192.168.1.1, server: example.com request: "GET /core/js/jquery-showpassword.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1", host: "example.com"
director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:58 +0000] "GET /core/js/jquery-showpassword.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
director_1 | 2016/02/22 10:54:58 [error] 6#6: *259 open() "/var/www/html/core/js/installation.js" failed (2: No such file or directory), client: 192.168.1.1, server: example.com, request: "GET /core/js/installation.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1", host: "example.com"
director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:59 +0000] "GET /core/js/installation.js?v=fa9b0536472c7e6ce28a5a7d8703afc7 HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"
director_1 | 192.168.1.1 - - [22/Feb/2016:10:54:59 +0000] "GET /core/img/actions/caret.svg HTTP/1.1" 404 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" "-"

owncloud logs:

...
owncloud_1 | 172.17.0.5 -  22/Feb/2016:10:47:57 +0000 "GET /core/templates/404.php" 302
owncloud_1 | 172.17.0.5 -  22/Feb/2016:10:47:57 +0000 "GET /core/templates/404.php" 302
owncloud_1 | 172.17.0.5 -  22/Feb/2016:10:47:57 +0000 "GET /core/templates/404.php" 302

Docker-compose configuration:

owncloud docker-compose.yml:
owncloud:

  image: owncloud:8.2-fpm
  volumes:
    - /storage/containerdata/home_owncloud/apps:/var/www/html/apps
    - /storage/containerdata/home_owncloud/config:/var/www/html/config
    - /storage/owncloud:/var/www/html/data

relevant part of nginx docker-compose.yml
director:

#  build: docker-nginx
  image: nginx:latest
  restart: always
  volumes:
    - storage ...
...
  ports:
    - "80:80"
    - "443:443"
  external_links:
    - somewhere_owncloud_1:owncloud

Docker Windows Persistent /var/www/html/data

I have large existing media libraries that I would like to have accessible in docker.
I have used below, to do this, which is great, however the owncloud service complains about 0770 permissions. Any ideas?

owncloud-data: volumes: - /f/Downloads/MEDIA/DATA:/var/www/html/data/

trusted domain error

Since updating to OC9, I get a trusted domains misconfiguration error and the owncloud.log reads:
{"reqId":"f1\/g2mH5ABV0MXzrc+8P","remoteAddr":"172.17.0.1","app":"core","message":"Trusted domain error. \"172.17.0.1\" tried to access using \"myhost.myfritz.net:16443\" as host.","level":2,"time":"2016-03-10T13:26:50+00:00"}
The relevant part of my config reads:
'trusted_domains' => array ( 0 => '192.168.66.2:12347', 1 => 'myhost.myfritz.net:16443', 2 => '172.17.0.1', ),
Expected behaviour would be not to throw the error at all since I already added the correct domain to the config.

Regarding my setup: I have OC running as a bunch of docker containers (redis, mariadb, oc:fpm and nginx) on an appliance in my home network and the domain myhost.myfritz.net is a dynamic IP resolver. The setup worked just fine with 8.2.2 and I have no idea what I could possibly do to get it working. I should add that I can access the installation when I SSH onto my appliance and use port forwarding just fine. I cannot access my installation when using the local network address *.66.2 neither... Fresh out of ideas what to test or fix.

Webdav doesn't work

I try to configure an owncloud container (latest) behind an nginx reverse proxy. Using the browser works fine but if I want to sync my calendars via webdav (thunderbird / lightning), I got the following error in /var/www/html/data/owncloud.log:

{"reqId":"oq32Qo79zWIxlrZkpbR+","remoteAddr":"192.168.178.36","app":"caldav","message":"Exception: {"Message":"Requested uri (\/owncloud\/remote.phpp\/caldav\/calendars\/Thomas\/aufgaben\/) is out of base uri (\/owncloud\/remote.php\/caldav\/)","Exception":"LogicException","Code":0,"Trace":"#0 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAVACL\/Plugin.php(756): Sabre\HTTP\Request->getPath()\n#1 [internal function]: Sabre\DAVACL\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#2 \/var\/www\/html\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(456): Sabre\Event\EventEmitter->emit('beforeMethod', Array)\n#4 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#5 \/var\/www\/html\/apps\/calendar\/appinfo\/remote.php(60): Sabre\DAV\Server->exec()\n#6 \/var\/www\/html\/remote.php(137): require_once('\/var\/www\/html\/a...')\n#7 {main}","File":"\/var\/www\/html\/3rdparty\/sabre\/http\/lib\/Request.php","Line":210}","level":4,"time":"2016-01-02T19:03:09+00:00"}

Very strange is the requested uri - it contains remote.phpp with a double p at the end.
The remotAddr 192.168.178.36 is the IP-adress of the nginx reverse proxy.

validate_timestamps redundant

Isn't opcache.validate_timestamps redundant in an ephemeral environment? Would it make more sense to disable revalidation totaly?

SSL not enabled by default for owncloud 8.1 container

Running the latest owncloud container. All operations are allowed over http, but web-server rejects all https connection. On running bash on an existing container found that SSL module had not been enabled. Had to enabled SSL manually. This should be part of the dockerfile.

Support redis / memcached?

Basically redis or memcached can be configured. for caching

Not sure how much this helps, since owncloud caches also inside the SQL database.

But I goes it would ease the usage for users to just include the modules.

Would we want to include that by default?

Cannot enable SSL

This is probably a pebkac issue, but I cannot get ssl to work in OC9 docker container. I edit the default-ssl.conf and point to my certs (which do work fine with a different apache2 instance), run a2enmod ssl, a2ensite default-ssl, restart the container and it goes into a restart loop.

`[Thu Mar 17 15:00:10.590320 2016] [core:warn] [pid 1] AH00111: Config variable ${APACHE_RUN_DIR} is not defined

[Thu Mar 17 15:00:10.590606 2016] [core:warn] [pid 1] AH00111: Config variable ${APACHE_LOG_DIR} is not defined

[Thu Mar 17 15:00:10.590618 2016] [core:warn] [pid 1] AH00111: Config variable ${APACHE_LOG_DIR} is not defined

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.74. Set the 'ServerName' directive globally to suppress this message

(2)No such file or directory: AH02291: Cannot access directory '/etc/apache2/${APACHE_LOG_DIR}/' for error log of vhost defined at /etc/apache2/sites-enabled/default-ssl.conf:2

AH00014: Configuration check failed`

What am I doing wrong?

A lot of errors in error log about loaded 'xmlwriter' module

I see a lot of error messages, like

Error   PHP Module 'xmlwriter' already loaded at Unknown#0  2015-07-28T18:45:03+00:00
Error   PHP Module 'xmlwriter' already loaded at Unknown#0

My guess that this module is specified multiple times somewhere

Tips or tricks to using Mariadb/Mysql with OC?

I have tried everything in the book to use mariadb/mysql from the installation page with the database, nginx-proxy (forcing to https:), redis and owncloud containerized and running ( while using persistent volumes). The error message is either connection refused or access denied for foo@localhost or [email protected]. I've verified the user exists and has all privileges. Also attempted...

  1. starting with sqlite on a brand new account converting to mysql...during conversion access denied to database previously created within mysql

  2. building and verifying the user, password, database and IP address in mysql first then trying to access by OC directly.

  3. setting all variables to one word and trying it

  4. verified user was set to 127.0.0.1 but also tried localhost and other 172.xx.xx.xx IP addresses

  5. have tried mysql 5.5, mariadb:latest, bitanmi's flavor of mariadb, etc.

I don't want to install the database directly to my VPS although some have had success. No selinux on this server which is ubuntu 15.04.

TIA.

No SMB Support

Since the goal of a container is to do one thing and one thing well, lacking one of the major external storage backends (presumably, one wouldn't want local storage with a container, volume-drivers versus more manageable app-native mounting aside) seems like a major oversight to me.

SMBClient does add 60MB worth of packages, but I think doing a better job of supporting Windows Server and whitebox NAS products as storage backends in the official base container is worth it, since Owncloud pushes SMB/SAMBA support in their marketing. Submitted a PR for adding to owncloud 9.1 in #79

Upgrade PHP to PHP 7

Hello guys,

Since PHP 7 is officially released and own cloud claims officially latest version (8.2) is compatible, why not upgrade the source docker image to PHP 7 ?

Thanks,
Mouhamed

Cannot access admin web console remotely

Am using a very basic server to run owncloud
no gui, and so cannot reach "http://localhost" for the first time run. Found some files in /usr/src/owncloud
Connecting from another box results in:
You don't have permission to access / on this server.

Not sure if I am doing something wrong.

Apache Mod Gzip Bug Results in Terrible Cache Performance

Adding the following to the image's /var/www/html/.htaccess improves the OwnCloud file browser page load time from about 3s to 1s on my hosting:

RequestHeader  edit "If-None-Match" "^\"(.*)-gzip\"$" "\"$1\""
Header  edit "ETag" "^\"(.*[^g][^z][^i][^p])\"$" "\"$1-gzip\""

I assume this could be added to the image easily but I've never submitted a PR for an official docker image, and it wasn't super clear to me how to do so here. https://github.com/docker-library/official-images#contributing-to-the-standard-library

This workaround is discussed here on stack overflow:

https://stackoverflow.com/questions/896974/apache-is-not-sending-304-response-if-mod-deflate-and-addoutputfilterbytype-is/1101758#1101758

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.