I have followed the installation procedure available at Get started with the free IoT platform | OpenRemote to install the openremote in one Linux Ubuntu (Virtual Machine / Virtual Box), but after starting OpenRemote Manager from source-build images, with the two commands below, I´m getting the error “502 Bad Gateway” while accessing the service thru the browser.
root@openremote-manager:~/openremote# ./gradlew clean installDist
root@openremote-manager:~/openremote# docker-compose up --build
After executing the second command above, the terminal keeps showing the runtime logs of the Manager and other things. The message I´ve got in the runtime log, when the browser shows the error “502 Bad Gateway”, is:
manager_1 | 2021-01-02 05:41:01.113 INFO [WebService task-1 ] emote.container.web.WebServiceExceptions : Web service exception in 'Undertow Servlet Dispatch' for 'HttpServerExchange{ GET /main/}', root cause: java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
Up to the point where I got the error “java.lang.NoSuchMethodError”, everything seems to be working fine.
I´m struggling with the logs trying to find a clue one what is happening, no luck.
Some command outputs of the scenario:
root@openremote-manager:~/openremote# docker container ls --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79f1363a0cf87af3539f649cb25d0fbe7de8483ecb1f806b019eedccfda02178 openremote/proxy:latest "/entrypoint.sh run" 40 minutes ago Up 40 minutes (healthy) 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:8883->8883/tcp openremote_proxy_1
2d956d3f0c5d4ddc0c0cc38e5e3b0858da2bf742b9845be58a69a39a7198b811 openremote/manager:latest "/bin/sh -c 'java $JAVA_OPTS -cp /opt/app/lib/*:/deployment/manager/extensions/* org.openremote.manager.Main'" 40 minutes ago Up 40 minutes (healthy) 8080/tcp openremote_manager_1
7e56e4326d16b6485800a20de804e5b847148a79f2c1e0ffcda0b7d44137df9a openremote/keycloak:latest "/opt/jboss/docker-entrypoint.sh -b 0.0.0.0" 42 minutes ago Up 42 minutes (healthy) 8080/tcp, 8443/tcp openremote_keycloak_1
9581c8a8f5f6b824481a179ee1fbb12b0f71b09c6565b0342ed6e021e4e626a0 openremote/postgresql:latest "docker-entrypoint.sh postgres" 42 minutes ago Up 42 minutes (healthy) 5432/tcp openremote_postgresql_1
root@openremote-manager:~/openremote# ifconfig -a
br-62555f2f8170: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.24.0.1 netmask 255.255.0.0 broadcast 172.24.255.255
inet6 fe80::42:e8ff:fe83:6f3 prefixlen 64 scopeid 0x20<link>
ether 02:42:e8:83:06:f3 txqueuelen 0 (Ethernet)
RX packets 733 bytes 110296 (110.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 171 bytes 36197 (36.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:68:95:a5:5b txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.16.13 netmask 255.255.255.0 broadcast 192.168.16.255
inet6 2804:431:c7cd:4da2:d361:54cd:8a96:7c18 prefixlen 64 scopeid 0x0<global>
inet6 fe80::bd87:a29c:a194:9a4c prefixlen 64 scopeid 0x20<link>
inet6 2804:431:c7cd:4da2:54b5:d62f:ebad:af1a prefixlen 64 scopeid 0x0<global>
ether 08:00:27:e6:66:95 txqueuelen 1000 (Ethernet)
RX packets 73469 bytes 43271534 (43.2 MB)
RX errors 0 dropped 500 overruns 0 frame 0
TX packets 48135 bytes 7587952 (7.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12273 bytes 1133009 (1.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12273 bytes 1133009 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth8d87abd: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::2cc0:a6ff:fe62:ea90 prefixlen 64 scopeid 0x20<link>
ether 2e:c0:a6:62:ea:90 txqueuelen 0 (Ethernet)
RX packets 2087 bytes 354307 (354.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1354 bytes 442387 (442.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vetha092592: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::b050:91ff:fe40:dace prefixlen 64 scopeid 0x20<link>
ether b2:50:91:40:da:ce txqueuelen 0 (Ethernet)
RX packets 2889 bytes 1160029 (1.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4040 bytes 730219 (730.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethccdf540: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::30d0:ccff:fe8a:f268 prefixlen 64 scopeid 0x20<link>
ether 32:d0:cc:8a:f2:68 txqueuelen 0 (Ethernet)
RX packets 92 bytes 22912 (22.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 749 bytes 96293 (96.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethd064b4d: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::48bf:d4ff:fe5b:4b78 prefixlen 64 scopeid 0x20<link>
ether 4a:bf:d4:5b:4b:78 txqueuelen 0 (Ethernet)
RX packets 1949 bytes 381884 (381.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2306 bytes 834437 (834.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@openremote-manager:~/openremote# brctl show
bridge name bridge id STP enabled interfaces
br-62555f2f8170 8000.0242e88306f3 no veth8d87abd
vetha092592
vethccdf540
vethd064b4d
docker0 8000.02426895a55b no
root@openremote-manager:~/openremote# docker exec -it 2d956d3f0c5d bash
root@2d956d3f0c5d:/deployment/manager# cat logging.properties | grep -i deploy
# /deployment/manager/logging.properties on the host machine, or
java.util.logging.FileHandler.pattern=/deployment/manager/logs/openremote.log
root@2d956d3f0c5d:/deployment/manager# cd logs/
root@2d956d3f0c5d:/deployment/manager/logs# ls -la
total 8
drwxr-xr-x 2 root root 4096 Jan 1 19:55 .
drwxr-xr-x 5 root root 4096 Jan 1 19:55 ..
root@2d956d3f0c5d:/deployment/manager/logs#
From another computer:
D:\>tcping -t 192.168.16.13 443
** Pinging continuously. Press control-c to stop **
Probing 192.168.16.13:443/tcp - Port is open - time=7.631ms
Probing 192.168.16.13:443/tcp - Port is open - time=0.930ms
Probing 192.168.16.13:443/tcp - Port is open - time=0.426ms
Probing 192.168.16.13:443/tcp - Port is open - time=0.816ms
Control-C
Ping statistics for 192.168.16.13:443
4 probes sent.
4 successful, 0 failed. (0.00% fail)
Approximate trip times in milli-seconds:
Minimum = 0.426ms, Maximum = 7.631ms, Average = 2.451ms