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 compose not working #1329

Closed
tstanek390 opened this issue Aug 18, 2024 · 9 comments · Fixed by #1382
Closed

Docker compose not working #1329

tstanek390 opened this issue Aug 18, 2024 · 9 comments · Fixed by #1382
Labels
bug Something isn't working

Comments

@tstanek390
Copy link

System Info

Mac OS 14
Python 3.11.9
Pandas version = 2.2.14

🐛 Describe the bug

Hi there,
I cant get the Pandas working. Everytime I run docker compose build I get this error. Tried to reinstall all of the packages, and all of the recomendations from the bug report too. Any ideas?
Thx a lot
T.

(pandas) admin@Teodor--MacBook-Pro pandas-ai % docker compose build
[+] Building 17.6s (24/28) docker:desktop-linux
=> [client internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 185B 0.0s
=> [server internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.09kB 0.0s
=> [client internal] load metadata for docker.io/library/node:19.4.0-alpine3.17 0.9s
=> [server internal] load metadata for docker.io/library/python:3.11-slim 1.0s
=> [client auth] library/node:pull token for registry-1.docker.io 0.0s
=> [server auth] library/python:pull token for registry-1.docker.io 0.0s
=> [client internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [client 1/6] FROM docker.io/library/node:19.4.0-alpine3.17@sha256:ab3603cb7934b21f1ffb522b1a1d538809516c6e4cd73b144716bc1830aad1a6 0.0s
=> [client internal] load build context 0.0s
=> => transferring context: 9.81kB 0.0s
=> [server internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [server 1/12] FROM docker.io/library/python:3.11-slim@sha256:ad5dadd957a398226996bc4846e522c39f2a77340b531b28aaab85b2d361210b 0.0s
=> [server internal] load build context 0.0s
=> => transferring context: 7.41kB 0.0s
=> CACHED [client 2/6] WORKDIR /app 0.0s
=> CACHED [client 3/6] COPY package*.json ./ 0.0s
=> CACHED [client 4/6] RUN npm install 0.0s
=> CACHED [client 5/6] COPY . . 0.0s
=> CANCELED [client 6/6] RUN npm run build 16.6s
=> CACHED [server 2/12] WORKDIR /app 0.0s
=> CACHED [server 3/12] RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl make && apt-ge 0.0s
=> CACHED [server 4/12] RUN curl -sSL https://install.python-poetry.org | python3 - 0.0s
=> CACHED [server 5/12] RUN apt-get update && apt-get install netcat-openbsd -y 0.0s
=> CACHED [server 6/12] COPY . /app 0.0s
=> CACHED [server 7/12] RUN poetry lock --no-update 0.0s
=> ERROR [server 8/12] RUN poetry install --no-root 16.4s

[server 8/12] RUN poetry install --no-root:
0.933 Installing dependencies from lock file
1.045
1.045 Package operations: 81 installs, 1 update, 0 removals
1.045
1.046 - Installing idna (3.7)
1.046 - Installing sniffio (1.3.1)
1.331 - Installing anyio (4.4.0)
1.331 - Installing certifi (2024.7.4)
1.332 - Installing h11 (0.14.0)
1.413 - Installing httpcore (0.16.3)
1.414 - Installing numpy (1.26.4)
1.414 - Installing rfc3986 (1.5.0)
1.415 - Installing typing-extensions (4.12.2)
1.416 - Installing six (1.16.0)
3.233 - Installing charset-normalizer (3.3.2)
3.234 - Installing contourpy (1.2.1)
3.234 - Installing cycler (0.12.1)
3.235 - Installing distro (1.9.0)
3.236 - Installing greenlet (3.0.3)
3.239 - Installing httpx (0.23.3)
3.241 - Installing fonttools (4.53.1)
3.242 - Installing iniconfig (2.0.0)
3.244 - Installing kiwisolver (1.4.5)
3.245 - Installing markupsafe (2.1.5)
3.247 - Installing pillow (10.4.0)
3.247 - Installing pluggy (1.5.0)
3.247 - Installing parse (1.20.2)
3.248 - Installing packaging (24.1)
3.355 - Installing pyasn1 (0.6.0)
3.430 - Installing pycparser (2.22)
3.438 - Installing pydantic (1.10.17)
3.466 - Installing pyparsing (3.1.2)
3.486 - Installing python-dateutil (2.9.0.post0)
3.511 - Installing pytz (2024.1)
3.556 - Installing sqlglotrs (0.2.8)
3.576 - Installing starlette (0.25.0)
3.637 - Installing tqdm (4.66.4)
3.662 - Installing urllib3 (2.2.2)
5.182 - Installing astor (0.8.1)
5.182 - Installing astroid (3.2.2)
5.183 - Installing async-timeout (4.0.3)
5.184 - Installing cffi (1.16.0)
5.185 - Installing click (8.1.7)
5.185 - Installing duckdb (0.10.3)
5.186 - Installing ecdsa (0.19.0)
5.188 - Installing fastapi (0.92.0)
5.189 - Installing isort (5.13.2)
5.192 - Installing dill (0.3.8)
5.193 - Installing faker (19.13.0)
5.193 - Installing jinja2 (3.1.4)
5.194 - Installing dnspython (2.6.1)
5.222 - Installing mako (1.3.5)
5.285 - Installing matplotlib (3.9.1)
5.320 - Installing mccabe (0.7.0)
5.336 - Installing mypy-extensions (1.0.0)
5.375 - Installing openai (1.35.12)
5.390 - Installing pandas (1.5.3)
5.398 - Installing parse-type (0.6.2)
5.406 - Installing pathspec (0.12.1)
5.427 - Installing platformdirs (4.2.2)
5.477 - Installing pytest (7.4.4)
5.492 - Installing python-dotenv (1.0.1)
5.499 - Installing requests (2.32.3)
5.509 - Installing rsa (4.9)
5.538 - Installing scipy (1.14.0)
5.542 - Updating setuptools (70.1.0 -> 70.3.0)
5.596 - Installing sqlalchemy (2.0.31)
5.606 - Installing sqlglot (25.5.1)
5.614 - Installing tomlkit (0.12.5)
14.22 - Installing alembic (1.13.2)
14.22 - Installing asyncpg (0.29.0)
14.22 - Installing bcrypt (3.1.7)
14.22 - Installing black (23.12.1)
14.22 - Installing behave (1.2.6)
14.22 - Installing email-validator (1.3.1)
14.23 - Installing fastapi-event (0.1.3)
14.23 - Installing gunicorn (20.1.0)
14.23 - Installing passlib (1.7.4)
14.23 - Installing pandasai (2.2.10)
14.23 - Installing psycopg2 (2.9.9)
14.24 - Installing pylint (3.2.5)
14.24 - Installing pytest-asyncio (0.20.3)
14.24 - Installing python-jose (3.3.0)
14.36 - Installing python-multipart (0.0.9)
14.39 - Installing pyyaml (6.0.1)
14.48 - Installing uvicorn (0.20.0)
16.05
16.05 ChefBuildError
16.05
16.05 Backend subprocess exited when trying to invoke get_requires_for_build_wheel
16.05
16.05 running egg_info
16.05 writing psycopg2.egg-info/PKG-INFO
16.05 writing dependency_links to psycopg2.egg-info/dependency_links.txt
16.05 writing top-level names to psycopg2.egg-info/top_level.txt
16.05
16.05 Error: pg_config executable not found.
16.05
16.05 pg_config is required to build psycopg2 from source. Please add the directory
16.05 containing pg_config to the $PATH or specify the full executable path with the
16.05 option:
16.05
16.05 python setup.py build_ext --pg-config /path/to/pg_config build ...
16.05
16.05 or with the pg_config option in 'setup.cfg'.
16.05
16.05 If you prefer to avoid building psycopg2 from source, please install the PyPI
16.05 'psycopg2-binary' package instead.
16.05
16.05 For further information please check the 'doc/src/install.rst' file (also at
16.05 https://www.psycopg.org/docs/install.html).
16.05
16.05
16.05
16.05 at ~/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare
16.06 160│
16.06 161│ error = ChefBuildError("\n\n".join(message_parts))
16.06 162│
16.06 163│ if error is not None:
16.06 → 164│ raise error from None
16.06 165│
16.06 166│ return path
16.06 167│
16.06 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
16.06
16.06 Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.9) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "psycopg2 (==2.9.9)"'.
16.06
16.17 Warning: The file chosen for install of matplotlib 3.9.1 (matplotlib-3.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl) is yanked. Reason for being yanked: The Windows wheels, under some conditions, caused segfaults in unrelated user code. Due to this we deleted the Windows wheels to prevent these segfaults, however this caused greater disruption as pip then began to try (and fail) to build 3.9.1 from the sdist on Windows which impacted far more users. Yanking the whole release is the only tool available to eliminate these failures without changes to on the user side. The sdist, OSX wheel, and manylinux wheels are all functional and there are no critical bugs in the release. Downstream packagers should not yank their builds of Matplotlib 3.9.1. See matplotlib/matplotlib#28551 for details.


failed to solve: process "/bin/sh -c poetry install --no-root" did not complete successfully: exit code: 1

Copy link

dosubot bot commented Aug 18, 2024

Hello, @tstanek390! 👋 I'm here to help you with any bugs, questions, or contributions you may have. Let's squash those bugs together!

To resolve the error related to pg_config not being found when running docker compose build, you need to ensure that the PostgreSQL development headers and libraries are installed. The pg_config utility is part of the PostgreSQL development package, which is required by the psycopg2 dependency.

You can install the PostgreSQL development package by adding the following line to your Dockerfile:

RUN apt-get update && apt-get install -y postgresql-server-dev-all

Here is an example of how your Dockerfile might look:

FROM python:3.11.9-slim

# Install dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    postgresql-server-dev-all \
    && rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /app

# Copy the project files
COPY . .

# Install Python dependencies
RUN pip install poetry
RUN poetry install

# Command to run the application
CMD ["python", "your_main_script.py"]

This will ensure that pg_config is available during the build process, allowing psycopg2 to be installed correctly [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Aug 18, 2024
@tstanek390
Copy link
Author

Thanks, it worked, but now i am getting another error:

(pandas) admin@Teodor--MacBook-Pro pandas-ai % docker compose build
[+] Building 33.9s (18/22) docker:desktop-linux
=> [client internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 185B 0.0s
=> [server internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 440B 0.0s
=> [server internal] load metadata for docker.io/library/python:3.11.9-slim 1.1s
=> [client internal] load metadata for docker.io/library/node:19.4.0-alpine3.17 1.1s
=> [server auth] library/python:pull token for registry-1.docker.io 0.0s
=> [client auth] library/node:pull token for registry-1.docker.io 0.0s
=> [client internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [server internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [server 1/6] FROM docker.io/library/python:3.11.9-slim@sha256:ad5dadd957a398226996bc4846e522c39f 0.0s
=> [server internal] load build context 0.0s
=> => transferring context: 7.41kB 0.0s
=> [client internal] load build context 0.0s
=> => transferring context: 9.81kB 0.0s
=> CANCELED [server 2/6] RUN apt-get update && apt-get install -y build-essential postgresql-serv 32.8s
=> [client 1/6] FROM docker.io/library/node:19.4.0-alpine3.17@sha256:ab3603cb7934b21f1ffb522b1a1d538809516 0.0s
=> CACHED [client 2/6] WORKDIR /app 0.0s
=> CACHED [client 3/6] COPY package*.json ./ 0.0s
=> CACHED [client 4/6] RUN npm install 0.0s
=> CACHED [client 5/6] COPY . . 0.0s
=> ERROR [client 6/6] RUN npm run build 32.6s

[client 6/6] RUN npm run build:
0.593
0.593 > [email protected] build
0.593 > next build
0.593
1.085 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.085 This information is used to shape Next.js' roadmap and prioritize features.
1.086 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.086 https://nextjs.org/telemetry
1.086
1.122 ▲ Next.js 14.2.3
1.122 - Environments: .env
1.122
1.165 Creating an optimized production build ...
27.57 ✓ Compiled successfully
27.57 Skipping linting
27.57 Checking validity of types ...
30.67 Collecting page data ...
31.96 Generating static pages (0/15) ...
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.18 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.18 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '2837704541'
32.18 }
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.18 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.18 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '2837704541'
32.18 }
32.18
32.18 Error occurred prerendering page "/settings/workspaces/addspaces". Read more: https://nextjs.org/docs/messages/prerender-error
32.18
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.18 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080)
32.18 Generating static pages (3/15)
32.18 Generating static pages (7/15)
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
32.18 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
32.18 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '1265277443'
32.18 }
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
32.18 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
32.18 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '1265277443'
32.18 }
32.18
32.18 Error occurred prerendering page "/settings/logs". Read more: https://nextjs.org/docs/messages/prerender-error
32.18
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
32.18 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873)
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
32.18 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
32.18 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '3628362172'
32.18 }
32.18 Get request failed TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
32.18 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 }
32.18 }
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
32.18 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
32.18 cause: Error: connect ECONNREFUSED ::1:8000
32.18 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.18 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.18 errno: -111,
32.18 code: 'ECONNREFUSED',
32.18 syscall: 'connect',
32.18 address: '::1',
32.18 port: 8000
32.18 },
32.18 digest: '3628362172'
32.18 }
32.18
32.18 Error occurred prerendering page "/settings/workspaces". Read more: https://nextjs.org/docs/messages/prerender-error
32.18
32.18 TypeError: fetch failed
32.18 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.18 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
32.18 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244)
32.26 Get request failed TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.26 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 }
32.26 }
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.26 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 },
32.26 digest: '711901359'
32.26 }
32.26 Get request failed TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.26 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 }
32.26 }
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.26 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 },
32.26 digest: '711901359'
32.26 }
32.26
32.26 Error occurred prerendering page "/settings/workspaces/editspaces". Read more: https://nextjs.org/docs/messages/prerender-error
32.26
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/workspaces/editspaces/page.js:1:13704)
32.26 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135)
32.26 Generating static pages (11/15)
32.26 Get request failed TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
32.26 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 }
32.26 }
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
32.26 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 },
32.26 digest: '4039937587'
32.26 }
32.26 Get request failed TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
32.26 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 }
32.26 }
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
32.26 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
32.26 cause: Error: connect ECONNREFUSED ::1:8000
32.26 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
32.26 at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
32.26 errno: -111,
32.26 code: 'ECONNREFUSED',
32.26 syscall: 'connect',
32.26 address: '::1',
32.26 port: 8000
32.26 },
32.26 digest: '4039937587'
32.26 }
32.26
32.26 Error occurred prerendering page "/settings/datasets". Read more: https://nextjs.org/docs/messages/prerender-error
32.26
32.26 TypeError: fetch failed
32.26 at Object.fetch (node:internal/deps/undici/undici:14152:11)
32.26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
32.26 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
32.26 at async u (/app/build/server/app/settings/datasets/page.js:1:8848)
32.27 ✓ Generating static pages (15/15)
32.28
32.28 > Export encountered errors on following paths:
32.28 /(ee)/settings/logs/page: /settings/logs
32.28 /settings/datasets/page: /settings/datasets
32.28 /settings/workspaces/addspaces/page: /settings/workspaces/addspaces
32.28 /settings/workspaces/editspaces/page: /settings/workspaces/editspaces
32.28 /settings/workspaces/page: /settings/workspaces


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

Copy link

dosubot bot commented Aug 18, 2024

To resolve the ECONNREFUSED error on ::1:8000 during the Next.js build process in Docker, you should ensure that the server service is properly configured and accessible. Here are a few steps you can take:

  1. Check if the server is running and accessible: Ensure that the server service is up and running. You can do this by checking the logs of the server container.

    docker-compose logs server
  2. Verify the network configuration: Ensure that the client service can communicate with the server service over the Docker network. Both services are part of the pandabi-network, so they should be able to communicate with each other using their service names.

  3. Update the client configuration: Ensure that the client is trying to connect to the correct address. Instead of ::1:8000, which refers to the localhost of the container, you should use the service name server and the port 8000.

    In your Next.js configuration or environment variables, update the API URL to use http://server:8000 instead of http://localhost:8000 or http://::1:8000.

    For example, if you have an environment variable for the API URL in ./client/.env, update it as follows:

    NEXT_PUBLIC_API_URL=http://server:8000
  4. Ensure the server is listening on all interfaces: Make sure that the server inside the server container is configured to listen on all network interfaces, not just localhost. This can usually be done by setting the host to 0.0.0.0 in the server configuration.

    For example, if you are using an Express.js server, you can update the listen method:

    app.listen(8000, '0.0.0.0', () => {
      console.log('Server is running on port 8000');
    });
  5. Expose the correct port in the Dockerfile: Ensure that the Dockerfile for the client service exposes the correct port. Based on the provided client/Dockerfile, it looks like the client service is set to expose port 3000. Make sure this matches the port configuration in your Docker Compose file.

    FROM node:19.4.0-alpine3.17
    
    WORKDIR /app
    
    COPY package*.json ./
    
    RUN npm install
    
    COPY . .
    
    RUN npm run build
    
    EXPOSE 3000
    
    CMD ["npm", "start"]

By following these steps, you should be able to resolve the ECONNREFUSED error and ensure that the client service can successfully communicate with the server service during the Next.js build process in Docker [1][2].

To continue talking to Dosu, mention @dosu.

@tstanek390
Copy link
Author

Thx, I got even a few another steps further, but on the very end of the build process I am getting this:

(pandasai) admin@Teodor--MacBook-Pro pandas-ai % docker-compose build
[+] Building 40.7s (29/29) FINISHED docker:desktop-linux
=> [server internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.17kB 0.0s
=> [client internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 185B 0.0s
=> [client internal] load metadata for docker.io/library/node:19.4.0-alpine3.17 0.5s
=> [server internal] load metadata for docker.io/library/python:3.11 0.6s
=> [client internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [server internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [client 1/6] FROM docker.io/library/node:19.4.0-alpine3.17@sha256:ab3603cb7934b21f1ffb522b1a1d538809516c6e4cd73b144716bc1830aad1a6 0.0s
=> [client internal] load build context 0.0s
=> => transferring context: 9.85kB 0.0s
=> [server 1/13] FROM docker.io/library/python:3.11@sha256:a23661e4d5dacf56028a800d3af100397a99b120d0f0de5892db61437fd9eb6c 0.0s
=> [server internal] load build context 0.0s
=> => transferring context: 7.38kB 0.0s
=> CACHED [server 2/13] WORKDIR /app 0.0s
=> CACHED [server 3/13] RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl make && apt-g 0.0s
=> CACHED [server 4/13] RUN curl -sSL https://install.python-poetry.org | python3 - 0.0s
=> CACHED [server 5/13] RUN apt-get update && apt-get install netcat-openbsd -y 0.0s
=> CACHED [server 6/13] COPY . /app 0.0s
=> CACHED [server 7/13] RUN pip install psycopg2-binary==2.9.9 0.0s
=> CACHED [server 8/13] RUN poetry lock --no-update 0.0s
=> CACHED [server 9/13] RUN poetry install --no-root 0.0s
=> CACHED [server 10/13] COPY wait-for-it.sh /wait-for-it.sh 0.0s
=> CACHED [server 11/13] RUN chmod +x /wait-for-it.sh 0.0s
=> CACHED [server 12/13] COPY startup.sh /startup.sh 0.0s
=> CACHED [server 13/13] RUN chmod +x /startup.sh 0.0s
=> CACHED [client 2/6] WORKDIR /app 0.0s
=> CACHED [client 3/6] COPY package*.json ./ 0.0s
=> CACHED [client 4/6] RUN npm install 0.0s
=> CACHED [client 5/6] COPY . . 0.0s
=> ERROR [client 6/6] RUN npm run build 40.1s
=> [server] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:4f2b43ea8406cf446ef2e66321ecea7dce5f4aed65bf378115614027edc64c64 0.0s
=> => naming to docker.io/library/pandas-ai-server 0.0s
=> [server] resolving provenance for metadata file 0.0s

[client 6/6] RUN npm run build:
0.609
0.609 > [email protected] build
0.609 > next build
0.609
1.224 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.225 This information is used to shape Next.js' roadmap and prioritize features.
1.225 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.225 https://nextjs.org/telemetry
1.225
1.286 ▲ Next.js 14.2.3
1.286 - Environments: .env
1.287
1.346 Creating an optimized production build ...
33.87 ✓ Compiled successfully
33.87 Skipping linting
33.87 Checking validity of types ...
37.62 Collecting page data ...
39.16 Generating static pages (0/15) ...
39.36 Generating static pages (3/15)
39.36 Get request failed TypeError: fetch failed
39.36 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.36 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
39.36 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
39.36 cause: Error: getaddrinfo ENOTFOUND server
39.36 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.36 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.36 errno: -3008,
39.36 code: 'ENOTFOUND',
39.36 syscall: 'getaddrinfo',
39.36 hostname: 'server'
39.36 }
39.36 }
39.36 TypeError: fetch failed
39.36 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.36 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
39.36 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
39.36 cause: Error: getaddrinfo ENOTFOUND server
39.36 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.36 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.36 errno: -3008,
39.36 code: 'ENOTFOUND',
39.36 syscall: 'getaddrinfo',
39.36 hostname: 'server'
39.36 },
39.36 digest: '1265277443'
39.36 }
39.36 Get request failed TypeError: fetch failed
39.36 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.36 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
39.36 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
39.36 cause: Error: getaddrinfo ENOTFOUND server
39.36 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.36 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.36 errno: -3008,
39.36 code: 'ENOTFOUND',
39.36 syscall: 'getaddrinfo',
39.36 hostname: 'server'
39.36 }
39.36 }
39.36 TypeError: fetch failed
39.36 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.36 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
39.36 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
39.36 cause: Error: getaddrinfo ENOTFOUND server
39.36 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.36 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.36 errno: -3008,
39.36 code: 'ENOTFOUND',
39.36 syscall: 'getaddrinfo',
39.36 hostname: 'server'
39.36 },
39.36 digest: '1265277443'
39.36 }
39.36
39.36 Error occurred prerendering page "/settings/logs". Read more: https://nextjs.org/docs/messages/prerender-error
39.36
39.36 TypeError: fetch failed
39.36 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.36 at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
39.36 at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873)
39.36 Generating static pages (7/15)
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '1656975805'
39.45 }
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '1656975805'
39.45 }
39.45
39.45 Error occurred prerendering page "/settings/workspaces/editspaces". Read more: https://nextjs.org/docs/messages/prerender-error
39.45
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135)
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '4039937587'
39.45 }
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '4039937587'
39.45 }
39.45
39.45 Error occurred prerendering page "/settings/datasets". Read more: https://nextjs.org/docs/messages/prerender-error
39.45
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
39.45 at async u (/app/build/server/app/settings/datasets/page.js:1:8848)
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
39.45 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
39.45 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '3287353831'
39.45 }
39.45 Get request failed TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
39.45 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 }
39.45 }
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
39.45 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
39.45 cause: Error: getaddrinfo ENOTFOUND server
39.45 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.45 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.45 errno: -3008,
39.45 code: 'ENOTFOUND',
39.45 syscall: 'getaddrinfo',
39.45 hostname: 'server'
39.45 },
39.45 digest: '3287353831'
39.45 }
39.45
39.45 Error occurred prerendering page "/settings/workspaces/addspaces". Read more: https://nextjs.org/docs/messages/prerender-error
39.45
39.45 TypeError: fetch failed
39.45 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.45 at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
39.45 at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080)
39.45 Generating static pages (11/15)
39.47 Get request failed TypeError: fetch failed
39.47 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.47 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.47 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
39.47 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
39.47 cause: Error: getaddrinfo ENOTFOUND server
39.47 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.47 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.47 errno: -3008,
39.47 code: 'ENOTFOUND',
39.47 syscall: 'getaddrinfo',
39.47 hostname: 'server'
39.47 }
39.47 }
39.47 TypeError: fetch failed
39.47 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.47 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.47 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
39.47 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
39.47 cause: Error: getaddrinfo ENOTFOUND server
39.47 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.47 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.47 errno: -3008,
39.47 code: 'ENOTFOUND',
39.47 syscall: 'getaddrinfo',
39.47 hostname: 'server'
39.47 },
39.47 digest: '3628362172'
39.47 }
39.47 Get request failed TypeError: fetch failed
39.47 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.47 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.47 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
39.47 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
39.47 cause: Error: getaddrinfo ENOTFOUND server
39.47 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.47 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.47 errno: -3008,
39.47 code: 'ENOTFOUND',
39.47 syscall: 'getaddrinfo',
39.47 hostname: 'server'
39.47 }
39.47 }
39.47 TypeError: fetch failed
39.47 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.47 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.47 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
39.47 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
39.47 cause: Error: getaddrinfo ENOTFOUND server
39.47 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
39.47 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
39.47 errno: -3008,
39.47 code: 'ENOTFOUND',
39.47 syscall: 'getaddrinfo',
39.47 hostname: 'server'
39.47 },
39.47 digest: '3628362172'
39.47 }
39.47
39.47 Error occurred prerendering page "/settings/workspaces". Read more: https://nextjs.org/docs/messages/prerender-error
39.47
39.47 TypeError: fetch failed
39.47 at Object.fetch (node:internal/deps/undici/undici:14152:11)
39.47 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
39.47 at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
39.47 at async c (/app/build/server/app/settings/workspaces/page.js:1:10244)
39.63 ✓ Generating static pages (15/15)
39.66
39.66 > Export encountered errors on following paths:
39.66 /(ee)/settings/logs/page: /settings/logs
39.66 /settings/datasets/page: /settings/datasets
39.66 /settings/workspaces/addspaces/page: /settings/workspaces/addspaces
39.66 /settings/workspaces/editspaces/page: /settings/workspaces/editspaces
39.66 /settings/workspaces/page: /settings/workspaces


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

@tstanek390
Copy link
Author

Still stuck on this? Any other ideas?

Copy link

dosubot bot commented Aug 24, 2024

To resolve the getaddrinfo ENOTFOUND server error during the Next.js build process in Docker, you need to ensure that the server you are trying to fetch data from is accessible from within the Docker container. This error typically indicates that the DNS lookup for the server failed. Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check Server URL: Ensure that the server URL you are using is correct and accessible from within the Docker container.

  2. Network Configuration: Make sure that the Docker container has the correct network configuration to access external servers. You might need to configure Docker to use the host network or ensure that the DNS settings are correct.

  3. Dockerfile Adjustments: Sometimes, adding a wait-for-it script or similar to ensure that the server is up and running before the build process tries to fetch data can help.

Here is an example of how you might modify your Dockerfile to include a wait-for-it script:

FROM node:19.4.0-alpine3.17

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

# Add wait-for-it script to ensure the server is up before running the build
COPY wait-for-it.sh /usr/local/bin/wait-for-it
RUN chmod +x /usr/local/bin/wait-for-it

# Use wait-for-it to wait for the server to be available
RUN /usr/local/bin/wait-for-it server:8000 --timeout=30 --strict -- npm run build

EXPOSE 3000

CMD ["npm", "start"]

In this example, replace server:8000 with the actual server address and port you are trying to connect to. The wait-for-it.sh script is a common utility to wait for a service to become available before proceeding.

If you do not have the wait-for-it.sh script, you can download it from here.

By ensuring the server is accessible and possibly waiting for it to be ready, you should be able to resolve the getaddrinfo ENOTFOUND server error [1].

To continue talking to Dosu, mention @dosu.

@tstanek390
Copy link
Author

Thanks. I got closer again, but now having this issue: pandabi-frontend | node:internal/modules/cjs/loader:1056
pandabi-frontend | throw err;
pandabi-frontend | ^
pandabi-frontend |
pandabi-frontend | Error: Cannot find module '/npm'
pandabi-frontend | at Module._resolveFilename (node:internal/modules/cjs/loader:1053:15)
pandabi-frontend | at Module._load (node:internal/modules/cjs/loader:898:27)
pandabi-frontend | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:84:12)
pandabi-frontend | at node:internal/main/run_main_module:23:47 {
pandabi-frontend | code: 'MODULE_NOT_FOUND',
pandabi-frontend | requireStack: []
pandabi-frontend | }
pandabi-frontend |
pandabi-frontend | Node.js v19.4.0

Copy link

dosubot bot commented Aug 24, 2024

To resolve the "Cannot find module '/npm'" error in your Node.js application running in Docker, ensure that the node_modules directory is correctly created and populated during the build process. Here are the steps to verify and fix this issue:

  1. Verify package.json and package-lock.json: Ensure these files are correctly located in the root directory of your project.

  2. Check npm install: Ensure the npm install command successfully installs all dependencies without errors.

  3. Verify npm start Script: Ensure the npm start script is correctly defined in your package.json.

  4. Add a Step to Verify Directory Contents: Add a step in your Dockerfile to list the contents of the /app directory after the npm install step to ensure the node_modules directory is created.

Here is an updated Dockerfile with the verification step:

FROM node:19.4.0-alpine3.17

WORKDIR /app

COPY package*.json ./

RUN npm install

# Verify the contents of the /app directory
RUN ls -la /app

COPY . .

RUN npm run build

EXPOSE 3000

CMD ["npm", "start"]

This will help you ensure that the node_modules directory is created and contains the necessary modules. If the node_modules directory is missing, it indicates an issue with the npm install step [1].

To continue talking to Dosu, mention @dosu.

@raininja
Copy link

raininja commented Sep 9, 2024

I have a similar error with the npm run build

 => [server] resolving provenance for metadata file                                                                                                                                                      0.0s
 => ERROR [client 8/8] RUN npm run build                                                                                                                                                                45.4s
------
 > [client 8/8] RUN npm run build:
0.647
0.647 > [email protected] build
0.647 > next build
0.647
1.452 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.452 This information is used to shape Next.js' roadmap and prioritize features.
1.452 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.452 https://nextjs.org/telemetry
1.452
1.517   ▲ Next.js 14.2.3
1.517
1.580    Creating an optimized production build ...
36.19  ✓ Compiled successfully
36.19    Skipping linting
36.19    Checking validity of types ...
42.16    Collecting page data ...
44.35    Generating static pages (0/15) ...
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.61       at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61   digest: '2992005684',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.61       at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.61       at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61   digest: '2992005684',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.61       at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61
44.61 Error occurred prerendering page "/settings/workspaces/editspaces". Read more: https://nextjs.org/docs/messages/prerender-error
44.61
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     at B (/app/build/server/chunks/948.js:2:6846)
44.61     at /app/build/server/chunks/948.js:2:9092
44.61     at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.61     at async p (/app/build/server/app/settings/workspaces/editspaces/page.js:1:12135)
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/workspace/list
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
44.61       at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61     input: 'undefined/v1/workspace/list',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/workspace/list
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61   digest: '4158753373',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
44.61       at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61     input: 'undefined/v1/workspace/list',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/workspace/list
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
44.61       at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61     input: 'undefined/v1/workspace/list',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/workspace/list
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61   digest: '4158753373',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
44.61       at async c (/app/build/server/app/settings/workspaces/page.js:1:10244) {
44.61     input: 'undefined/v1/workspace/list',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61
44.61 Error occurred prerendering page "/settings/workspaces". Read more: https://nextjs.org/docs/messages/prerender-error
44.61
44.61 TypeError: Failed to parse URL from undefined/v1/workspace/list
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     at B (/app/build/server/chunks/948.js:2:6846)
44.61     at /app/build/server/chunks/948.js:2:9092
44.61     at async n (/app/build/server/app/settings/workspaces/page.js:1:13344)
44.61     at async c (/app/build/server/app/settings/workspaces/page.js:1:10244)
44.61    Generating static pages (3/15)
44.61    Generating static pages (7/15)
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
44.61       at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61   digest: '2842266386',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
44.61       at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
44.61       at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61   digest: '2842266386',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
44.61       at async u (/app/build/server/app/settings/datasets/page.js:1:8848) {
44.61     input: 'undefined/v1/datasets/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61
44.61 Error occurred prerendering page "/settings/datasets". Read more: https://nextjs.org/docs/messages/prerender-error
44.61
44.61 TypeError: Failed to parse URL from undefined/v1/datasets/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     at B (/app/build/server/chunks/948.js:2:6846)
44.61     at /app/build/server/chunks/948.js:2:9092
44.61     at async i (/app/build/server/app/settings/datasets/page.js:1:13460)
44.61     at async u (/app/build/server/app/settings/datasets/page.js:1:8848)
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/logs/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
44.61       at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61     input: 'undefined/v1/logs/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/logs/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61   digest: '3507692322',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
44.61       at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61     input: 'undefined/v1/logs/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 Get request failed TypeError: Failed to parse URL from undefined/v1/logs/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
44.61       at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61     input: 'undefined/v1/logs/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61 TypeError: Failed to parse URL from undefined/v1/logs/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     ... 3 lines matching cause stack trace ...
44.61     at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61   digest: '3507692322',
44.61   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.61       at new NodeError (node:internal/errors:399:5)
44.61       at URL.onParseError (node:internal/url:565:9)
44.61       at new URL (node:internal/url:645:5)
44.61       at new Request (node:internal/deps/undici/undici:6947:25)
44.61       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61       at B (/app/build/server/chunks/948.js:2:6846)
44.61       at /app/build/server/chunks/948.js:2:9092
44.61       at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
44.61       at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873) {
44.61     input: 'undefined/v1/logs/',
44.61     code: 'ERR_INVALID_URL'
44.61   }
44.61 }
44.61
44.61 Error occurred prerendering page "/settings/logs". Read more: https://nextjs.org/docs/messages/prerender-error
44.61
44.61 TypeError: Failed to parse URL from undefined/v1/logs/
44.61     at new Request (node:internal/deps/undici/undici:6949:19)
44.61     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.61     at B (/app/build/server/chunks/948.js:2:6846)
44.61     at /app/build/server/chunks/948.js:2:9092
44.61     at async a (/app/build/server/app/(ee)/settings/logs/page.js:46:4428)
44.61     at async u (/app/build/server/app/(ee)/settings/logs/page.js:46:2873)
44.61    Generating static pages (11/15)
44.70 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.70     at new Request (node:internal/deps/undici/undici:6949:19)
44.70     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70     ... 3 lines matching cause stack trace ...
44.70     at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.70       at new NodeError (node:internal/errors:399:5)
44.70       at URL.onParseError (node:internal/url:565:9)
44.70       at new URL (node:internal/url:645:5)
44.70       at new Request (node:internal/deps/undici/undici:6947:25)
44.70       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70       at B (/app/build/server/chunks/948.js:2:6846)
44.70       at /app/build/server/chunks/948.js:2:9092
44.70       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.70       at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70     input: 'undefined/v1/datasets/',
44.70     code: 'ERR_INVALID_URL'
44.70   }
44.70 }
44.70 TypeError: Failed to parse URL from undefined/v1/datasets/
44.70     at new Request (node:internal/deps/undici/undici:6949:19)
44.70     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70     ... 3 lines matching cause stack trace ...
44.70     at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70   digest: '2806050886',
44.70   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.70       at new NodeError (node:internal/errors:399:5)
44.70       at URL.onParseError (node:internal/url:565:9)
44.70       at new URL (node:internal/url:645:5)
44.70       at new Request (node:internal/deps/undici/undici:6947:25)
44.70       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70       at B (/app/build/server/chunks/948.js:2:6846)
44.70       at /app/build/server/chunks/948.js:2:9092
44.70       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.70       at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70     input: 'undefined/v1/datasets/',
44.70     code: 'ERR_INVALID_URL'
44.70   }
44.70 }
44.70 Get request failed TypeError: Failed to parse URL from undefined/v1/datasets/
44.70     at new Request (node:internal/deps/undici/undici:6949:19)
44.70     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70     ... 3 lines matching cause stack trace ...
44.70     at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.70       at new NodeError (node:internal/errors:399:5)
44.70       at URL.onParseError (node:internal/url:565:9)
44.70       at new URL (node:internal/url:645:5)
44.70       at new Request (node:internal/deps/undici/undici:6947:25)
44.70       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70       at B (/app/build/server/chunks/948.js:2:6846)
44.70       at /app/build/server/chunks/948.js:2:9092
44.70       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.70       at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70     input: 'undefined/v1/datasets/',
44.70     code: 'ERR_INVALID_URL'
44.70   }
44.70 }
44.70 TypeError: Failed to parse URL from undefined/v1/datasets/
44.70     at new Request (node:internal/deps/undici/undici:6949:19)
44.70     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70     ... 3 lines matching cause stack trace ...
44.70     at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70   digest: '2806050886',
44.70   [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
44.70       at new NodeError (node:internal/errors:399:5)
44.70       at URL.onParseError (node:internal/url:565:9)
44.70       at new URL (node:internal/url:645:5)
44.70       at new Request (node:internal/deps/undici/undici:6947:25)
44.70       at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70       at B (/app/build/server/chunks/948.js:2:6846)
44.70       at /app/build/server/chunks/948.js:2:9092
44.70       at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.70       at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080) {
44.70     input: 'undefined/v1/datasets/',
44.70     code: 'ERR_INVALID_URL'
44.70   }
44.70 }
44.70
44.70 Error occurred prerendering page "/settings/workspaces/addspaces". Read more: https://nextjs.org/docs/messages/prerender-error
44.70
44.70 TypeError: Failed to parse URL from undefined/v1/datasets/
44.70     at new Request (node:internal/deps/undici/undici:6949:19)
44.70     at a (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180691)
44.70     at B (/app/build/server/chunks/948.js:2:6846)
44.70     at /app/build/server/chunks/948.js:2:9092
44.70     at async n (/app/build/server/app/settings/workspaces/addspaces/page.js:1:15050)
44.70     at async p (/app/build/server/app/settings/workspaces/addspaces/page.js:1:12080)
44.95  ✓ Generating static pages (15/15)
44.96
44.96 > Export encountered errors on following paths:
44.96   /(ee)/settings/logs/page: /settings/logs
44.96   /settings/datasets/page: /settings/datasets
44.96   /settings/workspaces/addspaces/page: /settings/workspaces/addspaces
44.96   /settings/workspaces/editspaces/page: /settings/workspaces/editspaces
44.96   /settings/workspaces/page: /settings/workspaces
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

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

Successfully merging a pull request may close this issue.

3 participants
@raininja @tstanek390 and others