Giter VIP home page Giter VIP logo

Comments (11)

mouday avatar mouday commented on June 3, 2024

看下日志有没有问题原因,可能是因为域名访问不到,或者字段缺失造成的

from domain-admin.

junxiongpeng avatar junxiongpeng commented on June 3, 2024

访问不了的域名筛选掉了,现在导入500条 报错 too many SQL variables

from domain-admin.

mouday avatar mouday commented on June 3, 2024

日志文件,logs/domain-admin.log 可以看下具体是哪里报的错误

from domain-admin.

junxiongpeng avatar junxiongpeng commented on June 3, 2024

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.

mouday avatar mouday commented on June 3, 2024

很奇怪,我同时导入10000+条也没有报错的
https://github.com/mouday/domain-admin/blob/master/tests/top-1m.txt

from domain-admin.

junxiongpeng avatar junxiongpeng commented on June 3, 2024

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.

junxiongpeng avatar junxiongpeng commented on June 3, 2024

用1Panel面板安装导入正常,前面用pip安装的一直不行

from domain-admin.

mouday avatar mouday commented on June 3, 2024

按理是一样的,1Panel面板也是用的Docker安装,如果需要监控的数量太多,建议换成mysql
https://domain-admin.readthedocs.io/zh_CN/latest/manual/install.html#id5

from domain-admin.

CaoYunzhou avatar CaoYunzhou commented on June 3, 2024

导入记录包括TXT和@记录会报错,是不是自动把这个忽略下

from domain-admin.

mouday avatar mouday commented on June 3, 2024

批量导入的吗?只支持能正常访问的域名,如果加记录识别会更慢的

from domain-admin.

CaoYunzhou avatar CaoYunzhou commented on June 3, 2024

批量导入的吗?只支持能正常访问的域名,如果加记录识别会更慢的

是的,当从阿里云的域名那边导出一个txt,然后在项目上导入会出现argument of type 'NoneType' is not iterable
看起来就是有些TXT记录【dns-auth】,或者@记录会有问题,删除文件里面的这些就没问题了

from domain-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.