Giter Club home page Giter Club logo

Comments (9)

GRBurst avatar GRBurst commented on July 26, 2024 1

@besendorf @vocux
I added a docker-compose file example at docker hub, too. I tested it with the alpine container.

version: '3'

services:
  etesync:
    container_name: etesync
    image: grburst/etesync:alpine
    restart: always
    ports:
      - "80:3735"
    volumes:
      - data-etesync:/data
    environment:
      SERVER: ${SERVER:-uwsgi}
      SUPER_USER: ${SUPER_USER:-admin}
      SUPER_PASS: ${SUPER_PASS:-admin}

volumes:
  data-etesync:

from docker-etebase.

ProjectMoon avatar ProjectMoon commented on July 26, 2024

I also ran into this. Workaround for me was to mount the existing database file into the container directly at /etesync/db.sqlite3: /path/to/db.sqlite3:/etesync/db.sqlite3, and then set the ETESYNC_DB_PATH environment variable to /etesync. It found the database, and started up just fine then. Both etesync itself and the admin pages work.

from docker-etebase.

stevesbrain avatar stevesbrain commented on July 26, 2024

@ProjectMoon Awesome - did the trick for me too :) Actually didn't realise you could mount files direct in docker - thought it was directories only! Appreciate the insight (though curious how this was working for project author)!

from docker-etebase.

besendorf avatar besendorf commented on July 26, 2024

Is this the same issue I have as desribed here? #6
I tried to do what @ProjectMoon said with docker-compose:

version: "3"

services:
  etesync:
    image: victorrds/etesync:alpine
    restart: always
    volumes:
      - /home/user/etesync/data:/etesync
    environment:
      SUPER_USER: "admin"
      SUPER_PASS: "censored"
      SERVER: "http-socket"
      ETESYNC_DB_PATH: "/etesync"
    networks:
      - etesync

but then I get this error:

etesync_1           | Starting ETESync
etesync_1           | realpath() of etesync.ini failed: No such file or directory [core/utils.c line 3654]

from docker-etebase.

ProjectMoon avatar ProjectMoon commented on July 26, 2024

If you mount the data directory to /etesync, you will overwrite the entirety of the etesync directory, which will wipe out all the files that would be there in the container.

from docker-etebase.

vocux avatar vocux commented on July 26, 2024

I've never used any previous version but also get the 500 error when trying to hook up a client or log in at the admin page. I can't get anything to work.

Tried @ProjectMoon s suggestion:

etesync:
    image: victorrds/etesync
    container_name: 'etesync'
    environment:
      SERVER: http
      SUPER_USER: test
      SUPER_PASS: test
      ETESYNC_DB_PATH: "/etesync"
    restart: always
    volumes:
      - ./etesync/db.sqlite3:/etesync/db.sqlite3
    ports:
      - 80:3735

It never writes any database files.

Also a completely 'clean' version as suggested in the readme doesn't work:

  etesync:
      image: victorrds/etesync
      container_name: 'etesync'
      environment:
        SERVER: http
        SUPER_USER: test
        SUPER_PASS: test
      restart: always
      ports:
        - 80:3735

I get the same error.

Am I overlooking something major here?

from docker-etebase.

GRBurst avatar GRBurst commented on July 26, 2024

@vocux
The container also has some permission issues as mentioned by @stevesbrain.

I ran into these issues, too. Since there are open pull requests (like #8) and no responses from the author @victor-rds, I forked this repo and pushed the container on dockerhub (grburst/etesync).

from docker-etebase.

vocux avatar vocux commented on July 26, 2024

@GRBurst Works like a charm, thank you! :)

from docker-etebase.

victor-rds avatar victor-rds commented on July 26, 2024

I've revamped the Dockerfile, and since someone already forked and fixed I will close this

from docker-etebase.

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.