My local development Typesense Docker container ke...
# community-help
e
My local development Typesense Docker container keeps "stopping" after a while. This started today all of a sudden.
message has been deleted
j
It looks like its failing as it's trying to save a snapshot to disk. So it's likely that the disk space you've assigned to the Docker volume has run out of space.
e
But it's storing that on the host, right? It's linked.
And the host is not out of disk space.
This is inside the docker container.
j
Could you share the full docker command you're using?
Also, from inside the container, could you type journalctl and see if there's any interesting information around the timestamp when the typesense logs say "failed to save snapshot"
e
I'm using Lando, and the config looks like this.
Copy code
# journalctl
No journal files were found.
j
how about inside /var/log/syslog?
e
also note that it's actually failing on "renaming the snapshot"
no such log.
This has happened a few times tonight already. I can restart the container after which it works for another 10-20 minutes.
j
Hmm, could you do
du -h /data
inside the container
e
message has been deleted
j
Ok that seems benign
I wonder if there's some permission issue then, that prevents the docker container from writing to the host disk?
Could you try creating say a 10MB file inside /data using say
dd
, from inside the container?
e
let me try that ... I'm not a Docker or linux pro, so hang on 🙂
yea copying a 14MB file to /data worked fine.
j
I'm running out of ideas... One last shot. Could you run
ls -haRl /data
when it's working fine, and then when you see an error, run the same command again and see if any of the permissions / file owners look different from before?
Another thing to try is to may be move the typesense-data dir on your host to a different location, outside of your project dir... I'm wondering if there's some process on the host that changes file permissions / ownership inside your project dir that's causing this issue inside the container
e
Ok. I will try those things. Thank you for your help. It's very appreciated.
👍 1