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

Ingested data missing after restarting docker compose #1650

Closed
Manjeri-Rajan opened this issue Apr 27, 2020 · 12 comments · Fixed by #1669
Closed

Ingested data missing after restarting docker compose #1650

Manjeri-Rajan opened this issue Apr 27, 2020 · 12 comments · Fixed by #1669
Assignees
Labels
bug Bug report

Comments

@Manjeri-Rajan
Copy link

I have installed datahub in my machine and ingested Google Big Query data using my extraction script. But I am facing the below issue.
Due to less swap memory(980 MB), my system gets stuck after a certain time after data is ingested to datahub and I have to setup the docker compose again. This clears the already ingested data and I have run to the ingestion script again.

  • My understanding is that the volume sharing will save the ingested data locally. But the volume sharing for mysql and neo4j is not happening.

  • Also the elastic search volume sharing is giving me permission error(I had to comment out that piece of code to run the docker compose).

Is there an approach to avoid ingesting the already ingested data.

@Manjeri-Rajan Manjeri-Rajan added the bug Bug report label Apr 27, 2020
@mars-lan
Copy link
Contributor

Could you post the permission error you got for ES volume sharing?

@Manjeri-Rajan
Copy link
Author

Screenshot from 2020-04-15 17-58-45

@mars-lan
Copy link
Contributor

Are you using the quickstart script or manually doing docker-compose up?

@Manjeri-Rajan
Copy link
Author

I am using the quickstart script.

@mars-lan
Copy link
Contributor

I see. So did the script create /tmp/datahub/elasticsearch and set the permission to 777?

@Manjeri-Rajan
Copy link
Author

Manjeri-Rajan commented Apr 28, 2020 via email

@mars-lan
Copy link
Contributor

Hum this is strange. I'm unable to reproduce this from my end. Are you running on Mac or Linux?

Also could you try a clean checkout, clean up your docker setup and retry the quickstart script again just to be safe?

@Manjeri-Rajan
Copy link
Author

I am using linux system (Ubuntu 18.04.3 LTS).
docker compose version is 1.25.4.

I have tried after cleaning the docker containers but in vain.

mars-lan added a commit to mars-lan/datahub that referenced this issue May 8, 2020
Volume is the preferred method over bind mount (https://docs.docker.com/storage/volumes/) for persistent container data.
This also eliminate the need for the ugly chmod hack for elasticsearch and hopefully fix datahub-project#1650
mars-lan added a commit to mars-lan/datahub that referenced this issue May 8, 2020
Volume is the preferred method over bind mount (https://docs.docker.com/storage/volumes/) for persistent container data.
This also eliminate the need for the ugly chmod hack for elasticsearch and hopefully fix datahub-project#1650
mars-lan added a commit to mars-lan/datahub that referenced this issue May 8, 2020
Volume is the preferred method over bind mount (https://docs.docker.com/storage/volumes/) for persistent container data.
This also eliminates the need for the ugly chmod hack for elasticsearch and hopefully fixes datahub-project#1650
mars-lan added a commit that referenced this issue May 11, 2020
Volume is the preferred method over bind mount (https://docs.docker.com/storage/volumes/) for persistent container data.
This also eliminates the need for the ugly chmod hack for elasticsearch and hopefully fixes #1650
@mars-lan
Copy link
Contributor

@Manjeri-Rajan we have now changed the quickstart docker-compose from bind mount to named volume, which will hopefully fix this issue. Please give it a try and let us know how it goes.

@Manjeri-Rajan
Copy link
Author

Thanks Mars. Will take try it.

@Manjeri-Rajan
Copy link
Author

That worked. Thank you!

@mars-lan
Copy link
Contributor

Great to hear!

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

Successfully merging a pull request may close this issue.

2 participants