turbot / steampipe

Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.
https://steampipe.io
GNU Affero General Public License v3.0
7.02k stars 279 forks source link

Raspberry PI: initializing database failed #4272

Closed andushow closed 3 months ago

andushow commented 6 months ago

Describe the bug Tryiong to start stemapipe as a process in raspberry pi


PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Steampipe version (steampipe -v) v0.23.1

To reproduce steampipe service start

Expected behavior service starts

Additional context

2024-05-12 09:21:06.689 UTC [INFO]  steampipe [a487]: steampipe start [a487]
2024-05-12 09:21:06.689 UTC [INFO]  steampipe [a487]: Version:   v0.23.1
2024-05-12 09:21:06.689 UTC [INFO]  steampipe [a487]: Log level: TRACE
2024-05-12 09:21:06.689 UTC [INFO]  steampipe [a487]: Log date:  2024-05-12
2024-05-12 09:21:06.689 UTC [INFO]  steampipe [a487]: ********************************************************
2024-05-12 09:21:06.691 UTC [TRACE] steampipe [a487]: parse complete after 1 decode passes
2024-05-12 09:21:06.691 UTC [TRACE] steampipe [a487]: ensureInstallDir /home/pi/.steampipe
2024-05-12 09:21:06.691 UTC [INFO]  steampipe [a487]: ensureDefaultConfigFile
2024-05-12 09:21:06.691 UTC [INFO]  steampipe [a487]: loadConfig is loading connection config
2024-05-12 09:21:06.692 UTC [INFO]  steampipe [a487]: loadConfig calling initializePlugins
2024-05-12 09:21:06.693 UTC [INFO]  steampipe [a487]: loadConfig is loading connection config
2024-05-12 09:21:06.694 UTC [TRACE] steampipe [a487]: startService - listenAddresses=["*"]
2024-05-12 09:21:06.738 UTC [TRACE] steampipe [a487]: initdb start: /home/pi/.steampipe/db/14.2.0/postgres/bin/initdb --auth=trust --username=root --pgdata=/home/pi/.steampipe/db/14.2.0/data --encoding=UTF-8
2024-05-12 09:21:06.739 UTC [TRACE] steampipe [a487]: initdb failed:
2024-05-12 09:21:06.739 UTC [TRACE] steampipe [a487]: initDatabase failed: fork/exec /home/pi/.steampipe/db/14.2.0/postgres/bin/initdb: no such file or directory
e-gineer commented 6 months ago

Hey @andushow ... sorry to hear you hit a bump running Steampipe.

Questions:

  1. I'm curious, why are you using raspberry pi to run steampipe? Any specific use case?
  2. Does the /home/pi/.steampipe/db/14.2.0/postgres/bin/initdb file actually exist? The error says it does not.
  3. If you delete the entire /home/pi/.steampipe directory and try again, do you see the same error?
andushow commented 6 months ago

First of all, is steampipe supposed to work on raspberry ?

kaidaguerre commented 6 months ago

we have not tested Steampipe on a Raspberry Pi

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 90 days with no activity.