pyspur icon indicating copy to clipboard operation
pyspur copied to clipboard

docker compose up fail

Open wuminmin opened this issue 9 months ago • 7 comments

docker compose -f docker-compose.dev.yml up --build -d

=> ERROR [backend frontend-builder 6/6] RUN npm run build 7.5s => [backend base 4/6] WORKDIR /pyspur/backend 0.1s => [backend base 5/6] COPY backend/pyproject.toml . 0.1s => CANCELED [backend base 6/6] RUN uv pip compile pyproject.toml > requirements.txt && uv pip install --system --no-cache-dir -r requirements.txt && rm require 7.3s

[backend frontend-builder 6/6] RUN npm run build: 0.600 0.600 > [email protected] build 0.600 > next build 0.600 1.297 Attention: Next.js now collects completely anonymous telemetry regarding usage. 1.298 This information is used to shape Next.js' roadmap and prioritize features. 1.298 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.298 https://nextjs.org/telemetry 1.298 1.394 ▲ Next.js 15.1.5 1.394 1.396 Linting and checking validity of types ... 7.409 Failed to compile. 7.409 7.409 ./src/components/modals/HumanInputModal.tsx:16:10 7.409 Type error: Module '"@/utils/api"' declares 'PausedWorkflowResponse' locally, but it is not exported. 7.409 7.409 14 | } from '@heroui/react' 7.409 15 | import { Icon } from '@iconify/react' 7.409 > 16 | import { PausedWorkflowResponse } from '@/utils/api' 7.409 | ^ 7.409 17 | import { formatDistanceToNow } from 'date-fns' 7.409 18 | 7.409 19 | interface HumanInputModalProps { 7.444 Static worker exited with code: 1 and signal: null


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

wuminmin avatar Mar 05 '25 06:03 wuminmin

same issue!?

Maobaobao avatar Mar 05 '25 07:03 Maobaobao

It is possible to use the latest release tag

e.g. git checkout -b tag_v0.1.5 tags/v0.1.5

then, exec: docker compose.....

footprint4me avatar Mar 05 '25 08:03 footprint4me

Build completed. but got error on backend-1 when start.

Image

Maobaobao avatar Mar 05 '25 09:03 Maobaobao

Thank you for raising this.

Regarding the first issue, this error weirdly didn't occur in my env, but since it was just about an import statement, I pushed a change: https://github.com/PySpur-Dev/pyspur/commit/880d850982f6a42b6bf47face92bf665e35d58f1

Can you please try again?

I wasn't able to reproduce the second issue.

Image

JeanKaddour avatar Mar 05 '25 10:03 JeanKaddour

By the way, I highly recommend using Docker devcontainers. It's not a must, but it makes things simpler and more stable.

I just added a note about this in both the English and Chinese Readme:

https://github.com/PySpur-Dev/pyspur?tab=readme-ov-file#%EF%B8%8F-pyspur-development-setup https://github.com/PySpur-Dev/pyspur/blob/main/README_CN.md#%EF%B8%8F-pyspur-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E8%AE%BE%E7%BD%AE

JeanKaddour avatar Mar 05 '25 10:03 JeanKaddour

Build completed. but got error on backend-1 when start.

Image

@Maobaobao One of my team members got a similar issue because his editor setup microsoft line endings. Switching to UNIX line endings in his IDE fixed it (VSCode)

rajeev avatar Mar 07 '25 02:03 rajeev

Build completed. but got error on backend-1 when start.

Image

in your text editor open the entrypoint.sh and somewhere in the editor config check for CRLF and change it to LF, rebuild containers this will work

buffering-mc avatar Apr 22 '25 23:04 buffering-mc