"unable to open database file" with CACHE_DIR set #743
Labels
No labels
MediaFlow Proxy
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
help wanted
invalid
question
wontfix
🇩🇪 German
🇫🇷 French
🇮🇳 Indian
🇸🇦 Arabic
🌐 Multi
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/webstreamr-github#743
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I selfhost webstreamr as part of viren's docker-compose-template. I wanted to try setting CACHE_DIR for persistent cache, but get:
I tried adding PUID and PGID to the compose. Set permissions, etc.
The compose looks like this:
If there's anything that needs to change let me know!
interesting. that caching lib is a bit weird also. I'm not sure if it can create directories for example, does that one exist already?
Yeah I made the directories to see if that would work but same error unfortunately
what you could alternatively do: add a volume mount for /tmp as https://github.com/webstreamr/webstreamr?tab=readme-ov-file#self-hosting does. that would also persist the cache.
the value of the
CACHE_DIRenv var is used internally in the container. and I'm not sure this is what you want here in your case.Sounds good, yeah set up the volume as:
And that's working well. I'd say unless you want to keep this issue open for looking into
CACHE_DIR, we can close this. My assumption was thatCACHE_DIRdoes the same thing as mounting the/tmpvolume.perfect, thx!
@derrickb I think it might be a good idea to add it to the template from Viren in case you're not doing that already :)
Definitely, I'll send a PR :)