Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Project root does not exist" #4

Open
FunkeMT opened this issue Nov 25, 2020 · 0 comments
Open

Error "Project root does not exist" #4

FunkeMT opened this issue Nov 25, 2020 · 0 comments

Comments

@FunkeMT
Copy link

FunkeMT commented Nov 25, 2020

Hi,

by running the application with the provided docker-compose file I get the following error as response:

Error

config:
    adapter: ƒ (t)
    data: undefined
    headers: {Accept: "application/json, text/plain, */*"}
    maxContentLength: -1
    method: "get"
    params: {projectType: "LOCAL", basePath: "", projectRoot: "/Users/xy/data/smallsql0.21_src", cloneType: "ONE", similarityThreshold: "0", …}
    timeout: 0
    transformRequest: [ƒ]
    transformResponse: [ƒ]
    url: "http://localhost:8888/analysis"
    validateStatus: ƒ (t)
    xsrfCookieName: "XSRF-TOKEN"
    xsrfHeaderName: "X-XSRF-TOKEN"
    __proto__: Object
data: "Project root does not exist"
headers: {content-length: "27", content-type: "text/plain; charset=UTF-8"}
request: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
status: 400
statusText: "Bad Request"
__proto__: Object

Environment

Docker Engine
v19.03.13

macOS
Version 10.15.7 (19H15)

Chrome
Version 87.0.4280.67 (Official Build) (x86_64)

Solution

Could it be the case that Docker does not have the permissions to access the file-system outside of the mounted volume?

For me, changing the mounted volume to the current path worked:

e.g.
docker-compose.yml

...
    volumes:
      - $PWD/data:/app/projects/
...

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant