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

[Bug] "python manage.py cities_light" getting killed when downloading alternateNames.zip #271

Open
roniemartinez opened this issue Aug 8, 2022 · 0 comments

Comments

@roniemartinez
Copy link

roniemartinez commented Aug 8, 2022

After taking a long time to run python manage.py cities_light --progress, it gets killed before it can download the alternate names. Here are the logs - it's just showing Killed at the end and not very helpful:

Saving St Marys, Georgia, United States failed: IntegrityError('duplicate key value violates unique constraint "cities_light_city_region_id_subregion_id_slug_efb2e768_uniq"\nDETAIL:  Key (region_id, subregion_id, slug)=(3600, 40384, st-marys) already exists.\n')
RAM used: 129 MB ETA:   0:00:16 Done:  98%|#############################################################################################################################################################################################################################    |
Saving Santa Ana, Táchira, Venezuela failed: IntegrityError('duplicate key value violates unique constraint "cities_light_city_region_id_subregion_id_name_cdfc77ea_uniq"\nDETAIL:  Key (region_id, subregion_id, name)=(3689, 43739, Santa Ana) already exists.\n')
RAM used: 129 MB Time:  0:21:05 Done: 100%|#################################################################################################################################################################################################################################|
Killed

Upon checking the downloaded files, alternateNames.zip file size is 0. I tried to remove it then rerun again but it keeps on happening.

The temporary solution that solved it is downloading the zip file manually into the data directory using curl and then re-running the management command.

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