System Command Center - STDERR Error

Hello together!

I am new in the 3D Printing World and have installed OctoPi via your Image on my RPi 3b.
Then i have installed the Plugin System Command Editor.
And if i try to execute sudo ~/433Utils/RPi_utils/codesend MYCODE
i got an Error:
Command for custom:Licht aus failed with return code 1:
STDOUT:
STDERR: sudo: no tty present and no askpass program specified

How can i fix this?
Sry for my Bad English, i am a German User with terrible English skills...

I follwed this Tutorial:

Best Regards

Did you try to send the command directly in the raspberry-terminal (via ssh)?
Please post a screenshot of your command-settings.

Cy,
Olli

You might need to remove requiretty from the sudoers configuration. This could possibly be:

Update: ignore this part

sudo nano /etc/sudoers

# Add the line in the header:
Defaults:pi !requiretty

I'm not sure because I've never run this plugin and this hardware that you have.


It's also possible that you just simply need to add a file:

sudo touch /etc/sudoers.d/codesend
sudo nano /etc/sudoers.d/codesend

# Here is the content:
pi ALL=(ALL) NOPASSWD: /home/pi/433Utils/RPi_utils/codesend

Good Morning!

@OllisGit
Yes i have done this, and there it will be OK! It works without Errors...
Here is a Screenshot:
http://abload.de/image.php?img=unbenannt5ikuf.jpg

@ OutsourcedGuru
Thanks! I will try this, and give you feedback!

Best Regards

Hello again!

@OutsourcedGuru

You are my hero!

The Line in the sudoers File has not worked, BUT then i have created a File with

sudo nano /etc/sudoers.d/codesend

With the follwing content:
pi ALL=(ALL) NOPASSWD: /home/pi/433Utils/RPi_utils/codesend

After a Reboot the command works like a charme!
Thank you very much, for your fast help! :wink:

Have a nice Day :wink:

Best Regards

1 Like