#community-help

Error Running Docsearch-Scraper from Docker

TLDR Rubai encountered an error running docsearch-scraper from Docker. Jason advised checking a specific Typesense documentation section for a solution.

Powered by Struct AI
3
6mo
Solved
Join the chat
Apr 07, 2023 (6 months ago)
Rubai
Photo of md5-89fb99de3bf7e23767aaf9108a5636ad
Rubai
06:34 AM
Hi guys, I am running docsearch-scraper from docker . but I am getting some error
    r = adapter.send(request, **kwargs)
  File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8108): Max retries exceeded with url: /collections/Developer_Docs_payment-page_1680847935 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad10e436a0>: Failed to establish a new connection: [Errno 111] Connection refused'))

so may I have to add something on dockerfile for typesense or what is the issue here ?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:48 AM
Have a look at the 2nd green tip box under this section: https://typesense.org/docs/guide/docsearch.html#run-the-scraper
06:48
Jason
06:48 AM
Starts with “If you are running Typesense on localhost and you're using Docker to run the scraper, using TYPESENSE_HOST=localhost…”