We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I can't get YANG Suite running (Docker-based version), because it crashes before even starting the web interface.
git clone https://github.com/CiscoDevNet/yangsuite
cd yangsuite/docker/
./start_yang_suite.sh
After a few seconds, the "yangsuite" container crashes and terminates:
yangsuite-1 | /yangsuite/migrate_and_start.sh: line 29: 39 Bus error (core dumped) uwsgi --ini /yangsuite/uwsgi.ini yangsuite-1 exited with code 135
If I stop and restart all containers docker compose down docker compose up the "yangsuite" container crashes in the same way every time.
docker compose down
docker compose up
Operating System: Ubuntu 22.04.4 LTS Kernel: Linux 5.15.0-119-generic Architecture: x86-64 Docker version 26.1.4, build 5650f9b Docker Compose version v2.27.1
start_yang_suite.sh
user1@myserver:~/ciscoYangSuite/yangsuite/docker$ ./start_yang_suite.sh Hello, please setup YANG Suite admin user. username: nic-carap password: confirm password: Will you access the system from a remote host? (y/n): y Enter local host FQDN or IP: 192.168.74.11 email: [email protected] Setup test certificates? (y/n): y ################################################################ ## Generating self-signed certificates... ## ## ## ## WARNING: Obtain certificates from a trusted authority! ## ## ## ## NOTE: Some browsers may still reject these certificates!! ## ################################################################ .......+..+.......+......+.....+....+...+...........++++++++++++++++++++++++++++++++++++++++++ ……………………….. ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]: State or Province Name (full name) [Some-State]: Locality Name (eg, city) []: Organization Name (eg, company) [Internet Widgits Pty Ltd]: Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []: Email Address []: Certificates generated... Building docker containers... WARN[0000] /home/user1/ciscoYangSuite/yangsuite/docker/docker-compose.yml: `version` is obsolete [+] Building 22.6s (49/49) FINISHED docker:default => [yangsuite internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 2.76kB 0.0s => [yangsuite internal] load metadata for docker.io/library/ubuntu:20.04 1.0s => [yangsuite internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [yangsuite 1/16] FROM docker.io/library/ubuntu:20.04@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e 0.2s => => resolve docker.io/library/ubuntu:20.04@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e 0.2s => [yangsuite internal] load build context 0.1s => => transferring context: 3.02kB 0.0s => CACHED [yangsuite 2/16] RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone 0.0s => CACHED [yangsuite 3/16] RUN apt-get update && apt-get install -y git software-properties-common postgresql openssh-client 0.0s => CACHED [yangsuite 4/16] RUN mkdir -p /yangsuite/uwsgi 0.0s => CACHED [yangsuite 5/16] COPY uwsgi.ini /yangsuite/ 0.0s => CACHED [yangsuite 6/16] COPY migrate_and_start.sh /yangsuite/ 0.0s => CACHED [yangsuite 7/16] RUN chmod +x /yangsuite/migrate_and_start.sh 0.0s => CACHED [yangsuite 8/16] RUN pip3 install --upgrade pip 0.0s => CACHED [yangsuite 9/16] RUN pip3 install --upgrade setuptools wheel uwsgi 0.0s => CACHED [yangsuite 10/16] RUN pip3 install --upgrade --no-cache yangsuite 0.0s => CACHED [yangsuite 11/16] RUN pip3 install --upgrade --no-cache yangsuite-grpc-telemetry yangsuite-coverage yangsuite-gnmi yangsuite-restconf 0.0s => CACHED [yangsuite 12/16] COPY production.py /usr/local/lib/python3.8/dist-packages/yangsuite//settings/ 0.0s => CACHED [yangsuite 13/16] COPY wsgi.py /usr/local/lib/python3.8/dist-packages/yangsuite/ 0.0s => CACHED [yangsuite 14/16] RUN mkdir /ys-data 0.0s => CACHED [yangsuite 15/16] RUN mkdir /ys-static 0.0s => CACHED [yangsuite 16/16] RUN yangsuite --save-settings --configure-only --allowed-hosts localhost --static-root /ys-static --data-path /ys-data --sett 0.0s => [yangsuite] exporting to image 0.1s => => exporting layers 0.0s => => writing image sha256:f666d92b1605f4a7bfa8734b8db43f1b1b10f7192183d483b847c8995fb15e49 0.0s => => naming to docker.io/library/yangsuite:latest 0.0s => [nginx internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 461B 0.0s => [backup internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 217B 0.0s => [nginx internal] load metadata for docker.io/library/nginx:latest 0.0s => [nginx internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [backup internal] load metadata for docker.io/library/alpine:3.6 1.0s => [nginx internal] load build context 0.1s => => transferring context: 7.28kB 0.0s => [nginx 1/12] FROM docker.io/library/nginx:latest 2.6s => [backup internal] load .dockerignore 0.2s => => transferring context: 2B 0.0s => [backup 1/6] FROM docker.io/library/alpine:3.6@sha256:66790a2b79e1ea3e1dabac43990c54aca5d1ddf268d9a5a0285e4167c8b24475 0.0s => [backup internal] load build context 0.4s => => transferring context: 1.62kB 0.1s => CACHED [backup 2/6] RUN mkdir /code 0.0s => CACHED [backup 3/6] ADD run_cron.sh /code 0.0s => CACHED [backup 4/6] ADD run_backup.sh /code 0.0s => CACHED [backup 5/6] RUN chmod +x /code/run_backup.sh 0.0s => CACHED [backup 6/6] RUN chmod +x /code/run_cron.sh 0.0s => [nginx 2/12] RUN rm -f /etc/nginx/conf.d/default.conf 2.6s => [backup] exporting to image 0.4s => => exporting layers 0.0s => => writing image sha256:8c197edff637cbbff583400099573459ae28e90b1f836364fc22d2091a44514d 0.2s => => naming to docker.io/library/backup:latest 0.0s => [nginx 3/12] COPY nginx.conf /etc/nginx 1.0s => [nginx 4/12] COPY uwsgi_params /etc/nginx 0.7s => [nginx 5/12] RUN mkdir -p /var/log/nginx 1.7s => [nginx 6/12] RUN mkdir -p /etc/nginx/snippets 1.9s => [nginx 7/12] COPY ssl-params.conf /etc/nginx/snippets 1.2s => [nginx 8/12] COPY ssl-signed.conf /etc/nginx/snippets 0.7s => [nginx 9/12] RUN mkdir -p /etc/nginx/certs 1.6s => [nginx 10/12] COPY nginx-self-signed.cert /etc/nginx/certs/ 1.1s => [nginx 11/12] COPY nginx-self-signed.key /etc/nginx/certs/ 0.6s => [nginx 12/12] COPY dhparam.pem /etc/nginx/certs/ 0.8s => [nginx] exporting to image 2.4s => => exporting layers 2.0s => => writing image sha256:cc6cd764feac58a97cccd8bb6697c3165e41302aebf5847f501078ebd0d91101 0.1s => => naming to docker.io/library/nginx:latest 0.0s [+] Running 4/4 v Network docker_default Created 0.1s v Container docker-yangsuite-1 Created 1.5s v Container docker-nginx-1 Created 1.5s v Container docker-backup-1 Created 1.5s Attaching to backup-1, nginx-1, yangsuite-1 nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh nginx-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist nginx-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up nginx-1 | 2024/08/30 10:30:14 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:66 nginx-1 | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:66 yangsuite-1 | 2024-08-30 10:30:15,973 - yangsuite.paths: INFO: Creating new 'filename' directory path /ys-data/logs/ yangsuite-1 | yangsuite-1 | 0 static files copied to '/ys-static', 857 unmodified. yangsuite-1 | No changes detected yangsuite-1 | Operations to perform: yangsuite-1 | Apply all migrations: admin, auth, contenttypes, django_registration, sessions, ysyangtree yangsuite-1 | Running migrations: yangsuite-1 | Applying contenttypes.0001_initial... OK yangsuite-1 | Applying auth.0001_initial... OK yangsuite-1 | Applying admin.0001_initial... OK yangsuite-1 | Applying admin.0002_logentry_remove_auto_add... OK yangsuite-1 | Applying admin.0003_logentry_add_action_flag_choices... OK yangsuite-1 | Applying contenttypes.0002_remove_content_type_name... OK yangsuite-1 | Applying auth.0002_alter_permission_name_max_length... OK yangsuite-1 | Applying auth.0003_alter_user_email_max_length... OK yangsuite-1 | Applying auth.0004_alter_user_username_opts... OK yangsuite-1 | Applying auth.0005_alter_user_last_login_null... OK yangsuite-1 | Applying auth.0006_require_contenttypes_0002... OK yangsuite-1 | Applying auth.0007_alter_validators_add_error_messages... OK yangsuite-1 | Applying auth.0008_alter_user_username_max_length... OK yangsuite-1 | Applying auth.0009_alter_user_last_name_max_length... OK yangsuite-1 | Applying auth.0010_alter_group_name_max_length... OK yangsuite-1 | Applying auth.0011_update_proxy_permissions... OK yangsuite-1 | Applying auth.0012_alter_user_first_name_max_length... OK yangsuite-1 | Applying django_registration.0001_initial... OK yangsuite-1 | Applying sessions.0001_initial... OK yangsuite-1 | Applying ysyangtree.0001_initial... OK yangsuite-1 | Starting uwsgi... yangsuite-1 | /yangsuite/migrate_and_start.sh: line 29: 39 Bus error (core dumped) uwsgi --ini /yangsuite/uwsgi.ini yangsuite-1 exited with code 135
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I can't get YANG Suite running (Docker-based version), because it crashes before even starting the web interface.
Steps:
git clone https://github.com/CiscoDevNet/yangsuite
cd yangsuite/docker/
./start_yang_suite.sh
After a few seconds, the "yangsuite" container crashes and terminates:
If I stop and restart all containers
docker compose down
docker compose up
the "yangsuite" container crashes in the same way every time.
My system:
Operating System: Ubuntu 22.04.4 LTS
Kernel: Linux 5.15.0-119-generic
Architecture: x86-64
Docker version 26.1.4, build 5650f9b
Docker Compose version v2.27.1
Full stdout/stderr log when running
start_yang_suite.sh
:The text was updated successfully, but these errors were encountered: