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

Arangodb illegal instruction core dumped in VM or Docker in VM #20431

Open
undercover87 opened this issue Jan 8, 2024 · 4 comments
Open

Arangodb illegal instruction core dumped in VM or Docker in VM #20431

undercover87 opened this issue Jan 8, 2024 · 4 comments

Comments

@undercover87
Copy link

undercover87 commented Jan 8, 2024

My Environment

  • ArangoDB Version: 3.11.4-1 (virtualbox) or 3.8 (docker in virtualbox)
  • Deployment Mode: Single Server
  • Deployment Strategy: Manual Start | Manual Start in Docker
  • Configuration:
  • Infrastructure: own
  • Operating System: Windows 10 Enterprise build 19.0.44 (host) Ubuntu 22.04 (virtualbox)
  • Total RAM in your machine: 8Gb. (VM)
  • Disks in use: virtualbox
  • Used Package: Debian or Ubuntu .deb | Docker - official Docker library

Component, Query & Data

Affected feature:
Installation | arangosh | arangodb docker image init

AQL query (if applicable):



AQL explain and/or profile (if applicable):

Dataset:

Size of your Dataset on disk:

Replication Factor & Number of Shards (Cluster only):

Steps to reproduce

  1. sudo apt-get upgrade (to upgrade arangodb3)
  2. OR
  3. arangod OR arangosh
  4. OR
  5. starting the official arangodb docker image with docker-compose

Problem:

I'm getting an "illegal instruction - core dumped" whenever I try to use arangodb.
I have an Ubuntu 22.04 VM in virtualbox and I have arangodb 3.11.4-1 installed on the machine. Independently, inside the same VM, I'm also creating a container from the official arangodb docker image version 3.8 in a docker compose scheme.

Until some days ago, everything worked fine. Now the arangodb container won't start with message

Initializing root user...Hang on...

Illegal instruction (core dumped)

Initializing database...Hang on...

ArangoDB didn't start correctly during init

Simply running arangosh or arangod from the VM gives a similar message.
Ubuntu gives the following details about the failure:

image

And trying to upgrade or install it from scratch produces the same.

Expected result:

arangodb starts normally either on the VM or as a container.

@dothebart
Copy link
Contributor

Hi,
Please note that you need AVX and other more recent cpu features.
You may need to configure virtualbox to pass along these instruction sets into the VM.
you can check your host with cat /proc/cpuinfo (and the vm inside as well for sure) to revalidate this.

@undercover87
Copy link
Author

undercover87 commented Jan 9, 2024

Hello,
thanks for your response.

Sure, I checked if AVX is supported in virtualbox (as per the relevant discussion in a similar issue) and it is not.
The thing is that 3.11 was working just fine up until some days ago.
And the version in Docker is 3.8 and if I got it right these "recent CPU features" were not yet used in 3.8.

I'll try to set it in virtualbox and let you know

@undercover87
Copy link
Author

Update: I'm not sure I will be able to deactivate hyper-v as I don't have full control over this PC. So, I don't think I'll be able to pass these instructions to virtualbox

In any case, do you have any ideas why it suddenly stopped working? and why it isn't working even for arango version 3.8
'

@dothebart
Copy link
Contributor

With the release of ArangoDB 3.9 we enabled this in the compilers since by then processors with these features were over 10 years old.
Hence you need these processor features enabled in order to use the ArangoDB pre-compiled binaries.

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

No branches or pull requests

2 participants