dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.26k stars 471 forks source link

Using new KIAUH, fresh armbian system, fluidd-config install fails #509

Open GoldenGreek opened 1 week ago

GoldenGreek commented 1 week ago

Linux Distribution

armbian-mkspi debian bullseye (6.6.17-current-rockchip64) running on mks-skipr-mini board. Repo is here

What happened

  1. Fresh base-image from the repo above with device-tree tweaked for the mini version of the board.
  2. Installed kiauh.sh and ran the beta/python version.
  3. Installed klipper & moonraker without issue
  4. While installing fluidd and the default fluidd config, i receive the following error:
    
    ###### Downloading Fluidd from https://github.com/fluidd-core/fluidd/releases/latest/download/fluidd.zip ...
    Downloading: [####################]100.00% (3.59/3.59MB)
    [OK] Download complete!
Extracting fluidd.zip ...

[OK] OK!

Add section '[update_manager fluidd]' to '/home/mks/printer_data/config/moonraker.conf' ...
Restart moonraker.service ...

[OK] OK!

Downloading Fluidd-Config ...
Cloning repository from 'https://github.com/fluidd-core/fluidd-config.git'

Cloning into '/home/mks/fluidd-config'... remote: Enumerating objects: 46, done. remote: Counting objects: 100% (46/46), done. remote: Compressing objects: 100% (28/28), done. remote: Total 46 (delta 24), reused 38 (delta 16), pack-reused 0 (from 0) Receiving objects: 100% (46/46), 40.23 KiB | 2.12 MiB/s, done. Resolving deltas: 100% (24/24), done. [OK] Clone successful!

Create symlink for fluidd.cfg ...
Linking /home/mks/fluidd-config/fluidd.cfg to /home/mks/printer_data/config
Creating backup of config-printer_data in /home/mks/kiauh-backups/printer-cfg-backups ...

[OK] Backup successful!

Add section '[update_manager fluidd-config]' to '/home/mks/printer_data/config/moonraker.conf' ...

[ERROR] Fluidd-Config installation failed! [Errno 18] Invalid cross-device link: '/tmp/tmp7co34fzc' -> '/home/mks/printer_data/config/printer.cfg'

Creating NGINX config for Fluidd ...

[OK] NGINX config for Fluidd successfully created.

Link NGINX logs into log directory ...
Restart nginx ...

[OK] OK!

[OK] Fluidd installation complete! Open Fluidd now on: http://192.168.126.192:81


5. NGINX is running, and site is accessible.

> Other info:  /tmp is mounted as tmpfs

### What did you expect to happen

I expected the fluidd config to install properly.

### How to reproduce

Fresh install of armbian-mkspi and all components.  I suspect this is an issue with /tmp being a tmpfs on this platform.

### Additional information

_No response_
GoldenGreek commented 1 week ago

FYI, works fine with the current release (non-beta) version.

dw-0 commented 1 week ago

I suspect this is an issue with /tmp being a tmpfs on this platform.

I suspect the same, but not sure how to actually tackle this issue right now. Can you try disabling tmpfs for testing purposes and try reproduce the issue? If the issue then does not occur, we can say for sure it is caused by tmpfs.

GoldenGreek commented 1 week ago

Sorry for the late reply. Unfortunately, I'm very busy at the moment and will attempt this tomorrow after work, and will let you know the results.

GoldenGreek commented 1 week ago

My first attempt failed, and when I checked /tmp was no longer mounted as tmpfs, but as zram2, so I had to disable that as well. For thoroughness here are the steps I did to test this per @dw-0's request:

1) Removed /tmp as tmpfs from fstab. 2) Ran sudo systemctl mask tmp.mount to ensure that /tmp doesn't mount as tmpfs. 3) Edited /etc/default/armbian-zram-config and set ENABLED=false 4) Rebooted and verified /tmp is not tmpfs 5) Cleanly uninstalled all items that were installed using KIUAH 6) Using KIAUH v6, reinstalled all items, including fluidd/fluidd config without issue.

Our suspicions have been confirmed.

Thanks!

GoldenGreek commented 5 days ago

@dw-0 Do you need any more from me on this report?

dw-0 commented 3 days ago

@dw-0 Do you need any more from me on this report?

Hi thanks for providing some more information. I hope this will help. I have to somehow try and reproduce, then fix the issue.