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

Error 98 and forever boot #107

Open
sogood-ood opened this issue Jan 24, 2025 · 38 comments
Open

Error 98 and forever boot #107

sogood-ood opened this issue Jan 24, 2025 · 38 comments
Assignees
Labels

Comments

@sogood-ood
Copy link

sogood-ood commented Jan 24, 2025

What happened?

I tried installing the zip via sideload. It didn't work out - error 98 came out. When I try to restart my phone and enter the operating system, there is an infinite download.
There are system boot logs.

PowerShell.txt

Version

1.3.1-beta

Android version

15

Device

Oneplus 8

Custom ROM

LineageOS 22.1

@sogood-ood sogood-ood added bug needs triage Pending review to ensure they are relevant, actionable and contain all necessary information labels Jan 24, 2025
@ale5000-git
Copy link
Member

ale5000-git commented Jan 24, 2025

Currently the latest beta is a bit outdated, so I suggest to use the latest alpha until I release a new beta.

Could you please try it and report back?

@ale5000-git ale5000-git removed the needs triage Pending review to ensure they are relevant, actionable and contain all necessary information label Jan 24, 2025
@sogood-ood
Copy link
Author

Oops... misclick

No problem. I already tried to install the alpha version, but it didn't work (that's why i installed the beta version)
I tried again to get logs

log.txt

@sogood-ood sogood-ood reopened this Jan 24, 2025
@ale5000-git
Copy link
Member

It is very odd issue.
Could you please post the result of this?
adb shell "stat -f -c '%f * %S' -- '/system'"

@sogood-ood
Copy link
Author

sogood-ood commented Jan 24, 2025

PowerShell 7.4.6
PS Z:\platform-tools> .\adb shell "stat -f -c '%f * %S' -- '/system'" // I first entered the command when I was in the OS
daemon not running; starting now at tcp:5037
daemon started successfully
4096 * 4096
PS Z:\platform-tools> .\adb reboot recovery // recovery mode + adb enable
PS Z:\platform-tools> .\adb shell "stat -f -c '%f * %S' -- '/system'"
900379 * 4096

@ale5000-git
Copy link
Member

ale5000-git commented Jan 24, 2025

Could you please try this?

It contains additional debug code and log is enabled by default.
During flash it should say Creating log: with a path.
After it is ended, please take debug-a5k.log from that path and then post it here.

Edit: Link removed.

@sogood-ood
Copy link
Author

here you go
feeling like a lab rat lol

debug-a5k.log

@ale5000-git
Copy link
Member

ale5000-git commented Jan 24, 2025

From your manual command:
900379 * 4096 = 3687952384 bytes (3.43 GB)

In the log (from stat):
Free space: 19481 * 4096 = 79794176 bytes (76.10 MB)

In the log (from df):

Filesystem           Type            Size      Used Available Use% Mounted on
/dev/block/dm-7      ext4           15.2T     16.0E     15.2T 100% /mnt/system

So => available: 15.2 terabyte ???

Some tool may not work correctly.
What is the real amount of free space in your system partition?

@sogood-ood
Copy link
Author

Image

@sogood-ood
Copy link
Author

I don't understand how this is even possible? Each method shows a different amount of free space, but none of them are even close to being correct.
and, yeah, I don't know anything about it. I just want the push notifications to work correctly on LOS 22.1

@ale5000-git
Copy link
Member

The storage displayed in Android settings isn't the system partition but the whole device internal memory anyway I'm trying to change some code to get better results but I need some time.

ale5000-git added a commit that referenced this issue Jan 25, 2025
@ale5000-git
Copy link
Member

ale5000-git commented Jan 25, 2025

@sogood-ood
Thanks for the tests, I think we are near fixing it.

Could you please try this and post the debug-a5k.log?

Edit: Link removed

@sogood-ood
Copy link
Author

debug-a5k.log

@sogood-ood
Copy link
Author

The storage displayed in Android settings isn't the system partition but the whole device internal memory

then, uh. where do I find the information you need?

@ale5000-git
Copy link
Member

I usually use this app: https://www.apkmirror.com/apk/bulent-akpinar/link2sd/link2sd-4-3-4-release/
then in the app the 3 dot menu then Storage Info.

In the emulator I got this for example:
Image

@sogood-ood
Copy link
Author

Image

@ale5000-git
Copy link
Member

ale5000-git commented Jan 25, 2025

This one should most likely be fixed.

Could you please try this and post the debug-a5k.log?

Edit: Link removed.

@sogood-ood
Copy link
Author

By the way, I have a question - what about installation leftovers? I mean, I've been trying to install this zip for the same number of times now and it would be weird if it didn't leave garbage.
Maybe you need to clean out the trash before installing?
One more reason - in the logs, during the installation there is a line "first installation - no", so maybe I should do a clean install?

@sogood-ood
Copy link
Author

If that's not a problem, I'll do what you're asking.

@ale5000-git
Copy link
Member

The installer already clean every time the things in the system partition.
Every time you run it, it do:

  1. Remove conflicting GApps and apps installed by its previous installations
  2. Reinstall it

The "first installation: no" is mainly to clean updates and data of installed apps (they are in the data partition).
This need to be done only the first time.
You can also clean them if you do a factory reset.

@sogood-ood
Copy link
Author

sogood-ood commented Jan 25, 2025

hmmm... only one thing bothering me is the infinite booting that caused me to open this issue. i had to reinstall the latest update for LOS to fix the problem
any ideas?

and yes, here you go

debug-a5k.log

(I tried not installing any additional packages)

@ale5000-git
Copy link
Member

ale5000-git commented Jan 25, 2025

The infinite booting can be caused by the incomplete installation of the zip.

From the latest log:

Disk space required: 76.13 MB
Free disk space: 76.10 MB (76.10 MB)

You miss just: 30.72KB

Try mounting the system partition in the recovery, and then run (they list the preinstalled apps):

adb shell "ls /mnt/system/system/priv-app"
adb shell "ls /mnt/system/system/app"

And then post the result here, so I can see if there is a preinstalled app that isn't useful and can be removed.

@sogood-ood
Copy link
Author

sogood-ood commented Jan 25, 2025

did I understand correctly that I have to take these steps?

  1. .\adb reboot recovery
  2. click "mount/unmount system"
  3. your commands
  4. ???

if so, I have this:
ls: /mnt/system/app(priv-app): No such file or directory/

@ale5000-git
Copy link
Member

ale5000-git commented Jan 25, 2025

Yes, but if the recovery mount it as system, then the commands are:

adb shell "ls /system/priv-app"
adb shell "ls /system/app"

or

adb shell "ls /system/system/priv-app"
adb shell "ls /system/system/app"

@sogood-ood
Copy link
Author

strong no
I tried it without the “mount/unmount system” function.
I tried different combinations of the commands you suggested
the same thing: “No such file or directory”.

@sogood-ood
Copy link
Author

sogood-ood commented Jan 25, 2025

Maybe it's some kind of system protection? Because pull and push commands work fine even if the file is "not" in that folder.
Like when I wanted to pull the log file. When I tried to see if it was in the /sdcard/ folder, it told me it wasn't even though the pull was working fine.

@ale5000-git
Copy link
Member

ale5000-git commented Jan 25, 2025

If it doesn't work try to unmount from the function and then mount manually (this command is only for your device):
adb shell "mount '/dev/block/dm-7' '/mnt/system'"

then:

adb shell "ls /mnt/system/system/priv-app"
adb shell "ls /mnt/system/system/app"

at the end:
adb shell "umount '/mnt/system'"

@sogood-ood
Copy link
Author

that's works. results right here:

log.txt

@ale5000-git
Copy link
Member

Sorry for the delay but I haven't had time yet, I'll reply tomorrow.

@sogood-ood
Copy link
Author

don't worry, it's fine.

@ale5000-git
Copy link
Member

ale5000-git commented Feb 5, 2025

that's works. results right here:

Unfortunately there is nothing that can be removed but I have optimized the lib selection code so now it should take less space.

@ale5000-git
Copy link
Member

ale5000-git commented Feb 6, 2025

@sogood-ood
New build with some additional fixes.

Could you please try it and post the debug-a5k.log?

Edit: Link removed.

@sogood-ood
Copy link
Author

I'm busy right now, so I'll replay today or tomorrow

@sogood-ood
Copy link
Author

debug-a5k.log

@sogood-ood
Copy link
Author

will there be new tests? I think that I will install microg in another way and will no longer be able to test your build

@ale5000-git
Copy link
Member

@sogood-ood

As of now I have likely fixed all issues with space detection and squeezed all needed space to the minimum.
Unfortunately it still isn't enough on some devices that left a very little free space in the system partition.

For the future I also plan to allow to install it in another partition (like /product) but this will require many changes and time so it won't be in the next beta, but most likely in the one after that.

For now, if possible, it would be nice if you could try one last build: https://share.freepro.com/47dc7be5-0678-44d6-b164-9672bfd7aad1

Could you please try it and post the debug-a5k.log?

@sogood-ood
Copy link
Author

@ale5000-git

honestly, I don't mind helping further. what you're doing is important...
but what's important to me right now is that apps work properly, as well as notifications. i'm tired of missing important information because they don't work.
if there was a way that when you install microg, it would register apps normally in cloud notifications, otherwise it happens randomly somehow.
i'm not sure yet if i want to uninstall the microg i've done now.

I'm a little tired, uh.
dealing with kitsune mask, safetynet, modules for lsposed and other stuff... it's getting a little annoying.

It would be great if you have a solution to my problem, otherwise I don't want to mess around with microg again just yet (maybe later when I get some rest).

@ale5000-git
Copy link
Member

if there was a way that when you install microg, it would register apps normally in cloud notifications, otherwise it happens randomly somehow.

What do you mean? They usually register normally.
Could you explain this registration problem please?

For the other things you can also wait for version v1.3.3 where I should have solved the space problem.

@sogood-ood
Copy link
Author

sogood-ood commented Feb 17, 2025

What do you mean? They usually register normally. Could you explain this registration problem please?

nvm, I was able to deal with the problem, and on your topic..... I will refrain from installing for now.
I want to live in peace for a while :)

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

No branches or pull requests

2 participants