火力基地。身份验证错误:您的凭据不再有效

时间:2021-02-02 08:20:54

标签: android firebase gradle gitlab fastlane

面对下一个问题,也许谁能告诉。 我有两个主持人,两个跑步者。其中之一,我已经配置了 CI 并且 Firebase 程序集在那里工作。我设置了另一个主机(第二个)来构建,基本上所有相同的配置,在它上面我得到了一个新的 firebase 令牌,但是当我尝试在第二个主机上运行我的 CI 时,我有一个工作下降。我阅读了论坛和官方文档,以寻找问题的解决方案,但它们不适合我的情况。

[12:47:16]: ---------------------------------------
[12:47:16]: --- Step: firebase_app_distribution ---
[12:47:16]: ---------------------------------------
[12:47:19]: ▸ i  getting app details...
[12:47:19]: ▸ Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
[12:47:19]: ▸ For CI servers and headless environments, generate a new token with firebase login:ci
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
|                                                                Lane Context                                                                 |
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM                    | android                                                                                               |
| PLATFORM_NAME                       | android                                                                                               |
| LANE_NAME                           | android firebase_dev                                                                                  |
| GRADLE_ALL_APK_OUTPUT_PATHS         | ["C:/Users/_/Android/application/build/outputs/apk/psb_dev_test/debug/_  |
|                                     | 722.1-debug.apk"]                                                                                     |
| GRADLE_ALL_AAB_OUTPUT_PATHS         | []                                                                                                    |
| GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS | []                                                                                                    |
| GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS | []                                                                                                    |
| GRADLE_APK_OUTPUT_PATH              | C:/Users/_/Android/application/build/outputs/apk/psb_dev_test/debug/_  |
|                                     | 2.1-debug.apk                                                                                         |
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
[12:47:19]: Shell command exited with exit status 1 instead of 0.
i  getting app details...

Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci


+------+---------------------------------+-------------+
|                   fastlane summary                   |
+------+---------------------------------+-------------+
| Step | Action                          | Time (in s) |
+------+---------------------------------+-------------+
| 1    | default_platform                | 0           |
| 2    | clean assemblePsb_dev_testDebug | 682         |
| ?   | firebase_app_distribution       | 3           |
+------+---------------------------------+-------------+

+---------------------------+--------------+----------------+
|                 Plugin updates available                  |
+---------------------------+--------------+----------------+
| Plugin                    | Your Version | Latest Version |
+---------------------------+--------------+----------------+
| firebase_app_distribution | 0.1.4        | 0.2.5          |
+---------------------------+--------------+----------------+
[12:47:19]: To update all plugins, just run
[12:47:19]: $ bundle exec fastlane update_plugins

[12:47:19]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

Could not access the GitHub API, you may have better luck via the website.
https://github.com/fastlane/fastlane/search?q=Shell command exited with exit status 1 instead of 0.
i  getting app details...

Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci
&type=Issues&utf8=✓
Traceback (most recent call last):
        30: from C:/Ruby26-x64/bin/fastlane:23:in `<main>'
        29: from C:/Ruby26-x64/bin/fastlane:23:in `load'
        28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/bin/fastlane:23:in `<top (required)>'
        27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
        26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
        25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
        24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
        23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
        22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
        21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
        20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
        19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
        18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
        17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
        16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
        15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
        14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
        13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/lane.rb:33:in `call'
        12: from Fastfile:68:in `block (2 levels) in parsing_binding'
        11: from Fastfile:83:in `deploy'
        10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
         9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
         8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
         7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
         6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
         5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
         4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
         3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-plugin-firebase_app_distribution-0.1.4/lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb:36:in `run'
         2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
         1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::
FastlaneShellError)
i  getting app details...

Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci

同样在我的公司,我有一个代理来阻止对各种资源的访问。 我试过的:

  1. 为代理添加了环境变量 http_proxy=... https_proxy=
  2. 添加了环境变量集“NODE_TLS_REJECT_UNAUTHORIZED=0”
  3. 尝试做 firebase登录--reauth Firebase 登录名:ci 毫无问题地获得令牌。

我可能漏掉了一些东西,但到目前为止我还没有找到解决这个问题的方法。

0 个答案:

没有答案
相关问题