Issue Running openobserve on Older Processor

TLDR Joseph was unable to run openobserve on an old processor, despite various attempts and methods. Prabhat confirms processor age as the issue. Hengfei requested for CPU info for further analysis.

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:42:12 UTC

Hi all, I'm trying to explore/test openobserve on my local machine, but it keeps crashing with 'illegal hardware instruction'. The setup is quite simple - running the openobserve (openobserve-v0.7.0-linux-amd64.tar.gz) with: `ZO_ROOT_USER_EMAIL='[email protected]' ZO_ROOT_USER_PASSWORD='lab.local' ./openobserve` and using (0.32.2) to send journald: ```[sources.journal] type = "journald" data_dir = "/tmp/vector/" [sinks.openobserve] type = "http" inputs = [ "journal" ] uri = "" method = "post" auth.strategy = "basic" auth.user = "[email protected]" auth.password = "lab.local" compression = "gzip" encoding.codec = "json" encoding.timestamp_format = "rfc3339" healthcheck.enabled = false``` Am I missing something? Or what is happening?

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 20:44:04 UTC

What operating system are you using? Is it arm or Intel processor?

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:45:01 UTC

> ```> uname -a > Linux hp 6.1.62-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 09 Nov 2023 17:21:17 +0000 x86_64 GNU/Linux```

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:46:27 UTC

'Arch Linux x86_64'

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 20:47:59 UTC

How old is the processor? Looks like some missing instructions.

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:48:12 UTC

initially i tried with the docker image (openobserve/openobserve:latest), and it crashed. the i downloaded the binaries and tried with them

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:49:09 UTC

yes, it's an old laptop: Intel(R) Core(TM)2 Duo CPU T9600 @channel2.80GHz

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 20:51:21 UTC

We will need to build a binary that could run on that.

Photo of Joseph
Joseph
Mon, 20 Nov 2023 20:53:02 UTC

next I was going to try to build it from source, but seeing the binary size I expected it'll take awhile, so I decided to check out here first, if i'm doing something wrong/unexpected

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 20:53:47 UTC

You're not doing anything wrong. It's just an old processor. building from source should work

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:33:31 UTC

i'm not sure if my battery will hold enough to complete the compilation (>1h so far)

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:33:54 UTC

just wanted to say thanks for the help... in case i went offline due to powerloss :slightly_smiling_face:

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:53:12 UTC

nah... it crashes right away (compiled from source) - same as the binatries from github

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 22:53:43 UTC

How did you compile?

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 22:54:03 UTC

Just 'cargo build'

Photo of Prabhat
Prabhat
Mon, 20 Nov 2023 22:54:06 UTC

?

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:57:38 UTC

cargo build --release

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:58:52 UTC

anyway... i need to go offline, in the morning will look up the coredumps for clues

Photo of Joseph
Joseph
Mon, 20 Nov 2023 22:58:58 UTC

thanks again

Photo of Hengfei
Hengfei
Tue, 21 Nov 2023 04:55:13 UTC

Can you give the information of your cpu: ```cat /proc/cpuinfo```