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

Wipes existing klipper, borks most of config on install. #598

Open
1 task done
akadata opened this issue Jun 4, 2024 · 3 comments
Open
1 task done

Wipes existing klipper, borks most of config on install. #598

akadata opened this issue Jun 4, 2024 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@akadata
Copy link

akadata commented Jun 4, 2024

Klippain branch

  • I confirm using the main branch

Version

latest

Describe the bug and expected behavior

ran this on a working klipper mainsail, etc installed via kiauh ran your install script and lost most of the files in /home/pi/.

Additional information and klippy.log

no klippy.log the files were deleted.

@akadata akadata added bug Something isn't working triage This is a new issue to be sorted (automatic label) labels Jun 4, 2024
@akadata
Copy link
Author

akadata commented Jun 4, 2024

additionally it appeared to remove klipper.service. moonraker was still running but not doing much. had a backup so deleted my /home/pi/* and started a fresh kiauh and will try another install without my own config. note your config examples do not appear to cover ender 5 pro 4.2.2 board examples. .. did I read or do you not support that?

@akadata akadata changed the title Wipes existing klipper, borks most of confg on install. Wipes existing klipper, borks most of config on install. Jun 4, 2024
@akadata
Copy link
Author

akadata commented Jun 4, 2024

cleaned out /home/pi/ ran new kiath, installed, klipper moonraker and moonsail, ran your install script. not too happy again,

Broadcast message from root@pi on pts/1 (Wed 2024-06-05 00:31:13 BST):

The system will reboot now!

pi@pi:~$ Connection to pi.zerodns.co.uk closed by remote host.
Connection to pi.zerodns.co.uk closed.
PS C:\Users\kingd> ssh [email protected]
[email protected]'s password:
Linux pi 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun 5 00:31:40 2024
pi@pi:$ ls
kiauh kiauh-backups klipper klippy-env mainsail mainsail-config moonraker moonraker-env printer_data
pi@pi:
$ wget -O - https://raw.githubusercontent.com/Frix-x/klippain/main/install.sh | bash
--2024-06-05 00:34:39-- https://raw.githubusercontent.com/Frix-x/klippain/main/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8002::154, 2606:50c0:8001::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12163 (12K) [text/plain]
Saving to: ‘STDOUT’

  •                         100%[=================================================>]  11.88K  --.-KB/s    in 0.007s
    

2024-06-05 00:34:39 (1.72 MB/s) - written to stdout [12163/12163]

======================================

  • Klippain install and update script -
    ======================================

[PRE-CHECK] Klipper service found! Continuing...

[PRE-CHECK] New installation of Klippain detected!
[PRE-CHECK] This install script will WIPE AND REPLACE your current Klipper config with the full Klippain system (a backup will be kept)
[PRE-CHECK] Be sure that the printer is idle before continuing!
[PRE-CHECK] Are you sure want to proceed and install Klippain? (y/N) y
[PRE-CHECK] Installation confirmed! Continuing...

[DOWNLOAD] Downloading Klippain repository...
Cloning into 'klippain_config'...
remote: Enumerating objects: 7551, done.
remote: Counting objects: 100% (7551/7551), done.
remote: Compressing objects: 100% (2740/2740), done.
remote: Total 7551 (delta 5116), reused 6917 (delta 4770), pack-reused 0
Receiving objects: 100% (7551/7551), 16.82 MiB | 8.11 MiB/s, done.
Resolving deltas: 100% (5116/5116), done.
[DOWNLOAD] Download complete!

[BACKUP] Backup of current user config files done in: /home/pi/klippain_config_backups/2024_06_05-003439

[INSTALL] Installation of the last Klippain config files
[INSTALL] New installation detected: config templates will be set in place!

[CONFIG] Would you like to select and install MCU wiring templates files? (Y/n) n
[CONFIG] Skipping installation of MCU templates. You will need to manually populate your own mcu.cfg file!

[POST-INSTALL] Restarting Klipper...
--2024-06-05 00:34:51-- https://raw.githubusercontent.com/Frix-x/klippain-shaketune/main/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4730 (4.6K) [text/plain]
Saving to: 'STDOUT'

  •                         100%[=================================================>]   4.62K  --.-KB/s    in 0.004s
    

2024-06-05 00:34:51 (1.15 MB/s) - written to stdout [4730/4730]

=============================================

  • Klippain Shake&Tune module install script -
    =============================================

[PRE-CHECK] Klipper service found! Continuing...

python3-venv is already installed
libopenblas-dev is already installed
libatlas-base-dev is already installed
[DOWNLOAD] Downloading Klippain Shake&Tune module repository...
Cloning into 'klippain_shaketune'...
remote: Enumerating objects: 1192, done.
remote: Counting objects: 100% (549/549), done.
remote: Compressing objects: 100% (218/218), done.
remote: Total 1192 (delta 398), reused 397 (delta 330), pack-reused 643
Receiving objects: 100% (1192/1192), 37.09 MiB | 21.99 MiB/s, done.
Resolving deltas: 100% (722/722), done.
[DOWNLOAD] Download complete!

[SETUP] Creating Python virtual environment...
[SETUP] Installing/Updating K-Shake&Tune dependencies...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in ./klippain_shaketune-env/lib/python3.11/site-packages (23.0.1)
Collecting pip
Using cached https://www.piwheels.org/simple/pip/pip-24.0-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
Successfully uninstalled pip-23.0.1
Successfully installed pip-24.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting GitPython==3.1.40 (from -r /home/pi/klippain_shaketune/requirements.txt (line 1))
Downloading https://www.piwheels.org/simple/gitpython/GitPython-3.1.40-py3-none-any.whl (190 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.6/190.6 kB 1.5 MB/s eta 0:00:00
Collecting matplotlib==3.8.2 (from -r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading matplotlib-3.8.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB)
Collecting numpy==1.26.2 (from -r /home/pi/klippain_shaketune/requirements.txt (line 3))
Downloading numpy-1.26.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 883.2 kB/s eta 0:00:00
Collecting scipy==1.11.4 (from -r /home/pi/klippain_shaketune/requirements.txt (line 4))
Downloading scipy-1.11.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 kB 2.5 MB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1 (from GitPython==3.1.40->-r /home/pi/klippain_shaketune/requirements.txt (line 1))
Downloading https://www.piwheels.org/simple/gitdb/gitdb-4.0.11-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 1.4 MB/s eta 0:00:00
Collecting contourpy>=1.0.1 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading contourpy-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB)
Collecting cycler>=0.10 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/cycler/cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting fonttools>=4.22.0 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading fonttools-4.53.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (162 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.2/162.2 kB 1.9 MB/s eta 0:00:00
Collecting kiwisolver>=1.3.1 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (6.4 kB)
Collecting packaging>=20.0 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/packaging/packaging-24.0-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 kB 843.2 kB/s eta 0:00:00
Collecting pillow>=8 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_aarch64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/pyparsing/pyparsing-3.1.2-py3-none-any.whl (103 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 1.9 MB/s eta 0:00:00
Collecting python-dateutil>=2.7 (from matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 1.6 MB/s eta 0:00:00
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython==3.1.40->-r /home/pi/klippain_shaketune/requirements.txt (line 1))
Downloading https://www.piwheels.org/simple/smmap/smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib==3.8.2->-r /home/pi/klippain_shaketune/requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading matplotlib-3.8.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.4/11.4 MB 2.7 MB/s eta 0:00:00
Downloading numpy-1.26.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.2/14.2 MB 3.4 MB/s eta 0:00:00
Downloading scipy-1.11.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (32.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.9/32.9 MB 3.3 MB/s eta 0:00:00
Downloading contourpy-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (302 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.1/302.1 kB 3.0 MB/s eta 0:00:00
Downloading fonttools-4.53.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 3.9 MB/s eta 0:00:00
Downloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 3.7 MB/s eta 0:00:00
Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.3 MB)
Installing collected packages: smmap, six, pyparsing, pillow, packaging, numpy, kiwisolver, fonttools, cycler, scipy, python-dateutil, gitdb, contourpy, matplotlib, GitPython
Successfully installed GitPython-3.1.40 contourpy-1.2.1 cycler-0.12.1 fonttools-4.53.0 gitdb-4.0.11 kiwisolver-1.4.5 matplotlib-3.8.2 numpy-1.26.2 packaging-24.0 pillow-10.3.0 pyparsing-3.1.2 python-dateutil-2.9.0.post0 scipy-1.11.4 six-1.16.0 smmap-5.0.1

[INSTALL] Linking scripts to your config directory...
[INSTALL] Klippain full installation found! Linking module to the script folder of Klippain
[INSTALL] Adding update manager to moonraker.conf...[INSTALL] gcode_shell_command.py Klipper extension is already installed. Continuing...

[POST-INSTALL] Restarting Klipper...
[POST-INSTALL] Restarting Moonraker...
[POST-INSTALL] Everything is ok, Klippain installed and up to date!
[POST-INSTALL] Be sure to check the breaking changes on the release page: https://github.com/Frix-x/klippain/releases
pi@pi:~$

@Surion79
Copy link
Collaborator

could you please start fresh, use kiauh and instead of installing klippain, please install the subdmodule https://github.com/Frix-x/klippain-shaketune of klippain. After installation of shaketune please check if everything is in order and then after that try install klippain and verify again. The bash output did not show anything specific.
Going fresh means: Use a flashed drive from the root raspi os and not a backup of something which might contain interfering stuff.

@Surion79 Surion79 added question Further information is requested and removed triage This is a new issue to be sorted (automatic label) labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants