You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
When using an external docker mount (on a different device than the docker image) (as seen here: plausible/community-edition#163 (comment)) the import / export does not work.
A quick chat with ChatGPT revealed that rename is not capable of moving a file past device boundaries. Thus the cp was suggested.
Use of mv or cp Instead of rename: Instead of using the rename function, which fails across devices or mounts, ensure that cp (copy) and rm (remove) are used to move files from /tmp to /var/lib/plausible/.
Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
When using an external docker mount (on a different device than the docker image) (as seen here: plausible/community-edition#163 (comment)) the import / export does not work.
The following error is shown in the logs:
A quick chat with ChatGPT revealed that
rename
is not capable of moving a file past device boundaries. Thus thecp
was suggested.My understanding is that just the following three locations would need to be adjusted: https://github.com/search?q=repo%3Aplausible%2Fanalytics%20File.rename&type=code. Is that correct? I guess the mv function does not exist in Elixir thus a cp / rm solution would be required.
Expected behavior
Import / Export works even if data is stored on a different device than Docker Image itself.
Screenshots
No response
Environment
The text was updated successfully, but these errors were encountered: