[GH-ISSUE #2073] Firefox fails to run #988

Closed
opened 2026-03-01 21:47:59 +03:00 by kerem · 1 comment
Owner

Originally created by @janmechtel on GitHub (Nov 1, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2073

Bug report info

act version:            0.2.53
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 16
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/jan/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.20.10
        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.53 -X main.commit=1bb2ee7098f338765ce5169c850d0f19e59d3147 -X main.date=2023-11-01T02:14:01Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         1bb2ee7098f338765ce5169c850d0f19e59d3147
                vcs.time:             2023-11-01T02:13:36Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.0.7
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 23.04
        OS type:               linux
        OS version:            23.04
        OS arch:               x86_64
        OS kernel:             6.2.0-36-generic
        OS CPU:                16
        OS memory:             31705 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin
                name=cgroupns

Command used with act

act

Describe issue

I'm trying to run browser-actions/setup-firefox@v1

This works fine on Github, but fails on my Linux act.

The installation succeeds but running firefox fails.

No response

Workflow content

name: Send report emails

on:
  workflow_dispatch:


jobs:
  job:
    runs-on: ubuntu-22.04

    steps:

    - name: Download GeckoDriver
      uses: browser-actions/setup-firefox@v1
    - name: Check Firefox Version
      run: firefox --version

Relevant log output

end report emails/job] ⭐ Run Main Download GeckoDriver
[Send report emails/job]   🐳  docker cp src=/home/jan/.cache/act/browser-actions-setup-firefox@v1/ dst=/var/run/act/actions/browser-actions-setup-firefox@v1/
[Send report emails/job]   🐳  docker exec cmd=[node /var/run/act/actions/browser-actions-setup-firefox@v1/index.js] user= workdir=
| Setup firefox latest (en-US)
[Send report emails/job]   💬  ::debug::isExplicit: 
[Send report emails/job]   💬  ::debug::explicit? false
[Send report emails/job]   💬  ::debug::evaluating 0 versions
[Send report emails/job]   💬  ::debug::match not found
| Attempting to download firefox latest...
| Acquiring latest from https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US
[Send report emails/job]   💬  ::debug::Downloading https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US
[Send report emails/job]   💬  ::debug::Destination /tmp/d3660672-b77b-449d-9c3e-950517b5e6cc
[Send report emails/job]   💬  ::debug::download complete
| Extracting Firefox...
[Send report emails/job]   💬  ::debug::Checking tar --version
[Send report emails/job]   💬  ::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.
| [command]/usr/bin/tar xj --strip-components=1 --warning=no-unknown-keyword --overwrite -C /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4 -f /tmp/d3660672-b77b-449d-9c3e-950517b5e6cc
| Successfully extracted firefox latest to /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4
| Adding to the cache ...
[Send report emails/job]   💬  ::debug::Caching tool firefox latest x64
[Send report emails/job]   💬  ::debug::source dir: /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4
[Send report emails/job]   💬  ::debug::destination /opt/hostedtoolcache/firefox/latest/x64
[Send report emails/job]   💬  ::debug::finished caching tool
| Successfully cached firefox latest to /opt/hostedtoolcache/firefox/latest/x64
| [command]/opt/hostedtoolcache/firefox/latest/x64/firefox --version
| XPCOMGlueLoad error for file /opt/hostedtoolcache/firefox/latest/x64/libmozgtk.so:
| libgtk-3.so.0: cannot open shared object file: No such file or directory
| Couldn't load XPCOM.
[Send report emails/job]   ❗  ::error::The process '/opt/hostedtoolcache/firefox/latest/x64/firefox' failed with exit code 255
[Send report emails/job]   ❌  Failure - Main Download GeckoDriver
[Send report emails/job]   ⚙  ::add-path:: /opt/hostedtoolcache/firefox/latest/x64
[Send report emails/job] exitcode '1': failure
[Send report emails/job] 🏁  Job failed
Error: Job 'job' failed

Additional information

No response

Originally created by @janmechtel on GitHub (Nov 1, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2073 ### Bug report info ```plain text act version: 0.2.53 GOOS: linux GOARCH: amd64 NumCPU: 16 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /home/jan/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.20.10 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.53 -X main.commit=1bb2ee7098f338765ce5169c850d0f19e59d3147 -X main.date=2023-11-01T02:14:01Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 1bb2ee7098f338765ce5169c850d0f19e59d3147 vcs.time: 2023-11-01T02:13:36Z vcs.modified: false Docker Engine: Engine version: 24.0.7 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 23.04 OS type: linux OS version: 23.04 OS arch: x86_64 OS kernel: 6.2.0-36-generic OS CPU: 16 OS memory: 31705 MB Security options: name=apparmor name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act ``` ### Describe issue I'm trying to run `browser-actions/setup-firefox@v1` This works fine on Github, but fails on my Linux act. The installation succeeds but running firefox fails. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Send report emails on: workflow_dispatch: jobs: job: runs-on: ubuntu-22.04 steps: - name: Download GeckoDriver uses: browser-actions/setup-firefox@v1 - name: Check Firefox Version run: firefox --version ``` ### Relevant log output ```sh end report emails/job] ⭐ Run Main Download GeckoDriver [Send report emails/job] 🐳 docker cp src=/home/jan/.cache/act/browser-actions-setup-firefox@v1/ dst=/var/run/act/actions/browser-actions-setup-firefox@v1/ [Send report emails/job] 🐳 docker exec cmd=[node /var/run/act/actions/browser-actions-setup-firefox@v1/index.js] user= workdir= | Setup firefox latest (en-US) [Send report emails/job] 💬 ::debug::isExplicit: [Send report emails/job] 💬 ::debug::explicit? false [Send report emails/job] 💬 ::debug::evaluating 0 versions [Send report emails/job] 💬 ::debug::match not found | Attempting to download firefox latest... | Acquiring latest from https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US [Send report emails/job] 💬 ::debug::Downloading https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US [Send report emails/job] 💬 ::debug::Destination /tmp/d3660672-b77b-449d-9c3e-950517b5e6cc [Send report emails/job] 💬 ::debug::download complete | Extracting Firefox... [Send report emails/job] 💬 ::debug::Checking tar --version [Send report emails/job] 💬 ::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. | [command]/usr/bin/tar xj --strip-components=1 --warning=no-unknown-keyword --overwrite -C /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4 -f /tmp/d3660672-b77b-449d-9c3e-950517b5e6cc | Successfully extracted firefox latest to /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4 | Adding to the cache ... [Send report emails/job] 💬 ::debug::Caching tool firefox latest x64 [Send report emails/job] 💬 ::debug::source dir: /tmp/3794ce6f-9d13-42ea-b02f-b2a2e249f1f4 [Send report emails/job] 💬 ::debug::destination /opt/hostedtoolcache/firefox/latest/x64 [Send report emails/job] 💬 ::debug::finished caching tool | Successfully cached firefox latest to /opt/hostedtoolcache/firefox/latest/x64 | [command]/opt/hostedtoolcache/firefox/latest/x64/firefox --version | XPCOMGlueLoad error for file /opt/hostedtoolcache/firefox/latest/x64/libmozgtk.so: | libgtk-3.so.0: cannot open shared object file: No such file or directory | Couldn't load XPCOM. [Send report emails/job] ❗ ::error::The process '/opt/hostedtoolcache/firefox/latest/x64/firefox' failed with exit code 255 [Send report emails/job] ❌ Failure - Main Download GeckoDriver [Send report emails/job] ⚙ ::add-path:: /opt/hostedtoolcache/firefox/latest/x64 [Send report emails/job] exitcode '1': failure [Send report emails/job] 🏁 Job failed Error: Job 'job' failed ``` ### Additional information _No response_
kerem 2026-03-01 21:47:59 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 30, 2024):

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

<!-- gh-comment-id:2083905660 --> @github-actions[bot] commented on GitHub (Apr 30, 2024): Issue is stale and will be closed in 14 days unless there is new activity
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#988
No description provided.