embedded-postgres issue in Apple Silicon (M1) #81
-
We are facing the issue while running the test cases of sunbird-core-dataproducts in Mac m1. Dependency
The error we encountered : Exception encountered when invoking run on a nested suite - Missing postgres binaries To resolve the missing binaries issue, we upgrade the embedded-postgres dependency to the latest version
After upgrading the dependency, a new error is encountered: Exception encountered when invoking run on a nested suite - Process [/var/folders/f7/kt5z7zpj61v5b757h_wxcyh80000gn/T/embedded-pg/PG-95baeb96ab6751ea71c17b280cad95e9/bin/initdb, -A, trust, -U, postgres, -D, /var/folders/f7/kt5z7zpj61v5b757h_wxcyh80000gn/T/epg6492089817289658487, -E, UTF-8] failed Please help us to resolve this. cc : @aks30 @vijiurs @Vivek-M-08 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There are some issues with the M1 chip and those are reported here - opentable/otj-pg-embedded#65 (comment).
|
Beta Was this translation helpful? Give feedback.
-
Hi @manjudr this issue is resolved. Even after updating the embedded-postgres version, IllegalStateException continued to occur. This was due to the way Mac handles the IntelliJ application, Postgres temporary files cannot be opened since access is not granted when we start the application through launchpad. In order to fix this, IntelliJ was launched by using More about this conversation can be found here: zonkyio/embedded-postgres#115 I happen to notice that the two lines that you shared will ensure that the local settings are correctly configured for our shell and any application that rely on these environment variables. As IntelliJ IDEA uses UTF-8 config this helped me to directly start the app through launchpad. When i added these lines in Thank you. |
Beta Was this translation helpful? Give feedback.
Hi @manjudr this issue is resolved.
Even after updating the embedded-postgres version, IllegalStateException continued to occur. This was due to the way Mac handles the IntelliJ application, Postgres temporary files cannot be opened since access is not granted when we start the application through launchpad. In order to fix this, IntelliJ was launched by using
idea.sh
file in the path cd /Applications/IntelliJ IDEA CE.app/Contents/MacOS/ via terminal. After this the test cases executed as expected.More about this conversation can be found here: zonkyio/embedded-postgres#115
I happen to notice that the two lines that you shared will ensure that the local settings are correctly configured …