strahe / dnspod-ddns Goto Github PK
View Code? Open in Web Editor NEW定时检查ip变化并更新dnspod的解析记录.
License: Apache License 2.0
定时检查ip变化并更新dnspod的解析记录.
License: Apache License 2.0
$ sudo docker logs a70211ceb4e7
Traceback (most recent call last):
File "ddns.py", line 13, in
from config import read_config, save_config, check_config, cfg
ModuleNotFoundError: No module named 'config'
Traceback (most recent call last):
File "ddns.py", line 13, in
from config import read_config, save_config, check_config, cfg
ModuleNotFoundError: No module named 'config'
Traceback (most recent call last):
File "ddns.py", line 13, in
from config import read_config, save_config, check_config, cfg
ModuleNotFoundError: No module named 'config'
Traceback (most recent call last):
File "ddns.py", line 13, in
from config import read_config, save_config, check_config, cfg
ModuleNotFoundError: No module named 'config'
Traceback (most recent call last):
File "ddns.py", line 13, in
from config import read_config, save_config, check_config, cfg
ModuleNotFoundError: No module named 'config'
需要什么信息请补充
在群晖上跑docker,不管是用挂载配置文件还是传递环境变量,总是报下面的错。想确认下问题。麻烦帮看一下。谢谢
INFO: start...
Traceback (most recent call last):
File "ddns.py", line 115, in
read_config_to_env()
File "ddns.py", line 30, in read_config_to_env
os.environ['RECORD_ID'] = record_id
File "/usr/local/lib/python3.6/os.py", line 674, in setitem
value = self.encodevalue(value)
File "/usr/local/lib/python3.6/os.py", line 742, in encode
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType
Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 1261, in connect
server_hostname=server_hostname)
File "/usr/lib/python3.5/ssl.py", line 385, in wrap_socket
_context=self)
File "/usr/lib/python3.5/ssl.py", line 760, in init
self.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 996, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 641, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:720)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ddns.py", line 109, in
loop.run_until_complete(main())
File "ddns.py", line 77, in main
update_record()
File "ddns.py", line 53, in update_record
resp = request.urlopen(req).read().decode()
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:720)>
2019-03-17 20:06:29,124 INFO : record updated: {'status': {'code': '8', 'message': 'Record id invalid', 'created_at': '2019-03-18 04:06:29'}}
Traceback (most recent call last):
File "ddns.py", line 108, in
loop.run_until_complete(main())
File "ddns.py", line 77, in main
save_config()
File "/app/config.py", line 88, in save_config
save_config_to_env()
File "/app/config.py", line 98, in save_config_to_env
os.environ[key] = cfg[key]
File "/usr/local/lib/python3.7/os.py", line 683, in setitem
value = self.encodevalue(value)
File "/usr/local/lib/python3.7/os.py", line 753, in encode
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType
环境:
树莓派 3,python3.5
启动:
python3 ./ddns.py
使用 ctrl + z 可以正常停止程序。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.