Trying to Install FluidNC v1.0

Aloha @bar and all,

I am trying to use the Posix install scripts to update to v1.0. I have attempted this on both MacOS and Linux.

The install seems to have completed successfully (I had to install esptool separately using

pip3 install esptool

to get there); it finished with:

full-install.sh: 19: read: Illegal option -n

which does not seem to affect function.

When I log into the web interface, however, things are…wonky. The “Alarm” button can’t be clicked, for example:


When I hover over it, it doesn’t change appearance the way all the other buttons do.

Further, on the FluidNC tab, when I click on “Manage local files,” I get a spinning wheel and no files listed.


If I click on “No file chosen,” I can upload a file, after which files are listed, but after restarting, they’re gone again.

I’ve also tried to update the firmware wirelessly and I can select a firmware file, but when I confirm I want to update it returns me to the window below:


I was pretty excited to be able to run the install script, but now I’m stuck.

Can you help?

Mahalo,

If you enable developer mode on your browser (right-click and select Inpsect, or maybe F12, or maybe something else) what does the ‘console’ tab in the developer window say?

2 Likes

On the Maslow tab:

Connected maslow:57:224682
connection id = 0 maslow:57:225307
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://preferences.json/. (Reason: CORS request did not succeed). Status code: (null).
0 maslow:57:269139
enable ping maslow:57:166785
Limit reached for 99.1 maslow:57:125651
.g, .gc, .gco, .gcode, .nc, .txt, .G, .GC, .GCO, .GCODE, .NC, .TXT maslow:57:92733
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.
2 maslow
Uncaught ReferenceError: prms is not defined
buildHttpCmd http://maslow/:57
buildHttpFileCmd http://maslow/:57
tabletGetFileList http://maslow/:57
tabletInit http://maslow/:57
maslow:57:127507
[MSG:INFO: Channel auto report interval set to 50 ms] maslow:57:225204
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0] maslow:57:116603
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0] maslow:57:225204
[MSG:INFO: FluidNC v3.0.x (noGit)] maslow:57:225204
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty] maslow:57:225204
[MSG:INFO: Local filesystem type is littlefs] maslow:57:225204
[MSG:INFO: Configuration file:maslow.yaml] maslow:57:225204
[MSG:WARN: Ignored key dc_servo] maslow:57:225204
[MSG:WARN: Ignored key cs_pin] maslow:57:225204
[MSG:WARN: microsteps value 0 constrained to range (1,256)] maslow:57:225204
[MSG:WARN: Ignored key cs_pin] maslow:57:225204
[MSG:WARN: microsteps value 0 constrained to range (1,256)] maslow:57:225204
[MSG:INFO: Machine Maslow S3 Board] maslow:57:225204
[MSG:INFO: Board Maslow] maslow:57:225204
[MSG:INFO: UART1 Tx:gpio.1 Rx:gpio.2 RTS:NO_PIN Baud:115200] maslow:57:225204
[MSG:INFO: SPI SCK:gpio.12 MOSI:gpio.11 MISO:gpio.13] maslow:57:225204
[MSG:INFO: SD Card cs_pin:gpio.10 detect:NO_PIN freq:8000000] maslow:57:225204
[MSG:INFO: Stepping:Timed Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:240ms] maslow:57:225204
[MSG:INFO: Axis count 3] maslow:57:225204
[MSG:INFO: Axis X (-2438.400,0.000)] maslow:57:225204
[MSG:INFO: Motor0] maslow:57:225204
[MSG:INFO: Axis Y (-1219.200,0.000)] maslow:57:225204
[MSG:INFO: Motor0] maslow:57:225204
[MSG:INFO: Axis Z (-100.000,0.000)] maslow:57:225204
[MSG:INFO: Motor0] maslow:57:225204
[MSG:INFO: tmc_2209 UART1 Addr:0 Step:gpio.15 Dir:gpio.16 Disable:NO_PIN R:0.110] maslow:57:225204
[MSG:INFO: Motor1] maslow:57:225204
[MSG:INFO: tmc_2209 UART1 Addr:1 Step:gpio.46 Dir:gpio.38 Disable:NO_PIN R:0.110] maslow:57:225204
[MSG:INFO: Z Axis driver test passed] maslow:57:225204
[MSG:INFO: Z2 Axis driver test passed] maslow:57:225204
[MSG:INFO: Kinematic system: Cartesian] maslow:57:225204
[MSG:INFO: Using spindle NoSpindle] maslow:57:225204
[MSG:INFO: Connecting to STA SSID:Everland] maslow:57:225204
[MSG:INFO: Connecting.] maslow:57:225204
[MSG:INFO: Connecting..] maslow:57:225204
[MSG:INFO: Connected - IP is 192.168.1.115] maslow:57:225204
[MSG:INFO: WiFi on] maslow:57:225204
[MSG:INFO: Start mDNS with hostname:http://maslow.local/] maslow:57:225204
[MSG:INFO: SSDP Started] maslow:57:225204
[MSG:INFO: HTTP started on port 80] maslow:57:225204
[MSG:INFO: Telnet started on port 23] maslow:57:225204
MINFO: { “homed”: false,“calibrationInProgress”: false,“tl”: 0.000,“tr”: 0.000,“br”: 0.000,“bl”: 0.000,“etl”: 0.000,“etr”: 0.000,“ebr”: 0.000,“ebl”: 0.000,“extended”: false} maslow:57:225204

When I go to the FluidNC tab and click on “Manage local files”:

Uncaught ReferenceError: prms is not defined
buildHttpCmd http://maslow/:57
buildHttpFilesCmd http://maslow/:57
SPIFFSSendCommand http://maslow/:57
refreshSPIFFS http://maslow/:57
SPIFFSdlg http://maslow/:57
onclick http://maslow/:1

I’m not sure what you want to see; if I missed it, let me know; I can navigate to the Maslow webserver at any given moment.

1 Like

Also, “Save Serial” doesn’t do anything, but here are the boot-up messages (copied and pasted):

Serial Messages
Index.html Version: 1
[MSG:INFO: Channel auto report interval set to 50 ms]
[MSG:INFO: FluidNC v3.0.x (noGit)]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty]
[MSG:INFO: Local filesystem type is littlefs]
[MSG:INFO: Configuration file:maslow.yaml]
[MSG:WARN: Ignored key dc_servo]
[MSG:WARN: Ignored key cs_pin]
[MSG:WARN: microsteps value 0 constrained to range (1,256)]
[MSG:WARN: Ignored key cs_pin]
[MSG:WARN: microsteps value 0 constrained to range (1,256)]
[MSG:INFO: Machine Maslow S3 Board]
[MSG:INFO: Board Maslow]
[MSG:INFO: UART1 Tx:gpio.1 Rx:gpio.2 RTS:NO_PIN Baud:115200]
[MSG:INFO: SPI SCK:gpio.12 MOSI:gpio.11 MISO:gpio.13]
[MSG:INFO: SD Card cs_pin:gpio.10 detect:NO_PIN freq:8000000]
[MSG:INFO: Stepping:Timed Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:240ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-2438.400,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: Axis Y (-1219.200,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: Axis Z (-100.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_2209 UART1 Addr:0 Step:gpio.15 Dir:gpio.16 Disable:NO_PIN R:0.110]
[MSG:INFO: Motor1]
[MSG:INFO: tmc_2209 UART1 Addr:1 Step:gpio.46 Dir:gpio.38 Disable:NO_PIN R:0.110]
[MSG:INFO: Z Axis driver test passed]
[MSG:INFO: Z2 Axis driver test passed]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Using spindle NoSpindle]
[MSG:INFO: Connecting to STA SSID:Everland]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is 192.168.1.115]
[MSG:INFO: WiFi on]
[MSG:INFO: Start mDNS with hostname:http://maslow.local/]
[MSG:INFO: SSDP Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]

I don’t know enough to know next steps.

1 Like

@md8n Do you know what might be causing this? I think I merged the latest PR right before I built the release so I think something might have snuck in there.

1 Like

I think that was a PR I forgot to mark as draft.

deepCopy params to prms by md8n · Pull Request #121 · BarbourSmith/ESP3D-WEBUI

Not tested, but it compiles clean.

2 Likes

We got the same issue yesterday on Windows10.
As we just finished building the frame, we figured we might go for a clean slate with 1.0. The machine has not yet been in use, but we retracted the belts with 0.85 FW and had all functions in the WebUI.

Just to be sure we didn’t do anything wrong, here are the steps we took:
1 - Connected with USB
2 - Ran erase.bat with success message
3 - Ran install-sf.bat with success
4 - Ran install-wifi_s3.bat with success
5 - Connected to maslow wifi when it came up
6 - Tried some reboots with no changes

As @MrN808 we have the spinning wheel for local files and no reaction on alarm-button.

Have we done the steps in the correct order?
Should we also run full-install.bat or any of the other files if we are just going to use the WebUI via local WiFi?

@Tore the only diference i can see between you have done and the full-install.bat is that this last starts fuildterm at the end.

2 Likes

I suppose I should figure out what fluidterm is good for; I’m guessing the shell environment is minimal.

1 Like

index.html.gz (117.0 KB)

Can you give this index.html a try and see if that fixes the issue?

1 Like

For the things I can check (I can’t currently access my frame, so can’t talk about the through-line), it is far more typical. It does throw a “No connection” error in a pop-up on startup, but I can dismiss that and reset the alarm status, when I click on Manage local files on the FluidNC tab I see a list of the files, I can jog the Z axis (it looks a little funky—JogTo: '$J=G91F300Z5—but it moves), etc.

When I set Preferences using the drop-down menu—e.g. turn off Connection monitoring, turn on Show probe panel—they persist until reboot, after which they return to defaults.

1 Like

Some things are not saved except from the actual preferences page. Some other things were, but that was by accident and not design.

So the question is, what should the preferred behaviour be when making changes to config values, but not on a preferences / config page?

I should have said, “I set Preferences using the drop-down menu and saved them…”

1 Like

If it’s the bug I just fixed (hopefully) then yes, this is a likely outcome of that bug.

1 Like

And if I remember the code correctly there’s also the issue of them being ‘saved’ in the sense of being sent back to FluidNC, vs. saved as actually written back into storage.

1 Like

Lee H wrote:

Some things are not saved except from the actual preferences page. Some other things were, but that was by accident and not design.

So the question is, what should the preferred behaviour be when making changes to config values, but not on a preferences / config page?

I think it makes the most sense for changes to always be saved (but on the
preferences page there should be a ‘revert to default’ for each item)

Anything that isn’t saved needs to be called out specifically at the places
where it would not be saved.

David Lang

1 Like

@bar @md8n

And I lied; they don’t persist until reboot (and I am clicking Save after setting them); they return to defaults if I refresh the browser, too.

1 Like

I am trying to upload the new index.html.gz, but can’t get anywhere with it as I can’t get to the file list. I have tried erasing and re-installing the filesystem, but I am met with this error on every try:

  • ------ Erasing flash- *
    win64\esptool.exe --chip esp32s3 --baud 921600 erase_flash
    esptool.py v4.6
    Found 1 serial ports
    Serial port COM4
    Connecting…
    Chip is ESP32-S3 (revision v0.2)
    Features: WiFi, BLE
    Crystal is 40MHz
    MAC: 48:27:e2:c7:0f:20
    Uploading stub…
    Running stub…
    Stub running…
    Changing baud rate to 921600

A fatal error occurred: No serial data received.

Not sure what to do at this point. I still have acces to the 1.0 index where nothing is clickable. I can unlock from the FluidNC tab and jog Z axis etc, but not start setup and calibration from the Maslow tab.

1 Like

I was able to click on the Manage local files icon (on the FluidNC tab) to bring up the (empty) file list, then click on the words “No file chosen” to bring up the upload dialog. After uploading the updated index.html.gz, there are still some weird glitches, but the file list looks normal and I was able to clear the alarm status.

2 Likes

I will try that to see if the index file changes anything. Is it possible to upload the 0.88 again after the memory re-allocation if all else fails?

1 Like