Jerry
November 3, 2021, 11:21pm
1
I installed mender-connect on my clients and i can see the “launch a new remote terminal session” from mender server dashboard but when i click this link, i get a “connection to remote terminal is forbidden” message.
On the console, i get
WebSocket connection to ‘wss://mender.xxx.com/api/management/v1/deviceconnect/devices/cb9a428d-a029-4a96-a662-6d22a8861430/connect’ failed:
Is there something i missed during setup ?
Thanks
1 Like
Jerry
November 4, 2021, 11:08am
2
New elements to add : file transfer is only working one way :
i can upload files
i cannot download files
Is there something with direction of communication ?
Edayan
August 18, 2023, 8:18am
3
I face the same problem. Is there any troubleshooting scenarios?
chrugle
February 14, 2024, 3:31pm
4
I installed everything on kubernetes according to the documentation and have the same problem. When I try to connect to the terminal I get the following error message:
WebSocket error: undefined.
The file transfer works.
robgio
February 15, 2024, 6:57am
5
Hello @chrugle ,
what kind of setup do you have? Can you please also share your Ingress manifest?
Thanks
chrugle
February 15, 2024, 8:54am
6
Hi robgio
I installed the whole thing on an Ubuntu server 20.04 according to these instructions: production-installation-with-kubernetes .
Here is the ingress manifest:
apiVersion: v1
items:
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/issuer: letsencrypt
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{"cert-manager.io/issuer":"letsencrypt"},"name":"minio-ingress","namespace":"default"},"spec":{"rules":[{"host":"artifacts.mydomain.com","http":{"paths":[{"backend":{"service":{"name":"minio","port":{"number":80}}},"path":"/","pathType":"Prefix"}]}}],"tls":[{"hosts":["artifacts.mydomain.com"],"secretName":"minio-ingress-tls"}]}}
creationTimestamp: "2024-02-09T10:03:54Z"
generation: 1
name: minio-ingress
namespace: default
resourceVersion: "1197"
uid: 383df805-a218-486f-ad98-01a2d016b474
spec:
ingressClassName: traefik
rules:
- host: artifacts.mydomain.com
http:
paths:
- backend:
service:
name: minio
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- artifacts.mydomain.com
secretName: minio-ingress-tls
status:
loadBalancer:
ingress:
- ip: 10.198.0.63
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/issuer: letsencrypt
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{"cert-manager.io/issuer":"letsencrypt"},"name":"mender-ingress","namespace":"default"},"spec":{"rules":[{"host":"mydomain.com","http":{"paths":[{"backend":{"service":{"name":"mender-api-gateway","port":{"number":80}}},"path":"/","pathType":"Prefix"}]}}],"tls":[{"hosts":["mydomain.com"],"secretName":"mender-ingress-tls"}]}}
creationTimestamp: "2024-02-09T10:34:57Z"
generation: 1
name: mender-ingress
namespace: default
resourceVersion: "4472"
uid: 1f83b6e2-88ff-4cbd-ad53-fa8e1bd2f32c
spec:
ingressClassName: traefik
rules:
- host: mydomain.com
http:
paths:
- backend:
service:
name: mender-api-gateway
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- mydomain.com
secretName: mender-ingress-tls
status:
loadBalancer:
ingress:
- ip: 10.198.0.63
kind: List
metadata:
resourceVersion: ""