Closed: [Beta] Makerverse (previously known as "CNCjs") Support for **All Maslow Editions** w/ Non-Destructive Edge Calibration

I only had time for a quick test this morning. Here are the console logs when I try to open “makerverse:8000” from my Mac.

app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:202 2020-09-05T12:52:30.541Z DEBUG Loading resource: url=“/i18n/en/controller.json” at Object.parse (http://makerverse:8000/0e4637ed/app.77af22af7bca6ed9f5ae.bundle.js?_=1599237524087:16:196636)
app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:202 2020-09-05T12:52:30.633Z DEBUG Loading resource: url=“/i18n/en/gcode.json” at Object.parse (http://makerverse:8000/0e4637ed/app.77af22af7bca6ed9f5ae.bundle.js?_=1599237524087:16:196636)
app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:202 2020-09-05T12:52:30.650Z DEBUG Loading resource: url=“/i18n/en/resource.json” at Object.parse (http://makerverse:8000/0e4637ed/app.77af22af7bca6ed9f5ae.bundle.js?_=1599237524087:16:196636)
VM6:1 POST http://makerverse:8000/api/signin 500 (Internal Server Error)
(anonymous) @ VM6:1
g.end @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:175
g.end @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:175
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:16
signin @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:16
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:147
l @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:147
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:225
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
Promise.then (async)
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:161
t.default @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:161
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:1
VM6:1 GET http://makerverse:8000/api/workspaces?_=1599310350843 403 (Forbidden)
(anonymous) @ VM6:1
g.end @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:175
g.end @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:175
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:16
fetch @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:16
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:225
Promise.then (async)
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:161
t.default @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:161
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
makerverse/:1 Uncaught (in promise) v {req: g, xhr: XMLHttpRequest, text: “Forbidden Access”, statusText: “Forbidden”, statusCode: 403, …}
Promise.then (async)
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:76
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:225
Promise.then (async)
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:161
t.default @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:161
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:225
n @ app.77af22af7bca6ed9f5ae.bundle.js?=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?
=1599237524087:1
(anonymous) @ app.77af22af7bca6ed9f5ae.bundle.js?_=1599237524087:1

This is very helpful. Do you have user accounts enabled in Makerverse? It’s saying you don’t have access, which sounds more like a login / session error. I haven’t really tested user accounts yet.

edit I looked at the code and there are exactly 2 reasons this error could possibly occur:

  1. allowRemoteAccess is not on
  2. User accounts are enabled, and you are not logged in

Yes, User Accounts are enabled but I am never prompted for a login. (However, I WAS prompted for a login once on the RPI when logging into makerverse:8000 locally).

Remote access is also enabled (and remember that this also fails locally on the RPI when using “localhost:8000”).

Please disable them for the moment.

Btw, I acknowledge and apologize for the confusion about user accounts. They should indeed be used as a security “best practice“. I just haven’t gotten to overhauling them yet, lots of code to modernize/fix! It’s top on my list.

Yep, this is the real problem. You are successfully logged in there, but your other devices / browser windows are not. This is causing an error instead of properly asking those devices to log in. I should have tested user accounts, but I put them off to overhaul them rather than just patch them.

Is there a chance it be a cookie issue? I’m taking a guess that would explain why the other devices don’t prompt for a login.

No. The user authentication code is buggy. I can see the bug in your logs. I know exactly what is causing it. I didn’t write the user authentication code, but I need to fix it.

I’ll let you know when it’s done.

Until then, user authentication will not work properly. Turning it off is no more dangerous than using Web Control (which never had user auth).

1 Like

Confirmed - disabling the User Account then makes everything work on Mac and RPI.

1 Like

Great. Again, sorry about that, this is top priority for me.

LMK if anything else comes up!

@zaneclaes it’s 4 days later and Makerverse was running and I was still connected on my phone and PC. I went in to begin calibration and my workspace was locked. I tried to unlock and the button did not respond. I rebooted the Rpi and I seem to have broken everything. I read back through the last dozen posts and I don’t see a way to make Makerverse update without a fresh image and write to SD card. I’m willing to do that unless you have another suggestion.

Here’s my error log:

That’s… odd. I’m not 100% sure what to make of it. If it’s been a couple days since you installed, I guess a wipe/re-flash would be best. Lmk how it goes!

ok. I finally decided to cut calibration holes after updating to tomorrow’s firmware. Z axis is working. The rub is that I only have a 4x4 work area. when Told to cut upper left and upper right, it goes off the edges even though the limits are 1219.2 (48") for each axis.

The lower right and lower left never cut because the sled won’t go over that far since it wanted to go vertical to the motor. The chain was totally slack on the opposite motor and I couldn’t get a good measurement. I don’t think a negative number is a good idea. Turns out that my work piece is actually a full sheet and hangs off the ends, but the normal work area won’t be that large.

the initial system settings:

1219.2
1219.2

301.625
1809.675
0

With a cutting width of only 4’, the calibration cuts are at 4’ 7 inches or so apart. If this were a 4x8, it would probably not be a big deal.

Wow that is… extremely uncalibrated. Most of your cuts are off by several inches. I’ve not personally seen calibration anywhere near this bad. Is this normal for your experience calibrating a new PCB on your frame? I mean, did you have to correct for such a margin of error before when you first set up? Or could there be something else off? Calibration should be compensating for like 0-20mm of error, not several inches.

Obviously you changed the workspace size. Anything else unique about your machine that might cause such a wrong starting calibration? Not using triangular kinematics? Strange sled weight? I’m assuming you started with blank settings (wipe), at least, and the 4x4 is the only unusual bit.

Edit: also any reason you didn’t use edge calibration first (non centered sled)? Seems a waste to cut wood when you’re so uncalibrated… the tips will tell you not to proceed to the Precision tab.

I’ve never calibrated this frame before. i built it just for this. I didn’t use edge because while the waste board is 4’ wide, it isn’t a perfectly square cut for calibration and put a full sheet on top of it and it hangs off extra, so I can’t measure exactly. Plus I’m using a metal sled and it isn’t round. Perhaps I could use my sheetrock square and draw lines on the sheet and use those as edges. The issue I had was the sled was going outside the x bounds of the system. The sled is light, but why would the calibration holes be outside the 4’ box?

Hello,

i would like to test the software. I currently have a “complete” metal maslow setup. I am in the process off buying a second set so i have a backup machine/parts.

For the CNCjs system, which maslow board set is preferable? The current metal maslow arduino-clone with the TLE5206 motor-shield or the GRBL DUE board (with which motor shield?)

thx!

1 Like

The Due board with theV2 Due motor-shield, seems the most common path right now and has tweaks, like spindle speed control that are not in the firmware for the traditional systems. Also i don’t see further development happening in firm- and software for the Mega. Only exception is this post to allow us old mega users to also use makerverse.

1 Like

This means the machine is so poorly calibrated it’s off by more than an inch. The precision calibration simply tells the machine to cut holes 1” inside the edge. If it’s missing the targets this badly, I would suspect the machine/frame has something wrong. No machine should start so poorly calibrated AFAIK.

However, you can change the 1” target with the value you see at the bottom of your screenshot in the last post. Maybe set it to like 4” until you get it decently calibrated.

Just to echo what @Gero said, I have been doing most of my testing on these 3 setups:

  • M2 (Due with v2 shield from MakerMade)
  • Due with v1 shield (from MetalMaslow)
  • Mega (classic jumpstart kit from MakerMade)

The top is the “best” in that the shield has 3 dedicated controllers and various pinouts for spindle control, etc. if you care about such things.

1 Like

How do I store for exaple the $7=2 command in the console? Why is 1 default (Quadliteral)?
Seems this values get stored:

machine width
machine height
motor distance
motor height
Sled Weight (although clean 92.23 turns to 92.23000335)

This values i can’t get to store (gone after closing the connection from the client) :

sled width
sled height
sled cg
Kinematics Type 1=Quadrilateral
rotation radius

What do you mean? Typing it and pressing enter will apply it to the eeprom (Arduino memory).

It’s not, if you’re using one of the firmwares I provided. Try wiping eeprom. Does it go back to 1?

Can I see a screenshot of you applying the values? We should see an “ok” come back from the console.