[GH-ISSUE #2491] could not rename component file ... Invalid cross-device link (os error 18) #1151

Closed
opened 2026-03-01 21:49:18 +03:00 by kerem · 3 comments
Owner

Originally created by @rydb on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2491

Bug report info

act version:            0.2.68
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 32
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /root/.config/act/actrc:
                -P ubuntu-latest=catthehacker/ubuntu:full-latest
                -P ubuntu-22.04=catthehacker/ubuntu:full-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:full-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:full-18.04
Build info:
        Go version:            go1.21.13
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.68 -X main.commit=03a4480cd024910c88c8946da8d589b9ef0c6660 -X main.date=2024-10-01T02:31:47Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         03a4480cd024910c88c8946da8d589b9ef0c6660
                vcs.time:             2024-10-01T02:31:30Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.0.5
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu Core 22
        OS type:               linux
        OS version:            22
        OS arch:               x86_64
        OS kernel:             6.8.0-45-generic
        OS CPU:                32
        OS memory:             31226 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin
                name=cgroupns

Command used with act

sudo act

Describe issue

I've been able to use act to check my rust project's CI, but recently,its been crashing do to "could not rename component file".

No response

Workflow content

name: CI # Continuous Integration

on:
  push:
    branches:
      - main
  pull_request:

jobs:

  test:
    name: Test Suite
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: Run tests
        run: cargo test --all-features --workspace

  rustfmt:
    name: Rustfmt
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt
      - uses: Swatinem/rust-cache@v2
      - name: Check formatting
        run: cargo fmt --all --check

  clippy:
    name: Clippy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy
      - uses: Swatinem/rust-cache@v2
      - name: Clippy check
        run: cargo clippy --all-features --workspace

  docs:
    name: Docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: Check documentation
        env:
          RUSTDOCFLAGS: -D warnings
        run: cargo doc --no-deps --document-private-items --all-features --workspace

  hack:
    name: Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true
      - name: Install stable
        uses: dtolnay/rust-toolchain@stable
      - name: cargo install cargo-hack
        uses: taiki-e/install-action@cargo-hack
      - uses: Swatinem/rust-cache@v2
      - name: Check for all features
        run: cargo hack --feature-powerset check

  wasm:
    name: Wasm
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true
      - name: Install stable
        uses: dtolnay/rust-toolchain@stable
        with:
          target: wasm32-unknown-unknown
      - uses: Swatinem/rust-cache@v2
      - name: Check for target wasm webgpu
        run: cargo check --target wasm32-unknown-unknown

Relevant log output

info: downloading component 'clippy'
 70.8 MiB /  70.8 MiB (100 %)  26.9 MiB/s in  2s ETA:  0s
| info: removing previous version of component 'clippy'
| info: rolling back changes
| error: could not rename component file from '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/clippy' to '/home/runner/.rustup/tmp/1xi36xt_g6bahg6j_dir/bk': Invalid cross-device link (os error 18)
[CI/Test Suite]   ❌  Failure - Main rustup toolchain install stable

Additional information

I've currently:

purged act and reinstalled it
purged docker and reinstalled it.
purged my rust toolchain and re-installed it.

and the issue still persists.

Originally created by @rydb on GitHub (Oct 18, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2491 ### Bug report info ```plain text act version: 0.2.68 GOOS: linux GOARCH: amd64 NumCPU: 32 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /root/.config/act/actrc: -P ubuntu-latest=catthehacker/ubuntu:full-latest -P ubuntu-22.04=catthehacker/ubuntu:full-22.04 -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=catthehacker/ubuntu:full-18.04 Build info: Go version: go1.21.13 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -s -w -X main.version=0.2.68 -X main.commit=03a4480cd024910c88c8946da8d589b9ef0c6660 -X main.date=2024-10-01T02:31:47Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 03a4480cd024910c88c8946da8d589b9ef0c6660 vcs.time: 2024-10-01T02:31:30Z vcs.modified: false Docker Engine: Engine version: 24.0.5 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu Core 22 OS type: linux OS version: 22 OS arch: x86_64 OS kernel: 6.8.0-45-generic OS CPU: 32 OS memory: 31226 MB Security options: name=apparmor name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh sudo act ``` ### Describe issue I've been able to use act to check my rust project's CI, but recently,its been crashing do to "could not rename component file". ### Link to GitHub repository _No response_ ### Workflow content ```yml name: CI # Continuous Integration on: push: branches: - main pull_request: jobs: test: name: Test Suite runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --all-features --workspace rustfmt: name: Rustfmt runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: components: rustfmt - uses: Swatinem/rust-cache@v2 - name: Check formatting run: cargo fmt --all --check clippy: name: Clippy runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: components: clippy - uses: Swatinem/rust-cache@v2 - name: Clippy check run: cargo clippy --all-features --workspace docs: name: Docs runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Check documentation env: RUSTDOCFLAGS: -D warnings run: cargo doc --no-deps --document-private-items --all-features --workspace hack: name: Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable - name: cargo install cargo-hack uses: taiki-e/install-action@cargo-hack - uses: Swatinem/rust-cache@v2 - name: Check for all features run: cargo hack --feature-powerset check wasm: name: Wasm runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable with: target: wasm32-unknown-unknown - uses: Swatinem/rust-cache@v2 - name: Check for target wasm webgpu run: cargo check --target wasm32-unknown-unknown ``` ### Relevant log output ```sh info: downloading component 'clippy' 70.8 MiB / 70.8 MiB (100 %) 26.9 MiB/s in 2s ETA: 0s | info: removing previous version of component 'clippy' | info: rolling back changes | error: could not rename component file from '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/clippy' to '/home/runner/.rustup/tmp/1xi36xt_g6bahg6j_dir/bk': Invalid cross-device link (os error 18) [CI/Test Suite] ❌ Failure - Main rustup toolchain install stable ``` ### Additional information I've currently: purged act and reinstalled it purged docker and reinstalled it. purged my rust toolchain and re-installed it. and the issue still persists.
kerem 2026-03-01 21:49:18 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 17, 2025):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2811289581 --> @github-actions[bot] commented on GitHub (Apr 17, 2025): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@Qyriad commented on GitHub (May 21, 2025):

I'm experiencing this issue. @rydb did you ever figure out a solution or workaround?

<!-- gh-comment-id:2897540091 --> @Qyriad commented on GitHub (May 21, 2025): I'm experiencing this issue. @rydb did you ever figure out a solution or workaround?
Author
Owner

@rydb commented on GitHub (May 21, 2025):

I'm experiencing this issue. @rydb did you ever figure out a solution or workaround?

I wiped my previous installation of ubuntu and installed it again to fix it. Assuming you used ubuntu/something similar, did you do a distro version migration? Maybe the issue was artifacts from ubuntu 22.04. I have a second rig that runs non-migrated ubuntu 22.04 with act that's not had this issue, and my non-migrated 24.04 fresh install hasn't run into issues either.

<!-- gh-comment-id:2898313539 --> @rydb commented on GitHub (May 21, 2025): > I'm experiencing this issue. [@rydb](https://github.com/rydb) did you ever figure out a solution or workaround? I wiped my previous installation of ubuntu and installed it again to fix it. Assuming you used ubuntu/something similar, did you do a distro version migration? Maybe the issue was artifacts from ubuntu 22.04. I have a second rig that runs non-migrated ubuntu 22.04 with act that's not had this issue, and my non-migrated 24.04 fresh install hasn't run into issues either.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1151
No description provided.