Closed Cocam123 closed 2 years ago
i have the same issue here
https://media.discordapp.net/attachments/773218752400588801/939437894458802227/Knipsel.PNG
@Cocam123 @scottoss Modify Cargo.toml and add a line of mediasoup-sys = "0.3.2 "at the end.
@Cocam123 If you are using Ubuntu, run it
sudo apt-get install python3-pip
Hello, thanks for the help (I'm coming back now because my pc had problems)
Now, Vortex is installed but does not seem to start
Error: thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:28
however I can't find the line corresponding to Vortex's ws (after that I don't know if it is well configured. I confess I'm a little bit lost regarding the configuration of Vortex on my server)
@Cocam123 i had to do some hunting around for it
VOSO_PUBLIC_URL=https://vortex.revolt.chat
VOSO_WS_HOST=wss://vortex.revolt.chat
WS_URL=wss://vortex.revolt.chat
if u get it working please inform me as i have vortex running but no audio for some odd reason
@Cocam123 @DisListMe You must configure it in. env
@SurpriseLon no no i know this thank you tho
i even setup my env for vortex as well BUT i cant actually hear audio is my issue like the connection takes place it works
{"revolt":"0.5.3-alpha.16","features":{"captcha":{"enabled":false,"key":"10000000-ffff-ffff-ffff-000000000001"},"email":false,"invite_only":false,"autumn":{"enabled":true,"url":"https://cdn.chatnet.me"},"january":{"enabled":true,"url":"https://january.chatnet.me"},"voso":{"enabled":true,"url":"https://vortex.chatnet.me","ws":"wss://vortex.chatnet.me"}},"ws":"wss://ws.chatnet.me","app":"https://backup.chatnet.me","vapid":"removed for well of obvious reasons"}
currently vortex
is down on my server as i still dont know how to keep alive cargo run
scripts can it be done with pm2
or forever
but it just dosnt take audio
users can join the voice channel fine just nothing exchanged idk if im setting up the env in my vortex directory right with the ip setup but if i wasnt it would connect or maybe its my caddy file im not 100% on this one
@DisListMe you can try with tmux (I use it and it works well)
on the other hand, I have configured Vortex with the following settings: VOSO_PUBLIC_URL=https://vortex.revolt.chat MANAGE_TOKEN=(my token) HTTP_HOST=0.0.0.0:8080 VOSO_WS_HOST=wss://vortex.revolt.chat WS_URL=wss://vortex.revolt.chat RTC_MIN_PORT=10000 RTC_MAX_PORT=11000 DISABLE_RTP=0 RTC_IPS=(server ip)
Vortex starts but cannot join a voice channel (as if Vortex was not installed)
you need to set your ws (websocket) to your own domain m8 @Cocam123
Or
Short version To SSL or not SSL
You may have a SSL certificate issue. The connection point rule can be summarized as:
wss connects on https only ws connects on http and vice-versa:
https accepts wss only http accepts ws only
i'm still having issues myself getting vortex
to work right i could really use some assistance someone please. Again i can connect to a voice channel BUT can not hear anything from any users who join.?? @insertish.
@SurpriseLon no no i know this thank you tho
i even setup my env for vortex as well BUT i cant actually hear audio is my issue like the connection takes place it works
{"revolt":"0.5.3-alpha.16","features":{"captcha":{"enabled":false,"key":"10000000-ffff-ffff-ffff-000000000001"},"email":false,"invite_only":false,"autumn":{"enabled":true,"url":"https://cdn.chatnet.me"},"january":{"enabled":true,"url":"https://january.chatnet.me"},"voso":{"enabled":true,"url":"https://vortex.chatnet.me","ws":"wss://vortex.chatnet.me"}},"ws":"wss://ws.chatnet.me","app":"https://backup.chatnet.me","vapid":"removed for well of obvious reasons"}
currently
vortex
is down on my server as i still dont know how to keep alivecargo run
scripts can it be done withpm2
orforever
but it just dosnt take audio
users can join the voice channel fine just nothing exchanged idk if im setting up the env in my vortex directory right with the ip setup but if i wasnt it would connect or maybe its my caddy file im not 100% on this one
i use it with pm2 and it works just fine
just need to create a start script in a package.json
again @scottoss thank you for that i will keep in mind but again my main issue is i can connect via my own instance and api and ws but once im in voice with another user we can not actually hear one another, ive set up everything as needed from what i can tell but i will attempt again and if nothing still changes i will re-create on new vps or dedi and list my steps one by one to see if maybe its in my process or something else cause im utterly dumbstruck
i dont know what u might have done wrong
i also have a own instance wich works fine
but if u post ur steps here i may be able to help
docker-compose up -d
of the self-hosted
docker-compose.yml
file + needed files for vortex plesk
dedicated server using docker
and plesk docker proxy
i may have something wrong here but feel i dont but probably do as im not 100% about this part here below)
RTC_IPS Semicolon separated list of IPs to use for WebRTC. Hostnames are not supported yet. Either combined or split listen and announce IPs.
<combined>;<listen>,<announce>
I'm not understanding how a setup of the above would look like can you show me a example please of
<combined>;<listen>,<announce>
as this may be my issue here
ufw
for testing of vortex once working rebuilding server from scratch to setup again more securely).env
| run docker compose up -d
| slide on over to my vortex
directory and run build + cargo run
there | i then go to my testing instance everything works 10000000% but the vortex instance part there is something not allowing communication as again like i said a user can join and see they joined and see other joins and i get no errors what so ever in my console logs ether in my browser which is even odder, just no one can hear each other... again it may have todo with the whole issue under # 3 as i dont understand that and need a example as im a visual learner and im not sure what they mean by this <combined>;<listen>,<announce>
I was told my insert
themself that i should be able to run selfhosted + vortex no issue with out needing to run the full stack cli which seems right but again im having this VOIP problem
Hello, thanks for the help (I'm coming back now because my pc had problems)
Now, Vortex is installed but does not seem to start
Error: thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:28
however I can't find the line corresponding to Vortex's ws (after that I don't know if it is well configured. I confess I'm a little bit lost regarding the configuration of Vortex on my server)
hello,I got a seam problem when I am ready to run Vortex,I use the command cargo build
and ./vortex
(have moved vortec to the root library) but programe always return
2022-04-01T00:13:28Z INFO vortex] Starting Revolt Vortex voice server thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:47 note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
I'm not very familiar with how to configure the environment for "rusy" language programs, so I tried to modify the /src/util/variables.rs file based on the error message, and I'm wondering if the reason for the error is that I configured the wrong file. Here is the content of my /variables.rs `use std::convert::TryFrom; use std::env; use std::net::{IpAddr, SocketAddr}; use std::str::FromStr;
use mediasoup::data_structures::TransportListenIp; use mediasoup::prelude::TransportListenIps;
lazy_static! { // HTTP API pub static ref HTTP_HOST: SocketAddr = env::var("https://vortex.domain.top") .unwrap_orelse(|| "0.0.0.0:8080".to_string()) .parse() .expect("HTTP_HOST environment variable is not a valid IP:port"); pub static ref WS_URL: String = env::var("wss://vortex.domain.top").expect("Missing WS_URL environment variable."); pub static ref MANAGE_TOKEN: String = env::var("tokenkwdapk").expect("Missing MANAGE_TOKEN environment variable.");
// RTC
pub static ref RTC_IPS: TransportListenIps = {
let ip_list = env::var("0.0.0.0,host_ipv4").expect("Missing RTC_IPS environment variable.");
let ip_list = ip_list.split(';');
let mut ip_vec = Vec::new();
for ip_pair in ip_list {
let mut iter = ip_pair.split(',');
if let Some(ip) = iter.next() {
let ip = IpAddr::from_str(&ip).expect("Not a valid listen IP");
let announced_ip = iter.next().map(|ip| IpAddr::from_str(&ip).expect("Not a valid announcement IP"));
if ip.is_unspecified() && announced_ip.is_none() {
panic!("RTC announcement IP must be specified when listen IP is 0.0.0.0");
}
if let Some(announced_ip) = announced_ip {
if announced_ip.is_unspecified() {
panic!("RTC announcement IP must not be 0.0.0.0");
}
}
ip_vec.push(TransportListenIp {
ip, announced_ip,
});
}
}
TransportListenIps::try_from(ip_vec).unwrap()
};
pub static ref RTC_MIN_PORT: u16 = env::var("10000")
.unwrap_or_else(|_| "10000".to_string())
.parse()
.expect("RTC_MIN_PORT is not a valid 16-bit number");
pub static ref RTC_MAX_PORT: u16 = env::var("11000")
.unwrap_or_else(|_| "11000".to_string())
.parse()
.expect("RTC_MAX_PORT is not a valid 16-bit number");
pub static ref DISABLE_RTP: bool = env::var("o").map_or(false, |v| v == "1");
}
pub fn preflight_checks() { format!("{}", WS_URL); format!("{}", MANAGE_TOKEN);
format!("{}", RTC_IPS.len());
} ` Finally, I apologize for my less than proficient English XD
Hello everyone. First of all, sorry for the delay I took. I just wanted to say that my problem concerning Vortex is still not solved. Indeed, when I try to start Vortex, I have the following error that appears:
thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:43
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
I searched for several hours to solve this problem but could not find a solution. If you need any particular information (like API link, .env file information or anything else, please let me know)
I thank you in advance for your answer
thread 'main' panicked at '>>>Missing WS_URL environment variable<<<.: NotPresent', src/util/variables.rs:16:43 note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace
You're missing the variable WS_URL in your .env file. You can see the variables needed in the README.md file
I don't know how detailed you want this explained, but you have to add this to your .env file WS_URL=wss://your.host.url
Hello, WS_URL has been added in the .env file under vortex configuration but it still does not work
By the way, I have created a new issue just to talk about this particular problem https://github.com/revoltchat/vortex/issues/24
thread 'main' panicked at '>>>Missing WS_URL environment variable<<<.: NotPresent', src/util/variables.rs:16:43 note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceYou're missing the variable WS_URL in your .env file. You can see the variables needed in the README.md file
I don't know how detailed you want this explained, but you have to add this to your .env file WS_URL=wss://your.host.url
Hello,
For several days (since I installed Revolt on my server) I can't install vortex because the following error occurs:
I send a txt file below with the error
My server is under Debian and I can't find the resolution to this problem
Thanks to everyone who will help me