Skip to content

"Not a directory" when trying to start josh #1032

Closed
@RalfJung

Description

@RalfJung

I have always started josh as follows when running the proxy locally:

cargo run --release -p josh-proxy -- --local=$(pwd)/local --remote=https://github.com --no-background

However somehow that does not seem to work any more? I just updated to latest master, and when I do this now, I get the following:

2022-11-15T15:47:23.132082Z DEBUG josh_proxy: init mirror repo: "/home/r/src/rust/josh/local/mirror"
2022-11-15T15:47:23.178500Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "http.receivepack", "true"] env=[]
2022-11-15T15:47:23.181509Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "user.name", "josh"] env=[]
2022-11-15T15:47:23.184226Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "user.email", "[email protected]"] env=[]
2022-11-15T15:47:23.186698Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "uploadpack.allowAnySHA1InWant", "true"] env=[]
2022-11-15T15:47:23.189425Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "uploadpack.allowReachableSHA1InWant", "true"] env=[]
2022-11-15T15:47:23.191771Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "uploadpack.allowTipSha1InWant", "true"] env=[]
2022-11-15T15:47:23.195140Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "receive.advertisePushOptions", "true"] env=[]
2022-11-15T15:47:23.197997Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "gc.auto", "0"] env=[]
2022-11-15T15:47:23.200438Z TRACE command_env: josh::shell: stdout="" stderr="" cmd=["git", "config", "credential.helper", "!f() { echo username=\"${GIT_USER}\"; echo password=\"${GIT_PASSWORD}\"; }; f"] env=[]
2022-11-15T15:47:23.200474Z ERROR josh: item=Os { code: 20, kind: NotADirectory, message: "Not a directory" } error=true

Sadly it does not say what is not a directory, so I don't know what is going wrong.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions