BITalinoWorld / revolution-python-serverbit

Service-like OpenSignals architecture barebone for Rapid Application Development
9 stars 7 forks source link

Issues with the built installer in Windows 10 #4

Open fdiazsmith opened 3 years ago

fdiazsmith commented 3 years ago

Hello, I am trying to get the Windows built installer running and I seem to have issues with the webserver. It seems to connect to the bitalino fine. but I get this message when I try to access localhost:8081 or localhost:8081/config

I changed the port from 9001 to 8081 because apparently 9001 was occupied in my machine

C:\Users\Tellart-MSI/ServerBIT
LISTENING
A4:34:F1:25:FA:53
WARNING:tornado.access:404 GET /config (::1) 2.00ms
[0 1 2 3 4 5]
1000
WARNING:tornado.access:404 GET /config (::1) 1.00ms
WARNING:tornado.access:400 GET / (::1) 1.00ms

image image

Any in getting this running would be greatly appreciated. Thanks!

wprimett commented 3 years ago

Hello, It looks like you have configured your device address correctly for Windows, great.

So the port for the configuration page is normally fixed as 9001. This can only be changed in the source code.

The port you enter and submit in the web GUI is separate, this is the destination of the data stream i.e the port for the OSC receiver object in another application.

So I think the best solution here is to stop the program already using localhost:9001. One option is to restart and try again if you haven't already. Another is to find identify the application using the command line or something like TCPVIew.

netstat -na | find "9001"

https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview

Please let me know how this goes

fdiazsmith commented 3 years ago

Hey! thanks for the reply, so if I understand correctly the port in the config.json is the webserver port, is that correct?

I have another computer which does not have a conflict in port 9001 therefore it run correctly. Below is a copy of my config.json

Yet when I try to visit localhost:9001/config I get a 404 and in the console a WARNING:tornado.access:404 GET /config (::1) 1.00ms

{"device": "A4:34:F1:25:FA:53", "channels": [1, 2, 3, 4, 5, 6], "labels": ["nSeq", "I1", "I2", "O1", "O2", "A1", "A2", "A3", "A4", "A5", "A6"], "port": 9001, "sampling_rate": 1000}
wprimett commented 3 years ago

Thanks for sharing the config file, the port set here is the destination of the OSC or WebSockets message.

Also, looking at the file contents, there should be more here. I think maybe you are using an old version of the software, which would explain why there is no webserver active.

Are you able to download from here instead: https://github.com/BITalinoWorld/revolution-python-serverbit/releases/tag/v1.1

If you are upgrading, you will need to delete the folders, USER/Documents/ServerBIT, and the installation directory.