Closed zasl closed 4 years ago
@zasl 公开模板不需要注册admin。500的话上传日志看看。
root@N1:~# docker logs qiandao [I 200915 16:14:39 run:55] http server started on 0.0.0.0:80 [I 200915 16:14:43 web:2064] 302 GET / (172.31.0.1) 6.90ms [I 200915 16:14:43 web:2064] 302 GET /my/ (172.31.0.1) 5.53ms [I 200915 16:14:43 web:2064] 200 GET /login (172.31.0.1) 248.51ms [I 200915 16:14:49 web:2064] 302 POST /register (172.31.0.1) 648.53ms [I 200915 16:14:49 utils:177] no smtp [I 200915 16:14:49 web:2064] 200 GET /my/ (172.31.0.1) 271.06ms [E 200915 16:14:51 web:1591] Uncaught exception GET /subscribe/ (172.31.0.1) HTTPServerRequest(protocol='http', host='192.168.2.1:18888', method='GET', uri='/subscribe/', version='HTTP/1.1', remote_ip='172.31.0.1', headers={'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en-GB;q=0.7,en-US;q=0.6,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.2.1:18888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'Referer': 'http://192.168.2.1:18888/my/', 'Cookie': '_xsrf=2|f801fa66|9aeba6c139d0a86ce0c651ef603423bf|1600157325; user="2|1:0|10:1600157689|4:user|68:hMQEcm9sZcDECG5pY2tuYW1lwMQCaWQBxAVlbWFpbLMyNTE3NTAzMzMzMzNAcXEuY29t|cfab8ddcb8107354de326574bca73a1c808db8a0a30a72f4b83a52af0450b93c"', 'Upgrade-Insecure-Requests': '1'}) Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute result = method(*self.path_args, self.path_kwargs) File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1768, in wrapper return method(self, *args, *kwargs) File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2898, in wrapper return method(self, args, kwargs) File "/usr/src/app/web/handlers/subscribe.py", line 42, in get res = requests.get(url, verify=False) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 76, in get return request('get', url, params=params, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) ConnectionError: HTTPSConnectionPool(host='gitee.com', port=443): Max retries exceeded with url: /api/v5/repos/qiandao-today/templates/readme (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff81c57310>: Failed to establish a new connection: [Errno 111] Connection refused',)) [E 200915 16:14:51 web:1591] Uncaught exception GET /subscribe/ (172.31.0.1) HTTPServerRequest(protocol='http', host='192.168.2.1:18888', method='GET', uri='/subscribe/', version='HTTP/1.1', remote_ip='172.31.0.1', headers={'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en-GB;q=0.7,en-US;q=0.6,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.2.1:18888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'Referer': 'http://192.168.2.1:18888/my/', 'Cookie': '_xsrf=2|f801fa66|9aeba6c139d0a86ce0c651ef603423bf|1600157325; user="2|1:0|10:1600157689|4:user|68:hMQEcm9sZcDECG5pY2tuYW1lwMQCaWQBxAVlbWFpbLMyNTE3NTAzMzMzMzNAcXEuY29t|cfab8ddcb8107354de326574bca73a1c808db8a0a30a72f4b83a52af0450b93c"', 'Upgrade-Insecure-Requests': '1'}) Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute result = method(*self.path_args, self.path_kwargs) File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1768, in wrapper return method(self, *args, *kwargs) File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2898, in wrapper return method(self, args, kwargs) File "/usr/src/app/web/handlers/subscribe.py", line 42, in get res = requests.get(url, verify=False) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 76, in get return request('get', url, params=params, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) ConnectionError: HTTPSConnectionPool(host='gitee.com', port=443): Max retries exceeded with url: /api/v5/repos/qiandao-today/templates/readme (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff81c57310>: Failed to establish a new connection: [Errno 111] Connection refused',)) [E 200915 16:14:51 web:2064] 500 GET /subscribe/ (172.31.0.1) 42.82ms [E 200915 16:14:51 web:2064] 500 GET /subscribe/ (172.31.0.1) 42.82ms [I 200915 16:14:59 web:2064] 200 GET /pushs (172.31.0.1) 205.90ms
麻烦您看下,N1刷的openwrt
@zasl 显示是打开不gitee, 你可以再openwrt中试试curl能不能正常打开 https://gitee.com/qiandao-today/templates。然后防火墙上要放行。
好的,我尝试一下,我是从b站的教程中知道这里的,看到b站的回复有群晖跟我情况是一样的。我现在重新安装去。
小白一个,您看下我这个是可以的吗?如果可以,请问如何防火墙放行?
root@N1:~# curl https://gitee.com/qiandao-today/templates <!DOCTYPE html>
呆贼
Tips:
你可以在登录后,发表评论
@zasl https://github.com/coolsnowwolf/lede/issues/1760 参考这个最下面的试试,我没有你所说的设备,网络问题我无法帮你解决
@zasl coolsnowwolf/lede#1760 参考这个最下面的试试,我没有你所说的设备,网络问题我无法帮你解决
谢谢您 但是按照那个方法没有解决。
解决了解决了,谢谢您,按照那个方法解决了,我接受转发的选项选错了。
解决了解决了,谢谢您,按照那个方法解决了,我接受转发的选项选错了。
我也遇到了同样的问题。点击公共模板就弹500。N1的docker环境,想详细了解你是怎么解决的,我是个小白
求助 N1 armbian5.77+docker 签到6.24 下载安装还是好的, 今天重装了下, 安装签到就报错了,已经重装2遍了。 Traceback (most recent call last): File "/usr/src/app/web/handlers/subscribe.py", line 66, in get self.db.pubtpl.add(har) File "/usr/src/app/db/pubtpl.py", line 31, in add return self._insert(**insert) File "/usr/src/app/db/basedb.py", line 102, in _insert dbcur = self._execute(sql_query, values.values()) File "/usr/src/app/db/basedb.py", line 40, in _execute dbcur.execute(sql_query, values) OperationalError: table pubtpl has no column named commenturl 只要一打开公共模板就报这个错。
第一次按照,按照教程,也按照6.14注册admin,但是点击公开模板就是500