CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
237 stars 70 forks source link

Docker install exiting with code 1 #100

Closed Bardo369 closed 1 year ago

Bardo369 commented 1 year ago

I am new to Yangsuite/Docker and all I see after following the instructions for docker installation is a couple errors:

docker-backup-1 exited with code 1 docker-yangsuite-1 exited with code 1

When running "docker ps -la" I got: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 65fa76a4e374 backup:latest "/code/run_cron.sh" 33 minutes ago Exited (1) 13 minutes ago docker-backup-1

docker logs 65fa76a4e374 exec /code/run_cron.sh: no such file or directory exec /code/run_cron.sh: no such file or directory

When browsing localhost I get a 502.

docker-nginx-1 | 172.21.0.1 - - [04/Aug/2023:17:36:31 +0000] "GET / HTTP/1.1" 302 138 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" docker-nginx-1 | 2023/08/04 17:36:48 [crit] 20#20: *3 connect() to unix:/var/run/uwsgi/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 172.21.0.1, server: localhost, request: "GET / HTTP/2.0", upstream: "uwsgi://unix:/var/run/uwsgi/uwsgi.sock:", host: "localhost:8443" docker-nginx-1 | 172.21.0.1 - - [04/Aug/2023:17:36:48 +0000] "GET / HTTP/2.0" 502 150 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"

This is on a win 11 computer and I have attached the installation logs. I will appreciate any help to fix this issue or pointing me to any documentation to understand and fix the issue myself.

Thanks! docker_yangsuite_installation_logs.txt

miott commented 1 year ago

You probably have git converting your bash scripts to CRLF. https://community.cisco.com/t5/tools/yang-suite-docker-install-on-windows-10/td-p/4293266

Bardo369 commented 1 year ago

Thanks @miott !

Indeed, that fixed the issue. I made one mistake on this part: Enter local host FQDN or IP: 127.0.0.1

It was giving me a 400 error when adding an IP address. I re-ran the script again and this time I changed the IP to just "localhost" and now I can see the UA page.