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

UGS does not compile on RPI: 'Node.js' '404 from server' #1505

Closed
benclewett opened this issue Jan 5, 2021 · 15 comments · Fixed by #1506
Closed

UGS does not compile on RPI: 'Node.js' '404 from server' #1505

benclewett opened this issue Jan 5, 2021 · 15 comments · Fixed by #1506

Comments

@benclewett
Copy link

When compelling the latest version on Raspberry PI (Raspberry Pi 3 Model B Plus Rev 1.3, Debian 10.7) I get this error:

./run_platform.sh

ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project ugs-pendant: Could not download Node.js: Got error code 404 from the server. -> [Help 1]

Any help welcome?

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

We are using maven to build the node application which can't be built on ARM-based systems. So you need to disable the pendant module from the build:
mvn install -P '!create-pendant-web-ui'

If you just want to run UGS on a RasberryPI I would recommend you use the prebuilt image instead of compiling it:
https://github.com/winder/Universal-G-Code-Sender#downloads

You can find more instructions for RPi here: https://github.com/winder/Universal-G-Code-Sender/wiki/Raspberry-Pi

@benclewett
Copy link
Author

benclewett commented Jan 5, 2021 via email

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

Could you have a look in the log file:
https://github.com/winder/Universal-G-Code-Sender/wiki/Configuration#log-files

I know there has been problems with the visualizer on RPi and there might be a bunch of errors being spewed in the log.

@benclewett
Copy link
Author

benclewett commented Jan 5, 2021 via email

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

Attachments from emails will not be added to github, you would need to add it through the web page.

@benclewett
Copy link
Author

Attachment added from Website. Thanks Breiler.

messages.log

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

That didn't give any clues other than that the visualizer couldn't be properly started. Try closing that window inside of UGS if it is open and restart.

@benclewett
Copy link
Author

benclewett commented Jan 5, 2021 via email

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

Thanks!

If you feel like experimenting you can try installing an older version of java (the newer ones does not work with netbeans).
https://docs.datastax.com/en/jdk-install/doc/jdk-install/installOpenJdkDeb.html

Then download UGS without a bundled Java: https://ugs.jfrog.io/ugs/UGS/v2.0.7/ugs-platform-app.zip

You can verify that it uses the Java 8 if you open the "About" dialog.

@benclewett
Copy link
Author

benclewett commented Jan 5, 2021 via email

@breiler
Copy link
Collaborator

breiler commented Jan 5, 2021

I'll consider changing the default JRE to 1.8 for RPi, thanks for debugging.

@benclewett
Copy link
Author

benclewett commented Jan 5, 2021 via email

@breiler
Copy link
Collaborator

breiler commented Jan 6, 2021

I made a version that bundles an an older JDK, if you have the time I'd appreciate if you could give it a try:
https://drive.google.com/file/d/1sNFKdpGXMmDkd57qSAo43jJszZwltF9K/view?usp=sharing

@benclewett
Copy link
Author

benclewett commented Jan 6, 2021 via email

@benclewett
Copy link
Author

benclewett commented Jan 6, 2021 via email

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

Successfully merging a pull request may close this issue.

2 participants