AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

2023/06/02:UPdate failed升级失败,程序无法正常启动,failure error_code:128

Open 96064409 opened this issue 3 years ago • 20 comments

在提问之前...

  • [X] 我已经搜索了现有的 issues
  • [X] 我在提问题之前至少花费了 5 分钟来思考和准备
  • [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • [X] 我正在使用最新版的 Alas

描述你的问题

显示升级失败,程序无法启动,删除重新安装后依然存在问题

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

预期行为

No response

相关 Logs

"E:\AzurLaneAutoScript
./toolkit/Lib/site-packages/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/pip/_vendor/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/uiautomator2/init.py minicap_urls no need to patch
./toolkit/Lib/site-packages/uiautomator2/init.py appdir already patched
./toolkit/Lib/site-packages/adbutils/mixin.py apkutils2 no need to patch
==================== SHOW DEPLOY CONFIG ====================
Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git
PypiMirror: https://pypi.tuna.tsinghua.edu.cn/simple
Language: zh-CN
Rest of the configs are the same as default
+---------------------------------------------------+
|                    UPDATE ALAS                    |
+---------------------------------------------------+
==================== GIT INIT ====================
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" init
Reinitialized existing Git repository in E:/AzurLaneAutoScript/.git/
[ success ]
==================== SET GIT PROXY ====================
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" config --local --unset http.proxy
[ allowed failure ], error_code: 5
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" config --local --unset https.proxy
[ allowed failure ], error_code: 5
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" config --local http.sslVerify true
[ success ]
==================== SET GIT REPOSITORY ====================
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" remote set-url origin https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git
[ success ]
==================== FETCH REPOSITORY BRANCH ====================
"E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" fetch origin master
remote: CODING 提示: team 3532843 is locked
fatal: unable to access 'https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git/': The requested URL returned error: 403
[ failure ], error_code: 128
+-----------------------------------------------------+
|                    UPDATE FAILED                    |
+-----------------------------------------------------+
==================== SHOW DEPLOY CONFIG ====================
Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git
PypiMirror: https://pypi.tuna.tsinghua.edu.cn/simple
Language: zh-CN
Rest of the configs are the same as default

Last command: "E:/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" fetch origin master
Please check your deploy settings in config/deploy.yaml and re-open Alas.exe
Take the screenshot of entire window if you need help

截图

360截图20230602012327253

还有别的吗?

没有

96064409 avatar Jun 01 '23 17:06 96064409

有梯子的,把config/deploy.yaml里的Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git改成Repository: https://github.com/LmeSzinc/AzurLaneAutoScript.git

HarumiEna avatar Jun 01 '23 17:06 HarumiEna

双击打开 console.bat ,执行:

python -m deploy.set Repository=git://git.lyoko.io/AzurLaneAutoScript

当出现 Repository Set 时可以关闭 再重新打开 Alas。

LmeSzinc avatar Jun 01 '23 17:06 LmeSzinc

暂时把config/deploy.yaml里的Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git改成Repository: https://github.com/LmeSzinc/AzurLaneAutoScript.git 要挂梯子 估计抽风了

换完之后在这步出问题了请问怎么解决? ==================== UIAUTOMATOR2 INIT ==================== [I 230601 15:01:17 init:156] uiautomator2 version: 2.16.17 [I 230601 15:01:17 init:372] Install minicap, minitouch [D 230601 15:01:17 init:59] Use cached assets: C:\Users\liuzh\Downloads\AzurLaneAutoScript\toolkit\lib\site-packages\uiautomator2cache\cache\minitouch-69336c8f34\minitouch [D 230601 15:01:17 init:238] Push to /data/local/tmp/minitouch:0755 [D 230601 15:01:17 init:256] apk-debug package-info: {'package_name': 'com.github.uiautomator', 'version_name': '2.3.3', 'version_code': '2003003', 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 5, 29, 22, 59, 50), 'last_update_time': datetime.datetime(2023, 5, 29, 22, 59, 50), 'signature': '4b76292'} [D 230601 15:01:17 init:257] apk-debug-test package-info: {'package_name': 'com.github.uiautomator.test', 'version_name': '', 'version_code': '', 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 5, 29, 22, 59, 51), 'last_update_time': datetime.datetime(2023, 5, 29, 22, 59, 51), 'signature': '4b76292'} [I 230601 15:01:17 init:390] Already installed com.github.uiautomator apks [D 230601 15:01:17 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--stop') [D 230601 15:01:17 init:296] Real version: [0, 10, 0], Expect version: [0, 10, 0] [D 230601 15:01:17 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--nouia', '-d', '--addr', '127.0.0.1:7912') [I 230601 15:01:17 init:350] Check atx-agent version [D 230601 15:01:17 init:359] Forward: local:tcp:58927 -> remote:tcp:7912 [D 230601 15:01:18 init:359] Forward: local:tcp:58927 -> remote:tcp:7912 [D 230601 15:01:18 init:362] atx-agent version 0.10.0 [D 230601 15:01:18 init:365] device wlan ip: 10.0.2.15 Successfully init AdbDevice(serial=127.0.0.1:7555)

显示成功init之后紧接着print出了traceback然后就是这个error raise AdbError(self.read_string_block()) adbutils.errors.AdbError: closed

l497996153 avatar Jun 01 '23 19:06 l497996153

同样的问题,更换Repository解决

Agnes4m avatar Jun 01 '23 23:06 Agnes4m

uiautomator2的repository在哪改啊?deploy.yaml里面没找到。 目前把InstallUiautomator2设置成false了,不重装就可以启动

l497996153 avatar Jun 01 '23 23:06 l497996153

image

Drink1ark avatar Jun 02 '23 02:06 Drink1ark

还是不行

Drink1ark avatar Jun 02 '23 02:06 Drink1ark

双击打开 console.bat ,执行:

python -m deploy.set Repository=https://git.saarcenter.com/LmeSzinc/AzurLaneAutoScript.git

再重新打开 Alas。

注意:这是托管在群友的小水管上的,不要通过这个地址完整下载 Alas。

还是不行 error

AbyssAzrael avatar Jun 02 '23 02:06 AbyssAzrael

image image 还是不行,难崩

Drink1ark avatar Jun 02 '23 02:06 Drink1ark

暂时把config/deploy.yaml里的Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git改成Repository: https://github.com/LmeSzinc/AzurLaneAutoScript.git 要挂梯子 估计抽风了

我用这个方案更新成功了

ZK-0001 avatar Jun 02 '23 02:06 ZK-0001

改仓库之后能进去了,难崩

Xiaer-cloud avatar Jun 02 '23 02:06 Xiaer-cloud

image image 都试过了

Drink1ark avatar Jun 02 '23 02:06 Drink1ark

刚才我改完Repository之后把加速github什么的代理全都关了,然后就能正常更新了,你可以试试(查了查他那个报错的原因好像就是使用了错误的代理啥的)

Z-SHUO6260 avatar Jun 02 '23 02:06 Z-SHUO6260

如果使用https://git.saarcenter.com/LmeSzinc/AzurLaneAutoScript.git显示failure error code:128的, 改成https://e.coding.net/saarcenter/alas/AzurLaneAutoScript.git

SaarChaffee avatar Jun 02 '23 02:06 SaarChaffee

可以更新了但是更新一半闪退

Drink1ark avatar Jun 02 '23 02:06 Drink1ark

如果使用https://git.saarcenter.com/LmeSzinc/AzurLaneAutoScript.git显示失败错误码:128的, 改成https://e.coding.net/saarcenter/alas/AzurLaneAutoScript.git

感谢老哥,解决了,改完关掉梯子重新启动就好了

ningmenggouqicha avatar Jun 02 '23 03:06 ningmenggouqicha

如果使用https://git.saarcenter.com/LmeSzinc/AzurLaneAutoScript.git显示失败错误码:128的, 改成https://e.coding.net/saarcenter/alas/AzurLaneAutoScript.git

感谢老哥,解决了,改完关掉梯子重新启动就好了

有梯子的直接用gh的链

SaarChaffee avatar Jun 02 '23 03:06 SaarChaffee

万分感谢

Drink1ark avatar Jun 02 '23 04:06 Drink1ark

感谢

wEuphorIA avatar Jun 02 '23 04:06 wEuphorIA

有梯子的,把config/deploy.yaml里的Repository: https://e.coding.net/llop18870/alas/AzurLaneAutoScript.git改成Repository: https://github.com/LmeSzinc/AzurLaneAutoScript.git

按照你的的方法修改之后就行了

sylarlyn avatar Jun 02 '23 07:06 sylarlyn