Open ashutosh-fyi opened 1 year ago
Hey 👋
I ran into this exact same issue today. Eventually solved it (with the help of @benjackwhite)
Make sure you have these ENV variables set in your .zshrc
(or equivalent) file:
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
Then purge the node_modules
in your plugin-server
and re-install them without the cache:
(env) ➜ posthog git:(master) cd plugin-server && rm -rf node_modules/ && cd ..
(env) ➜ posthog git:(master) pnpm i --force --dir plugin-server
You should see Kafka running an install script
node_modules/.pnpm/node-rdkafka-acosom@2.16.1_ts-node@10.9.1_typescript@4.9.5/node_modules/node-rdkafka-acosom: Running install script
I had to also rebuild rdkafka in the plugin-server directory.
cd plugin-server && pnpm rebuild node-rdkafka
While trying to set up the PostHog locally, I encountered a series of issues related to OpenSSL and the database configuration.
Here is a brief description of what happened:
I've tried re-installing rdkafka and OpenSSL - found this thread which helped me install OpenSSL without errors but I'm not sure if it completely fixed the root cause as I'm still facing the same issue.
Lastly, I encountered an error related to a missing database table
graphile_worker.jobs
. The error message was:I tried to troubleshoot this, but I'm not certain whether it's due to missing database migrations, a misconfiguration, or some other reason.
Can someone please help? TIA.