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

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

Closed
GoldenGreek opened this issue Sep 1, 2024 · 11 comments · Fixed by #590
Closed

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

GoldenGreek opened this issue Sep 1, 2024 · 11 comments · Fixed by #590
Labels
Scope: Core Status: Released Type: Bug Something isn't working as expected

Comments

@GoldenGreek
Copy link

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
  1. 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 GoldenGreek changed the title Using new KIUAH, fresh armbian system, when fluidd-config install fails Using new KIUAH, fresh armbian system, fluidd-config install fails Sep 1, 2024
@GoldenGreek
Copy link
Author

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

@dw-0 dw-0 changed the title Using new KIUAH, fresh armbian system, fluidd-config install fails Using new KIAUH, fresh armbian system, fluidd-config install fails Sep 1, 2024
@dw-0 dw-0 added this to the v6.0.0-alpha.3 milestone Sep 1, 2024
@dw-0 dw-0 added the Type: Bug Something isn't working as expected label Sep 1, 2024
@dw-0
Copy link
Owner

dw-0 commented Sep 1, 2024

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.

@dw-0 dw-0 added the Status: Feedback Needed Further information is required label Sep 1, 2024
@GoldenGreek
Copy link
Author

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
Copy link
Author

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!

@dw-0 dw-0 modified the milestones: v6.0.0-alpha.3, v6.0.0-alpha.4 Sep 8, 2024
@GoldenGreek
Copy link
Author

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

@dw-0
Copy link
Owner

dw-0 commented Sep 11, 2024

@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.

@dw-0
Copy link
Owner

dw-0 commented Sep 22, 2024

Hi, i just released KIAUH v6.0.0-alpha.4.
For that release i reworked the config handling. Config files are now opened, read and written a bit different. Maybe this works with tmpfs filesystems now. Can you please try again and see if it works now?

@loonatec
Copy link

I just tried to install Fluidd on a fresh Armbian install using KIAUH v6.0.0-alpha.4 and it still encounters the same issue.
This is a Fly Gemini v3 board running the Armbian stable image from reemo3dp, following the instructions from DerFuchs.

The first time through I get the same error:
[Errno 18] Invalid cross-device link: '/tmp/tmp7co34fzc' -> '/home/mks/printer_data/config/printer.cfg'

I tried disabling tmpfs but probably misunderstood the fix as it put the system into a read-only state.

After starting over and trying the KIAUH v6.0.0-alpha.4 version and encountering the same issue I then tried uninstalling Fluidd and reinstalling both Fluidd and Mainsail but encounter the following error (same for both):

╔═══════════════════════════════════════════════════════╗
║ ~~~~~~~~~~~~~~~~~~~~~ [ KIAUH ] ~~~~~~~~~~~~~~~~~~~~~ ║
║        Klipper Installation And Update Helper         ║
║ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ║
╚═══════════════════════════════════════════════════════╝
╔═══════════════════════════════════════════════════════╗
║ ~~~~~~~~~~~~~~~~~~~ [ Main Menu ] ~~~~~~~~~~~~~~~~~~~ ║
╟──────────────────┬────────────────────────────────────╢
║  0) [Log-Upload] │   Klipper: Installed: 1            ║
║                  │     Owner: Klipper3d               ║
║  1) [Install]    │      Repo: klipper                 ║
║  2) [Update]     ├────────────────────────────────────╢
║  3) [Remove]     │ Moonraker: Installed: 1            ║
║  4) [Advanced]   │     Owner: Arksine                 ║
║  5) [Backup]     │      Repo: moonraker               ║
║                  ├────────────────────────────────────╢
║  S) [Settings]   │        Mainsail: Not installed     ║
║                  │          Fluidd: Not installed     ║
║ Community:       │   Client-Config: -                 ║
║  E) [Extensions] │                                    ║
║                  │   KlipperScreen: Not installed     ║
║                  │       Crowsnest: Not installed     ║
╟──────────────────┼────────────────────────────────────╢
║  v6.0.0-alpha.4  │  Changelog: https://git.io/JnmlX   ║
╟──────────────────┴────────────────────────────────────╢
║                        Q) Quit                        ║
╚═══════════════════════════════════════════════════════╝
###### Perform action: 1
╔═══════════════════════════════════════════════════════╗
║ ~~~~~~~~~~~~~~~ [ Installation Menu ] ~~~~~~~~~~~~~~~ ║
╟───────────────────────────┬───────────────────────────╢
║ Firmware & API:           │ Touchscreen GUI:          ║
║  1) [Klipper]             │  7) [KlipperScreen]       ║
║  2) [Moonraker]           │                           ║
║                           │ Webcam Streamer:          ║
║ Webinterface:             │  8) [Crowsnest]           ║
║  3) [Mainsail]            │                           ║
║  4) [Fluidd]              │                           ║
║                           │                           ║
║ Client-Config:            │                           ║
║  5) [Mainsail-Config]     │                           ║
║  6) [Fluidd-Config]       │                           ║
╟───────────────────────────┴───────────────────────────╢
║                       B) « Back                       ║
╚═══════════════════════════════════════════════════════╝
###### Perform action: 4

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                       [ INFO ]                        ┃
┠───────────────────────────────────────────────────────┨
┃ It is recommended to use special macros in order to   ┃
┃ have Fluidd fully functional and working.             ┃
┃                                                       ┃
┃ The recommended macros for Fluidd can be seen here:   ┃
┃ https://github.com/fluidd-core/fluidd-config          ┃
┃                                                       ┃
┃ If you already use these macros skip this step.       ┃
┃ Otherwise you should consider to answer with 'Y' to   ┃
┃ download the recommended macros.                      ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
###### Download the recommended Fluidd-Config? (Y/n): 

###### Downloading Fluidd from https://github.com/fluidd-core/fluidd/releases/latest/download/fluidd.zip ...
Downloading: [####################]100.00% (3.62/3.61MB)
[OK] Download complete!

###### Extracting fluidd.zip ...
[OK] OK!

###### Add section '[update_manager fluidd]' to '/home/robert/printer_data/config/moonraker.conf' ...
[ERROR] Fluidd installation failed!
'str' object has no attribute 'keys'

@dw-0
Copy link
Owner

dw-0 commented Sep 26, 2024

The 'str' object has no attribute 'keys' issue should be fixed now with the new alpha 5 release.
I still was not able to setup a tmpfs filesystem myself and further investigate the original issue.

@4eIIIuP
Copy link

4eIIIuP commented Oct 15, 2024

Good evening. Trying to install klipper via kiauh v6.0.0.0-alpha.7, but encountered the same problem when installing fluidd

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

MKS SKIPR board, ermbian taken from here https://github.com/redrathnure/armbian-mkspi/releases?ysclid=m27xw28jrw918440727.

Translated with DeepL.com (free version)

@dw-0 dw-0 added Status: Prepared Something is ready to be released and removed Status: Feedback Needed Further information is required labels Oct 21, 2024
@dw-0 dw-0 moved this from In Progress to Prepared in KIAUH Development Board Oct 21, 2024
@dw-0
Copy link
Owner

dw-0 commented Oct 21, 2024

I was able to reproduce the issue and found a solution. It will be released with alpha.9

@dw-0 dw-0 added this to the v6.0.0-alpha.9 milestone Oct 21, 2024
@dw-0 dw-0 closed this as completed in #590 Oct 24, 2024
@github-project-automation github-project-automation bot moved this from Prepared to Released in KIAUH Development Board Oct 24, 2024
@dw-0 dw-0 added Status: Released and removed Status: Prepared Something is ready to be released labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Core Status: Released Type: Bug Something isn't working as expected
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

4 participants