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

Error: GetUserByName: "user redirect does not exist [name: astral-sh] #192

Open
my1e5 opened this issue Dec 12, 2024 · 1 comment
Open

Comments

@my1e5
Copy link

my1e5 commented Dec 12, 2024

I've been using v3 for a while without any problems on my self-hosted runner. Just updated to v4 and ran into this GetUserByName error.

- name: Set up uv
  id: setup-uv
  uses: astral-sh/setup-uv@v4
  with:
    enable-cache: true
    prune-cache: false

Logs

2024-12-12 12:41:21 [ci/ci] ⭐ Run Main Set up uv
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Extracting content to '/var/run/act'
2024-12-12 12:41:21 [ci/ci] [DEBUG] expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] evaluating expression 'format('{0}', github.token)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] type=remote-action actionDir=/data/cache/actions/astral-sh-setup-uv@v4 actionPath= workdir=/workspace/Research/Python actionCacheDir=/data/cache/actions actionName=astral-sh-setup-uv@v4 containerActionDir=/var/run/act/actions/astral-sh-setup-uv@v4
2024-12-12 12:41:21 [ci/ci] [DEBUG] /var/run/act/actions/astral-sh-setup-uv@v4
2024-12-12 12:41:21 [ci/ci] [DEBUG] Removing /data/cache/actions/astral-sh-setup-uv@v4/.gitignore before docker cp
2024-12-12 12:41:21 [ci/ci]   🐳  docker cp src=/data/cache/actions/astral-sh-setup-uv@v4/ dst=/var/run/act/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing tarball /tmp/act2175040455 from /data/cache/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Stripping prefix:/data/cache/actions/astral-sh-setup-uv@v4/ src:/data/cache/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Extracting content from '/tmp/act2175040455' to '/var/run/act/actions/astral-sh-setup-uv@v4/'
2024-12-12 12:41:21 [ci/ci] [DEBUG] executing remote job container: [node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js]
2024-12-12 12:41:21 [ci/ci]   🐳  docker exec cmd=[node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js] user= workdir=
2024-12-12 12:41:21 [ci/ci] [DEBUG] Exec command '[node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js]'
2024-12-12 12:41:21 [ci/ci] [DEBUG] Working directory '/workspace/Research/Python'
2024-12-12 12:41:22 [ci/ci] ::error::GetUserByName: "user redirect does not exist [name: astral-sh]"
2024-12-12 12:41:22 [ci/ci]   | ::error::GetUserByName: "user redirect does not exist [name: astral-sh]"
2024-12-12 12:41:22 [ci/ci]   ❌  Failure - Main Set up uv
2024-12-12 12:41:22 [ci/ci] exitcode '1': failure
@my1e5
Copy link
Author

my1e5 commented Dec 12, 2024

Just checked, and everything works as expected when I downgrade to v3.

- name: Set up uv
  id: setup-uv
  uses: astral-sh/setup-uv@v3
  with:
    enable-cache: true
    prune-cache: false

Logs

2024-12-12 12:57:17 [ci/ci] ⭐ Run Main Set up uv
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
2024-12-12 12:57:17 [ci/ci] [DEBUG] Extracting content to '/var/run/act'
2024-12-12 12:57:17 [ci/ci] [DEBUG] expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
2024-12-12 12:57:17 [ci/ci] [DEBUG] evaluating expression 'format('{0}', github.token)'
2024-12-12 12:57:17 [ci/ci] [DEBUG] expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
2024-12-12 12:57:17 [ci/ci] [DEBUG] type=remote-action actionDir=/data/cache/actions/astral-sh-setup-uv@v3 actionPath= workdir=/workspace/Research/Python actionCacheDir=/data/cache/actions actionName=astral-sh-setup-uv@v3 containerActionDir=/var/run/act/actions/astral-sh-setup-uv@v3
2024-12-12 12:57:17 [ci/ci] [DEBUG] /var/run/act/actions/astral-sh-setup-uv@v3
2024-12-12 12:57:17 [ci/ci] [DEBUG] Removing /data/cache/actions/astral-sh-setup-uv@v3/.gitignore before docker cp
2024-12-12 12:57:17 [ci/ci]   🐳  docker cp src=/data/cache/actions/astral-sh-setup-uv@v3/ dst=/var/run/act/actions/astral-sh-setup-uv@v3/
2024-12-12 12:57:17 [ci/ci] [DEBUG] Writing tarball /tmp/act1485610621 from /data/cache/actions/astral-sh-setup-uv@v3/
2024-12-12 12:57:17 [ci/ci] [DEBUG] Stripping prefix:/data/cache/actions/astral-sh-setup-uv@v3/ src:/data/cache/actions/astral-sh-setup-uv@v3/
2024-12-12 12:57:17 [ci/ci] [DEBUG] Extracting content from '/tmp/act1485610621' to '/var/run/act/actions/astral-sh-setup-uv@v3/'
2024-12-12 12:57:17 [ci/ci] [DEBUG] executing remote job container: [node /var/run/act/actions/astral-sh-setup-uv@v3/dist/setup/index.js]
2024-12-12 12:57:17 [ci/ci]   🐳  docker exec cmd=[node /var/run/act/actions/astral-sh-setup-uv@v3/dist/setup/index.js] user= workdir=
2024-12-12 12:57:17 [ci/ci] [DEBUG] Exec command '[node /var/run/act/actions/astral-sh-setup-uv@v3/dist/setup/index.js]'
2024-12-12 12:57:17 [ci/ci] [DEBUG] Working directory '/workspace/Research/Python'
2024-12-12 12:57:18 [ci/ci]   | Downloading uv from "https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz" ...
2024-12-12 12:57:18 [ci/ci] ::debug::Downloading https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz
2024-12-12 12:57:18 [ci/ci]   | ::debug::Downloading https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz
2024-12-12 12:57:18 [ci/ci] ::debug::Destination /tmp/a48aa2ac-e03e-4bb4-8359-3eed7e06ae76
2024-12-12 12:57:18 [ci/ci]   | ::debug::Destination /tmp/a48aa2ac-e03e-4bb4-8359-3eed7e06ae76
2024-12-12 12:57:18 [ci/ci] ::debug::set auth
2024-12-12 12:57:18 [ci/ci]   | ::debug::set auth
2024-12-12 12:57:19 [ci/ci] ::debug::download complete
2024-12-12 12:57:19 [ci/ci]   | ::debug::download complete
2024-12-12 12:57:19 [ci/ci] ::debug::Checking tar --version
2024-12-12 12:57:19 [ci/ci]   | ::debug::Checking tar --version
2024-12-12 12:57:19 [ci/ci] ::debug::tar (GNU tar) 1.34%0ACopyright (C) 2021 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
2024-12-12 12:57:19 [ci/ci]   | ::debug::tar (GNU tar) 1.34%0ACopyright (C) 2021 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
2024-12-12 12:57:19 [ci/ci]   | [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /tmp/130642ea-e700-40cb-9ec4-a0be17ec6741 -f /tmp/a48aa2ac-e03e-4bb4-8359-3eed7e06ae76
2024-12-12 12:57:19 [ci/ci] ::debug::Checksum not provided. Checking known checksums.
2024-12-12 12:57:19 [ci/ci]   | ::debug::Checksum not provided. Checking known checksums.
2024-12-12 12:57:19 [ci/ci] ::debug::No known checksum found for x86_64-unknown-linux-gnu-0.5.8.
2024-12-12 12:57:19 [ci/ci]   | ::debug::No known checksum found for x86_64-unknown-linux-gnu-0.5.8.
2024-12-12 12:57:19 [ci/ci] ::debug::Caching tool uv 0.5.8 x86_64
2024-12-12 12:57:19 [ci/ci]   | ::debug::Caching tool uv 0.5.8 x86_64
2024-12-12 12:57:19 [ci/ci] ::debug::source dir: /tmp/130642ea-e700-40cb-9ec4-a0be17ec6741/uv-x86_64-unknown-linux-gnu
2024-12-12 12:57:19 [ci/ci]   | ::debug::source dir: /tmp/130642ea-e700-40cb-9ec4-a0be17ec6741/uv-x86_64-unknown-linux-gnu
2024-12-12 12:57:19 [ci/ci] ::debug::destination /opt/hostedtoolcache/uv/0.5.8/x86_64
2024-12-12 12:57:19 [ci/ci]   | ::debug::destination /opt/hostedtoolcache/uv/0.5.8/x86_64
2024-12-12 12:57:19 [ci/ci] ::debug::finished caching tool
2024-12-12 12:57:19 [ci/ci]   | ::debug::finished caching tool
2024-12-12 12:57:19 [ci/ci]   | Added /opt/hostedtoolcache/uv/0.5.8/x86_64 to the path
2024-12-12 12:57:19 [ci/ci]   | Added /root/.local/bin to the path
2024-12-12 12:57:19 [ci/ci]   | Successfully installed uv version 0.5.8
2024-12-12 12:57:19 [ci/ci] ##[add-matcher]/run/act/actions/astral-sh-setup-uv@v3/.github/python.json
2024-12-12 12:57:19 [ci/ci]   | ##[add-matcher]/run/act/actions/astral-sh-setup-uv@v3/.github/python.json
2024-12-12 12:57:19 [ci/ci]   | Set UV_CACHE_DIR to /tmp/setup-uv-cache
2024-12-12 12:57:19 [ci/ci]   | Searching files using cache dependency glob: **/uv.lock
2024-12-12 12:57:19 [ci/ci] ::debug::followSymbolicLinks 'true'
2024-12-12 12:57:19 [ci/ci]   | ::debug::followSymbolicLinks 'true'
2024-12-12 12:57:19 [ci/ci] ::debug::implicitDescendants 'true'
2024-12-12 12:57:19 [ci/ci]   | ::debug::implicitDescendants 'true'
2024-12-12 12:57:19 [ci/ci] ::debug::matchDirectories 'true'
2024-12-12 12:57:19 [ci/ci]   | ::debug::matchDirectories 'true'
2024-12-12 12:57:19 [ci/ci] ::debug::omitBrokenSymbolicLinks 'true'
2024-12-12 12:57:19 [ci/ci]   | ::debug::omitBrokenSymbolicLinks 'true'
2024-12-12 12:57:19 [ci/ci] ::debug::excludeHiddenFiles 'false'
2024-12-12 12:57:19 [ci/ci]   | ::debug::excludeHiddenFiles 'false'
2024-12-12 12:57:19 [ci/ci] ::debug::Search path '/workspace/Research/Python'
2024-12-12 12:57:19 [ci/ci]   | ::debug::Search path '/workspace/Research/Python'
2024-12-12 12:57:19 [ci/ci]   | /workspace/Research/Python/uv.lock
2024-12-12 12:57:19 [ci/ci]   | Found 1 files to hash.
2024-12-12 12:57:19 [ci/ci]   | Trying to restore uv cache from GitHub Actions cache with key: setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c
2024-12-12 12:57:19 [ci/ci] ::debug::Resolved Keys:
2024-12-12 12:57:19 [ci/ci]   | ::debug::Resolved Keys:
2024-12-12 12:57:19 [ci/ci] ::debug::["setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c"]
2024-12-12 12:57:19 [ci/ci]   | ::debug::["setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c"]
2024-12-12 12:57:19 [ci/ci] ::debug::Checking zstd --quiet --version
2024-12-12 12:57:19 [ci/ci]   | ::debug::Checking zstd --quiet --version
2024-12-12 12:57:19 [ci/ci] ::debug::1.4.8
2024-12-12 12:57:19 [ci/ci]   | ::debug::1.4.8
2024-12-12 12:57:19 [ci/ci] ::debug::zstd version: 1.4.8
2024-12-12 12:57:19 [ci/ci]   | ::debug::zstd version: 1.4.8
2024-12-12 12:57:19 [ci/ci] ::debug::Resource Url: http://172.17.0.3:33397/_apis/artifactcache/cache?keys=setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c&version=6e889508a071e149524c7f1cee56d7c82e3b00f602cea4ebbb015bfa5f9f71bc
2024-12-12 12:57:19 [ci/ci]   | ::debug::Resource Url: http://172.17.0.3:33397/_apis/artifactcache/cache?keys=setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c&version=6e889508a071e149524c7f1cee56d7c82e3b00f602cea4ebbb015bfa5f9f71bc
2024-12-12 12:57:19 [ci/ci] ::debug::Failed to delete archive: Error: ENOENT: no such file or directory, unlink ''
2024-12-12 12:57:19 [ci/ci]   | ::debug::Failed to delete archive: Error: ENOENT: no such file or directory, unlink ''
2024-12-12 12:57:19 [ci/ci]   | No GitHub Actions cache found for key: setup-uv-1-x86_64-unknown-linux-gnu-0.5.8-c810688b01e2d3b254536d918e39d619edfa10f0b042d825d6ed67f7466c568c
2024-12-12 12:57:19 [ci/ci]   ✅  Success - Main Set up uv
2024-12-12 12:57:19 [ci/ci] ::set-env:: UV_CACHE_DIR=/tmp/setup-uv-cache
2024-12-12 12:57:19 [ci/ci] ::set-output:: cache-hit=false
2024-12-12 12:57:19 [ci/ci] ::set-output:: uv-version=0.5.8
2024-12-12 12:57:19 [ci/ci] ::add-path:: /opt/hostedtoolcache/uv/0.5.8/x86_64
2024-12-12 12:57:19 [ci/ci] ::add-path:: /root/.local/bin
2024-12-12 12:57:19 [ci/ci] [DEBUG] evaluating expression ''
2024-12-12 12:57:19 [ci/ci] [DEBUG] expression '' evaluated to 'true'

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

No branches or pull requests

1 participant