Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plr_z.sh has not enough permision or file/directory created #1

Open
DomoVlas opened this issue May 29, 2024 · 4 comments
Open

plr_z.sh has not enough permision or file/directory created #1

DomoVlas opened this issue May 29, 2024 · 4 comments

Comments

@DomoVlas
Copy link

DomoVlas commented May 29, 2024

Hi,

my problem is that the plr_z.sh can´t find these files because they are not present or created in my PI.

cp /home/lukaso1/printer_data/gcodes/.thumbs/${4}.png /home/lukaso1/printer_data/gcodes/.thumbs/plr.png
cp /home/lukaso1/printer_data/gcodes/.thumbs/${4}-32x32.png /home/lukaso1/printer_data/gcodes/.thumbs/plr-32x32.png
cp /home/lukaso1/printer_data/gcodes/.thumbs/${4}-400x400.png /home/lukaso1/printer_data/gcodes/.thumbs/plr-400x400.png

and also any gcode_macro from power-loss-recovery.cfg does not seem to use saved variables to create plr.gcode.

And this is in Klippy.LOG

shell_command: Command {POWER_LOSS_RESUME_Z} failed
Traceback (most recent call last):
File "/home/lukaso1/klipper/klippy/extras/gcode_shell_command.py", line 53, in cmd_RUN_SHELL_COMMAND
proc = subprocess.Popen(
File "/usr/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/lukaso1/printer_data/config/scripts/plr_z.sh'
Error running command {POWER_LOSS_RESUME_Z}

@Travis90x
Copy link
Owner

Travis90x commented Jun 4, 2024

Reinstall Gcode Shell Command with Kiauh, update the script and let me know if issue persists.

Remember to set

[save_variables]
filename: ~/printer_data/config/save_variables.cfg

@DomoVlas
Copy link
Author

DomoVlas commented Jul 1, 2024

Hi I am now getting no such file or directory.
obrázok

This is in file i have from you:
obrázok

@DomoVlas
Copy link
Author

DomoVlas commented Jul 1, 2024

Do I need to have my RPI named "pi" ? or where is it trying to find the file plr.sh? i was following your manual where tu put it but some of these files alredy not exist or are in .cfg and not in .sh. Can you please revise your instructions on website?

@DomoVlas
Copy link
Author

DomoVlas commented Jul 1, 2024

OK i got it working by changing this to path to the .sh file.
obrázok

But now I got PLR.gcode only like copy of the file printing before. PLR is attached.
gcodes-202461-163110.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants