Giter Site home page Giter Site logo

Comments (7)

pleymor avatar pleymor commented on August 20, 2024 10

Exact same issues.

For the first, instead of just removing the volumes, I changed docker-compose version (check which one is supported by your docker machine).

version: '3.8'
services:

  #
  # janus-gateway
  #
  janus-gateway:
    image: 'canyan/janus-gateway:latest'
    command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
    ports:
      - "8088:8088"
      - "8089:8089"
      - "8889:8889"
      - "8000:8000"
      - "7088:7088"
      - "7089:7089"
    volumes:
      - "./etc/janus/janus.jcfg:/usr/local/etc/janus/janus.jcfg"
      - "./etc/janus/janus.eventhandler.sampleevh.jcfg:/usr/local/etc/janus/janus.eventhandler.sampleevh.jcfg"
    restart: always

For the FATAL: I solved it by copying the janus.jcfg janus.eventhandler.sampleevh.jcfg files from the official sample here to ./etc/janus (remove the extension .sample)

Then edit ./etc/janus/janus.jcfg this way:

general: {
	configs_folder = "/usr/local/etc/janus"			# Configuration files folder
	plugins_folder = "/usr/local/lib/janus/plugins"			# Plugins folder
	transports_folder = "/usr/local/lib/janus/transports"	# Transports folder
	events_folder = "/usr/local/lib/janus/events"			# Event handlers folder
	loggers_folder = "/usr/local/lib/janus/loggers"			# External loggers folder

Then docker-compose up -d

Worked for me ^^

from janus-gateway-docker.

tranchitella avatar tranchitella commented on August 20, 2024

@abishekrsrikaanth are you sure the following paths, relative to the current path of your docker-compose.yaml files, are files?

  • etc/janus/janus.jcfg
  • etc/janus/janus.eventhandler.sampleevh.jcfg

from janus-gateway-docker.

iwin4aids avatar iwin4aids commented on August 20, 2024

@abishekrsrikaanth are you sure the following paths, relative to the current path of your docker-compose.yaml files, are files?

  • etc/janus/janus.jcfg
  • etc/janus/janus.eventhandler.sampleevh.jcfg

but how to configure these jcfg files ? any docs ?

from janus-gateway-docker.

tranchitella avatar tranchitella commented on August 20, 2024

@abishekrsrikaanth are you sure the following paths, relative to the current path of your docker-compose.yaml files, are files?

  • etc/janus/janus.jcfg
  • etc/janus/janus.eventhandler.sampleevh.jcfg

but how to configure these jcfg files ? any docs ?

Please refer to upstream documentation, we only provide the Docker image.
For your preliminary testing, please omit the volume mounts in your docker-compose to start Janus with the default configuration.

from janus-gateway-docker.

makidoll avatar makidoll commented on August 20, 2024

I don't know if this helps but OCI runtime create failed always happens for me when I update my Linux kernel and haven't restarted my machine yet.

from janus-gateway-docker.

ajaxsys avatar ajaxsys commented on August 20, 2024

Tried sample config files from
https://github.com/meetecho/janus-gateway/tree/master/conf

but got errors:

janus-gateway_1 | [FATAL] [janus.c:main:5115] Couldn't access plugins folder...

And remove volumes mapping seems no error, but what about next? Tried access all ports form browser but nothing.

As a beginner I just try to run and see what happen.

from janus-gateway-docker.

hotsmile avatar hotsmile commented on August 20, 2024

Exact same issues.

For the first, instead of just removing the volumes, I changed docker-compose version (check which one is supported by your docker machine).

version: '3.8'
services:

  #
  # janus-gateway
  #
  janus-gateway:
    image: 'canyan/janus-gateway:latest'
    command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
    ports:
      - "8088:8088"
      - "8089:8089"
      - "8889:8889"
      - "8000:8000"
      - "7088:7088"
      - "7089:7089"
    volumes:
      - "./etc/janus/janus.jcfg:/usr/local/etc/janus/janus.jcfg"
      - "./etc/janus/janus.eventhandler.sampleevh.jcfg:/usr/local/etc/janus/janus.eventhandler.sampleevh.jcfg"
    restart: always

For the FATAL: I solved it by copying the janus.jcfg janus.eventhandler.sampleevh.jcfg files from the official sample here to ./etc/janus (remove the extension .sample)

Then edit ./etc/janus/janus.jcfg this way:

general: {
	configs_folder = "/usr/local/etc/janus"			# Configuration files folder
	plugins_folder = "/usr/local/lib/janus/plugins"			# Plugins folder
	transports_folder = "/usr/local/lib/janus/transports"	# Transports folder
	events_folder = "/usr/local/lib/janus/events"			# Event handlers folder
	loggers_folder = "/usr/local/lib/janus/loggers"			# External loggers folder

Then docker-compose up -d

Worked for me ^^

how to access http service , when i use your cfg file, but i can't access the janus http service, please help me ,thks

from janus-gateway-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.