apisnetworks / apiscp

ApisCP Issues Tracker
https://apiscp.com
15 stars 1 forks source link

Failed rootflags extraction #50

Closed KeiroD closed 5 months ago

KeiroD commented 5 months ago

This is on KnownHost's Unmanaged Cloud server.

Here's the error, ran with low memory mode because this particular cloud server runs with 2GB RAM running AlmaLinux 8:

TASK [system/kernel : Extract rootflags] **************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => 
  msg: 'Unexpected templating type error occurred on ({{ (lookup("file", "/etc/default/grub") | regex_search("(?:\\s|\\b)rootflags=([^ ''" + ''"'' + "$]+)", "\\1") | last).split(",") }}): ''NoneType'' object is not reversible'

PLAY RECAP ********************************************************************************************************************************************************************************************************
localhost                  : ok=49   changed=8    unreachable=0    failed=1    skipped=29   rescued=0    ignored=0  

Contents of /etc/default/grub:

[root@host playbooks]# cat /etc/default/grub 
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8 no_timer_check biosdevname=0 net.ifnames=0"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

/etc/fstab:

[root@host playbooks]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Nov 28 12:26:53 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/sda4 / xfs defaults,attr2,inode64,usrquota,grpquota,prjquota 0 0
UUID=f95db56c-8b1d-44eb-8174-acaf388b5f6d /boot                   xfs     defaults        0 0
UUID=C88E-FCFD          /boot/efi               vfat    defaults,uid=0,gid=0,umask=077,shortname=winnt 0 2

Let me know if there's other specifics you need for this.

msaladna commented 5 months ago

Thanks for the bug report. This has been fixed in edge.

To restart install, rm -rf /usr/local/apnscp, then run installation bootstrap again. Note that low-memory mode isn't necessary with 2 GB servers, just 1 GB.

KeiroD commented 5 months ago

That worked to get past the issue! Thanks for such a quick fix!