Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to compile when using u-boot mirrors #5168

Closed
1 task done
igorpecovnik opened this issue May 12, 2023 · 3 comments
Closed
1 task done

Failing to compile when using u-boot mirrors #5168

igorpecovnik opened this issue May 12, 2023 · 3 comments
Assignees

Comments

@igorpecovnik
Copy link
Member

What happened?

As GitHub is giving headaches lately I have tried to use mirrors, but it seems we have an issue.

### artifact_prepare_version.log 
--> (15) INFO: Producing new & caching [ GIT_INFO_UBOOT ]
--> (15) INFO: Fetching SHA1 of 'tag' 'refs/heads/v2022.07^{}' [ https://source.denx.de/u-boot/u-boot.git ]
--> (15) INFO: SHA1 of tag refs/heads/v2022.07^{} [ '' ]
--> (15) INFO: Failed to fetch SHA1 of 'tag' 'refs/heads/v2022.07^{}' [ https://source.denx.de/u-boot/u-boot.git ]
--> (15) INFO: Fetching SHA1 of 'tag' 'refs/heads/v2022.07' [ https://source.denx.de/u-boot/u-boot.git ]
--> (15) INFO: SHA1 of tag refs/heads/v2022.07 [ '' ]
--> (15) INFO: Failed to fetch SHA1 of 'tag' 'refs/heads/v2022.07' [ https://source.denx.de/u-boot/u-boot.git ]
--> (15) INFO: Fetching SHA1 of 'tag' 'v2022.07^{}' [ https://source.denx.de/u-boot/u-boot.git ]
--> (16) INFO: SHA1 of tag v2022.07^{} [ 'e092e3250270a1016c877da7bdd9384f14b1321e' ]
--> (16) ERROR: error! [ Unknown git source 'https://source.denx.de/u-boot/u-boot.git'  ]
--> (16) ERROR: Exiting with error 43 [ at /home/igorp/build/lib/functions/logging/traps.sh:1
                   exit_with_error() --> lib/functions/logging/traps.sh:1
      obtain_makefile_body_from_git() --> lib/functions/general/git-ref2info.sh:126
          memoized_git_ref_to_info() --> lib/functions/general/git-ref2info.sh:187
                      run_memoized() --> lib/functions/general/memoize-cached.sh:67
      artifact_uboot_prepare_version() --> lib/functions/artifacts/artifact-uboot.sh:45
          artifact_prepare_version() --> lib/functions/artifacts/artifacts-obtain.sh:34
                   do_with_logging() --> lib/functions/logging/section-logging.sh:81
          obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:88
          build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:288
       main_default_build_packages() --> lib/functions/main/build-packages.sh:97
      full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31
             do_with_default_build() --> lib/functions/main/default-build.sh:42
            cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
           armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                    cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
                              main() --> compile.sh:50

How to reproduce?

./compile.sh ARTIFACT_IGNORE_CACHE='yes' UBOOT_MIRROR=denx

or

./compile.sh ARTIFACT_IGNORE_CACHE='yes' REGIONAL_MIRROR='china'

Branch

main (main development branch)

On which host OS are you observing this problem?

Jammy

Relevant log URL

https://paste.next.armbian.com/ekaqicafes

Code of Conduct

  • I agree to follow this project's Code of Conduct
@github-actions
Copy link

Jira ticket: AR-1689

@rpardini
Copy link
Member

True. git-ref2info.sh needs to know how to handle that git hosting, especially, how to get the Makefile via raw http. I hit this months ago, switched the mirror, and forgot about it.

@rpardini rpardini self-assigned this May 21, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 21, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 22, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 23, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 23, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 23, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 23, 2023
rpardini added a commit to rpardini/armbian-build that referenced this issue May 23, 2023
@clarkmcc
Copy link

clarkmcc commented Nov 29, 2023

I've been getting a similar error today on the latest version of the main branch. Anything I can do to work around this?

[🐳|💥] error! [ Failed to fetch SHA1 of 'https://github.com/u-boot/u-boot' 'tag' 'v2022.07' - make sure it's correct  ]
[🐳|💥] Exiting with error 43 [ at /armbian/lib/functions/logging/traps.sh:1
                exit_with_error() --> lib/functions/logging/traps.sh:1
       memoized_git_ref_to_info() --> lib/functions/general/git-ref2info.sh:75
                   run_memoized() --> lib/functions/general/memoize-cached.sh:69
   artifact_uboot_prepare_version() --> lib/functions/artifacts/artifact-uboot.sh:44
       artifact_prepare_version() --> lib/functions/artifacts/artifacts-obtain.sh:34
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
       obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:88
       build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392
    main_default_build_packages() --> lib/functions/main/build-packages.sh:108
   full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31
          do_with_default_build() --> lib/functions/main/default-build.sh:42
         cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
        armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
                           main() --> compile.sh:50

Edit, I tried various mirrors that all failed, but it turned out to be an issue with Docker. After a restart, I was able to connect to the mirrors again.

UBOOT_MIRROR=gitee
UBOOT_MIRROR=denx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants