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

Images from local cloud cannot be loaded #11

Closed
DOMINICQQQ opened this issue Jun 30, 2022 · 12 comments
Closed

Images from local cloud cannot be loaded #11

DOMINICQQQ opened this issue Jun 30, 2022 · 12 comments

Comments

@DOMINICQQQ
Copy link

DOMINICQQQ commented Jun 30, 2022

I successfully built and deployed the docker container and the front end seems to be working well.
maybe something was wrong.
1

@KOREAN139
Copy link
Contributor

KOREAN139 commented Jun 30, 2022

Maybe this can be solved with proxy setting, i will make PR of this @YuqiHuai (If it's CORS related 😆 )

@KOREAN139
Copy link
Contributor

@DOMINICQQQ What does console says when this happens? You can see the logs from developer tools of your browser.

@DOMINICQQQ
Copy link
Author

@KOREAN139 These two errors are the main ones.
2

@KOREAN139
Copy link
Contributor

@DOMINICQQQ Did you download the assets from google drive as written in README.md ?

@DOMINICQQQ
Copy link
Author

yes.this is assets
3

@KOREAN139
Copy link
Contributor

KOREAN139 commented Jun 30, 2022

@DOMINICQQQ I just made a PR #12, can you check out the PR version and share the results?

@YuqiHuai
Copy link
Owner

Hi! Not sure why this would happen ... Don't think it is related to CORS because this didn't happen before and I've talked with a few others previously ...

Try to look at the following:

@DOMINICQQQ
Copy link
Author

Hi!The first one my result is: Not found.
there are 6 files in server/assets/preview/maps/b819be12-5d1e-416b-8d19-609f54f50323
4
And I also can't seem to launch via the Phthon API

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jul 1, 2022

Hi. It looks like things are set up correctly. I cannot figure out why this is happening to you. Something about the server is wrong, but then I cannot explain why the front end shows any data at all.

Can we schedule some time over the weekend to do a Zoom 1-on-1 meeting so I can look at your system and determine what is going on?

@DOMINICQQQ
Copy link
Author

Hi, when are you free this weekend, we can see what's going on, if it's not a hassle for you.

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jul 3, 2022

To verify server container can access the asset files (maps, plugins, and previews), run

docker exec -it sorasvl-server /bin/bash

and verify assets directory exists and there are files under assets.

In this project, the assets directory is mounted to a location in the server container by line

- ./server/assets:/workdir/assets

Some Docker permission issues prevented this mounting to be done thus causing server to return NotFound when trying to access assets and previews.

@YuqiHuai
Copy link
Owner

YuqiHuai commented Jul 8, 2022

The issues was resolved. For some reason Docker could not mount directories in the Desktop directory, which caused the server container unable to access asset directory.

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

No branches or pull requests

3 participants