-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unable to hastic-server or analytics : can't send message Request failed with status code 426 #937
Comments
I am not sure is it correct setup but somehow even it say cant send message
|
we will try to research this next week.... |
Hey guys
Here is my dk-compose file in my mac
`version: '2.1'
services:
server:
image: hastic/server:latest
environment:
HASTIC_API_KEY: eyJrIjoiVHlPaXZ6S2ljZmQxaWFWV3IyYTF3eGw4QThnd2I0U0ciLCJuIjoidGVtcCIsImlkIjoxfQ==
GRAFANA_URL: http://192.168.1.173
HASTIC_ALERT_TYPE: ${HASTIC_ALERT_TYPE}
HASTIC_ALERTMANAGER_URL: ${HASTIC_ALERTMANAGER_URL}
HASTIC_WEBHOOK_URL: http://0.0.0.0:8002
HASTIC_INSTANCE_NAME: ${HASTIC_INSTANCE_NAME}
HASTIC_ALERT_IMAGE: ${HASTIC_ALERT_IMAGE}
HASTIC_DB_CONNECTION_STRING: ${HASTIC_DB_CONNECTION_STRING}
HASTIC_DB_CONNECTION_TYPE: ${HASTIC_DB_CONNECTION_TYPE}
HASTIC_TIMEZONE_OFFSET: ${HASTIC_TIMEZONE_OFFSET}
HASTIC_SERVER_URL: ws://0.0.0.0:8002
HASTIC_PORT: 8000
ports:
- ${HASTIC_PORT:-8000}:8000
- 8002:8002
volumes:
- /tmp:/var/www/data
networks:
- hastic-network
restart: always
analytics:
image: hastic/analytics:latest
environment:
# TODO: use any port for server connection
HASTIC_SERVER_URL: "ws://server:8002"
networks:
- hastic-network
restart: always
volumes:
data-volume:
networks:
hastic-network:`
When i startup , it seems able to connect between server and analytics
However it just say can't send message Request failed with status code 426
server_1 | Creating websocket server ... ws://0.0.0.0:8002 server_1 | Server is running on :8000 server_1 | starting data puller with [] analytic units server_1 | data puller started analytics_1 | 2020-11-12 09:05:17,528 [Analytics] [INFO ] Ok analytics_1 | 2020-11-12 09:05:17,528 [Analytics] [INFO ] Starting services... analytics_1 | 2020-11-12 09:05:17,528 [Analytics] [INFO ] Server... analytics_1 | 2020-11-12 09:05:17,531 [Analytics] [INFO ] Binding to ws://server:8002 ... analytics_1 | 2020-11-12 09:05:17,531 [Analytics] [INFO ] Ok analytics_1 | 2020-11-12 09:05:17,534 [Analytics] [INFO ] Data service... analytics_1 | 2020-11-12 09:05:17,534 [Analytics] [INFO ] Ok analytics_1 | 2020-11-12 09:05:17,534 [Analytics] [INFO ] Analytic unit manager... analytics_1 | 2020-11-12 09:05:17,534 [Analytics] [INFO ] Ok analytics_1 | 2020-11-12 09:05:17,535 [Analytics] [INFO ] Analytics process is running server_1 | Got new analytic connection server_1 | Start analytics pinger... server_1 | Analytics pinger started server_1 | Analytics is up server_1 | can't send message Request failed with status code 426
What am i missing ?
The text was updated successfully, but these errors were encountered: