HeadlessX icon indicating copy to clipboard operation
HeadlessX copied to clipboard

[Bug]: ERROR [yt-engine 5/8] COPY packages/yt-dude ./packages/yt-dude

Open schniggie opened this issue 8 months ago • 4 comments

Preliminary Checks

  • [x] I have searched existing issues for similar problems
  • [x] I have read the troubleshooting documentation
  • [x] I am using a supported version of HeadlessX

HeadlessX Version

main (latest)

Installation Method

Docker

Affected App/Package

other

Environment

Ubuntu 22.04

Bug Description

docker compose --profile all up --build -d

currently fails for: yt-engine

Last commit in that dir is: chore: remove yt-dude package from monorepo

 => ERROR [yt-engine 5/8] COPY packages/yt-dude ./packages/yt-dude                                                                                                   0.0s
------
 > [yt-engine 5/8] COPY packages/yt-dude ./packages/yt-dude:
------
yt-engine.Dockerfile:20

--------------------

  18 |     WORKDIR /app

  19 |     

  20 | >>> COPY packages/yt-dude ./packages/yt-dude

  21 |     COPY apps/yt-engine ./apps/yt-engine

  22 |     

--------------------

target yt-engine: failed to solve: failed to compute cache key: failed to calculate checksum of ref 84e81941-deca-4419-862f-d4d96264df2e::tpu7189ffh8sps86nypvxcw5n: "/packages/yt-dude": not found

Expected Behavior

Builds

Actual Behavior

Build fails

Steps to Reproduce

cp infra/docker/.env.example infra/docker/.env cd infra/docker docker compose --profile all up --build -d

Error Logs


Configuration


Severity

Critical (application crashes, security vulnerability)

Browser Context

None

Additional Context

No response

Contribution

  • [ ] I am willing to help fix this bug
  • [x] I can provide additional testing
  • [ ] I can help with documentation updates

schniggie avatar Mar 23 '26 20:03 schniggie

Short update I also tried cloning https://github.com/saifyxpro/yt-dude.git into the packages dir, but here I get:

 => ERROR [yt-engine 7/8] RUN mkdir -p /app/tmp/yt-engine     && uv pip install --system "./packages/yt-dude[default,curl-cffi]" "./apps/yt-engine"                  3.4s
------
 > [yt-engine 7/8] RUN mkdir -p /app/tmp/yt-engine     && uv pip install --system "./packages/yt-dude[default,curl-cffi]" "./apps/yt-engine":
0.392 Using Python 3.12.13 environment at: /usr/local
3.192   × No solution found when resolving dependencies:
3.192   ╰─▶ Because yt-dude-ejs was not found in the package registry and
3.192       yt-dude[default]==2026.2.21 depends on yt-dude-ejs==0.5.0, we can
3.192       conclude that yt-dude[default]==2026.2.21 cannot be used.
3.192       And because only yt-dude[default]==2026.2.21 is available and you
3.192       require yt-dude[default], we can conclude that your requirements are
3.192       unsatisfiable.
------
yt-engine.Dockerfile:23

--------------------

  22 |     

  23 | >>> RUN mkdir -p /app/tmp/yt-engine \

  24 | >>>     && uv pip install --system "./packages/yt-dude[default,curl-cffi]" "./apps/yt-engine"

  25 |     

--------------------

target yt-engine: failed to solve: process "/bin/sh -c mkdir -p /app/tmp/yt-engine     && uv pip install --system \"./packages/yt-dude[default,curl-cffi]\" \"./apps/yt-engine\"" did not complete successfully: exit code: 1

schniggie avatar Mar 23 '26 21:03 schniggie

Issue resolved.

You can now try the latest version of HeadlessX v2.1.2 through the CLI:

npm install -g @headlessx-cli/core
headlessx init

I already tested with develop branch:

Image

saifyxpro avatar Mar 24 '26 21:03 saifyxpro

@saifyxpro No, issue with your docker-compose stack is yet not resolved.

schniggie avatar Mar 25 '26 06:03 schniggie

Please try the newly released version. I tested it and it should address the current setup/runtime problems. You can now try the latest version of HeadlessX v2.1.2 through the CLI:

npm install -g @headlessx-cli/core
headlessx init

saifyxpro avatar Mar 25 '26 10:03 saifyxpro