Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Build failed #30

Open
lentikr opened this issue May 23, 2023 · 15 comments
Open

Build failed #30

lentikr opened this issue May 23, 2023 · 15 comments

Comments

@lentikr
Copy link

lentikr commented May 23, 2023

When I tried to build the NixOS on VMware, it failed. Is it a problem of VM? Maybe I will try it on a real laptop. But I'm scared for the problem happening again.

[(Flakes)$:/mnt/etc/nixos/Flakes]$ nixos-install --no-root-passwd --flake .#laptop
copying channel...
building the flake in path:/mnt/etc/nixos/Flakes?lastModified=1684762385&narHash=sha256-2m%2fbM1UPmdw1ZK+RNam%2fWOUveIBJI4FfPL1JQSU8KeU=...
error: builder for '/nix/store/ik4kgzv6dpnw0pxx3igr7g99nf5lzird-nerdfonts-2.3.3.drv' failed with exit code 1;
       last 10 log lines:
       >   inflating: Lilex Light Nerd Font Complete Mono Windows Compatible.ttf
       >   inflating: Lilex Light Nerd Font Complete Mono.ttf
       >   inflating: Lilex Light Nerd Font Complete Windows Compatible.otf
       > Lilex Light Nerd Font Complete Windows Compatible.otf:  write error (disk full?).  Continue? (y/n/^C)
       > warning:  Lilex Light Nerd Font Complete Windows Compatible.otf is probably truncated
       > replace Lilex Bold Nerd Font Complete Mono Windows Compatible.ttf? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
       > (EOF or read error, treating as "[N]one" ...)
       > Lilex Regular Nerd Font Complete Windows Compatible.otf:  write error (disk full?).  Continue? (y/n/^C)
       > warning:  Lilex Regular Nerd Font Complete Windows Compatible.otf is probably truncated
       > do not know how to unpack source archive /nix/store/x3qiwr42s2hj25sabm83dsz07d9j8hly-Lilex.zip
       For full logs, run 'nix log /nix/store/ik4kgzv6dpnw0pxx3igr7g99nf5lzird-nerdfonts-2.3.3.drv'.
       note: build failure may have been caused by lack of free disk space
error: 1 dependencies of derivation '/nix/store/z5aawywnb18kjqyp5n0ndpk8pg6i951a-fc-00-nixos-cache.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/arnxpcfylw6ckzahyrdmqk90ly1ihbcd-fontconfig-conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8xyy89lnwiad8s2wcfqi1jaln9ihx4jl-fontconfig-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8d3ylq2p6437ws7rx5xrczh1cnimxlij-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/168sm5fhq31f8x4pss3swk4svykbypcm-nixos-system-nixos-23.05.20230422.6c43a34.drv' failed to build
[(Flakes)$:/mnt/etc/nixos/Flakes]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        397M     0  397M   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           2.0G   11M  2.0G   1% /run
tmpfs           3.9G  384K  3.9G   1% /run/wrappers
tmpfs           3.9G   33M  3.9G   1% /
/dev/root       837M  837M     0 100% /iso
/dev/loop0      804M  804M     0 100% /nix/.ro-store
tmpfs           3.9G  1.3G  2.7G  32% /nix/.rw-store
overlay         3.9G  1.3G  2.7G  32% /nix/store
tmpfs           793M     0  793M   0% /run/user/1000
/dev/sda1       118G   24G   89G  22% /mnt
/dev/sda3       487M  4.0K  487M   1% /mnt/boot
[(Flakes)$:/mnt/etc/nixos/Flakes]$
@hmanhng
Copy link

hmanhng commented May 23, 2023

disable nerdfonts in module/fonts and retry

@hmanhng
Copy link

hmanhng commented May 23, 2023

I think you should try branch minimal and edit the config accordingly

@lentikr
Copy link
Author

lentikr commented May 23, 2023

I think you should try branch minimal and edit the config accordingly

Thanks. But it was already the branch minimal.

@Ruixi-rebirth
Copy link
Owner

When downloading the binary cache, it will take up ram, and if you don't set the ram to be large enough, an out of memory situation will occur.

@lentikr
Copy link
Author

lentikr commented May 23, 2023

When downloading the binary cache, it will take up ram, and if you don't set the ram to be large enough, an out of memory situation will occur.

Thanks. So 8GB RAM is not enough?

@Ruixi-rebirth
Copy link
Owner

Yes

@Ruixi-rebirth
Copy link
Owner

I'm not sure if vmware can enable memory sharing, if so you can enable it

@lentikr
Copy link
Author

lentikr commented May 23, 2023

disable nerdfonts in module/fonts and retry

Is it correct? Other problem: "No such file or directory".

[(Flakes)$:/mnt/etc/nixos/Flakes]$ nixos-install --no-root-passwd --flake .#laptop
copying channel...
building the flake in path:/mnt/etc/nixos/Flakes?lastModified=1684804446&narHash=sha256-7XD2OCCGAvEAPFKxB3uJqeq2b0127O3fNUe1NA4i0bk=...
installing the boot loader...
setting up /etc...
/etc/tmpfiles.d/journal-nocow.conf:26: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/etc/tmpfiles.d/systemd.conf:23: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/etc/tmpfiles.d/systemd.conf:25: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/etc/tmpfiles.d/systemd.conf:26: Failed to replace specifiers in '/run/log/journal/%m/*.journal*': No such file or directory
/etc/tmpfiles.d/systemd.conf:29: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/etc/tmpfiles.d/systemd.conf:30: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
/etc/tmpfiles.d/systemd.conf:32: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/etc/tmpfiles.d/systemd.conf:33: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
Initializing machine ID from random generator.
Created "/boot/EFI".
Created "/boot/EFI/systemd".
Created "/boot/EFI/BOOT".
Created "/boot/loader".
Created "/boot/loader/entries".
Created "/boot/EFI/Linux".
Copied "/nix/store/28njqxn2gywvz45pfgwim5b2g1dqdymv-systemd-253.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
Copied "/nix/store/28njqxn2gywvz45pfgwim5b2g1dqdymv-systemd-253.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
Random seed file /boot/loader/random-seed successfully written (32 bytes).
Not booted with EFI, skipping EFI variable setup.
Not booted with EFI, skipping EFI variable setup.
installation finished!
[(Flakes)$:/mnt/etc/nixos/Flakes]$

@Ruixi-rebirth
Copy link
Owner

This is no problem

@lentikr
Copy link
Author

lentikr commented May 24, 2023

Hello, I increased the memory of the virtual machine. After successful installation, it stuck at the following interface after reboot.
It should be a failed installation. Is it because the virtual machine is not well supported?
e0297a582e56a2af985db9d3a115f51

Below are all commands I entered after entering livecd:

# follow the manual of the official site
sudo -i
parted /dev/sda -- mklabel gpt
parted /dev/sda -- mkpart primary 512MB -8GB
parted /dev/sda -- mkpart primary linux-swap -8GB 100%
parted /dev/sda -- mkpart ESP fat32 1MB 512MB
parted /dev/sda -- set 3 esp on
mkfs.ext4 -L nixos /dev/sda1
mkswap -L swap /dev/sda2
mkfs.fat -F 32 -n boot /dev/sda3
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/sda2
nixos-generate-config --root /mnt
# use the channel mirror and enable proxy
nix-channel --add https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixos-22.11 nixos
nix-channel --update
export http_proxy=http://192.168.58.1:7890
export https_proxy=http://192.168.58.1:7890
# follow the guidance of your repo
nix-shell -p git
git clone  https://github.com/Ruixi-rebirth/flakes.git --branch=minimal /mnt/etc/nixos/Flakes 
cd /mnt/etc/nixos/Flakes/
nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/etc/nixos/Flakes/hosts/laptop/hardware-configuration.nix
rm -rf .git
nixos-install --no-root-passwd --flake .#laptop
reboot

Some config of the VM is as follows:
1684889223908
1684889246339

@Ruixi-rebirth
Copy link
Owner

My default desktop configuration is hyprland, and as far as I can tell, there is a real problem with the VM support.

@lentikr
Copy link
Author

lentikr commented May 24, 2023

My default desktop configuration is hyprland, and as far as I can tell, there is a real problem with the VM support.

Thanks. Maybe I'll try it on a real machine later.

@NudistBeaaach
Copy link

NudistBeaaach commented Jul 26, 2023

Same issue on a real machine. After trying to run Hyprland manually it throws: m_sWLRRenderer was NULL! :/

@re1san
Copy link

re1san commented Oct 1, 2023

@NudistBeaaach Do you have Nvidia gpu?

@NudistBeaaach
Copy link

@NudistBeaaach Do you have Nvidia gpu?

Oh sorry! I completely forgotten to answer in this issue, it is fixed. I just had to enable hyprland in flake's config like here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants