nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.29k stars 72 forks source link

Stuck in preparing Nix Flakes #250

Closed Anifyuli closed 1 year ago

Anifyuli commented 1 year ago

Hello, Mister. I want to report my problem in post-install Nix on Droid on my device. It problem is stucking on evaluating derivation 'path:/data/data/...'. I try to erasing data and trying again but I encountered with this problem. What should I do, Mister? Can this problem solved? Thanks for read my issues

Device info : SoC : Qualcomm Snapdragon 720G Device : OPPO Reno5 (4G edition) OS : ColorOS 12 based on Android 12 stable release Mem/Storage : 8/128 GB

Screenshot_2023-02-18-06-07-28-69_7c9fdf2472f91e6d21f35bb801178e75.jpg

Gerschtli commented 1 year ago

Probably just wait, this initial setup is really depending on your device. Like 30-45 minutes on my oneplus 5. In your android settings have a look at the growing size of used storage for the Nix-on-Droid app.

Anifyuli commented 1 year ago

Probably just wait, this initial setup is really depending on your device. Like 30-45 minutes on my oneplus 5. In your android settings have a look at the growing size of used storage for the Nix-on-Droid app.

I waiting for 12 hours but Nix on Droid not change to other prep steps

Gerschtli commented 1 year ago

Oh okay, that sounds wrong. Can you check if the storage size increased? Just to make sure, it downloads anything. Maybe your internet speed is slow but tbh I don't what could cause that kind of long build times.

The flake setup is usually a bit slower than the channel one, you could try if that is making a difference but otherwise I am out of ideas.. @t184256 ?

t184256 commented 1 year ago

It's not gonna grow during evaluation, is it?

Two ideas:

  1. to build a bootstrap tarball with -vvv in the right place and debug further, but it'll show where it's stuck and not why it's stuck and likely won't help us
  2. if it's some super-aggressive power management at play, try to follow the steps from https://dontkillmyapp.com, then restart the installation, acquire wakelock through the notification and see whether that helps
Gerschtli commented 1 year ago

You are probably right..

Anifyuli commented 1 year ago

After acquire wakelock and enabling don't disable background process for Nix on Droid setup operations can done

Screenshot_2023-02-18-20-22-27-00_7c9fdf2472f91e6d21f35bb801178e75.jpg