Intermittent “getrandom() initialization failed” using scrapy spider

后端 未结 1 1786
攒了一身酷
攒了一身酷 2021-01-18 19:37

I built a scrapy spider (scrapy 1.4). This spider is triggered on demand from a django website through django-rq and supervisord.

Here is the supervisord job that is

相关标签:
1条回答
  • 2021-01-18 19:52

    I had similar error, but with python-requests library:

    Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)
    

    This was caused by random number generator that failed to gather enough entropy in time. I've installed rng-tools and it solved the problem.

    0 讨论(0)
提交回复
热议问题