owntracks / docker-recorder

Docker image for OwnTracks Recorder
151 stars 68 forks source link

Crashes on start if `/store` is a bind mount #85

Closed romner-set closed 3 weeks ago

romner-set commented 3 weeks ago

Mounting /store from a host dir instead of using a docker volume causes an error on start for me.

docker-compose.yml:

services:
  otrecorder:
    image: owntracks/recorder
    ports:
      - 8083:8083
    environment:
      - OTR_PORT=0
      - OTR_HTTPHOST=0.0.0.0
    volumes:
      - /data/config:/config
      - /data/store:/store
    restart: always

logs:

otrecorder-1  | + Skipping open defaults file /config/recorder.conf: No such file or directory
otrecorder-1  | + version 0.9.8 starting with STORAGEDIR=/store
otrecorder-1  | + gcache_open: mdb_env_open: No such device
otrecorder-1  | + Can't initialize gcache in /store/ghash

On the host /data is a virtiofs mount itself, but I've also tried tmpfs to no avail.

jpmens commented 3 weeks ago

That smells like a permission problem on the host directory ...

Is there a recorder.conf in /conf? What file(s) do you see in store/?

romner-set commented 3 weeks ago

I've just run into the same problem with a different service that worked fine a while ago, I'll investigate further but this is almost certainly an issue on my side. Closing for now, will reopen if it turns out it's an issue with owntracks after all.

Apologies for the possibly useless issue.