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

Crawler with MechanicalSoup not starting on Kubernetes? #421

Open
st3fus opened this issue Aug 25, 2023 · 2 comments
Open

Crawler with MechanicalSoup not starting on Kubernetes? #421

st3fus opened this issue Aug 25, 2023 · 2 comments

Comments

@st3fus
Copy link

st3fus commented Aug 25, 2023

So, basically, I run my dockerized crawlers on Kubernetes cluster with help of ArgoCD. Rest of my 60 crawlers work just fine, but for this two new crawlers I decided to try MechanicalSoup instead of Selenium WebDriver.

The issue I have, is that those two crawlers are not starting at all. No errors, nothing, it just hangs and doesn't start. I tried pulling the docker image and running it with docker compose, crawler works perfectly fine. What could be the issue with it being ran on Pod in Kubernetes cluster?

Thanks

@hemberger
Copy link
Contributor

Hi, and thanks for your interest in MechanicalSoup! Unfortunately, I have no experience with Kubernetes, and I can't even think of where to start to debug an issue that has no errors or output. The most important thing to do would be to figure out where it is hanging. Can you perhaps run the command with strace?

@moy
Copy link
Collaborator

moy commented Aug 28, 2023

Same here :-(.

If it's not starting at all, I'd suggest adding a trivial debug statement (print("starting") or so) at the very beginning of the main function of your code to check whether you enter the main function or not. Also try to run a trivial program importing the mechanicalsoup package (just the import statement and a print statement), to see if the problem is the import statement.

Check the sheebang of your program (#!/usr/bin/env python3 ?) is it pointing to a version of Python available on your system?

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

3 participants