Code Monkey home page Code Monkey logo

server's Introduction

ownCloud: Server

Build Status Docker Hub GitHub contributors Source: GitHub License: MIT

Official ownCloud Docker image. It's designed to work with a data volume in the host filesystem and with a standalone MariaDB and Redis container. For a guide how to get started please take a look at our documentation.

About ownCloud

ownCloud is an open-source file sync, share and content collaboration software that lets teams work on data easily from anywhere, on any device. It provides access to your data through a web interface, sync clients or WebDAV while providing a platform to view, sync and share across devices easily - all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plugins and it works with any storage.

Secure content collaboration and filesharing with ownCloud

Quick reference

Docker Tags and respective Dockerfile links

  • 10.14.0 available as owncloud/server:10.14.0, owncloud/server:10.14, owncloud/server:10, owncloud/server:latest
  • 10.13.4 available as owncloud/server:10.13.4, owncloud/server:10.13

Default volumes

  • /mnt/data

Exposed ports

  • 8080

Environment variables

None

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright

Copyright (c) 2022 ownCloud GmbH

server's People

Contributors

felixboehm avatar hanagemela avatar jnweiger avatar micbar avatar michaelstingl avatar patrickjahns avatar phil-davis avatar pixeldoc2000 avatar renovate-bot avatar renovate[bot] avatar samualfageme avatar tboerger avatar thomas-mc-work avatar thomdietrich avatar wkloucek avatar xoxys 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

server's Issues

Can't write into config directory!

I use "Manual Startup" method:

Michaels-MacBook-Pro:~ mstingl_oc$ docker run -d --name redis -e REDIS_OPTS="--protected-mode no" webhippie/redis:latest
b60e1f23303256717e3769f88d3b077c724655682f64f50ff80e284a17b6473f
Michaels-MacBook-Pro:~ mstingl_oc$ docker run -d --name mariadb -e MARIADB_ROOT_PASSWORD=secret webhippie/mariadb:latest
4ac2ce285684164018ca5ff9d63baf234b19c6b37478fc4630dd9a1f96180817
Michaels-MacBook-Pro:~ mstingl_oc$ docker run -d -ti \
>   --name owncloud \
>   --link mariadb:mariadb --link redis:redis \
>   -p 443:443 \
>   owncloud/server
137347fab60501708ced4a66d8489a1afe79963476daaa6e1ab210bcc1c9526a
Michaels-MacBook-Pro:~ mstingl_oc$ 

This result in an error on https://localhost/

Can't write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.

@felixboehm could you check?

(Docker Version 1.12.0-rc4-beta20 on Mac OS X 10.11.5)

docker-compose complains about version

ejprice@hpc5docker1:~$ docker-compose config
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ejprice@hpc5docker1:~$ docker-compose version
docker-compose version 1.8.0, build unknown
docker-py version: 1.9.0
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.1.0f  25 May 2017
ejprice@hpc5docker1:~$ cat /etc/debian_version 
9.3

I'm assuming this is because I'm using a newer version of docker-compose. However, I haven't been able to track down the specific problem in the docker-compose.yml file.

Change config file

Hello,

First of all, i think this is not the same problem as #3. I can change config but when I restart docker container, all changes disappears to default when has installed.

My OS is Centos 7 and my docker:

Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:45 2017
OS/Arch: linux/amd64

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:24 2017
OS/Arch: linux/amd64
Experimental: false

I´m not using docker compose.

ownCloud server image for production

  • ownCloud server image with versions
  • autobuild on hub.docker.com: https://hub.docker.com/r/owncloud/server/
  • ownCloud enterprise support
  • docker compose file for ownCloud stack
  • automatic install, detect existing configs and data
  • automatic update
  • document ENV variables for configurations
    • logging
    • DB and Redis configs
    • PHP settings
    • Apache settings
    • ownCloud settings
  • support & documentation for clustered web servers

Sample docker run links database container wrong

In the Readme it states

docker run -d \
  --name owncloud \
  --link mariadb:mariadb \
  --link redis:redis \
  -p 80:80 \
  -p 443:443 \
  -e OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN} \
  -e OWNCLOUD_DB_TYPE=mysql \
  -e OWNCLOUD_DB_NAME=owncloud \
  -e OWNCLOUD_DB_USERNAME=owncloud \
  -e OWNCLOUD_DB_PASSWORD=owncloud \
  -e OWNCLOUD_DB_HOST=db \
  -e OWNCLOUD_ADMIN_USERNAME=${OWNCLOUD_ADMIN_USERNAME} \
  -e OWNCLOUD_ADMIN_PASSWORD=${OWNCLOUD_ADMIN_PASSWORD} \
  -e OWNCLOUD_REDIS_ENABLED=true \
  -e OWNCLOUD_REDIS_HOST=redis \
  --volume ./data:/mnt/data:z \
  owncloud/server:${OWNCLOUD_VERSION}

but it should be

docker run -d \
  --name owncloud \
  --link mariadb:db \
  --link redis:redis \
  -p 80:80 \
  -p 443:443 \
  -e OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN} \
  -e OWNCLOUD_DB_TYPE=mysql \
  -e OWNCLOUD_DB_NAME=owncloud \
  -e OWNCLOUD_DB_USERNAME=owncloud \
  -e OWNCLOUD_DB_PASSWORD=owncloud \
  -e OWNCLOUD_DB_HOST=db \
  -e OWNCLOUD_ADMIN_USERNAME=${OWNCLOUD_ADMIN_USERNAME} \
  -e OWNCLOUD_ADMIN_PASSWORD=${OWNCLOUD_ADMIN_PASSWORD} \
  -e OWNCLOUD_REDIS_ENABLED=true \
  -e OWNCLOUD_REDIS_HOST=redis \
  --volume ./data:/mnt/data:z \
  owncloud/server:${OWNCLOUD_VERSION}

just a minor change, but without it there will be a error

Creating folders...
Waiting for MySQL...
wait-for-it: waiting 180 seconds for db:3306
wait-for-it: timeout occurred after waiting 180 seconds for db:3306
Database didn't came up in time!

Thank you for this container (:

GET /status.php HTTP/1.1 Message repeated

Thank you for the advice to run a pull for docker. #53
That has provided a better starting process. But when run without the -d I see the message regarding GET /status.php repeated and owncloud does not give an error or start completely.

Is there something I should look to change in the macOS, or in the config files for owncloud?

Thank you

screenshot 2018-05-02 12 04 32

Error loading activities

I get this error when clicking in Activities or in the file. I have Docker ownCloud 10.0.7.2, upgrade to ownCloud 10.0.8.5 and have the same error:

image

Problem with ca-bundle in docker container

Hello!
I need to edit Apache conf (SSLCertificateChainFile) in owncloud container to add ca-bundle file (my certificate depends on intermediate certs)

For now it's impossible because /etc/apache2/enabled/ doesn't share as volume.
I've tried add intermediate cert to /data/config/ca-bundle.crt and this doesn't help.
Only edition in 000-default.conf resolve my SSL warning. But after I restart docker-compose my edition disappear.

Watermarked LDAP buttons

Hello, I'd like to ask if this is related to this repository. If not please redirect me wherever is appropriate.
My issue is I cannot click buttons in LDAP such as Detect port, Test Base DN.
I'm seeing logs such as :

"Configuration Error (prefix s01): login filter does not contain %uid place holder."}
"Configuration Error (prefix s01): No LDAP Login Filter given!"}
"Configuration Error (prefix s01): Not a single Base DN given."}

Even though I've supplied all of those.
Thank you in advance.

Force https using owncloud/server:10.0.3

I am running owncloud/server:latest and am looking for a way to force https (i.e. redirect all port 80 requests to 443).

Is there a way without building a custom image on top of owncloud/server that configures the redirect via apache?

Postgres Support while running in Docker?

Hello,

It looks like enabling postgres support requires changes to a php file (Documentation Link), and is therefore not currently supported by this docker image. If that is the case, are there any plans to provide an official postgres compatible container?

Thanks!

Trackability, Update Notifications

Hey,
it would be interesting to get notified in case of a new image version. For me personally either via GitHub notifications or as an RSS feed are fine.

Currently there is only https://github.com/owncloud-docker/server/commits/master.atom

If the project would be managed with git tags and GitHub Releases, every potential user could subscribe to notifications either ways. Additionally the GitHub release would be the right place for changelog information, currently missing.

Wdyt?

err log "ownCloud is not installed"

I run owncloud container behind an nginx reverse proxy on a centos server.
Using iptables instead of firewalld since it's a mess between firewalld and docker...(TL;DR)
Setting whitelist policy on iptables.(DROP all in INPUT and FORWARD chain)
And ACCEPT all from IP range 172.16.0.0 - 172.31.255.255 in DOCKER-USER chain.
(Since all my other container works just fine, I think the firewall is not the problem.)

After docker-compose up, I can access index.php from my pc via domain that I've setted in .env.
(So, I guess that means nginx reverse proxy is fine here in my situation?)
And owncloud ask me to set an admin account for first time use.
But I did set admin account in .env file. So, it seems something goes wrong.

I followed the steps to set admin accout.
But, it only works when database is set to SQLite.
Otherwise, MySQL/MariaDB and PostgreSQL shows error log on web page:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory

I try to login after the admin accout was setted by choosing SQLite.
But got internal error 500 on web page. And the log in docker-compose:
123.123.123.123 - - [26/Jan/2018:09:58:24 +0000] "POST /index.php/login?redirect_url=%252Findex.php%252Fapps%252Ffiles%252F HTTP/1.0" 500 7095 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0"
At the same time, health check is ok:
127.0.0.1 - - [26/Jan/2018:10:01:27 +0000] "GET /status.php HTTP/1.1" 200 1122 "-" "curl/7.47.0"

I checked the log while container is creating, and got repeated error logs:
ownCloud is not installed - only a limited number of commands are available
The full log is in the attachment log.txt

My .env file:

VERSION=10.0.x
DOMAIN=www.domain.com
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=10080
HTTPS_PORT=10443

I've tried version 10.0 to 10.0.4, but all failed.
The nginx reverser proxy is set to redirect http and https packages from 80 and 443 to 10080.

My env:
docker Version: 17.12.0-ce
docker-compose version 1.18.0, build 8dd22a9
Kernel Version: 3.10.0-693.11.6.el7.x86_64
Operating System: CentOS Linux 7

Anyone can help?

enabling contacts app from marketplace results in internal server error

I

Steps to reproduce

Have owncloud 9.1.5 installed with ldap
Disable user_ldap before updating to 10.0.4 RC4
3.Install contacts from marketplace.
Expected behaviour

App should work

Actual behaviour

{"reqId":"fYx4cw7YA2kvkEOmcfMW","level":3,"time":"2017-04-25T08:46:07+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"index","method":"GET","url":"/index.php/apps/files/","message":"Exception: {"Exception":"RuntimeException","Message":"image not found: image:app.svg webroot: serverroot:/var/www/owncloud","Code":0,"Trace":"n#0 /mnt/data/apps/contacts/appinfo/app.php(35): OC\URLGenerator->imagePath('contacts', 'app.svg')n#1 /var/www/owncloud/lib/private/NavigationManager.php(95): OC_App::OCA\Contacts\AppInfo{closure}()n#2 /var/www/owncloud/lib/private/legacy/app.php(692): OC\NavigationManager->getAll()n#3 /var/www/owncloud/lib/private/TemplateLayout.php(76): OC_App::getNavigation()n#4 /var/www/owncloud/lib/private/legacy/template.php(230): OC\TemplateLayout->__construct('user', 'files')n#5 /var/www/owncloud/lib/public/AppFramework/Http/TemplateResponse.php(156): OC_Template->fetchPage()n#6 /var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php(112): OCP\AppFramework\Http\TemplateResponse->render()n#7 /var/www/owncloud/lib/private/AppFramework/App.php(98): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')n#8 /var/www/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php(46): OC\AppFramework\App::main('ViewController', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)n#9 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)n#10 /var/www/owncloud/lib/private/Route/Router.php(299): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)n#11 /var/www/owncloud/lib/base.php(909): OC\Route\Router->match('/apps/files/')n#12 /var/www/owncloud/index.php(49): OC::handleRequest()n#13 {main}","File":"/var/www/owncloud/lib/private/URLGenerator.php","Line":164}"}

"Message":"image not found: image:app.svg seems to be the problem here.

I guess there is something wrong with permissions or the symlink in /mnt/data apps.

Centos 7 error

When I try to install owncloud server in Centos 7, i get this error (docker logs owncloud server):

Error while trying to create admin user: An exception occurred while executing 'SELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS Null, COLUMN_KEY AS Key, COLUMN_DEFAULT AS Default, EXTRA AS Extra, COLUMN_COMMENT AS Comment, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS Collation FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'owncloud' AND TABLE_NAME = 'oc_appconfig'':

SQLSTATE[HY000]: General error: 1036 Table '/tmp/#sql_12e_0.MAI' is read only

If I install in Ubuntu, it works. This is the same if I use docker-compose. Help please.

Thanks

Issue accessing the ownCloud UI

I'm not sure whether this is an issue with the latest version of ownCloud or the way it's managed in the Docker image. Given that, I thought it best to report it here.

This morning, when starting the container (using: docker-compose up -d --build), when I attempted to access the web UI, I received the message: Downgrading is not supported and is likely to cause unpredictable issues (from 10.0.0.12 to 9.1.5.2).

screen shot 2017-06-14 at 11 22 51

To the best of my knowledge, I've not changed anything in either the code nor the container. I believe it was working properly last time as well. Not quite sure how to correct it.

Update owncloud.org documentation

I'm not sure where to file this so I'm trying here in hopes that if it's the wrong place someone can point me to the correct one. The documentation here no longer works: https://doc.owncloud.org/server/latest/admin_manual/installation/docker/#installation-on-a-local-machine

Errors are:

> docker-compose up -d
WARNING: The OWNCLOUD_VERSION variable is not set. Defaulting to a blank string.
WARNING: The OWNCLOUD_DOMAIN variable is not set. Defaulting to a blank string.
...
ERROR: no such image: owncloud/server:: invalid reference format

It appears that VERSION and DOMAIN need to be replaced with OWNCLOUD_VERSION and OWNCLOUD_DOMAIN in this step:

# Create the environment configuration file
cat << EOF > .env
VERSION=10.0.4
DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=80
HTTPS_PORT=443
EOF

which would then be:

# Create the environment configuration file
cat << EOF > .env
OWNCLOUD_VERSION=10.0.4
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=80
HTTPS_PORT=443
EOF

Might be even best to make sure that it points to the latest version instead of needing to go back and update those instructions periodically:

# Create the environment configuration file
cat << EOF > .env
OWNCLOUD_VERSION=latest
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=80
HTTPS_PORT=443
EOF

Failed to create admin account

A few days ago, I have successfully setup 10.0.3 oc docker with latest official mariadb docker and latest offical redis docker, but failed today. But it works in oc docker version 10.0.2.

Everything is clean, I remove all containers, all images, and all docker data volumes.

owncloud_1 | wait-for-it: db:3306 is available after 9 seconds
owncloud_1 | Removing custom folder...
owncloud_1 | Linking custom folder...
owncloud_1 | Removing config folder...
owncloud_1 | Linking config folder...
owncloud_1 | Copying config file...
owncloud_1 | Copying domains file...
owncloud_1 | Copying db file...
owncloud_1 | Copying utf8mb4 config...
owncloud_1 | Fixing base perms...
owncloud_1 | Fixing data perms...
owncloud_1 | Installing server database...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 | Error while trying to create admin user: An exception occurred while executing 'ALTER TABLE oc_calendarsubscriptions CHANGE lastmodified lastmodified INT UNSIGNED DEFAULT NULL NOT NULL':
owncloud_1 |
owncloud_1 | SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'lastmodified'
owncloud_1 | ->
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 |
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [];
owncloud_1 | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg --force-help for a list of forcing options;
owncloud_1 | Type dpkg-deb --help for help about manipulating .deb files;
owncloud_1 |
owncloud_1 | Options marked [
] produce a lot of output - pipe it through 'less' or 'more' !
owncloud_1 | Enabling files_external app...
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 |
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [
];
owncloud_1 | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg --force-help for a list of forcing options;
owncloud_1 | Type dpkg-deb --help for help about manipulating *.deb files;

ownCloud's configurations are being overwritten

Hello, I just want to report that on my directory config which is a mounting point for my container is being overwritten such as database.config.php.
Whenever I rebuilt the container the configurations goes back to default resulting to fall back to sqlite(default database).
Does this behavior okay or can we have solution for this?
Thanks in advance.

Market app cannot access public marketplace from container.

Steps to reproduce

  1. Go to market app

Expected behaviour

Market can be used to install apps.

Actual behaviour

There are errors.

screen shot 2017-05-23 at 14 04 17

Docker image tag

10.0.1

Updated from an older ownCloud or fresh install:
Fresh

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

Are you using encryption:
No

Logs

Client configuration

browser
Firefox

Several Windows issues

Hi. I'm running Docker for Windows and I am following these instructions: https://doc.owncloud.org/server/10.0/admin_manual/installation/docker/
I set all the .env variables:

VERSION=10.0.4
DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
HTTP_PORT=83
HTTPS_PORT=4444

And ran docker-compose up. All containers have been initialized and are running according to docker-compose ps. Now the config.php file looks like this:

$CONFIG = array(
  "data_directory" => "/mnt/data/files",
  "apps_paths" => array(
    0 => array(
      "path" => OC::$SERVERROOT . "/apps",
      "url" => "/apps",
      "writable" => false
    ),
    1 => array(
      "path" => OC::$SERVERROOT . "/custom",
      "url" => "/custom",
      "writable" => true
    )
  )
);

When navigating to https://localhost:4444, I see a config window(?).

Issue 1:
I expect a regular login window, but here I must create an admin account and specify the MySQL connection and the location of the data folder. I set the data folder to the location "/mnt/data/files" and the MySQL configs to the ones given in the docker-compose file.

Issue 2:
When the setup completed, I received the error, saying that the data directory is visible to other users and that I should change the folder permissions to 0770. I can't proceed. The config.php file now looks like this:

<?php
$CONFIG = array (
  'data_directory' => '/mnt/data/files',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/owncloud/custom',
      'url' => '/custom',
      'writable' => true,
    ),
  ),
  'dbtype' => 'mysql',
  'dbhost' => 'db',
  'dbname' => 'owncloud',
  'dbuser' => 'owncloud',
  'dbpassword' => 'owncloud',
  'dbtableprefix' => 'oc_',
  'trusted_domains' => 
  array (
    0 => 'localhost:4444',
  ),
  'mysql.utf8mb4' => true,
  'instanceid' => 'oc52d4enaqc9',
  'passwordsalt' => '<salt here>',
  'secret' => '<secret here>',
  'datadirectory' => '/mnt/data/files',
  'overwrite.cli.url' => 'https://localhost:4444',
  'version' => '10.0.4.4',
  'logtimezone' => 'UTC',
  'installed' => true,
);

Issue 3:
When I check the config.php file, I see duplicate configs: "data_directory" and "datadirectory".

Issue 4:
Redis seems to be unused. The volume folder on my host is empty. There is no redis configuration present in config.php.

Issue 5:
Because the user files are not shared with my host machine, running docker-compose down will destroy all user files. When bringing up the docker containers I receive the error that the data directory is invalid - it must contain .ocdata.

Can anyone reproduce this? What am I doing wrong? I'm not a docker expert.

Owncloud doesn't start

I try to use this docker-compose.yml file. But owncloud can't be successfully configured. While updating old DB or creating new DB error 1036 has appear

General error: 1036 Table '/tmp/#sql_b6_0.MAI' is read only

After that I have set another image for db service
db: image: mariadb:10.3.2
And owncloud has been successfully started.

Provide way to customize php.ini for max filesizes

While using the container I've had to go in and modify the php.ini (and possibly apache) files to support larger memory and upload filesizes. It would be nice if these files could reside along with the rest of the configuration via external mounts so that on updates they changes are not lost.

Server restarting and db unhealthy

Had success in starting owncloud using the docker-compose command. But after stopping it to make edits to the yml and env files for ports, it is now not starting, but rather restarting constantly.
The ps command shows that the db is unhealthy and the server itself restarting.
Running latest docker, owncloud CE server on a Mac Mini 2012 under macOS 10.13.

Will remove the ownlcoud and reinstall if that is the best advice as I am not sure where to look for what is causing this.

Images show the output from ps and from the run command without the -d.

Any help would be much appreciated.

screenshot 2018-05-01 14 35 20

screenshot 2018-05-01 14 35 48

Server crash

Since I have installed owncloud with the docker image I get server crashes. It never happens if owncloud is not running.

It is a vServer. Do you have any idea what causes this problem (I was not able to scroll up in the console, so I only have this screen)?

https://imgur.com/a/k5iKnMj

docker-compose version 1.18.0, build 8dd22a9

Docker version 18.03.1-ce, build 9ee9f40

PRETTY_NAME="Debian GNU/Linux buster/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
17.5.3 debian8.0.build1705170317.16

Login not working

Hi,

I can't get the ldap login working. It fails with this error:
OCP Files NotFoundException
{"reqId":"9pyYHqzCpkXEuoScGAv8","level":3,"time":"2017-07-08T13:36:35+00:00","remoteAddr":"private","user":"myuser","app":"index","method":"GET","url":"/index.php/apps/files/","message":"Exception: {"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/files\/lib\/Controller\/ViewController.php(132): OC_Helper::getStorageInfo('\/', false)\n#1 \/var\/www\/owncloud\/apps\/files\/lib\/Controller\/ViewController.php(203): OCA\\Files\\Controller\\ViewController->getStorageInfo()\n#2 [internal function]: OCA\\Files\\Controller\\ViewController->index('', '', NULL)\n#3 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(159): call_user_func_array(Array, Array)\n#4 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#5 \/var\/www\/owncloud\/lib\/private\/AppFramework\/App.php(98): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#6 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main('ViewController', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#7 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#8 \/var\/www\/owncloud\/lib\/private\/Route\/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#9 \/var\/www\/owncloud\/lib\/base.php(918): OC\\Route\\Router->match('\/apps\/files\/')\n#10 \/var\/www\/owncloud\/index.php(49): OC::handleRequest()\n#11 {main}","File":"\/var\/www\/owncloud\/lib\/private\/legacy\/helper.php","Line":570}"}

LDAP Config is ok. After a new ldap-user tried to login, the new login is listet in the groups view.
For "User Home Folder Naming Rule" I have tried uid, cn, samaccountname. Nothing works.

My system settings:
Redis container like doc.
Docker Data container: sudo create volume ocdata
I can found new files in this container, so I think it works.

Created a owncloud docker instance with:
sudo docker run -d
--name owncloud
--link redis:redis
--restart always
-p 80:80
-p 443:443
-e OWNCLOUD_DOMAIN=$DOMAIN
-e OWNCLOUD_DB_TYPE=mysql
-e OWNCLOUD_DB_NAME=ownclouddb
-e OWNCLOUD_DB_USERNAME=owncloud
-e OWNCLOUD_DB_PASSWORD=$MYSQL_OC_PASSWORD
-e OWNCLOUD_DB_HOST=$DB_HOST
-e OWNCLOUD_ADMIN_USERNAME=admin
-e OWNCLOUD_ADMIN_PASSWORD=$ADMIN_OC_PASSWORD
-e OWNCLOUD_REDIS_ENABLED=true
-e OWNCLOUD_REDIS_HOST=redis
-e OWNCLOUD_DEFAULT_LANGUAGE=de
--volume ocdata:/mnt/data:z
-v /etc/letsencrypt/live/$DOMAIN/cert.pem:/mnt/data/certs/ssl-cert.crt
-v /etc/letsencrypt/live/$DOMAIN/privkey.pem:/mnt/data/certs/ssl-cert.key
$ocVer

My ldap-config:
sudo docker exec --user www-data -t owncloud /var/www/owncloud/occ ldap:show-config
+-------------------------------+--------------------------------------------------+
| Configuration | |
+-------------------------------+--------------------------------------------------+
| hasMemberOfFilterSupport | 1 |
| hasPagedResultSupport | |
| homeFolderNamingRule | attr:uid |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | Administrator@mydomain.local |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=mydomain,dc=local |
| ldapBaseGroups | dc=mydomain,dc=local |
| ldapBaseUsers | dc=mydomain,dc=local |
| ldapCacheTTL | 5 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | sAMAccountName |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(|(objectclass=group))) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | group |
| ldapGroupMemberAssocAttr | member |
| ldapHost | myserver.mydomain.local |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(|(objectclass=user)))(samaccountname=%uid)) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | displayname |
| ldapUserDisplayName2 | name |
| ldapUserFilter | (&(|(objectclass=user))) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | user |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+--------------------------------------------------+

What can I do?
Please help,

Ben

Add occ examples to README.md

It would be super useful to have copypasta-ready examples in the README.md, how to run occ commands in this Dockers.

docker stop times out

Hello, I'm facing a problem that I can't (normally) stop the container via docker stop my-owncloud.
It just times out (after 10 seconds) and then is killed.
Could you please handle SIGTERM sent by docker, and stops more gracefully?
Thanks a lot.

Upgrade from 10.0.2.1 to 10.0.3 not working

I'm migrating a installation from 10.0.2.1 to 10.0.3 by just swapping owncloud version on .env then recreating the docker-compose project (down then up), but when I run occ upgrade I get the following error message:

2017-11-07T03:16:03+00:00 Updating database schema
2017-11-07T03:16:03+00:00 Doctrine\DBAL\Schema\SchemaException: There is no table with name 'owncloud.oc_account_terms' in the schema.
2017-11-07T03:16:03+00:00 Update failed

Am I doing something wrong or is this broken?

docker-compose is not starting

Yesterday I installed owncloud with docker-compose and everything worked fine.

This night the server got kernel panic, I dont know why. This never happened before. Anyways ... I cannot start owncloud. It is saying this and then restarting:

docker-compose up -d

db_1        | Cron is enabled, launching it!
redis_1     | 12:C 30 Apr 08:42:44.142 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
db_1        | 180430 08:42:44 mysqld_safe Logging to '/var/lib/mysql/ea22b4ff443b.err'.
redis_1     | 12:C 30 Apr 08:42:44.142 # Redis version=4.0.9, bits=64, commit=757d0c15, modified=0, pid=12, just started
owncloud_1  | Creating volume folders...
redis_1     | 12:C 30 Apr 08:42:44.142 # Configuration loaded
owncloud_1  | Creating hook folders...
redis_1     | 12:M 30 Apr 08:42:44.145 * Running mode=standalone, port=6379.
db_1        | 180430 08:42:44 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
owncloud_1  | Waiting for MySQL...
redis_1     | 12:M 30 Apr 08:42:44.146 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1     | 12:M 30 Apr 08:42:44.146 # Server initialized
redis_1     | 12:M 30 Apr 08:42:44.146 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1     | 12:M 30 Apr 08:42:44.146 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1     | 12:M 30 Apr 08:42:44.146 * Ready to accept connections
owncloud_1  | wait-for-it: waiting 180 seconds for db:3306
owncloud_1  | wait-for-it: db:3306 is available after 0 seconds
owncloud_1  | Removing custom folder...
owncloud_1  | Linking custom folder...
owncloud_1  | Removing config folder...
owncloud_1  | Linking config folder...
owncloud_1  | Copying db file...
owncloud_1  | Copying utf8mb4 config...
owncloud_1  | Fixing hook perms...
owncloud_1  | Fixing base perms...
owncloud_1  | Fixing data perms...
owncloud_1  | Upgrading server database...
owncloud_1  | ownCloud is already latest version
ownclouddockerserver_owncloud_1 exited with code 3

Placed behind a proxy with custom domain, Logout button is the direct IP

export OWNCLOUD_VERSION=10.0
export OWNCLOUD_DOMAIN=owncloud.myhouse.com
export OWNCLOUD_ADMIN_USERNAME=admin
export OWNCLOUD_ADMIN_PASSWORD=admin
export OWNCLOUD_HTTP_PORT=80
export OWNCLOUD_HTTPS_PORT=443

Everything is working great, login, file transfers, webdav, owncloud client. Everything except the Logout button which renders itself as "http://192.168.1.50" instead of owncloud.myhouse.com. All other links, pages, etc all are the correct url "http://owncloud.myhouse.com"

Build performance bottleneck on /var/www/owncloud ownership setting

The other day I was building locally the image and noticed one layer took quite a while to be built:

RUN find /var/www/owncloud \( \! -user www-data -o \! -group www-data \) -print0 | xargs -r -0 chown www-data:www-data

It got to the point I started thinking something was up with the tarball contents. After a few tests I think it's a performance issue with the rightmost side of the pipe: xargs -r -0 chown www-data:www-data - It takes unreasonably long to run that command.

@tboerger have you noticed something similar in the docker-build system? Since owncloud-docker/ubuntu has bash > 4.0 maybe globstar can be used together with chown -R to improve readability/performance.

Feel free to close if considered irrelevant.

Migrating an existing setup

Hello!
I'm trying to import an existing setup. I've done the following two things:

  1. copy the old data folder to ./data
  2. dump and import the mysql database in mariadb

Both steps have been verified by checking inside the containers via exec ... bash

Now I'm seeing the following errors upon docker-compose up

owncloud_1  | Creating volume folders...
owncloud_1  | Waiting for MySQL...
owncloud_1  | wait-for-it: waiting 180 seconds for db:3306
owncloud_1  | wait-for-it: db:3306 is available after 1 seconds
owncloud_1  | Removing custom folder...
owncloud_1  | Linking custom folder...
owncloud_1  | Removing config folder...
owncloud_1  | Linking config folder...
owncloud_1  | Fixing base perms...
owncloud_1  | Fixing data perms...
owncloud_1  | Installing server database...
owncloud_1  | ownCloud is not installed - only a limited number of commands are available
owncloud_1  | The username is already being used
owncloud_1  |
owncloud_1  |
owncloud_1  |   [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1  |   There are no commands defined in the "config:system" namespace.
owncloud_1  |
owncloud_1  |
owncloud_1  | dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
owncloud_1  |
owncloud_1  | Type dpkg --help for help about installing and deinstalling packages [*];
owncloud_1  | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1  | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1  | Type dpkg --force-help for a list of forcing options;
owncloud_1  | Type dpkg-deb --help for help about manipulating *.deb files;
owncloud_1  |
owncloud_1  | Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
owncloud_1  | Enabling files_external app...
owncloud_1  |
owncloud_1  |
owncloud_1  |   [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1  |   There are no commands defined in the "config:system" namespace.

Any ideas what went wrong?

Arm support

Hi,

thanks for those images. Would it be possible to have an arm version (for raspi) ?

Thanks,

config.php file cannot be read as default.

Hi, I've just tried this image/images and I am getting a permissions error on config.php.

PHP Warning:  fopen(/var/www/owncloud/config/config.php): failed to open stream: Permission denied in /var/www/owncloud/lib/private/config.php on line 187

Config dir is mounted as a volume.

Perhaps there is a step needed before running it?

failed to install with docker

I failed to install owncloud docker with latest webhippie/mariadb docker and latest webhippie/resdist docker on centos 7,I had try several newest versions of owncloud,include 10.0.3。 Any helps are welcome! Thanks in advance!

owncloud_1 | Creating volume folders...
owncloud_1 | Waiting for MySQL...
owncloud_1 | wait-for-it: waiting 180 seconds for db:3306
owncloud_1 | wait-for-it: db:3306 is available after 13 seconds
owncloud_1 | Removing custom folder...
owncloud_1 | Linking custom folder...
owncloud_1 | Removing config folder...
owncloud_1 | Linking config folder...
owncloud_1 | Copying config file...
owncloud_1 | Copying domains file...
owncloud_1 | Copying db file...
owncloud_1 | Copying utf8mb4 config...
owncloud_1 | Fixing base perms...
owncloud_1 | Fixing data perms...
owncloud_1 | Installing server database...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 | Error while trying to create admin user: An exception occurred while executing 'SELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS Null, COLUMN_KEY AS Key, COLUMN_DEFAULT AS Default, EXTRA AS Extra, COLUMN_COMMENT AS Comment, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS Collation FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'owncloud' AND TABLE_NAME = 'oc_appconfig'':
owncloud_1 |
owncloud_1 | SQLSTATE[HY000]: General error: 1036 Table '/tmp/#sql_129_0.MAI' is read only
owncloud_1 | ->
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 |
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [];
owncloud_1 | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg --force-help for a list of forcing options;
owncloud_1 | Type dpkg-deb --help for help about manipulating .deb files;
owncloud_1 |
owncloud_1 | Options marked [
] produce a lot of output - pipe it through 'less' or 'more' !
owncloud_1 | Enabling files_external app...
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 |
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [
];
owncloud_1 | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg --force-help for a list of forcing options;
owncloud_1 | Type dpkg-deb --help for help about manipulating .deb files;
owncloud_1 |
owncloud_1 | Options marked [
] produce a lot of output - pipe it through 'less' or 'more' !
owncloud_1 | Generating default cert...
owncloud_1 | Generating a 4096 bit RSA private key
owncloud_1 | .................................................++
owncloud_1 | ......................++
owncloud_1 | writing new private key to '/mnt/data/certs/ssl-cert.key'
owncloud_1 | -----
owncloud_1 | Enforcing cli url...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Disabling update checks...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Disabling memcached config...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Waiting for Redis...
owncloud_1 | wait-for-it: waiting 60 seconds for redis:6379
owncloud_1 | wait-for-it: redis:6379 is available after 0 seconds
owncloud_1 | Enabling redis config...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Disabling file locking...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Configure locale caching...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Touching log file...
owncloud_1 | Setting log level...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Setting default language...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Enabling background cron...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "background" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Removing object storage...
owncloud_1 | Disabling object storage...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | Setting rewrite base...
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "config:system" namespace.
owncloud_1 |
owncloud_1 |
owncloud_1 | ownCloud is not installed - only a limited number of commands are available
owncloud_1 |
owncloud_1 |
owncloud_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
owncloud_1 | There are no commands defined in the "maintenance:update" namespace.
owncloud_1 | Did you mean this?
owncloud_1 | maintenance
owncloud_1 |
owncloud_1 |
owncloud_1 | Writing apache config...
owncloud_1 | Writing php config...
owncloud_1 | Starting cron daemon...
owncloud_1 | Starting apache daemon...
owncloud_1 | Finishing ownCloud launch...
owncloud_1 | [Sun Nov 05 04:46:41.334311 2017] [ssl:warn] [pid 338] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
owncloud_1 | [Sun Nov 05 04:46:41.395153 2017] [ssl:warn] [pid 339] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
owncloud_1 | [Sun Nov 05 04:46:41.407237 2017] [mpm_prefork:notice] [pid 339] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
owncloud_1 | [Sun Nov 05 04:46:41.407272 2017] [core:notice] [pid 339] AH00094: Command line: '/usr/sbin/apache2'
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:46:53 +0000] "GET /status.php HTTP/1.1" 302 762 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:47:23 +0000] "GET /status.php HTTP/1.1" 302 764 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:47:53 +0000] "GET /status.php HTTP/1.1" 302 762 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:48:23 +0000] "GET /status.php HTTP/1.1" 302 762 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:48:53 +0000] "GET /status.php HTTP/1.1" 302 768 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:49:23 +0000] "GET /status.php HTTP/1.1" 302 764 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:49:53 +0000] "GET /status.php HTTP/1.1" 302 762 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:50:23 +0000] "GET /status.php HTTP/1.1" 302 766 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:50:53 +0000] "GET /status.php HTTP/1.1" 302 760 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:51:24 +0000] "GET /status.php HTTP/1.1" 302 762 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:51:54 +0000] "GET /status.php HTTP/1.1" 302 770 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:52:24 +0000] "GET /status.php HTTP/1.1" 302 758 "-" "curl/7.47.0"
owncloud_1 | 127.0.0.1 - - [05/Nov/2017:04:52:54 +0000] "GET /status.php HTTP/1.1" 302 772 "-" "curl/7.47.0"

Unable to install server (db tables not created)

I'm trying to install a brand new server following instructions on https://github.com/owncloud-docker/server, unfortunately, whatever method (manual or compose) will end up in a non-working server.
I can see the an error at the very start of logs:

[mcondarelli@redmine owncloud-docker-server]$ sudo docker-compose logs --follow owncloud
Attaching to ownclouddockerserver_owncloud_1
owncloud_1  | Creating volume folders...
owncloud_1  | Creating hook folders...
owncloud_1  | Waiting for MySQL...
owncloud_1  | wait-for-it: waiting 180 seconds for db:3306
owncloud_1  | wait-for-it: db:3306 is available after 0 seconds
owncloud_1  | Removing custom folder...
owncloud_1  | Linking custom folder...
owncloud_1  | Removing config folder...
owncloud_1  | Linking config folder...
owncloud_1  | Copying config file...
owncloud_1  | Copying domains file...
owncloud_1  | Copying db file...
owncloud_1  | Copying utf8mb4 config...
owncloud_1  | Fixing base perms...
owncloud_1  | Fixing data perms...
owncloud_1  | Installing server database...
owncloud_1  | Error while trying to create admin user: An exception occurred while executing 'SELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS `Null`, COLUMN_KEY AS `Key`, COLUMN_DEFAULT AS `Default`, EXTRA AS Extra, COLUMN_COMMENT AS Comment, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS Collation FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'owncloud' AND TABLE_NAME = 'oc_appconfig'':
owncloud_1  | 
owncloud_1  | SQLSTATE[HY000]: General error: 1036 Table '/tmp/#sql_12c_0.MAI' is read only
owncloud_1  |  -> 
owncloud_1  | 
owncloud_1  |                                                                    
owncloud_1  |   [Symfony\Component\Console\Exception\CommandNotFoundException]   
owncloud_1  |   There are no commands defined in the "config:system" namespace.  
owncloud_1  |                                                                    
owncloud_1  | 
owncloud_1  | dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
owncloud_1  | 
owncloud_1  | Type dpkg --help for help about installing and deinstalling packages [*];
owncloud_1  | Use 'apt' or 'aptitude' for user-friendly package management;
owncloud_1  | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1  | Type dpkg --force-help for a list of forcing options;
owncloud_1  | Type dpkg-deb --help for help about manipulating *.deb files;

thus it's not strange at first login attempt I get an "Internal Server Error" with a log stating:

An exception occurred while executing 'SELECT * FROM `oc_accounts` WHERE LOWER(`email`) = LOWER(:dcValue1)' with params [\\\"admin\\\"]:\\n\\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'owncloud.oc_accounts' doesn't exist

I'm at a loss.
Can someone help. please?
I am available to send further info, if needed.

400 Badrequest - expeced filesize xx got yy

Hi,

Using the latest container version today, I encounter that error that seemed to make quite some noise for a few years now. I've tried some of the workarounds offered on the internet, to no avail.

It happens to me here whereas the server and client are in home networks (server is 192.168.10.xx and client at 192.168.20.xx).Network stability is ok.

Given this is a container that should work out of the box, I am considering this to be an issue.

Running sqlite in the backend (2 users, few files, yet usually bigger size files around 1Gb).

Image:
owncloud/server latest a4f1b7ecb761 9 days ago 745MB

Thanks,
fred

{"reqId":"visWv1oOtQJwdW6h66AU","level":4,"time":"2017-09-02T10:23:35+00:00","remoteAddr":"34.34.54.23","user":"xxxxx","app":"webdav","method":"PUT","url":"\/remote.php\/webdav\/xxxxxx.mp4","message":"Exception: {\"Message\":\"HTTP\\\/1.1 400 expected filesize 549163863 got 3653632\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\BadRequest\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(158): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #57)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1095): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('All_HANDS_2016-...', Resource id #57)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('KS\\\/All_HANDS_20...', Resource id #57, NULL)\\n#3 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(63): Sabre\\\\DAV\\\\Server->exec()\\n#8 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":156,\"User\":\"xxxxx\"}"}

Error during transfer, sql duplicate entry

Hey guys, not sure if this is directly related to this project but I did never see the issue before with natively installed packages.
I'm in the process to upload 100GB of files and am occasionally seeing the following error in the desktop sync client.

Error transferring https://xxx.tld/remote.php/dav/files/th/Fotos/DCIM/2016/2016-01-01_19.59.52.jpg - server replied: Internal Server Error (An exception occurred while executing 'INSERT INTO `oc_filecache` (`mimepart`,`mimetype`,`mtime`,`size`,`etag`,`storage_mtime`,`permissions`,`checksum`,`parent`,`path_hash`,`path`,`name`,`storage`) SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM `oc_filecache` WHERE `storage` = ? AND `path_hash` = ? HAVING COUNT(*) = 0' with params ["1", "2", 1500547390, -1, "5970893eda4cc", 1500547390, 31, "", 360243, "2624f7444256c086dac0fb12be623c91", "files_encryption\/keys\/files\/Fotos\/DCIM\/2016", "2016", 4, 4, "2624f7444256c086dac0fb12be623c91"]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-2624f7444256c086dac0fb12be623c91' for key 'fs_storage_path_hash')

Any idea what's going on here and if I need to concern myself with it?

Edit: by now I can confirm, that the files are successfully transferred at the next sync run.

Upgrade fails for 10.0.0.4

I am not sure if this issue is related to the repository.
I'm on a relatively new setup, started with 10.0.0.1 (or 2), then upgraded to 10.0.0.3. The upgrade to 10.0.0.4 didn't go through without errors, the system stayed in maintenance mode. Here's the error I'm seeing:

$ sudo docker-compose exec owncloud occ upgrade
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2018-01-17T12:39:20+00:00 Set log level to debug
2018-01-17T12:39:20+00:00 Repair step: Repair MySQL database engine
2018-01-17T12:39:20+00:00 Repair step: Repair MySQL collation
2018-01-17T12:39:20+00:00 Repair info: Change collation for oc_accounts ...
2018-01-17T12:39:20+00:00 Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'ALTER TABLE `oc_accounts` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;':

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
2018-01-17T12:39:20+00:00 Update failed
2018-01-17T12:39:20+00:00 Maintenance mode is kept active
2018-01-17T12:39:20+00:00 Reset log level

How can we solve this for me and others?

occ files:scan --all not working

Hey,

When I run the following command it comes to an error:
docker exec -ti web occ files:scan --all

Scanning files for 4 users
Starting scan for user 1 out of 4 (user1)
Home storage for user user1 not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 2 out of 4 (admin)
Home storage for user admin not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 3 out of 4 (user2)
Starting scan for user 4 out of 4 (user3)
Home storage for user user3 not writable
Make sure you're running the scan command only as the user the web server runs as

But the directory is writable.

What could be the problem?

Thanks for Help.

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.