Code Monkey home page Code Monkey logo

Comments (9)

tboerger avatar tboerger commented on May 16, 2024

This sounds more like a general issue with your owncloud setup, not directly related to the docker container itself, maybe it's better to ask for help on the forum at https://central.owncloud.com

from server.

Schack17 avatar Schack17 commented on May 16, 2024

I have created a new non ldap user and I got the same problem.
So It's no ldap problem.
The link https://central.owncloud.com doesn't work.

from server.

tboerger avatar tboerger commented on May 16, 2024

Ah, sorry... It's central.owncloud.org

And what do you get on the logs with the local user?

from server.

Schack17 avatar Schack17 commented on May 16, 2024

And what do you get on the logs with the local user?

I get the same message. See it in the first post.

This sounds more like a general issue with your owncloud setup, not directly related to the docker container itself,

Please notice: I don't have a config file. I just use the docker params. I think it's a problem with the docker image.

The part of the documentation doesn't work:
--volume ./data:/mnt/data:z
Produce this error:
docker: Error response from daemon: create ./data: "./data" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.

So I have used
sudo create volume ocdata
and then
--volume ocdata:/mnt/data:z

I think the documentation is wrong or it's a bug in the image. Can you check this?

from server.

tboerger avatar tboerger commented on May 16, 2024

You can skip the :z, this is only required with selinux. You are right,./data works within docker compose but for docker run it requires absolute paths

from server.

Schack17 avatar Schack17 commented on May 16, 2024

My error is the same without :z.

from server.

felixboehm avatar felixboehm commented on May 16, 2024

Please use absolut path for volume mounts with docker.
Or use docker-compose as suggested in the example usage.

If your data volume is not mounted, of course the users data folders can't be created.
Please reopen if still an issue.

from server.

Schack17 avatar Schack17 commented on May 16, 2024

If your data volume is not mounted, of course the users data folders can't be created.

In the admin account I can change any file and it is stored in the image.
But new users can not create the files-folder.
Yes, the issue is still open.

Now I try nextcloud. Owncloud is not working under ubuntu 16.04 because of php chaos. 7.1 and 5.4 are not supported. But other versions are not available in ubuntu. Package chaos.
And with docker the files-folder problem.

from server.

tboerger avatar tboerger commented on May 16, 2024

Ubuntu 16.04 works totally fine with ownCloud, our base image is built on top of Ubuntu 16.04 from the standard repositories: https://github.com/owncloud-docker/base/blob/master/Dockerfile.

Since even demos like https://demo.owncloud.com or https://demo.owncloud.org are built on these Docker images and we can created as many users as we want your problem must be a configuration issue.

This is for sure a configuration that works on different machines:

version: '2'

services:
  web:
    image: owncloud/server:10.0.2
    network_mode: bridge
    environment:
      - OWNCLOUD_DOMAIN=demo.owncloud.com
      - OWNCLOUD_DB_TYPE=mysql
      - OWNCLOUD_DB_NAME=owncloud
      - OWNCLOUD_DB_USERNAME=owncloud
      - OWNCLOUD_DB_PASSWORD=owncloud
      - OWNCLOUD_DB_HOST=db
      - OWNCLOUD_ADMIN_USERNAME=admin
      - OWNCLOUD_ADMIN_PASSWORD=admin
    labels:
      - traefik.frontend.passHostHeader=true
      - traefik.frontend.rule=Host:demo.owncloud.com
      - traefik.port=80
    links:
      - db:db
    volumes:
      - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro

  db:
    image: webhippie/mariadb
    network_mode: bridge
    environment:
      - MARIADB_ROOT_PASSWORD=owncloud
      - MARIADB_USERNAME=owncloud
      - MARIADB_PASSWORD=owncloud
      - MARIADB_DATABASE=owncloud
    labels:
      - traefik.enable=false

Edit: And exactly these docker containers are used with named volumes and host volumes.

from server.

Related Issues (20)

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.