revoltchat / self-hosted

Deploy Revolt using Docker.
904 stars 116 forks source link

unknown error bug: #66

Open killforby opened 1 year ago

killforby commented 1 year ago

What happened?

Hello, it is impossible for me to install self-hosted revolt I still have an error when registering? Any idea?

image

curve1417 commented 1 year ago

Hello,

Having the same problem :/

jrmiller82 commented 1 year ago

Same here; same problem here. The documentation needs a large rework, particularly for setting up reverse proxies.

jrmiller82 commented 1 year ago

I followed the documentation, so if there's a problem it's on the documentation side. I think one of the admins should try getting the container running from scratch and see if they don't run into any issues / update the documentation.

DevilKing3125 commented 1 year ago
HOSTNAME=:80

# URL to where the Revolt app is publicly accessible
REVOLT_APP_URL=https://name.domain.xxx

# URL to where the API is publicly accessible
REVOLT_PUBLIC_URL=https://name.domain.xxx/api
VITE_API_URL=https://name.domain.xxx/api

# URL to where the WebSocket server is publicly accessible
REVOLT_EXTERNAL_WS_URL=wss://name.domain.xxx/ws

# URL to where Autumn is publicly available
AUTUMN_PUBLIC_URL=https://name.domain.xxx/autumn

# URL to where January is publicly available
JANUARY_PUBLIC_URL=https://name.domain.xxx/january

when i deployed the docker, i also got the error but eventually when i was using a different browser it worked. i got no clue why it was cousing the error, but now i can use it without problem. i am using this outside my network btw, so i am not using this locally

i hope this will help with some people with the "networkerror" issue

CresentMoon commented 1 year ago

80 port is banned here, so I had to set the entrance to 5010, but it shows a network error when registering.

Here is the configuration and the rest is just same as the guide page.

.env

## Quark configuration
##

# MongoDB
MONGODB=mongodb://database

# Redis
REDIS_URI=redis://redis/

# Hostname used for Caddy
# This should in most cases match REVOLT_APP_URL
HOSTNAME=:80

# URL to where the Revolt app is publicly accessible
REVOLT_APP_URL=http://replaceblock.myqnapcloud

# URL to where the API is publicly accessible
REVOLT_PUBLIC_URL=http://replaceblock.myqnapcloud/api
VITE_API_URL=http://replaceblock.myqnapcloud/api

# URL to where the WebSocket server is publicly accessible
REVOLT_EXTERNAL_WS_URL=ws://replaceblock.myqnapcloud/ws

# URL to where Autumn is publicly available
AUTUMN_PUBLIC_URL=http://replaceblock.myqnapcloud/autumn

# URL to where January is publicly available
JANUARY_PUBLIC_URL=http://replaceblock.myqnapcloud/january

##
## hCaptcha Settings
##

docker-compose.yml

# Caddy web server
  caddy:
    image: caddy
    restart: always
    env_file: .env
    ports:
      - "5010:80"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - ./data/caddy-data:/data
      - ./data/caddy-config:/config

----------2023.9.4 Update--------- Now I solved the problem. The env file should add the port along with the docker-compose.yml.

.env

## Quark configuration
##

# MongoDB
MONGODB=mongodb://database

# Redis
REDIS_URI=redis://redis/

# Hostname used for Caddy
# This should in most cases match REVOLT_APP_URL
HOSTNAME=:80

# URL to where the Revolt app is publicly accessible
REVOLT_APP_URL=http://replaceblock.myqnapcloud:5010

# URL to where the API is publicly accessible
REVOLT_PUBLIC_URL=http://replaceblock.myqnapcloud:5010/api
VITE_API_URL=http://replaceblock.myqnapcloud:5010/api

# URL to where the WebSocket server is publicly accessible
REVOLT_EXTERNAL_WS_URL=ws://replaceblock.myqnapcloud:5010/ws

# URL to where Autumn is publicly available
AUTUMN_PUBLIC_URL=http://replaceblock.myqnapcloud:5010/autumn

# URL to where January is publicly available
JANUARY_PUBLIC_URL=http://replaceblock.myqnapcloud:5010/january

##
## hCaptcha Settings
##
Arcane-gif commented 1 year ago

Hello, Having the same problem :/ I tried different options but no result. How to decide? image

curve1417 commented 1 year ago

Okay I got it to work. revolt-database doesn't support the processor type kvm64, switched it to host and this solved my problem.