paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
390 stars 39 forks source link

Error upon instance creation #104

Closed wesalmon closed 11 months ago

wesalmon commented 11 months ago

I have tried the script on a rock64 and orangepi 2 with the same error each time.

Plug your printer in via USB now (detection time-out in 1 min) Serial number detected as: AG0KEBVM No duplicate serial number detected.

Would you like to auto detect an associated USB camera (experimental)? [y/n]: n Ready to write all changes. Do you want to proceed? [y/n]: y Uniquifying instance... sudo: unrecognized option '--basedir' usage: sudo -h | -K | -k | -V usage: sudo -v [-ABknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-ABknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-ABbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [] usage: sudo -e [-ABknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ... sudo: unrecognized option '--basedir'

Any idea what I am missing? I have tried to respond yes and no to camera with the same results. Thank you!

paukstelis commented 11 months ago

This means that OctoPrint itself has not been installed. Can you provide the full output from the beginning of the system preparation?

wesalmon commented 11 months ago

You are correct! This error never came up before: File "/usr/lib/python3.10/venv/main.py", line 6, in main() File "/usr/lib/python3.10/venv/init.py", line 525, in main builder.create(d) File "/usr/lib/python3.10/venv/init.py", line 75, in create self._setup_pip(context) File "/usr/lib/python3.10/venv/init.py", line 318, in _setup_pip subprocess.check_output( File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 503, in run stdout, stderr = process.communicate(input, timeout=timeout) File "/usr/lib/python3.10/subprocess.py", line 1139, in communicate stdout = self.stdout.read() KeyboardInterrupt sudo: /home/admin/OctoPrint/bin/pip: command not found sudo: /home/admin/OctoPrint/bin/pip: command not found sudo: /home/admin/OctoPrint/bin/pip: command not found WARNING! WARNING! WARNING! OctoPrint has not been installed correctly. Please answer Y to remove everything and try running prepare system again. Remove everything? [y/n]:

This happens on 2 different boards with new installs of debian. I see it says pip is missing so I'll try to fix that first.

pip was missing. Both boards are debian jammy if that helps.

paukstelis commented 11 months ago

Please provide all the output for the very start. That looks as though someone pressed ctrl+c or ctrl+d during one of the operations. I would need to know where it is failing.

wesalmon commented 11 months ago

Silly me! I am not sure how I missed the error that octo was not installed or how the script continued.
The issue was missing pip. The image I am using is from the armbian.org site so I am guessing they don't include pip in the current version? All is good now on the rock64. I'll start by installing pip on the orange pi 2 and I'm sure it will be successful. Thank you sir!

wesalmon commented 11 months ago

Issue resolved by installing pip first.

paukstelis commented 11 months ago

The script should install pip (python3-pip). If it doesn't, that's an error.

wesalmon commented 11 months ago

I'll be running it again in just a few on a new board and I'll let you know.

On Mon, Jul 17, 2023 at 9:54 AM paukstelis @.***> wrote:

The script should install pip (python3-pip). If it doesn't, that's an error.

— Reply to this email directly, view it on GitHub https://github.com/paukstelis/octoprint_deploy/issues/104#issuecomment-1638313678, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBKOTOTF2EE4Q36KQZ362GDXQVG2FANCNFSM6AAAAAA2NADUP4 . You are receiving this because you modified the open/close state.Message ID: @.***>

paukstelis commented 11 months ago

What command did you use to install pip manually in armbian?

wesalmon commented 11 months ago

I just re-ran on an orangepi zero 2 with no issues. The missing pip must have been a miss from the rock64 image. I had no issues with a clean install this time. I have a second rock64 I'll try in a few days and let you know if your script picks up the pip upgrade or not.

Thank you!

On Mon, Jul 17, 2023 at 10:08 AM paukstelis @.***> wrote:

What command did you use to install pip manually in armbian?

— Reply to this email directly, view it on GitHub https://github.com/paukstelis/octoprint_deploy/issues/104#issuecomment-1638340254, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBKOTOSC4GV7IEXSLLNKISDXQVIOJANCNFSM6AAAAAA2NADUP4 . You are receiving this because you modified the open/close state.Message ID: @.***>

wesalmon commented 11 months ago

I tried it again on a second fresh rock64 board and had no issues. Not sure what I screwed up the first time! Printing cases now and back to planning to take over the world! Thank you

On Mon, Jul 17, 2023 at 3:17 PM Wes Salmon @.***> wrote:

I just re-ran on an orangepi zero 2 with no issues. The missing pip must have been a miss from the rock64 image. I had no issues with a clean install this time. I have a second rock64 I'll try in a few days and let you know if your script picks up the pip upgrade or not.

Thank you!

On Mon, Jul 17, 2023 at 10:08 AM paukstelis @.***> wrote:

What command did you use to install pip manually in armbian?

— Reply to this email directly, view it on GitHub https://github.com/paukstelis/octoprint_deploy/issues/104#issuecomment-1638340254, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBKOTOSC4GV7IEXSLLNKISDXQVIOJANCNFSM6AAAAAA2NADUP4 . You are receiving this because you modified the open/close state.Message ID: @.***>

paukstelis commented 11 months ago

It wasn't you! There were some known issues with OctoPrint that were just resolved. https://community.octoprint.org/t/new-release-1-9-2/52970