Coder Social home page Coder Social logo

dnspod-ddns's People

Contributors

ikuiki avatar snomiao avatar strahe avatar zuosc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dnspod-ddns's Issues

ubuntu 16.04 docker 无法启动

$ 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

SSLV3_ALERT_HANDSHAKE_FAILURE 疑似由 DNSPOD 升级引起

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)>

docker container 报错停止运行

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

ctrl + c 无法停止 ddns

环境:
树莓派 3,python3.5

启动:
python3 ./ddns.py

使用 ctrl + z 可以正常停止程序。

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.