lkeme / BiliHelper-personal

哔哩哔哩(Bilibili)助手 - PHP 版(Personal)
MIT License
990 stars 241 forks source link

我有个问题 #197

Closed viyv closed 1 year ago

viyv commented 1 year ago

我碰到了,使用docker安装,不管使用直接传入账密方式,还是挂载配置文件方式,都无法运行,提示空账户和口令,并且容器运行大概1分钟左右就不在运行了消失在docker ps -a 界面 请问这是什么原因造成的呢? 帮我解答一下,非常感谢

lkeme commented 1 year ago

自行去敏,然后贴上你的两种方式的命令。

viyv commented 1 year ago

好的,第一种是传入变量的方式:docker run -itd --rm -e USER_NAME=99*@qq.com -e USER_PASSWORD=ybu lkeme/bilihelper-personal 提示错误: [2022-12-21 20:03:22] BHP.INFO: (CheckUpdate) => 拉取线上最新配置 [] [] [2022-12-21 20:03:22] BHP.WARNING: (CheckUpdate) => 检查更新: 拉取线上失败,网络错误! [] [] [2022-12-21 20:03:22] BHP.INFO: (Login) => 启动登录程序 [] [] [2022-12-21 20:03:22] BHP.INFO: (Login) => 准备载入登录令牌 [] [] [2022-12-21 20:03:22] BHP.ERROR: (Helpers) => 空白的帐号和口令 [] [] 然后在一分钟左右在[root@instance-20220206-1635 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 855d4fb24976 lkeme/bilihelper-personal "entrypoint.sh" About a minute ago Up About a minute relaxed_chaplygin 里没有了 第二种是挂载配置文件的方式:docker run -itd --rm -v /root/BiliBili/profile/user:/app/profile/user lkeme/bilihelper-personal 提示错误:[2022-12-21 20:07:20] BHP.INFO: (AppCommand) => 执行 [主要模式] 默认功能 [] [] [2022-12-21 20:07:20] BHP.INFO: (Login) => 启动登录程序 [] [] [2022-12-21 20:07:20] BHP.INFO: (Login) => 准备载入登录令牌 [] [] [2022-12-21 20:07:20] BHP.ERROR: (Helpers) => 空白的帐号和口令 [] [] 也是在一分钟左右,容器也不运行了

RuoYear commented 1 year ago

我也有类似的情况,在docker拉取最新镜像后,采用账号密码的环境变量,在日志的【安装/更新 项目运行依赖】里有一行: Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update' or 'composer update '.

是否因容器的composer无法自动更新导致无法获取依赖包?

lkeme commented 1 year ago

@RuoYear 不影响的 只要能继续执行

lkeme commented 1 year ago

@viyv 你这边镜像好像不太对,少了执行步骤。推荐你清理一下缓存重新拉取一下lastest,推荐使用官方的镜像源。

正在使用版本*方案 

正常情况应该出现以上的文字输出

RuoYear commented 1 year ago

@lkeme 实际上也是和作者同样的情况,而我是在群晖的docker上运行后发生同样的错误。 我是从docker新拉取的lastest,注册表来自registry.hub.docker.com 他的日志不全,我已经附上刚才试运行之后的日志。 bili.csv

viyv commented 1 year ago

@RuoYear 就是如你的附件一样的日志,昨晚我只截取了最后提示部分

这是刚刚的尝试: 使用的镜像拉取命令:docker run -itd --rm -v /root/BiliBili/profile/user:/app/profile/user lkeme/bilihelper-personal:latest 之前的缓存和旧的镜像已经清除 日志如下: ======== [信息] 切换源-github.com
========

======== [信息] 正使用 git pull 同步项目
========

remote: Enumerating objects: 427, done. remote: Counting objects: 100% (427/427), done. remote: Compressing objects: 100% (117/117), done. remote: Total 357 (delta 204), reused 299 (delta 160), pack-reused 0 Receiving objects: 100% (357/357), 55.30 KiB | 976.00 KiB/s, done. Resolving deltas: 100% (204/204), completed with 42 local objects. From https://github.com/lkeme/BiliHelper-personal f20c603..68b26fb master -> origin/master Updating f20c603..68b26fb Fast-forward .github/workflows/build_image_bhp.yml | 9 +- .gitignore | 2 +- README.md | 79 +++--- composer.json | 2 +- docker/Dockerfile | 3 +- docs/CHANGELOG.md | 73 ++++++ docs/DOC.md | 82 +++++-- plugin/AwardRecords/AwardRecords.php | 3 +- plugin/CheckUpdate/CheckUpdate.php | 5 + plugin/DailyGold/DailyGold.php | 151 ++++++++++++ plugin/Judge/Judge.php | 17 +- plugin/Login/Login.php | 25 +- plugin/Lottery/Lottery.php | 265 +++++++++++++++++++++ plugin/Lottery/LotteryInfo.php | 93 ++++++++ plugin/MainSite/MainSite.php | 18 +- plugin/PolishMedal/PolishMedal.php | 184 ++++++++++++++ plugin/VipPoint/Traits/Bonus.php | 41 ++++ plugin/VipPoint/Traits/BuyVipMall.php | 39 +++ plugin/VipPoint/Traits/BuyVipProduct.php | 39 +++ plugin/VipPoint/Traits/BuyVipVideo.php | 39 +++ plugin/VipPoint/Traits/CommonTaskInfo.php | 170 +++++++++++++ plugin/VipPoint/Traits/PointInfo.php | 36 +++ plugin/VipPoint/Traits/Privilege.php | 41 ++++ plugin/VipPoint/Traits/SignIn.php | 96 ++++++++ plugin/VipPoint/Traits/ViewAnimate.php | 42 ++++ plugin/VipPoint/Traits/ViewFilmChannel.php | 42 ++++ plugin/VipPoint/Traits/ViewVideo.php | 39 +++ plugin/VipPoint/Traits/ViewVipMall.php | 41 ++++ plugin/VipPoint/VipPoint.php | 222 +++++++++++++++++ plugin/VipPrivilege/VipPrivilege.php | 25 +- profile/example/config/user.ini | 24 ++ profile/example/device/device.yaml | 5 +- resources/version.json | 6 +- src/Api/Api/Pgc/Activity/Deliver/ApiTask.php | 61 +++++ src/Api/Api/Pgc/Activity/Score/ApiTask.php | 100 ++++++++ src/Api/Api/X/VipPoint/ApiTask.php | 43 ++++ src/Api/Credit/ApiJury.php | 2 - src/Api/Msg/ApiMsg.php | 73 ++++++ src/Api/Passport/ApiLogin.php | 2 +- src/Api/Room/V1/ApiInfo.php | 53 +++++ src/Api/Show/Api/Activity/Fire/Common/ApiEvent.php | 64 +++++ src/Api/Video/ApiShare.php | 4 +- src/Api/WWW/ApiMain.php | 45 ++++ src/Api/XLive/AppRoom/V1/ApiDM.php | 56 +++++ src/Api/XLive/AppUcenter/V1/ApiUserTask.php | 62 +++++ src/Cache/Cache.php | 5 +- src/Console/Command/DebugCommand.php | 9 +- src/Console/Console.php | 22 +- src/Env/Env.php | 4 +- src/Helpers.php | 33 ++- src/Log/Log.php | 6 +- src/Request/Request.php | 11 +- src/Schedule/Schedule.php | 5 +- src/Sign/Sign.php | 8 +- src/User/User.php | 27 ++- src/Util/Common/Common.php | 4 +- src/Util/Fake/Fake.php | 11 +- src/Util/UUID/UUID.php | 158 ++++++++++++ 58 files changed, 2716 insertions(+), 110 deletions(-) create mode 100644 plugin/DailyGold/DailyGold.php create mode 100644 plugin/Lottery/Lottery.php create mode 100644 plugin/Lottery/LotteryInfo.php create mode 100644 plugin/PolishMedal/PolishMedal.php create mode 100644 plugin/VipPoint/Traits/Bonus.php create mode 100644 plugin/VipPoint/Traits/BuyVipMall.php create mode 100644 plugin/VipPoint/Traits/BuyVipProduct.php create mode 100644 plugin/VipPoint/Traits/BuyVipVideo.php create mode 100644 plugin/VipPoint/Traits/CommonTaskInfo.php create mode 100644 plugin/VipPoint/Traits/PointInfo.php create mode 100644 plugin/VipPoint/Traits/Privilege.php create mode 100644 plugin/VipPoint/Traits/SignIn.php create mode 100644 plugin/VipPoint/Traits/ViewAnimate.php create mode 100644 plugin/VipPoint/Traits/ViewFilmChannel.php create mode 100644 plugin/VipPoint/Traits/ViewVideo.php create mode 100644 plugin/VipPoint/Traits/ViewVipMall.php create mode 100644 plugin/VipPoint/VipPoint.php create mode 100644 src/Api/Api/Pgc/Activity/Deliver/ApiTask.php create mode 100644 src/Api/Api/Pgc/Activity/Score/ApiTask.php create mode 100644 src/Api/Api/X/VipPoint/ApiTask.php create mode 100644 src/Api/Msg/ApiMsg.php create mode 100644 src/Api/Room/V1/ApiInfo.php create mode 100644 src/Api/Show/Api/Activity/Fire/Common/ApiEvent.php create mode 100644 src/Api/WWW/ApiMain.php create mode 100644 src/Api/XLive/AppRoom/V1/ApiDM.php create mode 100644 src/Api/XLive/AppUcenter/V1/ApiUserTask.php create mode 100644 src/Util/UUID/UUID.php

======== [信息] 安装/更新 项目运行依赖
========

Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>. Nothing to install, update or remove Generating autoload files 18 packages you are using are looking for funding. Use the composer fund command to find out more!

======== [信息] 正在使用版本V2方案
========

======== 正在使用外部配置文件
========

[2022-12-22 19:44:17] BHP.INFO: (Env) => 欢迎使用 项目: BiliHelper-personal@master 版本: 2.0.4.221222 [] [] [2022-12-22 19:44:17] BHP.INFO: (Env) => 使用说明请移步 https://github.com/lkeme/BiliHelper-personal 查看 [] [] [2022-12-22 19:44:17] BHP.INFO: (Schedule) => 任务排程文件存在,继续执行所有任务。 [] [] 预加载插件列表 ┌─────────────────┬─────────────────┬─────────┬──────────────────────────┬───────────────────┬──────────┬─────────────┬────────┐ │ hook │ name │ version │ desc │ author │ priority │ cycle │ status │ ├─────────────────┼─────────────────┼─────────┼──────────────────────────┼───────────────────┼──────────┼─────────────┼────────┤ │ CheckUpdate │ CheckUpdate │ 0.0.1 │ 检查版本更新 │ Lkeme │ 1000 │ 24(小时) │ √ │ │ Login │ Login │ 0.0.1 │ 登录 │ Lkeme │ 1001 │ 2(小时) │ √ │ │ MainSite │ MainSite │ 0.0.1 │ 主站任务(观看|分享|投币) │ Lkeme │ 1100 │ 24(小时) │ √ │ │ Manga │ Manga │ 0.0.1 │ 漫画签到/分享 │ Lkeme │ 1101 │ 24(小时) │ √ │ │ LoveClub │ LoveClub │ 0.0.1 │ 友爱社签到 │ Lkeme │ 1102 │ 24(小时) │ √ │ │ LiveSignIn │ LiveSignIn │ 0.0.1 │ 直播签到 │ Lkeme │ 1103 │ 24(小时) │ √ │ │ GameForecast │ GameForecast │ 0.0.1 │ 赛事预测(破产机) │ Lkeme │ 1104 │ 24(小时) │ √ │ │ Silver2Coin │ Silver2Coin │ 0.0.1 │ 银瓜子兑换硬币 │ Lkeme │ 1105 │ 24(小时) │ √ │ │ Judge │ Judge │ 0.0.1 │ 風機委員 │ Lkeme │ 1106 │ 15-30(分钟) │ √ │ │ VipPrivilege │ VipPrivilege │ 0.0.1 │ 领取大会员权益 │ Lkeme │ 1107 │ 24(小时) │ √ │ │ BpConsumption │ BpConsumption │ 0.0.1 │ 大会员B币券消费 │ Lkeme │ 1108 │ 24(小时) │ √ │ │ LiveReservation │ LiveReservation │ 0.0.1 │ 预约直播有奖 │ Lkeme │ 1109 │ 1-3(小时) │ √ │ │ LiveGoldBox │ LiveGoldBox │ 0.0.1 │ 直播金色宝箱(实物抽奖) │ Lkeme │ 1110 │ 6-10(分钟) │ √ │ │ AwardRecords │ AwardRecords │ 0.0.1 │ 获奖记录 │ Lkeme │ 1111 │ 5(分钟) │ √ │ │ VipPoint │ VipPoint │ 0.0.1 │ 大会员积分 │ Lkeme │ 1112 │ 5(分钟) │ √ │ │ Lottery │ Lottery │ 0.0.1 │ 抽奖 │ MoeHero │ 1113 │ 2-6(小时) │ √ │ │ DailyGold │ DailyGold │ 0.0.1 │ 每日电池(APP) │ Lkeme │ 1114 │ 24(小时) │ √ │ │ PolishMedal │ PolishMedal │ 0.0.1 │ 点亮徽章 │ possible318/Lkeme │ 1115 │ 1(小时) │ √ │ └─────────────────┴─────────────────┴─────────┴──────────────────────────┴───────────────────┴──────────┴─────────────┴────────┘ [2022-12-22 19:44:18] BHP.INFO: (AppCommand) => 执行 [主要模式] 默认功能 [] [] [2022-12-22 19:44:18] BHP.INFO: (CheckUpdate) => 开始检查项目更新 [] [] [2022-12-22 19:44:18] BHP.INFO: (CheckUpdate) => 拉取线上最新配置 [] [] [2022-12-22 19:44:18] BHP.INFO: (CheckUpdate) => 程序已是最新版本 [] [] [2022-12-22 19:44:18] BHP.INFO: (Login) => 启动登录程序 [] [] [2022-12-22 19:44:18] BHP.INFO: (Login) => 准备载入登录令牌 [] [] [2022-12-22 19:44:18] BHP.ERROR: (Helpers) => 空白的帐号和口令 [] []

lkeme commented 1 year ago

要是挂载文件的方式错误,可以尝试删除 把配置文件profile/{example} 下的task文件夹删掉

lkeme commented 1 year ago

已修复