【待反馈】添加计划任务不成功,报错
<gevent._socket3.socket at 0x7fb11093a520 object, fd=6, family=2, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x00î\x01\x00\x00ê\x03\x03Ð~ãÝÃ\x99\x807¾åT\x956~ÿ\x07Û\x9d\x82\x85J\xad@e^S\t\x15º\x88¼\x88 Â\x05\x07pZ}\x0b·»0?e\x92J\x8e&£Å0bø5\x04à\x9e¶\x85¨\x8b©o5\x00&̨̩À/À0À+À,À\x13À\tÀ\x14À\n' - Exception on /crontab Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 1850, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 1797, in run result = getattr(toObject,get.action)(get)File "class/crontab.py", line 227, in AddCrontab if len(get['name'])<1:TypeError: object of type 'NoneType' has no len()During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/formparser.py", line 140, in wrapper return f(self, stream, *args, **kwargs)File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/formparser.py", line 316, in _parse_urlencoded form = url_decode_stream(stream, self.charset, errors=self.errors, cls=self.cls)File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/urls.py", line 907, in url_decode_stream return cls(decoder)File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/datastructures.py", line 346, in __init__ for key, value in mapping or ():File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/urls.py", line 913, in _url_decode_impl for pair in pair_iter:File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/wsgi.py", line 820, in make_chunk_iter first_item = next(_iter, b"")File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/wsgi.py", line 689, in _make_chunk_iter item = _read(buffer_size)File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 320, in read return self._do_read(length)File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 199, in _do_read raise IOError("unexpected end of file while reading request at position %s" % (self.position,))OSError: unexpected end of file while reading request at position 0During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e)File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 774, in crontab return publicObject(crontabObject, defs, None, pdata)File "/www/server/panel/BTPanel/__init__.py", line 1854, in publicObject return error_500(None)File "/www/server/panel/BTPanel/__init__.py", line 280, in error_500 _form = request.form.to_dict()File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/utils.py", line 109, in __get__ value = self.fget(obj)# type: ignoreFile "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/wrappers/request.py", line 436, in form self._load_form_data()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/wrappers.py", line 112, in _load_form_data super()._load_form_data()File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/wrappers/request.py", line 278, in _load_form_data self.mimetype_params,File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/formparser.py", line 268, in parse return parse_func(self, stream, mimetype, content_length, options)File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/formparser.py", line 148, in wrapper chunk = stream.read(1024 * 64)File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 320, in read return self._do_read(length)File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 199, in _do_read raise IOError("unexpected end of file while reading request at position %s" % (self.position,))OSError: unexpected end of file while reading request at position 0Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 1850, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 1797, in run result = getattr(toObject,get.action)(get)File "class/crontab.py", line 227, in AddCrontab if len(get['name'])<1:TypeError: object of type 'NoneType' has no len()During handling of the above exception, another exception occurred:查看面板日志如上 您好,您到服务器终端执行此命令进行重启一下周期计划任务
systemctl restart crond
再将任务删除重新添加 ,再观察是否正常,若还是不行的话则去终端执行systemctl status crond截图看一下命令的执行结果
页:
[1]