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

zstd not found by superset_node during docker compose up dev mode #30206

Closed
3 tasks done
MialLewis opened this issue Sep 10, 2024 · 5 comments · Fixed by #30279
Closed
3 tasks done

zstd not found by superset_node during docker compose up dev mode #30206

MialLewis opened this issue Sep 10, 2024 · 5 comments · Fixed by #30279
Labels
dependencies:npm install:docker Installation - docker container

Comments

@MialLewis
Copy link

MialLewis commented Sep 10, 2024

Bug description

When running webpack I get the following error on master:

superset_node         | [webpack-cli] Failed to load '/app/superset-frontend/webpack.config.js' config
superset_node         | [webpack-cli] Error: Can not access zstd! Is it installed?

Related conversation in PR, where I mention a hacky solution: #30034 (comment)

Raising this to increase visibility in case anyone else encounters.

How to reproduce the bug

docker compose up on master branch.

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@MialLewis MialLewis changed the title sztd not found by superset_node during docker compose up dev mode zstd not found by superset_node during docker compose up dev mode Sep 10, 2024
Copy link

dosubot bot commented Sep 10, 2024

I found a similar closed issue, docker build failed, which was last updated on December 21, 2022. The suggested solution was to ensure that the zstd package is installed in the Dockerfile. Here’s how you can resolve the "zstd not found" error:

  1. Ensure zstd is installed in the Dockerfile:
    The Dockerfile should include the installation of zstd:

    # Somehow we need python3 + build-essential on this side of the house to install node-gyp
    RUN apt-get update -qq \
        && apt-get install \
            -yqq --no-install-recommends \
            build-essential \
            python3 \
            zstd
  2. Rebuild the Docker image without using the cache:
    If you are still encountering the error, it might be due to a caching issue or an incomplete build. Try rebuilding the Docker image without using the cache:

    docker compose build --no-cache
    docker compose up
  3. Ensure simple-zstd is included in package.json:
    Make sure that the simple-zstd package is included in your package.json and properly installed, as it is required by webpack.proxy-config.js for handling zstd compression:

    "dependencies": {
      "simple-zstd": "^1.0.0"
    }

    Run the following command to install the necessary npm packages:

    npm install

This should help resolve the error you are encountering [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added dependencies:npm install:docker Installation - docker container labels Sep 10, 2024
@birkskyum
Copy link
Contributor

birkskyum commented Sep 10, 2024

I hit this error too, on macos arm64 .

superset_node         | > webpack --mode=development --color --watch
superset_node         | 
superset_node         | [webpack-cli] Failed to load '/app/superset-frontend/webpack.config.js' config
superset_node         | [webpack-cli] Error: Can not access zstd! Is it installed?

@victorfonseca
Copy link

Same here, anyone found how to workaround this issue?

@MialLewis
Copy link
Author

Same here, anyone found how to workaround this issue?

If you read the PR linked in the description there’s a hacky solution to get things moving.

@riekusr
Copy link

riekusr commented Sep 13, 2024

some issue here on ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies:npm install:docker Installation - docker container
Projects
None yet
4 participants