XX-Net icon indicating copy to clipboard operation
XX-Net copied to clipboard

[发布] 4.9.8 修复GAE 模块

Open xxnet opened this issue 2 years ago • 13 comments

发布链接: https://github.com/XX-net/XX-Net/releases/tag/4.9.8

Google Appid 需要重新部署,部署可以参考这里: https://github.com/XX-net/XX-Net/tree/master/code/default/gae_proxy/server 加了流量统计和限制功能,避免扣费,可靠性还需要观察(这个功能在服务端实现,需要重新部署)。

xxnet avatar Sep 12 '22 02:09 xxnet

还是不太会部署,执行gcloud init,登录谷歌邮箱、点击“允许”后,自动跳到XX-Net的页面上,然后就不知道怎么选appid了

XLX avatar Sep 12 '22 13:09 XLX

GAE不能用。certs文件夹是用原来的。从新部署了app,没有部署cron,那是要收费的。下面是出错信息: 2022-09-13 16:12:53.049 [gae_proxy][ERROR] request_gae except:AttributeError("'Config' object has no attribute 'AUTORANGE_MAXSIZE'") 2022-09-13 16:12:53.049 [gae_proxy][ERROR] Except stack:Traceback (most recent call last): File "code/default/gae_proxy/local/gae_handler.py", line 535, in handler response = request_gae_proxy(method, url, headers, body) File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 428, in request_gae_proxy request_headers, request_body = pack_request(method, url, headers, body, timeout) File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 256, in pack_request kwargs[b'maxsize'] = front.config.AUTORANGE_MAXSIZE AttributeError: 'Config' object has no attribute 'AUTORANGE_MAXSIZE'

2022-09-13 16:12:53.049 [simple_http_server][ERROR] handler:IndexError('tuple index out of range') cmd:POST path:/dns-query from:127.0.0.1:56126 2022-09-13 16:12:53.049 [simple_http_server][ERROR] Except stack:Traceback (most recent call last): File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 535, in handler response = request_gae_proxy(method, url, headers, body) File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 428, in request_gae_proxy request_headers, request_body = pack_request(method, url, headers, body, timeout) File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 256, in pack_request kwargs[b'maxsize'] = front.config.AUTORANGE_MAXSIZE AttributeError: 'Config' object has no attribute 'AUTORANGE_MAXSIZE'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "XX-Net-4.9.7/code/default/lib/noarch/simple_http_server.py", line 190, in handle_one_request self.do_POST() File "XX-Net-4.9.7/code/default/gae_proxy/local/proxy_handler.py", line 260, in do_METHOD return self.go_AGENT() File "XX-Net-4.9.7/code/default/gae_proxy/local/proxy_handler.py", line 276, in go_AGENT if gae_handler.handler(self.command, self.host, self.url, request_headers, payload, self.wfile, self.go_DIRECT) != "ok": File "XX-Net-4.9.7/code/default/gae_proxy/local/gae_handler.py", line 550, in handler send_response(wfile, 502, body=e.args[1]) # 502 means Gateway error. IndexError: tuple index out of range

Quantum2Bits avatar Sep 13 '22 08:09 Quantum2Bits

发现是一个低级错误, 已经发布新版 4.9.8 修复了。 https://github.com/XX-net/XX-Net/releases/tag/4.9.8

xxnet avatar Sep 13 '22 10:09 xxnet

@XLX 选appid 是在命令行界面上,会列出来几个appid 让你选。

xxnet avatar Sep 13 '22 10:09 xxnet

这回可以了,非常感谢开发者。

Quantum2Bits avatar Sep 13 '22 10:09 Quantum2Bits

@Quantum2Bits 根据Google的官方文档,每个人有3个免费的作业 https://cloud.google.com/scheduler/pricing?hl=zh-cn

实际要观察

xxnet avatar Sep 13 '22 10:09 xxnet

如果不行可以把判断放在每次访问里,逻辑稍微复杂一点

xxnet avatar Sep 13 '22 10:09 xxnet

@Quantum2Bits 根据Google的官方文档,每个人有3个免费的作业 https://cloud.google.com/scheduler/pricing?hl=zh-cn

实际要观察

不知道一个job是怎么定义的。一个gae的 project (一个appid)可以有多个job.

Quantum2Bits avatar Sep 13 '22 11:09 Quantum2Bits

电脑上可以用了,谢谢开发者 不知道手机上apk安装后填写password的入口在哪里

entzug avatar Sep 13 '22 15:09 entzug

密码在几年前我嫌复杂从界面上去掉了,要加回去也不难。 格式考虑这样: pass1@appid1|pass2@appid2 每个appid 可以有独立的密码。 下面再放一个公用密码输入框,如果有10个appid,就不用每个都加。

xxnet avatar Sep 14 '22 00:09 xxnet

@Quantum2Bits 我的理解是每个cron任务跑30天算一个 job。 每个人允许3个job,最多可以有3个appid可以配置 cron

可以用算法避开这个问题: 服务端记录上次复位日期,每次有请求来,检查上次复位日期是否过期,如果过期就复位,然后更新复位日期

xxnet avatar Sep 14 '22 00:09 xxnet

还是不太会部署,执行gcloud init,登录谷歌邮箱、点击“允许”后,自动跳到XX-Net的页面上,然后就不知道怎么选appid了

[ To initialize Cloud SDK:

If you are in a remote terminal session, you can use the --console-only flag to prevent the command from launching a browser-based authorization flow, if required:

gcloud init --console-only ]

entzug avatar Sep 14 '22 02:09 entzug

这样好多了。

On Wed, Sep 14, 2022 at 8:05 AM Michael.X @.***> wrote:

@Quantum2Bits https://github.com/Quantum2Bits 我的理解是每个cron任务跑30天算一个 job。 每个人允许3个job,最多可以有3个appid可以配置 cron

可以用算法避开这个问题: 服务端记录上次复位日期,每次有请求来,检查上次复位日期是否过期,如果过期就复位,然后更新复位日期

— Reply to this email directly, view it on GitHub https://github.com/XX-net/XX-Net/issues/13779#issuecomment-1246072173, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBMAU7O65F2XJ3BT6FBIMDV6EJEDANCNFSM6AAAAAAQKBLYPU . You are receiving this because you were mentioned.Message ID: @.***>

Quantum2Bits avatar Sep 14 '22 03:09 Quantum2Bits

我也是,PowerShell输入gcloud init后跳转浏览器,然后在浏览器中授权,但授权后跳转到xxnet配置页面,之后就无响应了。

VincentFortuneDeng avatar Oct 07 '22 05:10 VincentFortuneDeng