#RatOs Update - gcode macro problem

122 messages Β· Page 1 of 1 (latest)

icy matrix
#

Anyone else get this error after the last update?

Klipper reports: ERROR

Error loading template 'gcode_macro CALIBRATE_ADAPTIVE_MESH:gcode': jinja2.exceptions.TemplateSyntaxError: unexpected char '&' at 3569

sour currentBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> βœ… Mark Solution

icy matrix
#

{% if printer.configfile.settings.beacon is defined && printer.configfile.settings.beacon.mesh_runs % 2 != 0 and probe_first %}
{% set probe_first = false %}
{% else if printer.configfile.settings.beacon is defined && printer.configfile.settings.beacon.mesh_runs % 2 == 0 and not probe_first %}

#

Are these two line have "&&" not supposed to be "and" rather?

wise remnant
#

&& is more from C type syntax languages

icy matrix
#

See @kindred parcel updated the macro file a little while back with this. So guess he will have a look to update.

kindred parcel
#

Please install v2.x

icy matrix
#

Just ran the update as normal

kindred parcel
#

I've warned about this several times

#

please install a stable release (2.0.2 as of this moment)

icy matrix
#

"2023-06-09-RatOS-2.0.2-raspberry-rpi64.img" This is what i used!!

So how did I get on development image?

wise remnant
icy matrix
#

From what I can see, I have downloaded this correctly as was the documentation from day 1 and now the 64 bit is removed. from there I and just ran updates since day 1.....

So I have not installed the developer image and you are welcome to watch my video streamed for ALL to see.

wise remnant
#

yeah the 64 bit was removed because it caused a bunch of issues

icy matrix
#

Then the official site should say so and make it clear that 64 bit is a "development image".

icy matrix
kindred parcel
kindred parcel
kindred parcel
# icy matrix

what does it say under RatOS in the update manager pane?

icy matrix
#

You just updated RatOS again and I have updated it again. Working now

kindred parcel
#

this one:

kindred parcel
#

It's supposed to say v2.x here, not development: vblablabla

icy matrix
kindred parcel
icy matrix
kindred parcel
# icy matrix

can you post the contents of your moonraker.conf ?

icy matrix
#

Dont even know how to get on a "development image".... Still too stupid for github and sub realeases.....😁

kindred parcel
# icy matrix

So this one is not the original moonraker.conf installed in the v2.0.2 image

icy matrix
#

So how did i get this?

kindred parcel
#

This has been heavily modified:

  1. You've copy pasted everything from RatOS/moonraker.conf
  2. You've changed the primary branch of RatOS to:
[update_manager client RatOS]
type: git_repo
path: ~/printer_data/config/RatOS/
primary_branch: development
origin: https://github.com/Rat-OS/RatOS-configuration.git
install_script: scripts/ratos-install.sh
managed_services:
    klipper
    moonraker
kindred parcel
#

Did someone tell you to change moonraker.conf?

icy matrix
#

At a stage I had a priblem with some of the files and selected "Hard Recovery" I think

#

Never have I self edited this file

#

Stuck to your rules ALL the way

kindred parcel
#

That's very very strange

icy matrix
#

only mod's done ares in printer.cfg in the user section

#

Also since last week getting this warning:

Moonraker warning
[update_manager]: Failed to load extension RatOSKinematics: Invalid path for option path in section [update_manager RatOSKinematics]: Path /home/pi/ratos-kinematics does not exist

#

was after one of the updates

kindred parcel
#

It's supposed to be running 2.1

#

πŸ˜„

#

The change that's causing these problems is specific to moonraker.conf

#

You can check in there when it's last been modified

#

Maybe that'll jog some memories?

#

My guess is someone told you to replace the contents or something

#

I did a quick search here, but can't find anything mentioning such modifications.

icy matrix
#

Again... I guarentee you I have not touched this file

kindred parcel
#

the 2.0.2 image uses a very different file, looks like this:

# Load the RatOS moonraker defaults
[include RatOS/moonraker.conf]

# If you use a non standard ip range in your local network, 
# you can specify it under trusted_clients here.
[authorization]
cors_domains:
    http://app.fluidd.xyz
    https://app.fluidd.xyz
    https://my.mainsail.xyz
    http://my.mainsail.xyz
    http://*.local
    http://*.lan
    http://localhost:3000
trusted_clients:
    127.0.0.1
    10.0.0.0/8
    127.0.0.0/8
    169.254.0.0/16
    172.16.0.0/12
    192.168.0.0/16
    FE80::/10
    ::1/128
    FD00::/8
#

You can replace your moonraker.conf with that πŸ‘†

icy matrix
#

Dont even know how to mod and I dont understand the API

#

So this has happened automatically on the 64 bit

kindred parcel
#

If you do that it'll be mad at you because the RatOS repository is checked out with the wrong branch, you can do a hard recovery to get it back to v2.x.

icy matrix
#

I will move away from 64 ASAP

kindred parcel
#

Then what you'd want to do afterwards is ssh in (win + r, type "cmd", hit enter, then write ssh [email protected] or ssh [email protected] and hit enter, password is raspberry) and run:

sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh
kindred parcel
#

That moonraker.conf was manually modified

#

Yet yours is different.

icy matrix
#

Well, I have no reason to try bullshit you... I have not touch this file.

kindred parcel
icy matrix
#

Would love to help. Logs somewhere?

kindred parcel
#

for all i know it could be some random guide on a blog somewhere that told you you had to replace moonraker.conf, or maybe some extension that replaced it or what have we

#

Could be literally anything

kindred parcel
#

I guess we might never know 😦

icy matrix
#

Tempted to install from same image and run updates again, as this is the ONLY way it is possible

#

from my action that is

kindred parcel
kindred parcel
icy matrix
#

Will look, but think I will drop to 32bit as 64bit is not on the download as a "new user" would experience. Have a few other channels that people follow my progress and dont want anymore surprises...

#

Thanks

kindred parcel
kindred parcel
# icy matrix Thanks

np, sorry for the third degree interrogation, i just really need to get to the bottom of this πŸ˜‚

wise remnant
#

what does your printer.cfg look like? Maybe you installed something which said to run a script and changed that stuff?

icy matrix
#

Just notice this in the RATOS folder.... I never touch the files in there

kindred parcel
#

Or rather, it's supposed to

#

Wait did you paste the contents of the one next to printer.cfg or the one from the RatOS folder?

#

Can you post the contents of moonraker.conf outside RatOS (the one in the same directory as printer.cfg), just to make sure

icy matrix
icy matrix
icy matrix
wise remnant
#

did you run any scripts when you installed the beacon probe?

icy matrix
#

possibly to calibrate but thats from inside mainsail

#

Dont normally ssh into PI... let me check the history of the ssh session...

#

Nothing via ssh done except updateing config.txt to get the BTT HDMI5 to work

wise remnant
#

I guess to really get down to the bottom of this, reinstall using the image you originally downloaded, after each step check to see if moonraker.conf has changed to the development branch

kindred parcel
#

ie:

ssh [email protected]
cd ~/printer_data/config/RatOS
git checkout development

But... what could it be..

icy matrix
#

for beacon i only ran the "BEACON_CALIBRATE" .... wont be that

kindred parcel
icy matrix
#

Nope. Beacon is the only probe I installed from day 1

kindred parcel
#

Fair enough, only thing i could think of that asked people to do stuff they shouldn't πŸ˜„

#

contacted dave to have him fix that article

icy matrix
#

I will take a new SD card on the weekend and run through it again and see if I land up with a modified moonraker file

#

I will also watch my streams again and see if I notice anything.

#

Only step I did different at installation (the second time once BTT Octopus MAX was included), was to first update RATOS before flashing process and initial config

kindred parcel
#

you can check the branch by doing:

ssh [email protected]
cd printer_data/config/RatOS
git status

It'll say what branch it is on on the first line, it should be v2.x

icy matrix
kindred parcel
icy matrix
#

only ever used the same image.

Will use same image on the weekend and see what it does.

after 2am in the morning here now

kindred parcel
#

I assume the current one then

#

Let me know when you get to it πŸ™‚

icy matrix
#

Will do

icy matrix
#

Just a update. I setup another sd card that I had and used the exact same image I used last year as it was still on my PC I stream with.

Well, after all the updates and making sure everything is working again....."git Status" is still returning "On branch v2.x" which we expected and so have no answer as to how I have the other SD switch to "Developer"......

So, I continue to wonder... In fact, still not sure how to switch from official release to developer release, even if I wanted to....

Mystery unsolved, but back on official release.

kindred parcel
#

Seems like a bug in moonraker, but not entirely sure.

icy matrix
#

Ah, that makes me feel less crazy.... I know I did not do anything different...

I do however check for updates almost every second day while I am still doing the final configs to my printer's build. So would most difinately had updated in this period you spoke about.

Nevertheless... Was good practice to rebuild config one more time.

#

oh, and yes.... I have done a few "hard resets" since the start and did not understand why this happened.... Well, I was on the development branch and so explains the reset from time to time for me. (or at least for my head it does)

dire remnant
#

Hello, I have the same problem and I don't know how to solve it.