error when python open chromedriver #2221
Lancelot65
started this conversation in
General
Replies: 1 comment
-
The problem might be related the sessions. Crontab runs in a minimal environment, which is very different from an ssh session. I would try making a script that I launch in a screen (with while true; do
echo "[$(date)] Running script..."
python ... # run your python here the same you would call from the cron
sleep 300 # for example wait 5 minutes
done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm having an issue with undetected_chromedriver when running a script through crontab. In the logs, I get:
INFO:undetected_chromedriver.patcher:patching driver executable /home/melocal/share/chromedriver_copy
and after
Service /home/me/.local/share/chromedriver_copy unexpectedly exited. Status code was: 1
The problem is:
Anyone faced this? Maybe it's related to environment variables or the way undetected_chromedriver patches the driver when used from crontab?
Thanks in advance for your help! 🙏
Beta Was this translation helpful? Give feedback.
All reactions