Error: An unexpected error occurred during post-processing
Vcore 3.1 500 IDEX. Was working fine before updating ratos. seems trivial, hopefully it is.
I'm using an orangePi board. I know... but it is working fine. until now.
I just updated my ratos (it has been a while). I re-sliced a file and now I'm getting this error in the logs. I'm unable to print any files. all have this exdev error.
I think it may have to do with my tmp directory not being on the same filesystem as my sd?
The fix would seem to be, have the postprocessor use a directory that is on the same device. (Perhaps /home/pi/printer_data/gcodes/tmp) Is there a way to specify this?
I'm not sure why the tmp location would differ on my opi vs the rpi. but this must be it. Any ideas? Thanks for your time.
Solution:Jump to solution
I FIXED IT. It appears to be a bug in how the postprocessor tries to rename a file using node.js, which can't be on a different device (ie ramdisk). I modified the TMPDIR environment variable for this function to point to a tmp directory on the sdcard for the process_gcode_file function in ratos.py. This way the function works as it should since the files are on the same device. See below:
I created Then I edited ratos.py located at under the function I modified with the following
```...
4 Replies
Solution
I FIXED IT. It appears to be a bug in how the postprocessor tries to rename a file using node.js, which can't be on a different device (ie ramdisk). I modified the TMPDIR environment variable for this function to point to a tmp directory on the sdcard for the process_gcode_file function in ratos.py. This way the function works as it should since the files are on the same device. See below:
I created Then I edited ratos.py located at under the function I modified with the following
Hopefully this helps anyone who had this issue. I thought maybe it's because I'm runinng an opi, but rpi should use the same ramfs for tmp. so, I'm not sure why mine was different. mabye @miklschmidt could look at this and see if I'm just crazy. Anyways, great os, great printer! Just glad to be printing again!
maybe something can be done so I don't have to keep a dirty repo? (and anyone else as well?)
you can put it into
~/.ratos.env
or /usr/local/etc/.ratos.env
instead
the latter should be symlinked to ~/.profile.d/ratos.sh
, you can just edit that instead
~/.ratos.env
won't override values in /usr/local/etc/.ratos.env
, only keys that aren't already set are loaded.Thank you, Wizard.