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'm deploying using docker-compose and trying to use SMB share to store all uploaded files. But this is impossible cause both the database and uploaded files are stored in /app/data resulting in locking issues with the database. It would be great if we could have a dedicated folder for uploaded files so we can mount a share if needed without touching the database.
I also played around with TMPDIR thinking I could maybe have uploads in a directory I specify here and simply mount SMB share there but I think that's not the purpose of this environment variable and it's just for storing data chunks during uploads, although please correct me if I'm wrong.
+ Error
Gokapi v1.8.0 starting
Saving new files to local storage
panic: database is locked (5) (SQLITE_BUSY)
goroutine 7 [running]:
github.com/forceu/gokapi/internal/helper.Check(...)
/compile/internal/helper/OS.go:62
github.com/forceu/gokapi/internal/configuration/database.GetAllMetadata()
/compile/internal/configuration/database/metadata.go:64 +0x478
github.com/forceu/gokapi/internal/storage.CleanUp(0x1)
/compile/internal/storage/FileServing.go:607 +0x85
created by main.main
/compile/cmd/gokapi/Main.go:56 +0x376
+ Issue
I'm deploying using docker-compose and trying to use SMB share to store all uploaded files. But this is impossible cause both the database and uploaded files are stored in
/app/data
resulting in locking issues with the database. It would be great if we could have a dedicated folder for uploaded files so we can mount a share if needed without touching the database.I also played around with
TMPDIR
thinking I could maybe have uploads in a directory I specify here and simply mount SMB share there but I think that's not the purpose of this environment variable and it's just for storing data chunks during uploads, although please correct me if I'm wrong.+ Error
+ docker-compose.yml
The text was updated successfully, but these errors were encountered: