zhayujie / bot-on-anything

Connect AI models (like ChatGPT-3.5/4.0, Baidu Yiyan, New Bing, Bard) to apps (like Wechat, public account, DingTalk, Telegram, QQ). 将 ChatGPT、必应、文心一言、谷歌Bard 等对话模型连接各类应用,如微信、公众号、QQ、Telegram、Gmail、Slack、Web、企业微信、飞书、钉钉等。
MIT License
3.89k stars 911 forks source link

我在接微信公众号报错了,贴主能不能帮忙看看错在哪? #159

Open fattank opened 1 year ago

fattank commented 1 year ago

[INFO][2023-03-18 14:25:19][log.py:34] - [INIT] Start up: chatgpt on wechat_mp [INFO][2023-03-18 14:25:19][wechat_mp_channel.py:44] - [WX_Public] Wechat Public account service start! Bottle v0.12.25 server starting up (using AutoServer())... Listening on http://0.0.0.0:80/ Hit Ctrl-C to quit.

[ERROR][2023-03-18 14:25:19][log.py:45] - App startup failed! [ERROR][2023-03-18 14:25:19][log.py:50] - [Errno 13] Permission denied Traceback (most recent call last): File "app.py", line 21, in channel.startup() File "/home/tank/Downloads/bot-on-anything-master/channel/wechat/wechat_mp_channel.py", line 47, in startup robot.run() File "/home/tank/.local/lib/python3.8/site-packages/werobot/robot.py", line 686, in run self.wsgi.run(server=server, host=host, port=port) File "/home/tank/.local/lib/python3.8/site-packages/bottle.py", line 767, in run run(self, kwargs) File "/home/tank/.local/lib/python3.8/site-packages/bottle.py", line 3175, in run server.run(app) File "/home/tank/.local/lib/python3.8/site-packages/bottle.py", line 3026, in run return sa(self.host, self.port, self.options).run(handler) File "/home/tank/.local/lib/python3.8/site-packages/bottle.py", line 2801, in run srv = make_server(self.host, self.port, app, server_cls, handler_cls) File "/usr/lib/python3.8/wsgiref/simple_server.py", line 154, in make_server server = server_class((host, port), handler_class) File "/usr/lib/python3.8/socketserver.py", line 452, in init self.server_bind() File "/usr/lib/python3.8/wsgiref/simple_server.py", line 50, in server_bind HTTPServer.server_bind(self) File "/usr/lib/python3.8/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) PermissionError: [Errno 13] Permission denied

RegimenArsenic commented 1 year ago

可能你的80端口被别的进程占用了

fattank commented 1 year ago

谢谢,已经看到了,换回8080服务就正常了,但是公众号只能用80,还不知道那个nginx反向怎么配置。

RegimenArsenic @.***>于2023年3月19日 周日01:01写道:

可能你的80端口被别的进程占用了

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/bot-on-anything/issues/159#issuecomment-1474914462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRNJMUYLWGWTTBQR2ZRVC3W4XTAFANCNFSM6AAAAAAV7QP5N4 . You are receiving this because you authored the thread.Message ID: @.***>

--

Tank

icejean commented 1 year ago

Nginx反向代理配置可以参阅该文档,不过我自己的就没有配起来,原因未明,只好直接占用80端口。