You are not logged in.

#1 2021-07-21 21:04:17

beardoof
Member
Registered: 2019-11-13
Posts: 14

Janus docker image fails to start properly

I have this `docker-compose.yaml` file:

version: "2"
services:
  redis:
    image: redis:5.0-alpine
    ports:
      - 6379:6379
  postgres:
    image: postgres:12
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: postgres
  janus:
    image: canyan/janus-gateway:latest
    ports:
      - 8188:8188
      - 8088:8088
      - 8089:8089
      - 8889:8889
      - 8000:8000
      - 7088:7088
      - 7089:7089
      - 8004:8004/udp
    volumes:
      - ./janus/janus.jcfg:/usr/local/etc/janus/janus.jcfg
      - ./janus/janus.plugin.streaming.jcfg:/usr/local/etc/janus/janus.plugin.streaming.jcfg

Whenever I run `docker-compose up`, this is the output:

[felipe@arch-desktop perimeter-backend] docker-compose up
Creating network "perimeter-backend_default" with the default driver
Creating perimeter-backend_redis_1    ... done
Creating perimeter-backend_postgres_1 ... done
Creating perimeter-backend_janus_1    ... done
Attaching to perimeter-backend_postgres_1, perimeter-backend_redis_1, perimeter-backend_janus_1
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  | 
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  | 
postgres_1  | Data page checksums are disabled.
postgres_1  | 
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting default time zone ... Etc/UTC
postgres_1  | creating configuration files ... ok
redis_1     | 1:C 21 Jul 2021 21:05:00.282 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1     | 1:C 21 Jul 2021 21:05:00.282 # Redis version=5.0.12, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1     | 1:C 21 Jul 2021 21:05:00.282 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1     | 1:M 21 Jul 2021 21:05:00.283 * Running mode=standalone, port=6379.
redis_1     | 1:M 21 Jul 2021 21:05:00.283 # Server initialized
redis_1     | 1:M 21 Jul 2021 21:05:00.283 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1     | 1:M 21 Jul 2021 21:05:00.283 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1     | 1:M 21 Jul 2021 21:05:00.283 * Ready to accept connections
janus_1     | Janus commit: 04229be3eeceb28dbc57a70a57928aab223895a5
janus_1     | Compiled on:  Mon Nov  2 16:22:05 UTC 2020
janus_1     | 
janus_1     | Logger plugins folder: /usr/local/lib/janus/loggers
janus_1     | [WARN] 	Couldn't access logger plugins folder...
janus_1     | ---------------------------------------------------
janus_1     |   Starting Meetecho Janus (WebRTC Server) v0.10.7
janus_1     | ---------------------------------------------------
janus_1     | 
janus_1     | Checking command line arguments...
janus_1     | Debug/log level is 4
janus_1     | Debug/log timestamps are disabled
janus_1     | Debug/log colors are enabled
janus_1     | Adding 'vmnet' to the ICE ignore list...
janus_1     | Using 172.19.0.4 as local IP...
janus_1     | [WARN] Token based authentication disabled
janus_1     | Initializing recorder code
janus_1     | Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support disabled)
janus_1     | TURN REST API backend: (disabled)
janus_1     | [WARN] Janus is deployed on a private address (172.19.0.4) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the internet and not just in a LAN...
janus_1     | Crypto: OpenSSL >= 1.1.0
janus_1     | [WARN] No cert/key specified, autogenerating some...
janus_1     | Fingerprint of our certificate: BE:4D:B6:F3:3D:F4:C4:C3:52:24:AF:2B:20:7D:17:8F:C3:86:D1:CE:C5:9A:1E:79:86:8F:3D:D6:F7:5B:A3:8A
janus_1     | [WARN] Event handlers support disabled
janus_1     | Plugins folder: /usr/local/lib/janus/plugins
janus_1     | Loading plugin 'libjanus_audiobridge.so'...
janus_1     | Joining Janus requests handler thread
janus_1     | Sessions watchdog started
janus_1     | JANUS AudioBridge plugin initialized!
janus_1     | Loading plugin 'libjanus_echotest.so'...
janus_1     | JANUS EchoTest plugin initialized!
janus_1     | Loading plugin 'libjanus_nosip.so'...
janus_1     | JANUS NoSIP plugin initialized!
janus_1     | Loading plugin 'libjanus_recordplay.so'...
janus_1     | JANUS Record&Play plugin initialized!
janus_1     | Loading plugin 'libjanus_sip.so'...
postgres_1  | running bootstrap script ... ok
janus_1     | JANUS SIP plugin initialized!
janus_1     | Loading plugin 'libjanus_streaming.so'...
janus_1     | Streaming will use alphanumeric IDs, not numeric
janus_1     | JANUS Streaming plugin initialized!
janus_1     | Loading plugin 'libjanus_textroom.so'...
janus_1     | JANUS TextRoom plugin initialized!
janus_1     | Loading plugin 'libjanus_videocall.so'...
janus_1     | JANUS VideoCall plugin initialized!
janus_1     | Loading plugin 'libjanus_videoroom.so'...
janus_1     | JANUS VideoRoom plugin initialized!
janus_1     | Loading plugin 'libjanus_voicemail.so'...
janus_1     | JANUS VoiceMail plugin initialized!
janus_1     | Transport plugins folder: /usr/local/lib/janus/transports
janus_1     | Loading transport plugin 'libjanus_http.so'...
janus_1     | HTTP transport timer started
janus_1     | HTTP webserver started (port 8088, /janus path listener)...
janus_1     | [WARN] HTTPS webserver disabled
janus_1     | [WARN] Admin/monitor HTTP webserver disabled
janus_1     | [WARN] Admin/monitor HTTPS webserver disabled
janus_1     | JANUS REST (HTTP/HTTPS) transport plugin initialized!
janus_1     | Loading transport plugin 'libjanus_nanomsg.so'...
janus_1     | [WARN] Nanomsg server disabled (Admin API)
janus_1     | JANUS Nanomsg transport plugin initialized!
janus_1     | Loading transport plugin 'libjanus_pfunix.so'...
janus_1     | Nanomsg thread started
janus_1     | [WARN] Unix Sockets server disabled (Janus API)
janus_1     | [WARN] Unix Sockets server disabled (Admin API)
janus_1     | [WARN] No Unix Sockets server started, giving up...
janus_1     | [WARN] The 'janus.transport.pfunix' plugin could not be initialized
janus_1     | Loading transport plugin 'libjanus_rabbitmq.so'...
janus_1     | RabbitMQ SSL support disabled
janus_1     | [WARN] RabbitMQ support disabled (Janus API)
janus_1     | [WARN] RabbitMQ support disabled (Admin API)
janus_1     | [WARN] RabbitMQ support disabled for both Janus and Admin API, giving up
janus_1     | [WARN] The 'janus.transport.rabbitmq' plugin could not be initialized
janus_1     | Loading transport plugin 'libjanus_websockets.so'...
janus_1     | libwebsockets logging: 0
janus_1     | [ERR] [transports/janus_websockets.c:janus_websockets_init:577] Error creating libwebsockets context...
janus_1     | [WARN] The 'janus.transport.websockets' plugin could not be initialized
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | syncing data to disk ... ok
postgres_1  | 
postgres_1  | 
postgres_1  | Success. You can now start the database server using:
postgres_1  | 
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  | 
postgres_1  | initdb: warning: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  | waiting for server to start....2021-07-21 21:05:01.164 UTC [47] LOG:  starting PostgreSQL 12.7 (Debian 12.7-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-07-21 21:05:01.165 UTC [47] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-07-21 21:05:01.172 UTC [48] LOG:  database system was shut down at 2021-07-21 21:05:00 UTC
postgres_1  | 2021-07-21 21:05:01.174 UTC [47] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | 
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  | 
postgres_1  | 2021-07-21 21:05:01.291 UTC [47] LOG:  received fast shutdown request
postgres_1  | waiting for server to shut down....2021-07-21 21:05:01.292 UTC [47] LOG:  aborting any active transactions
postgres_1  | 2021-07-21 21:05:01.292 UTC [47] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
postgres_1  | 2021-07-21 21:05:01.293 UTC [49] LOG:  shutting down
postgres_1  | 2021-07-21 21:05:01.301 UTC [47] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  | 
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  | 
postgres_1  | 2021-07-21 21:05:01.402 UTC [1] LOG:  starting PostgreSQL 12.7 (Debian 12.7-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-07-21 21:05:01.402 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-07-21 21:05:01.402 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-07-21 21:05:01.403 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-07-21 21:05:01.409 UTC [66] LOG:  database system was shut down at 2021-07-21 21:05:01 UTC
postgres_1  | 2021-07-21 21:05:01.411 UTC [1] LOG:  database system is ready to accept connections

The janus container does not work properly, as its websockets fail to load for some reason. This breaks part of the code I need to run in a local server application. Can I have any tips on how to debug this issue?

Last edited by beardoof (2021-07-22 17:04:13)

Offline

Board footer

Powered by FluxBB