Comments (11)
看下日志有没有问题原因,可能是因为域名访问不到,或者字段缺失造成的
from domain-admin.
访问不了的域名筛选掉了,现在导入500条 报错 too many SQL variables
from domain-admin.
日志文件,logs/domain-admin.log 可以看下具体是哪里报的错误
from domain-admin.
2023-10-11 05:52:33 [INFO] domain_service.py/add_domain_from_file:
user_id: 1, filename: /root/Python-3.7.0/temp/0ffd401b-61af-426b-92e6-267f5ece85ab.txt
2023-10-11 05:52:33 [ERROR] handler.py/error_handler:
Traceback (most recent call last):
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: too many SQL variables
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/domain_admin/api/domain_api.py", line 351, in import_domain_from_file
domain_service.add_domain_from_file(filename, current_user_id)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/domain_admin/service/domain_service.py", line 385, in add_domain_from_file
DomainModel.insert_many(batch).on_conflict_ignore().execute()
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 1971, in inner
return method(self, database, *args, **kwargs)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2042, in execute
return self._execute(database)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2847, in _execute
return super(Insert, self)._execute(database)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2560, in _execute
cursor = database.execute(self)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3259, in execute
return self.execute_sql(sql, params)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3019, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 192, in reraise
raise value.with_traceback(tb)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: too many SQL variables
from domain-admin.
很奇怪,我同时导入10000+条也没有报错的
https://github.com/mouday/domain-admin/blob/master/tests/top-1m.txt
from domain-admin.
https://github.com/mouday/domain-admin/blob/master/tests/top-1m.txt直接下载你这个导入也报错
2023-10-11 08:17:40 [INFO] domain_service.py/add_domain_from_file:
user_id: 1, filename: /root/Python-3.7.0/temp/bdf58b3c-0d8d-4e87-9d89-5c5835c62952.txt
2023-10-11 08:18:00 [ERROR] handler.py/error_handler:
Traceback (most recent call last):
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: too many SQL variables
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/domain_admin/api/domain_api.py", line 351, in import_domain_from_file
domain_service.add_domain_from_file(filename, current_user_id)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/domain_admin/service/domain_service.py", line 385, in add_domain_from_file
DomainModel.insert_many(batch).on_conflict_ignore().execute()
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 1971, in inner
return method(self, database, *args, **kwargs)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2042, in execute
return self._execute(database)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2847, in _execute
return super(Insert, self)._execute(database)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 2560, in _execute
cursor = database.execute(self)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3259, in execute
return self.execute_sql(sql, params)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3019, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 192, in reraise
raise value.with_traceback(tb)
File "/root/Python-3.7.0/venv/lib/python3.7/site-packages/peewee.py", line 3251, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: too many SQL variables
from domain-admin.
用1Panel面板安装导入正常,前面用pip安装的一直不行
from domain-admin.
按理是一样的,1Panel面板也是用的Docker安装,如果需要监控的数量太多,建议换成mysql
https://domain-admin.readthedocs.io/zh_CN/latest/manual/install.html#id5
from domain-admin.
导入记录包括TXT和@记录会报错,是不是自动把这个忽略下
from domain-admin.
批量导入的吗?只支持能正常访问的域名,如果加记录识别会更慢的
from domain-admin.
批量导入的吗?只支持能正常访问的域名,如果加记录识别会更慢的
是的,当从阿里云的域名那边导出一个txt,然后在项目上导入会出现argument of type 'NoneType' is not iterable
看起来就是有些TXT记录【dns-auth】,或者@记录会有问题,删除文件里面的这些就没问题了
from domain-admin.
Related Issues (20)
- 通知修改建议 HOT 4
- docker客户端在申请ssl证书时不支持ftp部署方式吗? HOT 1
- 希望可以自动部署到远程URL
- .name域名无法正确获取信息 HOT 1
- .by域名无法获取信息 HOT 9
- 增加阿里云证书上传功能就完美了 HOT 5
- 不能使用 PostgreSQL 提示 `Postgres driver not installed!` HOT 5
- 发送邮件通知遇到问题 HOT 5
- Force desktop mode instead of H5 HOT 2
- Something is wrong with the style of the geek/Black skin 极客皮肤的样式有问题 HOT 1
- 登陆成功后不跳转也不报错 HOT 2
- 网站监控如何设置报警 HOT 4
- Docker-compose + MySQL HOT 1
- 最新版docker部署后打开页面时会卡在favicon.ico 30秒 HOT 3
- 域名查询信息有误 HOT 3
- .pro 的域名好像获取不到域名解析信息 HOT 2
- 那里能拿到前端源代码 HOT 1
- 使用 k8s 部署失败 HOT 4
- 企业微信通知提示isJson is not defined HOT 12
- 1.6.30 Docker版本邮件、企业微信推送问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from domain-admin.