ckan / ckan/example-earthquake-datastore

Cron initiation fails at config.ini read

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6
Forks
9
PR merge metrics
No merged PRs in 30d

Description

> ConfigParser.NoSectionError: No section: 'main'

I have had to place the path for the config.ini file in the crontab PATH, or hard code into the function reference for config.ini in datastore_updater.py

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect datastore_updater.py and config.ini to trace how the configuration path is resolved when the script runs from cron. Reproduce the NoSectionError in the cron environment and compare it with an interactive run. Done means cron can locate config.ini and read the main section without adding the path to crontab or hard-coding it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.