Skip to content

Gitbase doesn't work on windows with mounted directory for indexes #747

Closed
@smacker

Description

@smacker

Gitbase 0.19.0.

Screenshots because it's hard to copy-past from remote windows console.

Client:
Screenshot 2019-03-22 at 16 18 34

Server:
Screenshot 2019-03-22 at 16 17 19
Screenshot 2019-03-22 at 16 18 02

The error:

unable to save the index
open file: open ...: invalid argument

But the file is actually created on host file system:
Screenshot 2019-03-22 at 16 33 19

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.

Metadata

Metadata

Assignees

Labels

3rd-partyblockedSome other issue is blocking thisbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions