Closed ucbmpc2021 closed 2 years ago
I have the same issue but with the latest version 0.9.12. But I have checked the link and it points correctly to the tar.gz that wants to download. So I do not understand this Error 403 FORBIDDEN.
What exactly this instruction does? wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}"
I have the same issue but with the latest version 0.9.12. But I have checked the link and it points correctly to the tar.gz that wants to download. So I do not understand this Error 403 FORBIDDEN.
What exactly this instruction does? wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}"
Based on your screenshot this is the exact same problem as I had. Looks like even 0.9.12 hasn't fixed this problem yet. You can try my solution as see if that fixes the problem :) That instruction basically is a header which tells the Autodesk website that we are accessing from a Mozilla broswer. In this way Autodesk website can redirect us to the new location of that file.
I had the same issue on version 0.9.13 and this worked. Thank you @ucbmpc2021.
I had the same issue on version 0.9.13 and this worked. Thank you @ucbmpc2021.
Sure thing. Happy to help!
Thanks, bro! it helps a lot :)
I ran into the same issue. Thank you for the fix @ucbmpc2021.
Thanks @Inglam, helped me a lot.
Btw, why did noone patch the script. I mean the Dockerfile doesn't build. How do they even publish the image on DockerHub?! :sweat_smile:
Thanks @ucbmpc2021 ! (works for me on 0.9.13)
BTW, you can just add the following line to your Carla.Dockerfile:
sed -i 's,wget -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}",wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}",g' test/carla/Util/BuildTools/BuildUtilsDocker.sh
When I'm trying to build the docker image for carla branch 0.9.9, after running this command
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=0.9.9
The error below will show:
This is caused because Autodesk moved the
resource file to a new address so it is no longer reachable from the original wget command. I am on Ubuntu 18.04. Just in case anyone encountered the same issue, I posted a solution here to resolve this issue:
My fix was to change line 20 in MyBuildUtilsDocker.sh in the Docker container to:
wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}"
Here are the steps I followed: 1 - In Util/Docker, create a file called MyBuildUtilsDocker.sh 2 - cd .. 3 - run cat BuildTools/BuildUtilsDocker.sh > Docker/MyBuildUtilsDocker.sh 4 - Change line 20 in MyBuildUtilsDocker.sh to what I put above. 5 - cd Docker 6 - change Carla.Dockerfile to:
7 - Run
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=0.9.9
Thanks to the effort of @Inglam for solving this issue.