Closed AcrimoniousMirth closed 4 months ago
Looks like issue with service creation. Will run test with script. There might be issues with the latest Rasp Pi OS that was released this month.
What Raspberry Pi OS are you using?
@AustinSaintAubin I’m away from Pi atm so can’t give exact version but latest Raspbian at time of install (mid-Oct).
Is there a version of raspbian you’d recommend backdating to to try again?
I had the same problem with Raspberry PI OS Lite 2020-12-02 release. With the previous Raspberry PI OS Lite version (2020-08-20) the installation runs smooth. Not sure if it mattered, but with the 2020-08-20 installation, I also unchecked any (opional) pendants during setup.
Working to test and resolve this. Looks like issue with Rasp Pi OS 2020-12-02 release...
Will back-date to an earlier version of Raspbian and do a fresh install when I can (ideally tonight but maybe tomorrow). Will update with results.
Back-dated to 2020-02-13-raspbian-buster and ran the script again, worked well though it failed at the IPtable mapping for port 8000. Thanks for your help, Austin. Really glad to have this awesome setup running again.
Working on IPtables fix... its somewhat related to first update of Pi. I think your issue might be because you are using "Raspberry Pi OS with desktop and recommended software" Try using "Raspberry Pi OS with desktop", not the full bloated version.
Try with latest script, tested on Full and Standard. Added condition to fix some issues with iptables.... but requires reboot.
I think I had the same problem. I'm new to Raspberry Pi/Linux so I am struggling through this. I tried installing CNCjs using the instructions on the main cncjs page but that didn't work. I tried Austin's installation program and after running it 2 or three times tonight, it finally worked. I have a Rii keyboard and am trying to install the cncjs keyboard pendant but don't understand the instructions. It says to clone the repository to my work directory, but I am not sure what directory that is. I think I know how to clone the repository but I just don't know where to put it. I already installed the two libusb and lbudev packages. Finally, it says to run bin/cncjs-pendant-keyboard. Do I need to do that everytime I turn on my pi? I don't plan on keeping it on because my SO3 is in my unheated garage and don't want my pi to freeze in the winter.
Thanks for your input, post logs in the future some I can better debug. What version of Raspberry Pi and OS are you running?
I will work to automate adding the other addons to the Install Script for the Pi in the coming months.
Also don't worry too much about about board freezing, low temps ~32F are ok, Pi will operate at freezing. I leave my on in the winter and do work. Its in an enclosure that keeps everything (controller & Pi) at a low, but even temperature in the winter. https://www.raspberrypi.org/documentation/faqs/#pi-performance-temps
Thanks for your input, post logs in the future some I can better debug. What version of Raspberry Pi and OS are you running?
I will work to automate adding the other addons to the Install Script for the Pi in the coming months.
Also don't worry too much about about board freezing, low temps ~32F are ok, Pi will operate at freezing. I leave my on in the winter and do work. Its in an enclosure that keeps everything (controller & Pi) at a low, but even temperature in the winter. https://www.raspberrypi.org/documentation/faqs/#pi-performance-temps
Austin, Thanks for the response. I did get the Shop Floor Table working, but since it doesn't have macros, I probably won't be using it. I use macros for probing and doing M6 Tool Length Offsets. I haven't been able to figure out the keyboard pendant, but that's taking a back burner right now. My biggest issue is with Dropbox. I do all my design and post-processing in my house and save the GCODE to a dropbox folder. When I go out into the shop, I have a laptop that I can use cncjs and can access the GCode from my dropbox folder. My plan was to replace the workshop laptop with the Pi, but I am going to have to figure out how to access the GCODE files because Dropbox doesn't show up in the GUI when loading gcode files in cncjs (or any other GUI). I don't think that is a cncjs issue, but a Dropbox/PI issue with interfacing with the GUIs. I just need to put a little more thought into it and may have an extra step where I copy the .nc files to the PI before I head out to the workshop.
Thanks again, TJ
I will look into adding some notes on dropbox integration with the watch folder. In the meantime, checkout: https://github.com/andreafabrizi/Dropbox-Uploader
Dropbox-Uploader download <REMOTE_FILE/DIR> [LOCAL_FILE/DIR] Download file or directory from Dropbox to a local folder
Thanks. I had that downloaded and it seemed to be working...until tonight. So, I decided to reflash my SD card and will reinstall everything. :(
Odd, are you still having issues?
@AustinSaintAubin I decided to just use the Dropbox website to download files. It was much easier than trying to figure out CLI instructions. Once I reflashed my SD card CNCjs was working fine, but I stopped using CNCjs right now, though, because of the inability to handle files greater than about 5MB. There are not a lot of options but I haven't done a lot of experimenting with any right now - too many other projects around the house that I need to get done, and that don't require G code.
Odd that you are having issues with 5MB files. I have been able to handle files as large ~25MB on my RPi 3B when doing laser engraving.
@AustinSaintAubin I posted on other forums and the general consensus is that somewhere are ~5-6 MB files is where the CNCjs server shuts down. I have successfully run files smaller than that, but occasionally I get a message that the server shut down but the SO3 continues to operate. Bigger files just won't load and I can't send them to my SO3.
One other bug that I have been having is that my RPi 4 won't save my widget settings. Every time I reboot my Pi, the default widgets show up and I need to go in and hide the ones I don't want. Fortunately my macros are saved.
It didn't work with Raspberry Pi OS 64-bit.
I have a pi zero w The point of failure was the lack of official node. Now have to use unofficial version of node for armv6l
installed node outside of the script and then ran script un-ticking need to install node
mkdir node
cd node
wget https://unofficial-builds.nodejs.org/download/release/v10.24.1/node-v10.24.1-linux-armv6l.tar.xz
tar xvfJ node-v10.24.1-linux-armv6l.tar.xz
sudo cp -R node-v10.24.1-linux-armv6l/* /usr/local
cd ..
rm -rf node
@comqdhb I finally found time to try your suggestion. I ran your script and it seemed to work fine, however, when I ran Austin's script, it didn't give me the option to skip the node install, so I don't know if his script overwrote the armv61 version of node. The CLE screen said that, during Austin's script, nodejb v10.24.1 was installed but it was unclear if it was the armv61 variant or whatever gets installed in Austin's script.
In any event, I tried loading a large (33MB) file and it choked on it - shutting down the server with an error message. The cncjs GUI eventually finished uploading the file and showed a visual representation in the viewer, but the server had already shut down so I couldn't send it to my Shapeoko.
Is it possible to restart the server after it finished loading and then run it? Or is too late at that point?
I'll try reinstalling the armv61 variant of nodejs (without uninstalling cncjs) and see if that fixes the problem
@TJ-Houghton, you have the large gcode file to test. Will test if you post it. Script is designed to install on a fresh install of Raspberry Pi OS. Will test this weekend and see if any recent changes in public repos are causing issues.
Austin,
Thanks. Attached is a 33MB Gcode file that was trying to load.
@comqdhb I finally found time to try your suggestion. I ran your script and it seemed to work fine, however, when I ran Austin's script, it didn't give me the option to skip the node install, so I don't know if his script overwrote the armv61 version of node. The CLE screen said that, during Austin's script, nodejb v10.24.1 was installed but it was unclear if it was the armv61 variant or whatever gets installed in Austin's script.
In any event, I tried loading a large (33MB) file and it choked on it - shutting down the server with an error message. The cncjs GUI eventually finished uploading the file and showed a visual representation in the viewer, but the server had already shut down so I couldn't send it to my Shapeoko.
Is it possible to restart the server after it finished loading and then run it? Or is too late at that point?
I'll try reinstalling the armv61 variant of nodejs (without uninstalling cncjs) and see if that fixes the problem
See image for unticking installing node...
@TJ-Houghton
I don't recall if that screen came up last time I installed it. I am re-installing it now on a fresh SD card, and that page came up so I unselected A02. I'll let you know how it works
I finished installing armv61 and cncjs (without node.js selected) and still getting the same error. Within seconds of trying to load a large file, I get an error message saying the server shutdown and I can't load my file
Major improvements to the install script, try now.
@AustinSaintAubin , I gave it a try and no difference. I tried loading a 10MB bile last night and almost immediately recevied a notice that the server shut down and then cncjs got stuck with a spinning wheel trying to load the file. I was able to get carbide motion installed on my RPi, so it's not as big of a problem now, but CM doesn't support all the features that cncjs does, so it's a little bit of a hassle (but at least I can run my large files :) )
Fortunately, I don't do a lot of work with large files.
You able to share that file with me... might be something in the g-code. I just tested with 10.8MB file from here: https://easel.inventables.com/projects/BBROM2ec2CNsAwHj9mDj7g Then ran though here: https://github.com/AustinSaintAubin/gcode-depths-to-shades
Rendered just fine.
@AustinSaintAubin , thank you for trying to troubleshoot this with me. Unfortunately, I am still not having any luck. the 10MB file I tried loading was actually a zip file of the 30MB file I sent you earlier (oops). I have been able to successfully upload a 4 MB file to my cncjs, but haven't been able to load anything any bigger. I downloaded your 10MB tiger tattoo, and am still waiting for it to load. It has NOT told me that the server shut down, so that's good news, but it hasn't gotten to the rendering stage either, and it has been loading for a while (at least a half hour)
Thats far too long, my load took 15sec or less. Try a fresh install when you have time.
@comqdhb This method is working for my board on the most current raspbian OS:
[i] Detected HW: Raspberry Pi 3 Model A Plus Rev 1.0
[i] Detected OS: [ raspbian | 11 | No GUI ]
Thanks. This was a pain until I ran across this page.
@AustinSaintAubin This @comqdhb fix, or some version of it, would be great set up as an option in the original install script for those of us experiencing this issue. Thanks to you both. I've done the manual install for the last time (I hope).
Raspberry Pi 3 A
raspbian | 11 | No GUI
Updated the cncjs-pi-raspbian install script. The Lite x64 edition is now recommended. Recommended RP4 or greater hardware.
Works with:
The following had been my first successful pi headless installation of cncjs on a Rpi-4 to quickly set up and make my system up and running. This as a starting point, the journey of endless mods and upgradations just starts. Steps are simple, quick and working 100% for last 130 days flawlessly. Offcource! you are on your own risk.
sudo apt update sudo apt upgrade sudo apt full upgrade -y sudo apt install -y build-essential git sudo apt install htop iotop nmon lsof screen -y sudo reboot
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install nsolid -y
sudo npm install -g cncjs@latest --unsafe-perm
sudo reboot
cncjs --allow-remote-access
crontab -u pi –e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/pi/.npm/bin/:/usr/local/bin: @reboot /usr/bin/sudo cncjs --allow-remote-access -p 8000 >> /home/pi/cncjs.log 2>&1
Merry Christmas and a happy new year! Tried to install via the script on RPi 3B, here's my entire readout. I think I'm having ongoing issues with NPM for some reason...
Upon opening Terminal:
The Install CNCjs error points to a log, which I have to say is extremely long and I'm not sure what I'm looking for.
Thanks for any help.