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

Docker Local setup failing for "Apps" #321

Open
akashtyagi08 opened this issue Oct 10, 2024 · 1 comment
Open

Docker Local setup failing for "Apps" #321

akashtyagi08 opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@akashtyagi08
Copy link

Report

I have local .env.docker image and then tried to compose image but getting certain directory related issue as shared in the screenshot.

Screenshot 2024-10-10 at 8 15 00 PM

I tried to edit the DockerFile under apps/server to remove the "dist" but still it failed again as it seems to be expected.

Screenshot 2024-10-10 at 8 17 51 PM

Expected behavior

Ideally it should run

Steps to reproduce the problem

  1. Download repo
  2. Local env file
  3. podman compose up (using alternate of Docker)

Logs (if applicable)

Preparing to unpack .../14-publicsuffix_20220811.1734-0+deb11u1_all.deb ...
Unpacking publicsuffix (20220811.1734-0+deb11u1) ...
Setting up libpsl5:amd64 (0.21.0-1.2) ...
Setting up libbrotli1:amd64 (1.0.9-2+b2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2.1+deb11u1) ...
Setting up libnghttp2-14:amd64 (1.43.0-1+deb11u2) ...
Setting up libldap-common (2.4.57+dfsg-3+deb11u1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1+deb11u1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-2.1+deb11u1) ...
Setting up libssh2-1:amd64 (1.9.0-2+deb11u1) ...
Setting up openssl (1.1.1w-0+deb11u1) ...
Setting up publicsuffix (20220811.1734-0+deb11u1) ...
Setting up libldap-2.4-2:amd64 (2.4.57+dfsg-3+deb11u1) ...
Setting up ca-certificates (20210119) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Setting up libcurl4:amd64 (7.74.0-1.3+deb11u13) ...
Setting up curl (7.74.0-1.3+deb11u13) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
--> 1b169a666190
STEP 5/14: WORKDIR /app
--> 86f84e161711
STEP 6/14: COPY ./dist/apps/server/package*.json ./
building at STEP "COPY ./dist/apps/server/package*.json ./": checking on sources under "/var/tmp/libpod_builder2963250586/build": Rel: can't make  relative to /var/tmp/libpod_builder2963250586/build; copier: stat: ["/dist/apps/server/package*.json"]: no such file or directory

ERROR: Service 'pezzo-clickhouse-migrate' failed to build : Build failed
Error: executing /usr/local/bin/docker-compose -f docker-compose.infra.yaml up: exit status 1

Pezzo version

0.9.2

How do you use Pezzo?

Docker Compose

@akashtyagi08 akashtyagi08 added the bug Something isn't working label Oct 10, 2024
@ThomasVuillaume
Copy link

ThomasVuillaume commented Feb 9, 2025

I have the same : impossible to launch the docker-compose out-of-the-box even after having set the .env files.
There seem to be a missing env variable "SUPERTOKENS_DATABASE_URL" and also "Container pezzo-pezzo-clickhouse-migrate-1" is failing to launch due to a table creation already existing :

2025-02-09 11:05:11 Error: create table `reports` (`id` String, `timestamp` DateTime, `environment` String, `organizationId` String, `projectId` String, `promptTokens` Float64, `completionTokens` Float64, `totalTokens` Float64, `promptCost` Float64, `completionCost` Float64, `totalCost` Float64, `duration` UInt32, `type` String, `client` String, `clientVersion` String, `model` String, `provider` String, `modelAuthor` String, `requestTimestamp` DateTime, `requestBody` String, `isError` boolean, `responseStatusCode` UInt32, `responseTimestamp` DateTime, `responseBody` String, `cacheEnabled` boolean, `cacheHit` boolean) engine = MergeTree ORDER BY tuple() - Table default.reports already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.16 (official build))
2025-02-09 11:05:11     at getErrorObj (/app/clickhouse/node_modules/clickhouse/index.js:231:14)
2025-02-09 11:05:11     at Request._callback (/app/clickhouse/node_modules/clickhouse/index.js:610:6)
2025-02-09 11:05:11     at Request.self.callback (/app/clickhouse/node_modules/request/request.js:185:22)
2025-02-09 11:05:11     at Request.emit (node:events:513:28)
2025-02-09 11:05:11     at Request.emit (node:domain:489:12)
2025-02-09 11:05:11     at Request.<anonymous> (/app/clickhouse/node_modules/request/request.js:1161:10)
2025-02-09 11:05:11     at Request.emit (node:events:513:28)
2025-02-09 11:05:11     at Request.emit (node:domain:489:12)
2025-02-09 11:05:11     at IncomingMessage.<anonymous> (/app/clickhouse/node_modules/request/request.js:1083:12)
2025-02-09 11:05:11     at Object.onceWrapper (node:events:627:28)
2025-02-09 11:05:11 npm notice 
2025-02-09 11:05:11 npm notice New major version of npm available! 8.19.2 -> 11.1.0
2025-02-09 11:05:11 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v11.1.0>
2025-02-09 11:05:11 npm notice Run `npm install -g [email protected]` to update!
2025-02-09 11:05:11 npm notice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants