Closed dzervas closed 8 years ago
For the volumes:
/data
. This in the only volume declared./radicale/config
. There is no volume for it.For the error, can you give me the command you ran and the url you used to configure the calendar ?
For me:
$ docker run -d --name radicale -p 5232:5232 -v ~/radicale:/data tomsquest/docker-radicale
...
# Created a calendar with url: http://localhost:5232/testuser/calendar.ics/
$ docker exec -it radicale sh
/data # ls -lR
.:
total 4
drwxr-xr-x 2 radicale radicale 4096 Oct 9 15:01 testuser
./testuser:
total 12
-rw-r--r-- 1 radicale radicale 20 Oct 9 15:01 calendar.ics.props
docker run -d --name Radicale -p 5232 -v /opt/radicale:/data/radicale/ -e VIRTUAL_HOST=dav.p.vpn jcsaaddupuy/radicale
The VIRTUAL_HOST
env is used for nginx-proxy.
You're using jcsaaddupuy/radicale
image and not mine, tomsquest/docker-radicale
Oops, wrong command: docker run -d --name Radicale -p 5232 -v /data/radicale:/data -e VIRTUAL_HOST=dav.p.vpn tomsquest/docker-radical
Retried this morning and all is working (no error at all):
docker run --name radicale -p 5232:5232 -v ~/tmp/radicale:/data radicale radicale --debug --config /radicale/config
(~/tmp/radicale
did not exist)Remote
, Caldav
, address: http://localhost:5232/tom/mycal.ics/
(the trailing slash is mandatory as per Radicale's doc)No error in the log.
@dzervas I reproduced the error when syncing with Davdroid. I will try to see exactly what is going on. It only occurs when syncing contacts
from Davdroid...
Issue opened at Radicale for the security part: https://github.com/Kozea/Radicale/issues/528
I still don't know why Davdroid wants to read that file, and what this file is.
BTW, we see the stacktrace thanks to the container not running as root
but with a less privileged user.
@dzervas fixed. You may have to change your command line. From now on, Radicale will store its data in /radicale/data
and no more in /data
.
Tag 1.1.1, so you may need to pull latest or this tag.
After starting your container, I don't get the config file through the volume (I only get
user.prop
&user
dir). Also when I access<server>/user/main.ics
I get this: