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

Init process results in non-zero exit code #55

Open
trey-stafford opened this issue Sep 26, 2024 · 3 comments
Open

Init process results in non-zero exit code #55

trey-stafford opened this issue Sep 26, 2024 · 3 comments

Comments

@trey-stafford
Copy link

Running the init process with Docker results in a 137 exit code. No obvious errors are logged.

(base) vagrant@vmslushyport:~/Antarctica_Today$ docker compose run cli init all
2024-09-26 18:08:23.507 | INFO     | antarctica_today.nsidc_download_Tb_data:download_new_files:307 - Found 536 downloadable granules within the Antarctic melt season.

<...logs snipped...>

2024-09-26 18:53:51.503 | DEBUG    | antarctica_today.generate_antarctica_today_map:_read_baseline_map_picklefile:571 - Reading /app/qgis/basemap_picklefiles/basemap_region_0_anomaly.pickle
2024-09-26 18:53:51.546 | DEBUG    | antarctica_today.compute_mean_climatology:read_daily_sum_melt_averages_picklefile:249 - Reading /data/database/gap_fill_data/daily_cumulative_melt_averages.pickle
2024-09-26 18:53:52.230 | DEBUG    | antarctica_today.melt_array_picklefile:read_model_array_picklefile:173 - Reading v3_1979-present_raw.pickle...
(base) vagrant@vmslushyport:~/Antarctica_Today$ echo $?
137

We should return a non-0 exit code if the process completed successfully.

@mfisher87
Copy link
Contributor

Could be memory? How much memory are you running with? Are you seeing oomkiller messages in kernel logs? See #18 for more on the current memory limitations of this software

@trey-stafford
Copy link
Author

Confirming that #18 is likely the culprit:

[156104.111631]  out_of_memory+0x106/0x2e0
[156104.111993] Out of memory: Killed process 59120 (python) total-vm:27372200kB, anon-rss:24053468kB, file-rss:0kB, shmem-rss:4kB, UID:0 pgtables:51476kB oom_score_adj:0

This is on a VM allocated with 24GB of memory.

@mfisher87
Copy link
Contributor

I had a bad feeling that was it :X

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

No branches or pull requests

2 participants