Follow along with my AI Agents Masterclass videos! All of the code I create and use in this series on YouTube will be here for you to use and even build on top of!
MIT License
665
stars
311
forks
source link
Bind for 0.0.0.0:5432 failed: port is already allocated #7
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker compose up
[+] Running 6/6
✔ Network local-ai-packageddemo Created 0.0s
✔ Container local-ai-packaged-postgres-1 Created 0.1s
✔ Container open-webui Created 0.1s
✔ Container qdrant Created 0.1s
✔ Container n8n-import Created 0.1s
✔ Container n8n Created 0.0s
Attaching to postgres-1, n8n, n8n-import, open-webui, qdrant
postgres-1 |
postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
qdrant | _
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5432 -> 0.0.0.0:0: listen tcp 0.0.0.0:5432: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker system prune -a --volumes
WARNING! This will remove:
all stopped containers
all networks not used by at least one container
all anonymous volumes not used by at least one container
all images without at least one container associated to them
all build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
e728f7fcc2c350daf5b8ecc9700238308a07f46f333e22aba187ddba58eb8ee8
be7c272507bb1720e8af046f4c2c990d5460cc2eff917b1638d619cd359613bb
0e26e2e07cb60c3427fbdc13e577e94621abf19f239e12c171f01a5faf8c250d
03e16213ea303ccf8e1819e4ad56db6f0001913243915d1a4d0424693f722603
bda75c0f0f1a7aa933323ea0be2327e9ee627420ef2f728d8bff14551224eb2f
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker compose up [+] Running 6/6 ✔ Network local-ai-packageddemo Created 0.0s ✔ Container local-ai-packaged-postgres-1 Created 0.1s ✔ Container open-webui Created 0.1s ✔ Container qdrant Created 0.1s ✔ Container n8n-import Created 0.1s ✔ Container n8n Created 0.0s Attaching to postgres-1, n8n, n8n-import, open-webui, qdrant postgres-1 | postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization qdrant | _ Gracefully stopping... (press Ctrl+C again to force) Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5432 -> 0.0.0.0:0: listen tcp 0.0.0.0:5432: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>netstat -ano | findstr :5432
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>netstat -ano | findstr :5432
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>netsh int ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port End Port
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>netstat -ano | findstr :5432
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker compose down error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.46/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.oneoff%3DFalse%22%3Atrue%2C%22com.docker.compose.project%3Dlocal-ai-packaged%22%3Atrue%7D%7D": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker system prune -a --volumes WARNING! This will remove:
Are you sure you want to continue? [y/N] y Deleted Containers: e728f7fcc2c350daf5b8ecc9700238308a07f46f333e22aba187ddba58eb8ee8 be7c272507bb1720e8af046f4c2c990d5460cc2eff917b1638d619cd359613bb 0e26e2e07cb60c3427fbdc13e577e94621abf19f239e12c171f01a5faf8c250d 03e16213ea303ccf8e1819e4ad56db6f0001913243915d1a4d0424693f722603 bda75c0f0f1a7aa933323ea0be2327e9ee627420ef2f728d8bff14551224eb2f
Deleted Networks: local-ai-packaged_demo
Deleted Images: untagged: n8nio/n8n:latest untagged: n8nio/n8n@sha256:30b489c3328ebe8251e1a0509e9b7aeda72a170440e2d07196149e4556c0ee0f deleted: sha256:749532fd9c13adaf225e7234bad1f568d5de9fe0eddb62022af141ed31384c25 deleted: sha256:73392721f3d5cc6519f563152a24cbc111124516efc9d3f9b56c9e730cbcc3ac deleted: sha256:4a39bcce8be4d6cfaa91b73f99099b3ec3650eb7bb5b7ae4adf6023a7858ce21 deleted: sha256:cbfd26dd709823f7a49c5435da668227594915b3e31778a505fc6d0ee12c2c1c deleted: sha256:6e29754ce162ab39f547edf8c0ee54770d8dfe8def5040cd5f92c034dfddfd09 deleted: sha256:209ee4c5e8db9f2f847d8d420d01d0445534f9a5d7cf0eef8ed26995c8757dc4 deleted: sha256:4c673a87620a5fd25289432c896b8f515b012042f63f3630f6bc5e371948a375 deleted: sha256:8488afd5a502781c46a4e5f65a424acbaa3fa448f86917eaa2819a77d6fd5c29 deleted: sha256:85bd86af141cc5ee6195ac1a308936ec5df98c2e2d92c621161f25f7060b8ff5 deleted: sha256:41ccc0edf0dc992718fd2f23904e69f1a93e0b88becaac4a111e7fc051ee827c deleted: sha256:e0ff277815759494fb02407c2c721f2543ba34f88eac86a9e15132ada15a33c1 untagged: postgres:16-alpine untagged: postgres@sha256:d898b0b78a2627cb4ee63464a14efc9d296884f1b28c841b0ab7d7c42f1fffdf deleted: sha256:8c93ef98899116c5894541768dfab8a4f8ac03ae6c4bd0ccb2593439598a99e9 deleted: sha256:19f6869a5766e5274fd1e74c472d037805eb247ea6594fdf04814bafe516c11d deleted: sha256:8d2a46481c705f9480c4ef2e8cb28d2614d0834aac106f3aa61b403b4009cbcc deleted: sha256:c57d1d0eccdcaf59766c38f3d5d5eed57ca2895230d0c6d3844d0e0bb569e9ed deleted: sha256:002f5f810a9dbea82d3d9fe4d4cafec7613b26425249d9bb2e2a2aca70fad6f6 deleted: sha256:618bab14c1741e0fb27de2629656b0a78d932a724a8263efad864c2f9aa9e2bc deleted: sha256:f5a0d3064cf66104703555d9e78aada229799fc0ee45dca42ded314ae51ef6b4 deleted: sha256:80d521d83a7c22e6c58e4b0b433eca118cb9a6b7ca93989be3c068d6779d78f8 deleted: sha256:71aa06d1bfc59ee872af714dc0deb83a2d3d0bba4da4e75d6bba24e7c6a6201b deleted: sha256:e9cd35eb51c7b4b3a4704c2aaad767d2032086127037db192e611e45166e6e5e deleted: sha256:636025b90ef07fdacf3903b5ebbfc8a0f08f840207b661345b9e944570e7b702 deleted: sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85 untagged: ghcr.io/open-webui/open-webui:main untagged: ghcr.io/open-webui/open-webui@sha256:ff2413bfd918b5cd198c4a7ea3a8eed9e215430298ee6076ed4c3d57c96a435d deleted: sha256:afe4f6c41e464601de9d05df575bd3fcbc06fa9a23a13f71509115fa2c654299 deleted: sha256:5243098a8e34841b22e55099367ec70e563ed9d394a8c94ef2420ee8990c8e6c deleted: sha256:fb4dfecfade2140c31b1ba5c2065f63382ae2af6f300508530a2f20d43107488 deleted: sha256:9f3dcfbc3fff02473fed188a110337ecee75cba5fc155d7622a445a44bc4a345 deleted: sha256:390c4f6ca2005e60ccb55b2a0af06c74fcd8582ec49700900ea8836dc6d9844e deleted: sha256:4bfd2049e7994ffb5f4ab8d892aa03af0730506993a8a5d7576b9773d963f282 deleted: sha256:18ad49c4e528d3cf763bbb667a94da427b022a5bbda976093b29e35171d6f74f deleted: sha256:b4af2921de1aa94d53413c5c72c826d57e0b2da0025a46df88d4658ad5a356d6 deleted: sha256:acce16fb4b64d0d03135803915a2080a97bf31f5475b4a8aa9f3d6c1a6b00aa8 deleted: sha256:434873437e0061807ca66403c12b80ef5b7837a527e9c744f0f7f612061704e4 deleted: sha256:5fced48ccd5cdbe803e11e1dd4d2d5e9fd10d3a8a29753c101da71258399b849 deleted: sha256:e72166a9190c390c3ff7b7a935bb8e8f75137d59364fc25a7f65e6bb1005d1ed deleted: sha256:f5718af8c9d10978e3034952dcf9cb1d23700428b2b72c10bba5c49b865acb32 deleted: sha256:a40c0a8988997091f00ae5f0b3e36978603717f6f46871f2d9a4d2d59b40652f deleted: sha256:8adeca91cb1f11ce2fba65d32d4a54d41725575e4fedc4328f061e8d033978e3 deleted: sha256:58df8fb113b5f48dd327a6512d0419792971c9e6e6b8010fb8cea889553e5b3e untagged: frdel/agent-zero-exe:latest untagged: frdel/agent-zero-exe@sha256:1e41bfe325242010c16a34e975e495c574ddb50dc15be81356b27ba372dc2c7f deleted: sha256:bab762353035542d6492f33c00d1fcf762c8f8ad13b162fb70e919c5f8b48447 deleted: sha256:481642a9c1ec23f2fcb37c3aed99b0bbe3075a1296a7d6c01bf6cc725f0523f0 deleted: sha256:faf6c380e3af2b2f05df0b75412ee65455006cbc49e827205d443f7cbe18034a deleted: sha256:d77ba01abaf1c997744d8dbf5f4f9c4864464d2e3d618700e738d7b9159016d8 deleted: sha256:47bf2706dfcc597be021bbc235eef867224aadd9e677ce72380520a3822eb62f deleted: sha256:22689c8ce75ec62fcdbe24a72adda7ca611f6ff453df2a383b7b50ff0e3e25c5 deleted: sha256:a9d5d23d9177ea0ce7a9d4f6d11c8a7181831d854bb032fa71e32d927ff9f56c deleted: sha256:47de5cc85904172a3912c51ea7de6cfb6fea8e8e6cdd77177daa4a7dc42e63c2 deleted: sha256:92d6caf998807bcbac2d40db395cd2917efc4f8f36f10410fb00b625946579c7 deleted: sha256:13250ed1f29f5bc1f524ce970f0eab03679c589b0c682c26a2d5a1233940b618 deleted: sha256:98b5f35ea9d3eca6ed1881b5fe5d1e02024e1450822879e4c13bb48c9386d0ad untagged: qdrant/qdrant:latest untagged: qdrant/qdrant@sha256:d774e7bb65744454984c6021637a0da89271f30df15e48601a9fafc926d26b1f deleted: sha256:ddfe6d29472d1853ee0ca3af7e4a052580303f2ce80b0a77b5dac9bbcf9036f9 deleted: sha256:37497f63e5fce7eabc79805e047eae0b7425873ac160e5dd1f6298c4570d0105 deleted: sha256:f89b447d8d1a7bce2287fe3495ef6ef3defaf9ac9408e0394b3005340b3d28a8 deleted: sha256:e0c1abd72d91debb04e860c11e08c26e57095d5f22a18037fa8d78234a214173 deleted: sha256:92433feac0dfc8cfc2de0885a1e01f0fb369deffe46d69350bdefb68af407642 deleted: sha256:8ce99cf38cdb61393fee5b8a8d6bd7993ac380b22fc050bffc1de1df1389b65c deleted: sha256:e098ac42785e809b162abe4603f68e06b19025c3bceda73364a889284aacfb99 deleted: sha256:7f5d5677f3cbeb3dd291e684e56a096c2293368961bde23fc4cb1ca56c645e9a deleted: sha256:6fab7a3137987a2717c73c4dcf86f6d8f7f610b2eba6b863264c4194a7e5751b deleted: sha256:9c237cde0560e5587aa304636f7e10fd557e22edb9482e6859947ee8258ed059 deleted: sha256:507f8eb7f99fcb9f961efda25080c6dc48ed04104831890939940486f8233957 deleted: sha256:7a8d2f98c194cc6902b309a1b3d7151f897196d4b42955b012c3fd8f17328677 deleted: sha256:e7f4546576286122b4805cedffb267623df36fbeefbb457adb4087b1e401e5fe deleted: sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c untagged: ollama/ollama:latest untagged: ollama/ollama@sha256:e1ce9edb7ccd60ef8b4d99fffe7afdc67edfd1f4d7c6028a4253e6efa82f7e60 deleted: sha256:318ba808b9893aac231c879370ab02a04caf9e3abc7736d47bdf163c4087e731 deleted: sha256:31017212f5bdb04e76aa666296933a6b2620303200af71a7aef26823abf67fdd deleted: sha256:0bd989d214d92874e71be86ad75697d7bf7032610b33b18931663dd6473055e3 deleted: sha256:33f8c8e9abb09447c3ff1a9152a5160189a0ea211da45227040b9036aa8c549b deleted: sha256:2299942da98745e795cd8ce2dda78a07d7e07bb66155a6ffddb94bb12ed150b1 deleted: sha256:8524a63471cbcbcf4ceec379a6110ee8cf7b95be16690d29960b5a10c12aad58 deleted: sha256:3b6a95c8083cc035fbbbd5a7c49d4102dfe512c86f76a93f7499813d1e1c1696 deleted: sha256:7c12fb2f89762779289b746f609e8c5f4b243c3ab50d21762951cb4598f2d1dc deleted: sha256:2573e0d8158209ed54ab25c87bcdcb00bd3d2539246960a3d592a1c599d70465
Total reclaimed space: 9.42GB
C:\Users\Deric\ai-agents-masterclass\local-ai-packaged>docker compose --profile gpu-nvidia up [+] Running 55/23 ✔ qdrant Pulled 5.6s ✔ postgres Pulled 44.5s ✔ n8n Pulled 30.1s ✔ n8n-import Pulled 30.1s ✔ ollama-gpu Pulled 38.8s ✔ open-webui Pulled 80.5s ✔ ollama-pull-llama-gpu Pulled 38.8s
[+] Running 13/12 ✔ Network local-ai-packaged_demo Created 0.0s ✔ Volume "local-ai-packaged_ollama_storage" Created 0.0s ✔ Volume "local-ai-packaged_qdrant_storage" Created 0.0s ✔ Volume "local-ai-packaged_open-webui" Created 0.0s ✔ Volume "local-ai-packaged_postgres_storage" Created 0.0s ✔ Volume "local-ai-packaged_n8nstorage" Created 0.0s ✔ Container local-ai-packaged-postgres-1 Created 0.7s ✔ Container ollama Created 0.7s ✔ Container qdrant Created 0.7s ✔ Container open-webui Created 0.9s ✔ Container n8n-import Created 0.1s ✔ Container ollama-pull-llama Created 0.1s ✔ Container n8n Created 0.1s Attaching to postgres-1, n8n, n8n-import, ollama, ollama-pull-llama, open-webui, qdrant qdrant | _ qdrant | _ _| | | | qdrant | /
|/ _
| '/ ` | ' | | qdrant | | (| | (| | | | (| | | | | | qdrant | _, |_,|| _,|| ||_| qdrant | || qdrant | qdrant | Version: 1.12.1, build: 9c20e9e2 qdrant | Access web UI at http://localhost:6333/dashboard qdrant | qdrant | 2024-10-24T06:04:10.302711Z INFO storage::content_manager::consensus::persistent: Initializing new raft state at ./storage/raft_state.json Gracefully stopping... (press Ctrl+C again to force) Error response from daemon: driver failed programming external connectivity on endpoint open-webui (c5be2079e0737bc9f3a508482e2a7e073a27ae9a0001b5af28b67b813d2cf785): Bind for 0.0.0.0:5432 failed: port is already allocatedC:\Users\Deric\ai-agents-masterclass\local-ai-packaged>