feapder icon indicating copy to clipboard operation
feapder copied to clipboard

任务线程和爬虫线程常驻,第一次运行结束后运行第二天的任务时入库不成功,报mysqldb错误

Open cidiry opened this issue 1 year ago • 4 comments

|mysqldb.py|add_batch|line:291|ERROR| error:'MysqlDB' object has no attribute 'connect_pool'

重启爬虫线程后入库正常 咋回事呢

cidiry avatar Feb 26 '25 02:02 cidiry

same problem

conn = self.connect_pool.connection(shareable=False)
AttributeError: 'MysqlDB' object has no attribute 'connect_pool'

malone6 avatar Mar 18 '25 16:03 malone6

你有创建全局配置文件吗 连接数据库之前请在终端->feapder create --setting

leavedrop avatar Mar 18 '25 23:03 leavedrop

这个问题有解决吗?我也遇到了 'MysqlDB' object has no attribute 'connect_pool'

shengdanjingmo avatar Apr 13 '25 03:04 shengdanjingmo

我的目前解决办法就是把入库间隔时间设置长一点 应该就是链接数据库太频繁 ITEM_UPLOAD_INTERVAL = 600

cidiry avatar Apr 27 '25 09:04 cidiry