Skip to content
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

No server / machine connection running on Raspberry Pi 3B+ #101

Open
t-richter2 opened this issue Feb 5, 2022 · 8 comments
Open

No server / machine connection running on Raspberry Pi 3B+ #101

t-richter2 opened this issue Feb 5, 2022 · 8 comments

Comments

@t-richter2
Copy link

I'm trying to get this to run on a 3B+
I followed the installation guide here line by line.
I also tested this with a fresh buster and bullseye image.
The result is somewhat strange?

On the Pi I can start the server and get this output:

Bildschirmfoto 2022-02-05 um 13 03 24

I can connect to the fontend via browser, however I can't add any machine.

Bildschirmfoto 2022-02-05 um 13 09 06

Note I never get the green "connected to server" message as mentioned in the wiki

Bildschirmfoto 2022-02-05 um 13 28 41

This is also the case when trying to connect from the LaserWeb4 app running on macOS

Bildschirmfoto 2022-02-05 um 13 06 40

@easytarget
Copy link
Contributor

easytarget commented Feb 5, 2022

Thankyou. good report :-),

What I immediately see is that you are not putting the correct SERVER IP address in the 'Connect' tab:

You should use the same URL as you type in the browsers address bar, eg the 'http://192.168.0.222:8000' that you see in the comm-server output.

If you still cant get that working once you have the correct IP set there.. We need more info:

Versions
Frontend: xxxx
Backend: (should say 'not connected')
Latest release: xxxx

This is could be a version missmatch, we changed LW late last year to use an updated socket.io comms protocol, and this means the frontend and backend need to be in sync.. but if you followed the instructions then you should be ok..

@t-richter2
Copy link
Author

Changing the IP did not change the behavior.

Bildschirmfoto 2022-02-05 um 16 34 16

Version mismatch could be the problem.
Server says: LaserWeb Comm Server 4.1.000
Browser says: Laserweb 4.0.999

My git is up-to-date with the master branch

Don't know how to get the backend status, though, sorry

@FrenkK
Copy link

FrenkK commented Feb 5, 2022

Same problem here. One tidbit of info that might help: If I connect in the web browser using the ip given in console, it connects, but not from the latest pc (windows) app. I can't get that to connect at all.
The browser interface says:
Frontend: 4.0.999
Backend: 4.1.000

@FrenkK
Copy link

FrenkK commented Feb 5, 2022

Dug some more in the latest app (.999_138).
I turned on the dev tools and get the following error message that repeats:
"Failed to load http://laserweb:8000/socket.io/?EIO=3&transport=polling&t=NxAf7hY: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://127.0.0.1:8000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute."

@easytarget
Copy link
Contributor

easytarget commented Feb 5, 2022

The version missmatch you see is actually OK. lw.comm-server got a 4.1 upgrade before we have had a chance to (fully) get 4.1 frontend out of the door.

EDIT: @FrenkK; what you describe is correct; the latest windows app pre-dates the changes to yhe comms protocol with lw.comm-server 4.1

  • You will have to use frontend provided by the server itself until this is corrected.

@t-richter2 ; can you do the same, rt-click and open developer tools, click the console tab and see if any relevent messages pop up there, you might see some react.js errors too, ignore them.

@t-richter2
Copy link
Author

I doubt this is related, but I turned on "Enable Developer Debug", after that I had success, at least partially?
Bildschirmfoto 2022-02-05 um 18 20 52

I feel a bit stupid now, but I haven't touched anything else?

@t-richter2
Copy link
Author

Sorry, even more stupid now.
It must have been the IP settings, that fixed it for me in the first place.
Might have forgotten to properly restart the server after last test :cough:
"No supported firmware" is another topic, i guess.
Many thanks for your support.

@easytarget
Copy link
Contributor

easytarget commented Feb 5, 2022

"No supported firmware" is another topic, i guess.

Yep; You got it 😀

PS: Nothing stupid about having problems with this, it's all a bit confusing and confused, wildly different issues can have identical symptoms etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants