hadabot / hadabot_main

Content used in collaboration with various Hadabot blog posts to get guide you through learning ROS2.
https://blog.hadabot.com
GNU General Public License v3.0
37 stars 19 forks source link

Codeserver does not work at the last version #7

Closed dsryzhov closed 3 years ago

dsryzhov commented 3 years ago

Today I've upgraded to the last version of hadabot repo. After that codeserver stoped work. Page with Visual Studio does not loading on port 9123 I use command docker-compose up -d to start codeserver and webbridge containers.

WebBridge works well

dsryzhov commented 3 years ago

have tried codeserver one more time after last post. does not work. all three ports are listened but return empty response

wget http://localhost:9123 writes connected HTTP request sent, awaiting response.... No data received Retrying.

jackpien commented 3 years ago

Hi @dsryzhov

In Dockerfile.ros2_codeserver, I rebuilt everything from the line "# New way to install code server" and it looks like everything is working fine.

I'm not sure how fast you access http://localhost:9123 from the moment you run "docker-compose up -d" but the container does take a minute or so to get up and running. If you access http://localhost:9123 too quickly, then you won't get a server response.

Here's the code-server version FYI.

code-server: v3.4.1 VS Code: v1.45.1 Commit: 48f7c2724827e526eeaa6c2c151c520f48a61259 Date: 2020-06-04T10:39:14Z (4 mos ago) Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36

Some final questions to see if there's anything else I'm missing:

  1. What host system are you building the Hadabot containers on?
  2. Did you wait a min or 2 before accessing http://localhost:9123?

Unless you have additional insights, I'll keep this open for another week before I close it.

Thanks! Jack

dsryzhov commented 3 years ago

I build your image on ubuntu 20 installed on wsl2 in windows 10. I check all three ports that are exposed from container. They are listened. but does not receive any html page. I waited quite a lot I think.

I will try your image one more time.

I've built another docker image with vnc and ros2. It works fine

пт, 16 окт. 2020, 10:59 PM Jack Pien notifications@github.com:

Hi @dsryzhov https://github.com/dsryzhov

In Dockerfile.ros2_codeserver, I rebuilt everything from the line "# New way to install code server" and it looks like everything is working fine.

I'm not sure how fast you access http://localhost:9123 from the moment you run "docker-compose up -d" but the container does take a minute or so to get up and running. If you access http://localhost:9123 too quickly, then you won't get a server response.

Here's the code-server version FYI.

code-server: v3.4.1 VS Code: v1.45.1 Commit: 48f7c2724827e526eeaa6c2c151c520f48a61259 Date: 2020-06-04T10:39:14Z (4 mos ago) Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36

Some final questions to see if there's anything else I'm missing:

  1. What host system are you building the Hadabot containers on?
  2. Did you wait a min or 2 before accessing http://localhost:9123?

Unless you have additional insights, I'll keep this open for another week before I close it.

Thanks! Jack

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hadabot/hadabot_main/issues/7#issuecomment-710525542, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDQF227GZRIUCLG3WDFPBDSLCQ2PANCNFSM4SFVXH3Q .

dsryzhov commented 3 years ago

Started new build of docker images. Will try one more time after they are finished.

dsryzhov commented 3 years ago

Retested. It works! May be I had not rebuild docker image before or had no patience to wait when container were started. It takes very long time to build image and run the container. Nevertheless it was my mistake creating this issue.

jackpien commented 3 years ago

Glad it worked @dsryzhov - the images do take a long time to build. ROS is a beast. One reason why I'm trying to create Hadabot so it abstracts out a lot of the setup headaches from users.

Thanks so much for your help. Please keep the issues coming.