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

[Bug]: MongoDB: Running mongo or mongod results in Illegal instruction #1130

Open
tam0705 opened this issue Jul 30, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@tam0705
Copy link

tam0705 commented Jul 30, 2024

Problem description

mongo or mongod from package MongoDB would always output Illegal instruction with or without parameters.
I have tried this both in a fresh install of Termux and an already used one.

What steps will reproduce the bug?

  1. Prepare & install tur-repo
pkg i tur-repo
pkg update && pkg upgrade
  1. Install mongodb pkg i mongodb
  2. Run mongo or mongod with or without any parameters

What is the expected behavior?

Output:

Illegal instruction

System information

Since I don't know how to copy-paste from a Termux terminal, here is the screenshot instead..
termux-info (for fresh install of termux):
image

@tam0705 tam0705 added bug Something isn't working untriaged labels Jul 30, 2024
@licy183 licy183 removed the untriaged label Jul 30, 2024
@tam0705
Copy link
Author

tam0705 commented Jul 31, 2024

After further testing I found that my Android version was probably too old (Android 10). There is no problem running mongo or mongod in Android 14. Since in my case I have no choice but to use Android 10 that means I need to build older version of mongodb myself.

@licy183
Copy link
Collaborator

licy183 commented Jul 31, 2024

I can't reproduce it with Bluestacks on my machine, and I don't think this is related to the Android version. I'll try it with AVD this weekend.

@tam0705
Copy link
Author

tam0705 commented Aug 1, 2024

This is the summary of Android versions I've tested:

  • AVD / Android 10 (Q) x86_64 Google API / Rooted / FAIL
  • AVD / Android 10 (Q) x86_64 Google Play / Unrooted / FAIL
  • AVD / Android 15 (API 35) x86_64 Google Play / Unrooted / FAIL
  • Samsung Galaxy A25 / Android 14 / Unrooted / OK
    (Edit):
  • Bluestacks 5 / Android 11 x86_64 / Unrooted / OK

Seems that the issue indeed is not related to Android version, but exclusive to AVDs instead. Tried it in my personal smartphone and encountered no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants