question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Setup Issue] Can not start the dev server in setup process while using Docker on Windows

See original GitHub issue

Platform: Docker on Windows @justcrossheaven and @manishaag7 both have been facing the following issue while using python -m scripts.start while setting up the project.

image

Tried solutions(not worked)

  • deleting oppia_tools directory
  • pip install future and six

Diagnosis checks

  • python -c "import Queue" - No output and it is the expected behavior.

@manishaag7 only got python 2 installed in his laptop.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:46 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
MohdImran001commented, Mar 22, 2021

Hey @gp201 and @EricZLou , Thank you for your help. Finally the development server started successfully. I can access the website on localhost:8181. To make it work, I had to downgrade my WSL 2 to WSL 1 and then I started the elastic search server on a separate terminal using this command ./oppia_tools/elasticsearch-7.10.1/bin/elasticsearch .

Everything is working except for this page http://localhost:8181/community-library. It is not able to fetch the lessons from the elastic search server. On the terminal is showing timeout error and elastic search is not able to fetch data.

community-library-error

WARNING  2021-03-22 11:43:20,920 base.py:281] PUT http://localhost:9200/collections [status:N/A request:10.007s]
Traceback (most recent call last):
  File "/home/skull/opensource/oppia/third_party/python_libs/elasticsearch/connection/http_urllib3.py", line 246, in perform_request
    method, url, body, retries=Retry(False), headers=request_headers, **kw
  File "/home/skull/opensource/oppia/third_party/python_libs/urllib3/connectionpool.py", line 727, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/skull/opensource/oppia/third_party/python_libs/urllib3/util/retry.py", line 386, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/skull/opensource/oppia/third_party/python_libs/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/home/skull/opensource/oppia/third_party/python_libs/urllib3/connectionpool.py", line 428, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/home/skull/opensource/oppia/third_party/python_libs/urllib3/connectionpool.py", line 336, in _raise_timeout
    self, url, "Read timed out. (read timeout=%s)" % timeout_value
ReadTimeoutError: HTTPConnectionPool(host='localhost', port=9200): Read timed out. (read timeout=10)
ERROR    2021-03-22 11:43:21,079 base.py:464] Traceback (most recent call last):
  File "/home/skull/opensource/oppia/third_party/python_libs/webapp2.py", line 604, in dispatch
    return method(*args, **kwargs)
  File "/home/skull/opensource/oppia/core/controllers/acl_decorators.py", line 86, in test_can_access
    return handler(self, *args, **kwargs)
  File "/home/skull/opensource/oppia/core/controllers/library.py", line 121, in get
    constants.DEFAULT_LANGUAGE_CODE])
INFO     2021-03-22 11:43:21,177 module.py:865] default: "GET /libraryindexhandler HTTP/1.1" 500 168
  File "/home/skull/opensource/oppia/core/domain/summary_services.py", line 494, in get_library_groups
    '', group['search_categories'], language_codes, 8)[0]
  File "/home/skull/opensource/oppia/core/domain/search_services.py", line 247, in search_collections
    offset=offset, size=size, ids_only=True)
  File "/home/skull/opensource/oppia/core/platform/search/elastic_search_services.py", line 222, in search
    _create_index(index_name)
  File "/home/skull/opensource/oppia/core/platform/search/elastic_search_services.py", line 48, in _create_index
    ES.indices.create(index_name)
  File "/home/skull/opensource/oppia/third_party/python_libs/elasticsearch/client/utils.py", line 152, in _wrapped
    return func(*args, params=params, headers=headers, **kwargs)
  File "/home/skull/opensource/oppia/third_party/python_libs/elasticsearch/client/indices.py", line 124, in create
    "PUT", _make_path(index), params=params, headers=headers, body=body
  File "/home/skull/opensource/oppia/third_party/python_libs/elasticsearch/transport.py", line 392, in perform_request
    raise e
ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='localhost', port=9200): Read timed out. (read timeout=10))

ERROR    2021-03-22 11:43:21,080 base.py:474] Exception raised: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='localhost', port=9200): Read timed out. (read timeout=10))
2reactions
MohdImran001commented, Mar 17, 2021

@EricZLou and @gp201. I had to reset my Ubuntu 18.04 on WSL. Cleared all the data. Then again tried installing Oppia and finally this time it worked. 🎉 . I would like to know the port number at which the Oppia is running. I am unable to find it. 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workarounds for common problems - Docker Documentation
Docker Desktop fails to start when anti-virus software is installed. Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 builds. ......
Read more >
Docker Desktop fails to start/run on Windows startup #10958
When trying to open the UI for Docker Desktop, it doesn't even open or loads infinitely. Restarting the Docker Desktop.exe and the com.docker....
Read more >
Docker cannot start on Windows - Stack Overflow
Starting the docker daemon resolved the issue. Just search for docker pressing windows key and click on "Docker Dekstop". Daemon should be running...
Read more >
Troubleshooting Docker client errors on Windows - Visual ...
Troubleshoot problems you encounter when using Visual Studio to create and deploy web apps to Docker on Windows by using Visual Studio.
Read more >
How To Install Docker on Windows? A Step-by-Step Guide
Start Docker Desktop Tool. After the installation process is complete, the tool does not start automatically. To start the Docker tool, search ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found