Apple M1 Chip
maxim-badarau-m10 opened this issue · comments
Maxim Badarau commented
Hello,
Was hopping to get help for this issue:
Hello I have same issue as mentioned above:
Caused by: io.zonky.test.db.shaded.com.google.common.util.concurrent.UncheckedExecutionException: io.zonky.test.db.provider.ProviderException: Unexpected error when preparing a database cluster; nested exception is java.lang.IllegalStateException: Process [/var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/embedded-pg/PG-9a5c144986d19f9a11a77aeb236dda9b/bin/initdb, -A, trust, -U, postgres, -D, /var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/epg5005173703795034105, -E, UTF-8] failed
Caused by: io.zonky.test.db.provider.ProviderException: Unexpected error when preparing a database cluster; nested exception is java.lang.IllegalStateException: Process [/var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/embedded-pg/PG-9a5c144986d19f9a11a77aeb236dda9b/bin/initdb, -A, trust, -U, postgres, -D, /var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/epg5005173703795034105, -E, UTF-8] failed
Caused by: java.lang.IllegalStateException: Process [/var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/embedded-pg/PG-9a5c144986d19f9a11a77aeb236dda9b/bin/initdb, -A, trust, -U, postgres, -D, /var/folders/sf/974ktb2167l1fzs1_31b_l_80000gn/T/epg5005173703795034105, -E, UTF-8] failed
I have seen it in previous issues, but still not able to fix it unfortunately.
<!-- Embedded PG Test dependencies -->
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-database-spring-test</artifactId>
<version>2.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<version>2.0.0</version>
<scope>test</scope>
</dependency>
Adding this also didn't work:
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.7.0</version>
</dependency>
Thanks in advance!