Skip to content
New issue

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

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 #24

Closed
Cocam123 opened this issue Apr 9, 2022 · 10 comments

Comments

@Cocam123
Copy link

Cocam123 commented Apr 9, 2022

Hello everyone, I decided to create a new issue because I didn't get any answer on the old one (and I think the problem is not related to the old one so I closed it and I made a copy and paste here)

I thank you in advance for all the people who will help me. Here is the message I had sent:

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

@Fwuk
Copy link

Fwuk commented Apr 10, 2022

does your docker compose look like this? "env_file: .env"

voice:
image: revoltchat/vortex:0.3.0-alpha.1
env_file: .env
ports:
- "8080:8080"
- "10001-11000:10001-11000/tcp"
- "10001-11000:10001-11000/udp"
restart: always

@Cocam123
Copy link
Author

I just saw that the wormhole was not present in the docker-compose. So I will put what you sent and try

@Cocam123
Copy link
Author

It seems that it still doesn't work
Capture

@sivert-io
Copy link

Share your .env file and hide your token and replace any IPs with text explaining where it leads to so we can inspect if it is setup correct

@Cocam123
Copy link
Author

Share your .env file and hide your token and replace any IPs with text explaining where it leads to so we can inspect if it is setup correct

Hello, here is my .env file
https://drive.google.com/file/d/137N_YRVk56Id9ASNhY0gkja1dfsY00sM/view?usp=sharing

@sivert-io
Copy link

Share your .env file and hide your token and replace any IPs with text explaining where it leads to so we can inspect if it is setup correct

Hello, here is my .env file https://drive.google.com/file/d/137N_YRVk56Id9ASNhY0gkja1dfsY00sM/view?usp=sharing

Just copy & paste it here in the comments, I will not download anything.

To make matters clear, your .env file must be setup correctly. Here's an example of how our .env-file is setup in a working Vortex-server:

HTTP_HOST=0.0.0.0:8080
WS_URL=wss://OUR_PUBLIC_IP_GOES_HERE
MANAGE_TOKEN=CREATE_A_TOKEN_HERE
RTC_MIN_PORT=1000
RTC_MAX_PORT=1100
DISABLE_RTP=0
RTC_IPS=0.0.0.0,OUR_PUBLIC_IP_GOES_HERE

@Cocam123
Copy link
Author

Cocam123 commented Apr 17, 2022

Share your .env file and hide your token and replace any IPs with text explaining where it leads to so we can inspect if it is setup correct

Hello, here is my .env file https://drive.google.com/file/d/137N_YRVk56Id9ASNhY0gkja1dfsY00sM/view?usp=sharing

Just copy & paste it here in the comments, I will not download anything.

To make matters clear, your .env file must be setup correctly. Here's an example of how our .env-file is setup in a working Vortex-server:

HTTP_HOST=0.0.0.0:8080
WS_URL=wss://OUR_PUBLIC_IP_GOES_HERE
MANAGE_TOKEN=CREATE_A_TOKEN_HERE
RTC_MIN_PORT=1000
RTC_MAX_PORT=1100
DISABLE_RTP=0
RTC_IPS=0.0.0.0,OUR_PUBLIC_IP_GOES_HERE

Here's my configuration (in comments)

REVOLT_APP_URL=https://appurl.co.jp

# URL to where the API is publicly accessible
REVOLT_PUBLIC_URL=https://publicurl.co.jp
VITE_API_URL=https://viteapi.co.jp

# URL to where the WebSocket server is publicly accessible
REVOLT_EXTERNAL_WS_URL=wss://excernalwsurl.co.jp

# URL to where Autumn is publicly available
AUTUMN_PUBLIC_URL=https://autumn.co.jp

# URL to where January is publicly available
JANUARY_PUBLIC_URL=http://january.co.jp

# URL to where Vortex is publicly available
 VOSO_PUBLIC_URL=https://voso.revolt.chat

##
## hCaptcha Settings
##

# If you are sure that you don't want to use hCaptcha, set to 1.
REVOLT_UNSAFE_NO_CAPTCHA=1

# hCaptcha API key
# REVOLT_HCAPTCHA_KEY=0x0000000000000000000000000000000000000000

# hCaptcha site key
# REVOLT_HCAPTCHA_SITEKEY=10000000-ffff-ffff-ffff-000000000001


##
## Email Settings
##

# If you are sure that you don't want to use email verification, set to 1.
REVOLT_UNSAFE_NO_EMAIL=1

# SMTP host
 REVOLT_SMTP_HOST=stmp.co.jp

# SMTP username
 REVOLT_SMTP_USERNAME=username

# SMTP password
 REVOLT_SMTP_PASSWORD=password

# SMTP From header
 REVOLT_SMTP_FROM=email address


##
## Application Settings
##

# Whether to only allow users to sign up if they have an invite code
REVOLT_INVITE_ONLY=0

# Maximum number of people that can be in a group chat
REVOLT_MAX_GROUP_SIZE=150

# VAPID keys for push notifications
# Generate using this guide: https://gitlab.insrt.uk/revolt/delta/-/wikis/vapid
# --> Please replace these keys before going into production! <--
REVOLT_VAPID_PRIVATE_KEY=key

REVOLT_VAPID_PUBLIC_KEY=key


##
## Autumn configuration
##

# S3 Region
AUTUMN_S3_REGION=minio

# S3 Endpoint
AUTUMN_S3_ENDPOINT=http://minio:9000

# MinIO Root User
MINIO_ROOT_USER=minioautumn

# MinIO Root Password
MINIO_ROOT_PASSWORD=minioautumn

# AWS Access Key ID (auto-filled if present above)
# AWS_ACCESS_KEY_ID=minioautumn

# AWS Secret Key (auto-filled if present above)
# AWS_SECRET_ACCESS_KEY=minioautumn


##
## Vortex configuration
##
 HTTP_HOST=wss://0.0.0.0:8080 #directed to port 8080
 WS_URL=wss://0.0.0.0:8080 #also directed to port 8080 (I don't know if it's a mistake because I think this option is an option to listen to port 8080 that's why I put the same)
 RTC_MIN_PORT=10000 #min port
 RTC_MAX_PORT=11000 #max port
 DISABLE_RTP=0
 RTC_IPS=0.0.0.0,public ip```

@Fwuk
Copy link

Fwuk commented Apr 25, 2022

ws_url should be the same as your voso public url. and im not sure if it matters but try removing all the spaces in front of the parameters

here is an example of my .env file

Vortex configuration

WS_URL=wss://voso.domain.net
RTC_IPS=0.0.0.0,PUBLICIP
RTC_MIN_PORT=10001
RTC_MAX_PORT=11000
MANAGE_TOKEN=TOKEN
VOSO_MANAGE_TOKEN=TOKEN
DISABLE_RTP=1

@Cocam123
Copy link
Author

ws_url should be the same as your voso public url. and im not sure if it matters but try removing all the spaces in front of the parameters

here is an example of my .env file

Vortex configuration

WS_URL=wss://voso.domain.net RTC_IPS=0.0.0.0,PUBLICIP RTC_MIN_PORT=10001 RTC_MAX_PORT=11000 MANAGE_TOKEN=TOKEN VOSO_MANAGE_TOKEN=TOKEN DISABLE_RTP=1

Hello, it still doesn't work :/

@insertish
Copy link
Member

In an effort to clean up the global issue tracker, I'm currently consolidating all issues regarding self-hosting Vortex into #23 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants