-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
"Ports Are Not Available" From Docker Container (MacOS) #61
Comments
Big oof apple lol. That is the default Flask port also. We're using FastAPI currently. I believe you can change the port in the docker compose file but I haven't personally tried running the back end on a different port. |
I tried changing the port and unfortunately it breaks the frontend, have not found why yet. |
It's fair to say now that it does not work on MacOS currently. |
The problem is with all the hardcoded URL-s in the frontend. Had to replace 31 port definitions, rebuild the Docker image with no cache enabled (uvicorn caches the initial port) and then finally got the website to work. |
If you turn off all the airplay you can get it to run, but then i find that i have 'network error' constantly. Same error as in the closed issue ticket. I am also running on a macbook, same as the other issues author. |
@bigr00 any chance of a walkthough on this? I have 34 instances of '5000' showing up, and as you only mention 31, I assume that some of them should not be touched? |
@bigr00 can you make a PR with just the changes you made? |
The pyllamacpp non-compliance is cofirmed, it seems not to be correctly building in Docker for arm64. |
So currently the following is needed to do:
And now we have it working on arm64. |
It might be worth seeing the latest comment on that one, might help with getting pyllamacpp working. |
@Josh-XT I've given this a go. The build went successfully, but I still have the Network Error. I'm going to guess that this was build for Arm64, and I'm on an Intel Chipset x64? |
Correct, you can probably use the normal docker-compose in that case. |
Please see #67 and pull the latest. |
@Josh-XT I maybe being utterly ignorant, but I'm not sure how that helps? Sorry! running the normal docker - compose gives me a network error, and the docker for mac won't work as it's arm based, and i'm on the intel? I've tried both versions btw, and i get the Network Error on both. I get an exit with code 132 on the most recent pull. |
The mac one would still work for you, it isn't arm based, it just makes your computer build the docker image instead of pulling it from GitHub. You may need to try this since you've already tried running it before:
Then do:
|
=> ERROR [base 7/12] RUN pip install --no-cache-dir -r requirements-mac 1.7s
failed to solve: executor failed running [/bin/sh -c pip install --no-cache-dir -r requirements-mac.txt]: exit code: 1 |
You'll need to pull the latest to get the file. |
I believe that the |
the mac version needs the following bold added: Install FastAPI app dependencies Run FastAPI app with Uvicorn then all is golden |
maybe i spoke too soon: 0 65.39 Get:52 http://deb.debian.org/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB]
|
Just pushed out an update to fix the dockerfile |
@Josh-XT |
same Network Error when running |
@Josh-XT Just checking in - was wondering if there was any likelihood of an update today, as I'm on the edge of my seat! |
Sorry, day job requiring my attention. :) I am wondering if trying to do a docker prune. This will gut all of your docker stuff, so if you have other docker stuff running, it will break it, so maybe don't do it. Use with caution. It will purge all volumes and containers for docker and make your docker like a fresh install.
|
No worries, I’ll give it a whirl, thanks!
FWIW I tried it on parallels too with a windows install - same problem.
… On 24 Apr 2023, at 21:36, Josh XT ***@***.***> wrote:
docker system prune -a --volumes
|
did install completed with no apparent errors localhost:5000 is blank -Peter |
I suppose the problem with env |
‘docker system prune -a --volumes’,The command has been executed, Also re-cloned the program,but there is still a network error |
Can you guys see if anything is any better with the latest release? |
@Josh-XT 0 131.0 Get:11 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1+deb10u1 [183 kB]
|
I'm getting the same as Mr Bacon both are tested and known good. =========================AI PROVIDER: OPENAI=========================OPENAI_API_KEY="sk-whatever" snip =========================AI PROVIDER: LLAMACPP=========================MODEL_PATH="/Users/peter/ai-computing-assistant/llama.cpp/models/7B/ggml-model-q4_0.bin" |
I've updated the back end port to 7437. Please update to v1.1.0 and let me know if you're still having issues. |
Error! |
just did a full prune and re-install 2023-04-26 08:43:16 (15,2 MB/s) - ‘docker-compose-mac.yml’ saved [574/574] |
the updated version above didn't work either.server dropped apparently. is there a debug stream somewhere I could be capturing that would be useful? |
Can you try the latest? We did a bunch of bug fixes over the past 24 hours. |
Core of this main issue was resolved by changing our back end port. Other issues with docker not communicating back end with front end, please move that conversation to #79 |
Been following the updates, but unfortunately, have not used them successfully. Now the network error is solved, but the program doesn't do any work and the agent chat button is grayed out. It would be great if you could record a Youtube video with the detailed steps from installation to use. Thanks for your hard work! @Josh-XT |
When trying to run the docker container, I'd get:
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use
After looking around for what was using this port, I discovered that since MacOS 12 port 5000 (and 7000) is used for AirPlay. Simple solution is to turn off AirPlay Reciever in the settings, or change the port used by the container, but figured I'd post this here for anyone else who is using a mac and running into the same issue. Might also want to mention this somewhere in the readme?
The text was updated successfully, but these errors were encountered: