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 when running docker container #63

Closed
doncarlos999 opened this issue Jun 4, 2021 · 7 comments
Closed

Error when running docker container #63

doncarlos999 opened this issue Jun 4, 2021 · 7 comments

Comments

@doncarlos999
Copy link

Hi there,

Thanks for sharing azimuth.

I am trying to run azimuth on an AWS EC2 instance using a docker container built from the dockerfile in the repo. The shiny server runs successfully and I am able to connect via the website but as soon as I click on the azimuth page it goes grey and i see the following error messages in the terminal:
Screenshot 2021-06-04 at 14 33 40

I see that this error comes from line 208 in the server.R file and mentions demos. Do I need to include a demo file alongside the reference files or is there a way to disable the demo so that the app doesn't crash?

Thank you in advance.

@andrewwbutler
Copy link
Collaborator

Hi,

Yes, for now a demo dataset is required. We will look into making this optional so it doesn't crash without one but the easiest solution currently is to just specify a demo file (can just be a trivial/dummy dataset to get it running).

@doncarlos999
Copy link
Author

Thanks for the super quick response.
Where in the docker run command should I specify the demo dataset?

@andrewwbutler
Copy link
Collaborator

You can specify it in the AzimuthApp command. E.g.

docker run -it -p 3838:3838 -v /path/to/reference:/reference-data:ro azimuth R -e "Azimuth::AzimuthApp(reference = '/reference-data', demodataset = 'demo.rds')"

Alternatively, we often use a config file to specify a lot of these kinds of things. You can see examples of those in the azimuth-references repo --- e.g. here. In that case the docker command would look more like.

docker run -it -p 3838:3838 -v /path/to/reference:/reference-data:ro azimuth R -e "Azimuth::AzimuthApp(config='/reference-data/config.json')"

@doncarlos999
Copy link
Author

This solved the demo dataset problem. Thanks for that.
But now I get another error about missing homolog file:
"Homolog file doesn't exist at path provided:".
I manually downloaded the homolog file from 'https://seurat.nygenome.org/azimuth/references/homologs.rds' and added
homolog.table <- /path/to/homologs.rds; before the Azimuth run command but the error still appears. Is there a way to declare the path to the homolog file?
Thanks again for helping with this.

@andrewwbutler
Copy link
Collaborator

You should be able to specify it similarly to the demodataset. E.g.

docker run -it -p 3838:3838 -v /path/to/reference:/reference-data:ro azimuth R -e "Azimuth::AzimuthApp(reference = '/reference-data', demodataset = 'demo.rds', homologs = 'homologs.rds')"

@doncarlos999
Copy link
Author

Awesome, looks like it is working perfectly now. Thanks a lot for the help!

@andrewwbutler
Copy link
Collaborator

Closing this thread as providing a demodataset should be optional now on the develop branch as of (#64).

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

2 participants