Closed
Description
Gitbase 0.19.0.
Screenshots because it's hard to copy-past from remote windows console.
The error:
unable to save the index
open file: open ...: invalid argument
But the file is actually created on host file system:
I tried to read the source code and see where the error can come from. I found this line: https://github.com/pilosa/pilosa/blob/f2994736585a8aafc2f2c47c3698b7acd3b95373/fragment.go#L199 which looks like the right place.
I tried to reproduce it by creating simple script and running it inside docker with mounted directory:
package main
import (
"fmt"
"os"
)
func main() {
asPilosa := "/mounted/asPilosa"
_, err := os.OpenFile(asPilosa, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
fmt.Printf("open file as pilosa: %s\n", err)
}
}
but no luck. It creates the file without error.
It's super inconvinient to debug inside remote desktop. So I didn't go further by rebuilding gitbase with extra debug messages.