ocotoprint cannot be started after reinstallation

I have reinstalled octoprint according to the instructions at LINK

At the point ~/OctoPrint/venv/bin/octoprint serve

I get the output:

unknown command: /home/pi/OctoPrint/venv/bin/octoprint

when I try to start with sudo service octoprint start I get the output

Job for octoprint.service failed because the control process exited with error code.

See "systemctl status octoprint.service" and "journalctl -xe" for details.

systemctl status octoprint.service

● octoprint.service - The snappy web interface for your 3D printer

Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; vendor preset: enabled)

Active: failed (Result: exit-code) since Sun 2022-03-06 18:49:58 GMT; 9s ago

Process: 23613 ExecStart=/home/pi/OctoPrint/venv/bin/octoprint (code=exited, status=203/EXEC)

Main PID: 23613 (code=exited, status=203/EXEC)

Mar 06 18:49:58 raspberrypi systemd[1]: Starting The snappy web interface for your 3D printer...

Mar 06 18:49:58 raspberrypi systemd[23613]: octoprint.service: Failed to execute command: Permission denied

Mar 06 18:49:58 raspberrypi systemd[23613]: octoprint.service: Failed at step EXEC spawning /home/pi/OctoPrint/venv/bin/octoprint: Permission denied

Mar 06 18:49:58 raspberrypi systemd[1]: octoprint.service: Main process exited, code=exited, status=203/EXEC

Mar 06 18:49:58 raspberrypi systemd[1]: octoprint.service: Failed with result 'exit-code'.

Mar 06 18:49:58 raspberrypi systemd[1]: Failed to start The snappy web interface for your 3D printer.

No idea what is going wrong here. Would be happy about a tip

Did you change the username on the RPi imager? If so, don't do that.

i did not use the image variant but installed octoprint via pip install octoprint

What link?

This Link

This probably means you installed OctoPrint somewhere else or as a different user. I would go back and try and find where you might have installed it, using ls -l to get the permissions as well, making sure they are all correct.

Attached the permissions. i think it looks good

pi@raspberrypi ~/O/v/bin [1]> cd /home/pi/
pi@raspberrypi ~> ls -l
total 344
-rwxr-xr-x  1 pi   pi    24749 Nov  2  2020 adafruit-pitft.sh*
-rw-r--r--  1 pi   pi   136336 Nov  2  2020 brgenprintml2pdrv-4.0.0-1.armhf.deb
-rwxr-xr-x  1 root root    891 May  7  2021 fish-build-install.sh*
drwxr-xr-x  7 pi   pi     4096 Nov  2  2020 LCD-show/
drwxrwxrwx  3 pi   pi     4096 Mar  6 18:14 OctoPrint/
pi@raspberrypi ~/O/venv> cd bin
pi@raspberrypi ~/O/v/bin> ls -l
total 36
-rwxrwxrwx 1 pi pi 2199 Mar  6 18:14 activate*
-rwxrwxrwx 1 pi pi 1255 Mar  6 18:14 activate.csh*
-rwxrwxrwx 1 pi pi 2407 Mar  6 18:14 activate.fish*
-rwxrwxrwx 1 pi pi  252 Mar  6 18:14 easy_install*
-rwxrwxrwx 1 pi pi  252 Mar  6 18:14 easy_install-3.7*
drwxrwxrwx 2 pi pi 4096 Mar  6 18:42 octoprint/```

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.