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 up command fails #541

Closed
kentstroker opened this issue Jul 14, 2024 · 6 comments
Closed

docker-compose up command fails #541

kentstroker opened this issue Jul 14, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@kentstroker
Copy link

When trying to build a local Docker deployment using the provided docker-compose file, there is a fatal error.

=> ERROR [frontend build 7/7] RUN BACKEND_API_URL=http://localhost:8000 REACT_APP_SOURCES=local,youtube,wiki,s 3.2s

[frontend build 7/7] RUN BACKEND_API_URL=http://localhost:8000 REACT_APP_SOURCES=local,youtube,wiki,s3 LLM_MODELS=diffbot,openai-gpt-3.5,openai-gpt-4o GOOGLE_CLIENT_ID="" BLOOM_URL=https://workspace-preview.neo4j.io/workspace/explore?connectURL={CONNECT_URL}&search=Show+me+a+graph&featureGenAISuggestions=true&featureGenAISuggestionsInternal=true TIME_PER_CHUNK=4 CHUNK_SIZE=5242880 ENV=DEV LARGE_FILE_SIZE=5242880 CHAT_MODES="" yarn run build:
0.433 yarn run v1.22.22
0.446 $ tsc && vite build
3.159 src/components/QuickStarter.tsx(44,15): error TS2322: Type '{ openSettingsDialog: () => void; isSettingPanelExpanded: boolean; closeSettingModal: () => void; closeOrphanNodeDeletionModal: () => void; showOrphanNodeDeletionModal: boolean; openOrphanNodeDeletionModal: () => void; }' is not assignable to type 'IntrinsicAttributes & { isSettingPanelExpanded: boolean; closeSettingModal: () => void; openSettingsDialog: () => void; }'.
3.159 Property 'closeOrphanNodeDeletionModal' does not exist on type 'IntrinsicAttributes & { isSettingPanelExpanded: boolean; closeSettingModal: () => void; openSettingsDialog: () => void; }'.
3.159 src/utils/Utils.ts(190,92): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
3.159 Type 'undefined' is not assignable to type 'string'.
3.159 src/utils/Utils.ts(205,14): error TS2339: Property 'labels' does not exist on type 'Node'.
3.159 src/utils/Utils.ts(205,52): error TS2339: Property 'labels' does not exist on type 'Node'.
3.160 src/utils/Utils.ts(205,89): error TS2339: Property 'labels' does not exist on type 'Node'.
3.160 src/utils/Utils.ts(209,92): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
3.160 Type 'undefined' is not assignable to type 'string'.
3.160 src/utils/Utils.ts(217,68): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
3.160 Type 'undefined' is not assignable to type 'string'.
3.177 error Command failed with exit code 2.
3.177 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


failed to solve: process "/bin/sh -c BACKEND_API_URL=$BACKEND_API_URL REACT_APP_SOURCES=$REACT_APP_SOURCES LLM_MODELS=$LLM_MODELS GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID BLOOM_URL=$BLOOM_URL TIME_PER_CHUNK=$TIME_PER_CHUNK CHUNK_SIZE=$CHUNK_SIZE ENV=$ENV LARGE_FILE_SIZE=${LARGE_FILE_SIZE} CHAT_MODES=$CHAT_MODES yarn run build" did not complete successfully: exit code: 2

@kentstroker
Copy link
Author

I took a look at the code using pyCharm. The errors thrown are indeed some problems in the code, such as incorrect type assignments and missing labels. I am not a front-end guy, so I will wait for more experienced people to take a look. This is a show stopper for my project - using the web-based tools, and AuraDB has proven to be really slow and prone to many errors. I plan to avoid those problems by running everything locally and with more resources. I appreciate any help you can provide. By the way, this tool has got a lot of potential.

@kartikpersistent
Copy link
Collaborator

The latest DEV branch don't have any type errors please setup the env files for both frontend and backend before running it locally.

@mystvearn
Copy link

I have created the env with both variables for front-end and back-end. Still I get the same error as being described in this thread

@kartikpersistent
Copy link
Collaborator

Please take the dev branch pull

@jtele2
Copy link

jtele2 commented Aug 2, 2024

I am also seeing this issue on main

@kartikpersistent
Copy link
Collaborator

It's fixed in the DEV branch so it will move to the main very soon

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

5 participants