langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Langflow UI not coming up

Open sampratha28 opened this issue 1 year ago β€’ 6 comments

langflow UI is stuck in loading and not coming up.

tried in both chrome and firefox

sampratha28 avatar Jan 10 '24 16:01 sampratha28

πŸ€–

Hello @sampratha28! πŸ‘‹ I'm Dosu, a friendly bot here to assist you with bugs, answer your questions, and help you become a contributor while we wait for a human maintainer. Don't worry, we'll get your issue sorted out together. 😊

Based on the similar issues I found in the langflow repository, there could be a few reasons why the UI is not loading.

One of the issues, UI wont open due to javascript security error, suggests that the problem might be due to a JavaScript security error. This issue was also referenced by another issue, Blank page / broken UI, which might indicate that the problem is common.

Another issue, Blank UI page after started, was resolved by a commit that fixed a bug where a parameter of value False would be treated as null. You can check the commit here for more details.

The third issue, Blank page appears when accessing Langflow website, suggests that the problem might be due to a missing script in the assets folder.

As for the LoadingSpinner component, it seems to be returning an empty fragment (<></>), which means nothing is displayed when this component is used. You can check the code here. To fix this issue, you should return a loading spinner or some other loading indicator from this component.

Unfortunately, I couldn't find any changes in the latest version of langflow that could potentially cause the UI to get stuck on loading. It would be helpful if you could provide more details about the issue, such as any error messages you're seeing in the browser console. This would help in diagnosing the problem.

I hope this helps! If you have any more questions, feel free to ask.

-Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a πŸ‘ if this is helpful and πŸ‘Ž if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

dosubot[bot] avatar Jan 10 '24 16:01 dosubot[bot]

me too

icekeg avatar Jan 17 '24 08:01 icekeg

me too

ruan-xb-63 avatar Jan 26 '24 03:01 ruan-xb-63

me too I tried Google Chrome and Microsoft edge image

ruan-xb-63 avatar Jan 26 '24 03:01 ruan-xb-63

I have switched to version 0.6.7 and still the error with docker-compose

`FROM python:3.11-slim

RUN apt-get update && apt-get install gcc g++ git make -y && apt-get clean
&& rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 user

Create the directory and set the permissions

RUN mkdir -p /home/langflow && chown user:user /home/langflow USER user ENV HOME=/home/user
PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

COPY --chown=user . $HOME/app

RUN pip install langflow>==0.6.7 -U --user

CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7862", "--log-level","debug"] `

any idea how to solve it directly in the docker image?

flefevre avatar Feb 23 '24 23:02 flefevre

I recommend trying Python 3.10. Additionally, you can find some solutions to this problem on our Discord channel: https://discord.com/channels/1116803230643527710/1129415917445586974

anovazzi1 avatar Mar 21 '24 15:03 anovazzi1