g1y / crime-map

View a map of crime in San Luis Obispo
https://crime-map.g1y.io/
0 stars 1 forks source link

docker crime-map:log-parser missing sentry_sdk package #36

Open Rhinomcd opened 3 years ago

Rhinomcd commented 3 years ago

Steps to reproduce:

kubectl delete -f ../kubernetes/base/reparse-logs-job.yaml
kubectl create -f ../kubernetes/base/reparse-logs-job.yaml

pod="$(kubectl get pods | grep reparse-logs | awk '{print $1}')"
echo "Waiting for pod ${pod} to be Ready"
kubectl wait --for=condition=Ready "pod/${pod}"
kubectl logs -f "${pod}" 

Output:

(log-scraper) ➜  log-scraper git:(formatting-fixes) ✗ ./test.sh
job.batch "reparse-logs" deleted
job.batch/reparse-logs created
Waiting for pod reparse-logs-mmqlc to be Ready

error: timed out waiting for the condition on pods/reparse-logs-mmqlc
Traceback (most recent call last):
  File "reparse_logs.py", line 1, in <module>
    import sentry_sdk
ModuleNotFoundError: No module named 'sentry_sdk'

At a glance, things look fine. Pipfile should be handling the package and the Dockerfile for log-scraper uses pipenv.

Only guess right now is the public docker image is outdated

Alternative I could just have an environment issue.