Giter VIP home page Giter VIP logo

Comments (5)

fuxiupresearch avatar fuxiupresearch commented on July 19, 2024

We can troubleshoot step by step. After you start the gymHttpServer using "nohup python -u rl4rs/server/gymHttpServer.py &", you can check if the gymHttpServer is working correctly by running "cd rl4rs/server & python gymHttpCilent.py" in another terminal.
Thank you!

from rl4rs.

Larry-Liu02 avatar Larry-Liu02 commented on July 19, 2024

Many thanks for your support!
I check the error. The reason may be the rl4rs file's path causing the trouble.

I started the server, but it stopped at this point from nohup.out:
Server starting at: http://0.0.0.0:5000

  • Serving Flask app "gymHttpServer" (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    Traceback (most recent call last):
    File "rl4rs/server/gymHttpServer.py", line 487, in
    app.run(host=args.listen, port=args.port)
    File "/root/miniconda3/envs/rl/lib/python3.6/site-packages/flask/app.py", line 990, in run
    run_simple(host, port, self, **options)
    File "/root/miniconda3/envs/rl/lib/python3.6/site-packages/werkzeug/serving.py", line 1010, in run_simple
    inner()
    File "/root/miniconda3/envs/rl/lib/python3.6/site-packages/werkzeug/serving.py", line 959, in inner
    fd=fd,
    File "/root/miniconda3/envs/rl/lib/python3.6/site-packages/werkzeug/serving.py", line 783, in make_server
    host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
    File "/root/miniconda3/envs/rl/lib/python3.6/site-packages/werkzeug/serving.py", line 688, in init
    super().init(server_address, handler) # type: ignore
    File "/root/miniconda3/envs/rl/lib/python3.6/socketserver.py", line 456, in init
    self.server_bind()
    File "/root/miniconda3/envs/rl/lib/python3.6/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
    File "/root/miniconda3/envs/rl/lib/python3.6/socketserver.py", line 470, in server_bind
    self.socket.bind(self.server_address)
    OSError: [Errno 98] Address already in use

And then it can not move

from rl4rs.

fuxiupresearch avatar fuxiupresearch commented on July 19, 2024

The error "Address already in use" typically occurs when a port is already in use by another process. You should:
lsof -t -i:5000 | xargs -I {} kill -9 {}

from rl4rs.

Larry-Liu02 avatar Larry-Liu02 commented on July 19, 2024

Many thanks for your support!
I found the main reason caused by python gymHttpClient.py, I can not run this file, always shows this error:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v1/envs/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efe9d2c9828>: Failed to establish a new connection: [Errno 111] Connection refused',))

from rl4rs.

fuxiupresearch avatar fuxiupresearch commented on July 19, 2024

Typically, the error ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded indicates that the gymHttpServer.py program is not running with the specified host and port. Ensure that the intended service is running and listening on the specified port. Additionally, I'd recommend reaching out to someone with experience in web development (or GPT-4) for further assistance.

from rl4rs.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.