I would like to integrate litestream with the epic-stack for db backup, but I’m unsure how to proceed with that.
Currently, I’m getting following error:
ERROR: cannot exec: sync cmd: cannot run command: exec: "litestream": executable file not found in $PATH
Any help would be appreciated.
Here is an isolated app with the changes I’ve made.
LukasPolak:main
← LukasPolak:feat/litestream
opened 07:19AM - 22 Oct 24 UTC
Integrate litestream with the [epic-stack](https://github.com/epicweb-dev/epic-s… tack)
**Issues:**
- How to make `litestream` executable in $PATH (See "Grafana logs" bellow)
**Questions:**
1. Do I need to specify `if-candidate: true` when running litestream?
1. Do I need to specify `meta-path` in the litestream configuration file?
---
Grafana logs:
```
level=INFO msg="executing command: litestream [replicate -exec spacebrains-staging]"
ERROR: cannot exec: sync cmd: cannot run command: exec: "litestream": executable file not found in $PATH
```
I’ve followed following doc: Backing up your LiteFS cluster · Fly Docs
Hi… Remember that that part of the docs site habitually leaves a lot of things implicit, . (It doesn’t mention that you need to install the litestream
binary as an additional step in your Dockerfile, for example.)
Also definitely do heed its warning:
This approach only works if you are running a static lease on your cluster.
(Your litefs.yml
still has type: 'consul'
—if I’m reading the intended branch.)
Have you seen the newly announced, Consul-friendly alternative?
https://community.fly.io/t/litefs-backup-drop-in-replacement-for-litefs-cloud/22267
It looks promising, although I haven’t delved into it myself yet…
1 Like
Ah, you’re right. I thought I was on a static lease and didn’t realize that using Consul is an “either-or” situation.
I think my last option is to use litefs-backup
then
1 Like
system
Closed
October 31, 2024, 11:40am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.