jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
22.89k stars 6.69k forks source link

After I type make, how can i attach it to the domain of my server? #3074

Closed BlakeEram closed 6 years ago

BlakeEram commented 6 years ago
vmadmin@cmi:~/m-health$ make
./node_modules/.bin/webpack -p
Hash: fd6378a2ad87ed0113fcd8da8b89472361525b72
Version: webpack 3.9.1
Child
    Hash: fd6378a2ad87ed0113fc
    Time: 189447ms
                                           Asset       Size  Chunks                    Chunk Names
              dial_in_info_bundle.min.js.LICENSE       1 kB          [emitted]         
                               app.bundle.min.js    2.87 MB       0  [emitted]  [big]  app.bundle
                      dial_in_info_bundle.min.js     605 kB       2  [emitted]  [big]  dial_in_info_bundle
                              alwaysontop.min.js     112 kB       3  [emitted]         alwaysontop
                      do_external_connect.min.js    1.99 kB       4  [emitted]         do_external_connect
                       app.bundle.min.js.LICENSE    7.11 kB          [emitted]         
    device_selection_popup_bundle.min.js.LICENSE    6.95 kB          [emitted]         
            device_selection_popup_bundle.min.js     2.4 MB       1  [emitted]  [big]  device_selection_popup_bundle
                      alwaysontop.min.js.LICENSE  529 bytes          [emitted]         
                              app.bundle.min.map    14.1 MB       0  [emitted]         app.bundle
           device_selection_popup_bundle.min.map    11.9 MB       1  [emitted]         device_selection_popup_bundle
                     dial_in_info_bundle.min.map    3.14 MB       2  [emitted]         dial_in_info_bundle
                             alwaysontop.min.map     395 kB       3  [emitted]         alwaysontop
                     do_external_connect.min.map    12.6 kB       4  [emitted]         do_external_connect
      [34] ./node_modules/@atlaskit/theme/dist/esm/index.js + 7 modules 13.2 kB {0} {1} [built]
      [51] (webpack)/buildin/global.js 509 bytes {0} {1} {2} [built]
     [141] ./react/features/base/config/parseURLParams.js 1.51 kB {0} {1} {2} {4} [built]
     [311] ./react/features/base/config/getRoomName.js 761 bytes {0} {1} {2} {4} [built]
     [397] ./react/features/base/react/prop-types-polyfill.js 227 bytes {0} {1} {2} [built]
     [939] multi babel-polyfill whatwg-fetch ./app.js 52 bytes {0} [built]
     [940] ./app.js + 2 modules 4.7 kB {0} [built]
     [962] ./modules/UI/UI.js 35.2 kB {0} [built]
     [977] ./react/index.web.js 1.06 kB {0} [built]
     [978] ./react/features/device-selection/popup.js 476 bytes {1} [built]
     [979] ./react/features/device-selection/DeviceSelectionPopup.js 12.3 kB {1} [built]
     [980] ./react/features/always-on-top/index.js + 3 modules 26.7 kB {3} [built]
     [981] multi babel-polyfill whatwg-fetch ./react/features/base/react/prop-types-polyfill.js ./react/features/invite/components/dial-in-info-page 64 bytes {2} [built]
     [982] ./react/features/invite/components/dial-in-info-page/index.js + 2 modules 4.02 kB {2} [built]
     [983] ./connection_optimization/do_external_connect.js 2.51 kB {4} [built]
        + 969 hidden modules
Child
    Hash: d8da8b89472361525b72
    Time: 21360ms
                   Asset    Size  Chunks             Chunk Names
     external_api.min.js  115 kB       0  [emitted]  external_api
    external_api.min.map  568 kB       0  [emitted]  external_api
      [90] (webpack)/buildin/global.js 509 bytes {0} [built]
     [125] ./react/features/base/util/uri.js 14.1 kB {0} [built]
     [128] multi babel-polyfill ./modules/API/external/index.js 40 bytes {0} [built]
     [331] ./modules/API/external/index.js 171 bytes {0} [built]
     [332] ./modules/API/external/external_api.js 30.9 kB {0} [built]
     [334] ./modules/transport/index.js + 9 modules 24.5 kB {0} [built]
     [335] ./react/features/base/util/httpUtils.js 758 bytes {0} [built]
        + 331 hidden modules
mkdir -p libs
cp \
    build/app.bundle.min.js \
    build/app.bundle.min.map \
    build/do_external_connect.min.js \
    build/do_external_connect.min.map \
    build/external_api.min.js \
    build/external_api.min.map \
    build/device_selection_popup_bundle.min.js \
    build/device_selection_popup_bundle.min.map \
    build/dial_in_info_bundle.min.js \
    build/dial_in_info_bundle.min.map \
    build/alwaysontop.min.js \
    build/alwaysontop.min.map \
    ./analytics-ga.js \
    libs
cp \
    node_modules/lib-jitsi-meet//lib-jitsi-meet.min.js \
    node_modules/lib-jitsi-meet//lib-jitsi-meet.min.map \
    node_modules/lib-jitsi-meet//connection_optimization/external_connect.js \
    node_modules/lib-jitsi-meet//modules/browser/capabilities.json \
    libs
./node_modules/.bin/node-sass css/main.scss css/all.bundle.css && \
./node_modules/.bin/cleancss css/all.bundle.css > css/all.css ; \
rm css/all.bundle.css
Rendering Complete, saving .css file...
Wrote CSS to /home/vmadmin/m-health/css/all.bundle.css
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
rm -fr build
damencho commented 6 years ago

Maybe it has something to do with your modifications. Did you make some changes in the package.json file?

BlakeEram commented 6 years ago

I did not make any changes other than adding dependencies added for the application, but it did it automatically. "webpack:///../strophe.js/strophe.js" based on the error, it is something to do with this line.

damencho commented 6 years ago

Do you have strophe dependencies?

BlakeEram commented 6 years ago

I did not add any but there is dependency in Jitsi-meet for strophe

damencho commented 6 years ago

Yep, we have seen strophe to act like that, but it was fixed in the latest master of jitsi-meet and lib-jitsi-meet. To fix it, add to the package.json dependencies list of your jitsi-meet the following entries: "strophe.js": "1.2.15", "strophejs-plugin-disco": "0.0.2",

BlakeEram commented 6 years ago

It is already in there

vmadmin@cmi:/usr/share/m-health-$ sudo cat package.json
{
  "name": "jitsi-meet",
  "version": "0.0.0",
  "description": "A sample app for the Jitsi Videobridge",
  "repository": {
    "type": "git",
    "url": "git://github.com/jitsi/jitsi-meet"
  },
  "keywords": [
    "jingle",
    "webrtc",
    "xmpp",
    "browser"
  ],
  "author": "",
  "readmeFilename": "README.md",
  "dependencies": {
    "@atlaskit/avatar": "8.0.5",
    "@atlaskit/button": "5.4.2",
    "@atlaskit/dropdown-menu": "3.10.2",
    "@atlaskit/droplist": "4.11.1",
    "@atlaskit/field-text": "4.0.1",
    "@atlaskit/field-text-area": "1.2.0",
    "@atlaskit/flag": "6.1.0",
    "@atlaskit/icon": "10.0.0",
    "@atlaskit/inline-dialog": "5.3.0",
    "@atlaskit/inline-message": "4.0.0",
    "@atlaskit/layer-manager": "2.8.0",
    "@atlaskit/lozenge": "3.4.2",
    "@atlaskit/modal-dialog": "3.4.0",
    "@atlaskit/multi-select": "7.1.3",
    "@atlaskit/spinner": "4.0.0",
    "@atlaskit/tabs": "4.0.1",
    "@atlaskit/theme": "2.4.0",
    "@atlaskit/tooltip": "7.0.0",
    "autosize": "1.18.13",
    "es6-iterator": "2.0.3",
    "es6-symbol": "3.1.1",
    "file-saver": "^1.3.8",
    "html-screen-capture-js": "^1.0.7",
    "i18next": "8.4.3",
    "i18next-browser-languagedetector": "2.0.0",
    "i18next-xhr-backend": "1.4.2",
    "jQuery-Impromptu": "github:trentrichardson/jQuery-Impromptu#v6.0.0",
    "jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#6fff754a77a56ab52499f3559105a15886942a1e",
    "jquery": "3.3.1",
    "jquery-contextmenu": "2.4.5",
    "jquery-i18next": "1.2.0",
    "js-md5": "0.6.1",
    "jszip": "^3.1.5",
    "jwt-decode": "2.2.0",
    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#39eea17e7e2f8ff4cc273239a6e73f2a149b96e2",
    "lodash": "^4.17.10",
    "moment": "2.19.4",
    "postis": "2.2.0",
    "prop-types": "15.6.0",
    "react": "16.2.0",
    "react-dom": "^16.2.0",
    "react-i18next": "4.8.0",
    "react-native": "^0.55.4",
    "react-native-background-timer": "2.0.0",
    "react-native-calendar-events": "1.4.3",
    "react-native-callstats": "3.27.0",
    "react-native-fetch-blob": "github:flatfox-ag/react-native-fetch-blob#exception_fixes",
    "react-native-img-cache": "1.5.2",
    "react-native-immersive": "1.1.0",
    "react-native-keep-awake": "2.0.6",
    "react-native-locale-detector": "github:jitsi/react-native-locale-detector#cc76092fc4335488a28a9529c8b50afae2c3ecdc",
    "react-native-prompt": "1.0.0",
    "react-native-sound": "0.10.9",
    "react-native-vector-icons": "4.4.2",
    "react-native-webrtc": "github:jitsi/react-native-webrtc#84aee6693195c5be6b6f5f794a1e52dc7913fb3b",
    "react-redux": "5.0.6",
    "react-webcam": "^0.5.0",
    "recordrtc": "^5.4.6",
    "redux": "3.7.2",
    "redux-thunk": "2.2.0",
    "strophe-plugins": "^0.1.3",
    "strophe.js": "^1.2.15",
    "strophejs-plugin-disco": "0.0.2",
    "styled-components": "1.4.6",
    "url-polyfill": "github:github/url-polyfill#39734186de44612bc5a16eb25f5407adcc5b2e7c",
    "uuid": "3.1.0",
    "videojs": "^1.0.0",
    "videojs-record": "^2.2.0",
    "videojs-wavesurfer": "^2.3.2",
    "wavesurfer": "^1.3.4",
    "webrtc-adapter": "^6.1.5",
    "xmldom": "0.1.27"
  },
  "devDependencies": {
    "babel-core": "^6.26.3",
    "babel-eslint": "8.0.3",
    "babel-loader": "7.1.2",
    "babel-polyfill": "6.26.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-react": "6.24.1",
    "babel-preset-stage-1": "6.24.1",
    "clean-css": "3.4.25",
    "css-loader": "0.28.7",
    "eslint": "^4.19.1",
    "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#v0.1",
    "eslint-plugin-flowtype": "2.39.1",
    "eslint-plugin-import": "2.8.0",
    "eslint-plugin-jsdoc": "3.2.0",
    "eslint-plugin-react": "7.5.1",
    "eslint-plugin-react-native": "3.2.0",
    "expose-loader": "0.7.4",
    "file-loader": "1.1.5",
    "flow-bin": "0.57.3",
    "imports-loader": "0.7.1",
    "node-sass": "^4.9.0",
    "precommit-hook": "3.0.0",
    "string-replace-loader": "1.3.0",
    "style-loader": "0.19.0",
    "uglifyjs-webpack-plugin": "1.2.2",
    "webpack": "3.9.1",
    "webpack-dev-server": "^3.1.4",
    "whatwg-fetch": "2.0.3"
  },
  "engines": {
    "node": ">=6.0.0"
  },
  "license": "Apache-2.0",
  "scripts": {
    "lint": "eslint . && flow",
    "validate": "npm ls"
  },
  "pre-commit": [
    "lint"
  ],
  "browser": {
    "autosize": "./node_modules/autosize/build/jquery.autosize.js",
    "jQuery-Impromptu": "jQuery-Impromptu/src/jquery-impromptu.js"
  }
}

any other fixes I could try, it does work when i use the dev-server

BlakeEram commented 6 years ago

Error I receive in chrome/firefox

Logger.js:125 [react/features/base/connection/actions.web.js] <>:  Error: Missing strophe-plugins (disco plugin is required)!
    at new t (Caps.js:45)
    at new t (xmpp.js:65)
    at new r (JitsiConnection.js:24)
    at r (connection.js:81)
    at t.a (connection.js:174)
    at conference.js:145
    at Object.createInitialLocalTracksAndConnect (conference.js:155)
    at conference.js:726
damencho commented 6 years ago

https://github.com/jitsi/jitsi-meet/blob/master/package.json Doesn't have strophe. So not sure why you have it, then remove it. It should come only from lib-jitst-meet.

damencho commented 6 years ago

We need to add it only when we were using a strophe fork. But with latest we don't need the definition of strophe in jitsi-meet

BlakeEram commented 6 years ago

if i dont have it in my package.json i get his

npm WARN strophejs-plugin-disco@0.0.2 requires a peer of strophe.js@^1.2.12 but none was installed. is this fine?

damencho commented 6 years ago

I don't remember whether I have seen or not this warning. Is it working? You can always make a clean clone from jitsi-meet master and check whether you see it there.

BlakeEram commented 6 years ago

currently this is my issue

vmadmin@cmi:~/m-health-$ sudo npm install
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 1.2.14-1 git://github.com/jitsi/strophejs.git /home/vmadmin/.npm/_cacache/tmp/git-clone-6532e18a
npm ERR! /home/vmadmin/.npm/_cacache/tmp/git-clone-6532e18a/.git: Permission denied
npm ERR! 
BlakeEram commented 6 years ago

currently if you go to https://cmi.fast.sheridanc.on.ca/, jisti-meet (not my custom one) is working. it always seems to be a problem when installing my application

damencho commented 6 years ago

Some local file permissions ... I don't know ... And this thing github.com/jitsi/strophejs.git 1.2.14-1 seems strange, it should not be used latest jitsi-meet no longer uses the fork it uses latest strophejs version. I have the impression you are using mismatched versions of jitsi-meet and lib-jitsi-meet or something like that. Try first clean clone from master of jitsi-meet and make it work that way, than you can start adding your stuff over it and see where it breaks

BlakeEram commented 6 years ago

when i run npm install, i do not get that error. when i run sudo npm install, i do

BlakeEram commented 6 years ago

These are my steps to getting a new updated Jitsi-meet

wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
sudo apt-get -y update
sudo apt-get -y install jitsi-meet
BlakeEram commented 6 years ago

I get an error if i dont leave strophe in my package.json

vmadmin@cmi:~/m-health-$ npm install

> git-validate@2.2.2 install /home/vmadmin/m-health-/node_modules/git-validate
> node bin/install

> node-sass@4.8.3 install /home/vmadmin/m-health-/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.3/linux-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.3/linux-x64-64_binding.node": 

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g. 

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> precommit-hook@3.0.0 install /home/vmadmin/m-health-/node_modules/precommit-hook
> node bin/install

> uglifyjs-webpack-plugin@0.4.6 postinstall /home/vmadmin/m-health-/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

> lib-jitsi-meet@github:jitsi/lib-jitsi-meet#39eea17e7e2f8ff4cc273239a6e73f2a149b96e2 postinstall /home/vmadmin/m-health-/node_modules/lib-jitsi-meet
> webpack -p

Hash: 78d8a705ad1ed0bdd232
Version: webpack 3.9.1
Child
    Hash: 78d8a705ad1ed0bdd232
    Time: 60597ms
                            Asset     Size  Chunks                    Chunk Names
            lib-jitsi-meet.min.js   949 kB       0  [emitted]  [big]  lib-jitsi-meet
    lib-jitsi-meet.min.js.LICENSE  1.59 kB          [emitted]         
           lib-jitsi-meet.min.map  3.44 MB       0  [emitted]         lib-jitsi-meet
       [0] ../jitsi-meet-logger/lib/index.js 3.67 kB {0} [built]
       [1] ./modules/browser/index.js 99 bytes {0} [built]
       [2] ./modules/util/GlobalOnErrorHandler.js 2.54 kB {0} [built]
       [4] ./service/RTC/MediaType.js 110 bytes {0} [built]
       [5] ./modules/statistics/statistics.js 30.5 kB {0} [built]
       [6] ./service/statistics/AnalyticsEvents.js 13.8 kB {0} [built]
       [7] ./JitsiConferenceEvents.js 8.05 kB {0} [built]
      [12] ./JitsiTrackError.js 6.64 kB {0} [built]
      [60] ./JitsiMediaDevicesEvents.js 896 bytes {0} [built]
      [61] ./index.js 160 bytes {0} [built]
      [62] ./JitsiMeetJS.js 19 kB {0} [built]
      [63] ./modules/util/AuthUtil.js 1.42 kB {0} [built]
      [64] ./JitsiConnection.js 5.45 kB {0} [built]
     [169] ./JitsiMediaDevices.js 6 kB {0} [built]
     [170] ./modules/RTC/RTCUIHelper.js 2.49 kB {0} [built]
        + 156 hidden modules

    ERROR in ../strophejs-plugin-disco/lib/strophe.disco.js
    Module not found: Error: Can't resolve 'strophe.js' in '/home/vmadmin/m-health-/node_modules/strophejs-plugin-disco/lib'
     @ ../strophejs-plugin-disco/lib/strophe.disco.js 4:126-147 4:196-227
     @ ./modules/xmpp/xmpp.js
     @ ./JitsiConnection.js
     @ ./JitsiMeetJS.js
     @ ./index.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! lib-jitsi-meet@github:jitsi/lib-jitsi-meet#39eea17e7e2f8ff4cc273239a6e73f2a149b96e2 postinstall: `webpack -p`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the lib-jitsi-meet@github:jitsi/lib-jitsi-meet#39eea17e7e2f8ff4cc273239a6e73f2a149b96e2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vmadmin/.npm/_logs/2018-06-07T17_40_52_999Z-debug.log
damencho commented 6 years ago

Yeah I see why now, because of: lib-jitsi-meet@github:jitsi/lib-jitsi-meet#39eea17e7e2f8ff4cc273239a6e73f2a149b96e2 You are using lib-jitsi-meet which is using our fork of strophe.

You have two option, update to latest or in your package.json you need: "strophe.js": "github:jitsi/strophejs#1.2.14-1",
"strophejs-plugin-disco": "0.0.2",

All the time, I was thinking that you are using latest.

BlakeEram commented 6 years ago

THANK YOU SO MUCH SIR.

BlakeEram commented 6 years ago

Sorry for another issue, I keep receiving this error anytime another person joins the call

CONFERENCE FAILED: conference.setup_failed Error: ICE fail
    at r.peerconnection.oniceconnectionstatechange
BlakeEram commented 6 years ago

was this fixed in a recent jitsi-meet?

damencho commented 6 years ago

Is your server running behind nat ( the public address to access it is not an address on any of the physical network devices on the machine) ?

damencho commented 6 years ago

https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md#advanced-configuration

BlakeEram commented 6 years ago

Hey sorry for the delay, it works with firefox but with chrome it does not work. It also does not give me any error.

BlakeEram commented 6 years ago

i get this error Error: An unmapped SSRC was found