Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Setup Bug with the Windows #1369

Open
VOSID8 opened this issue Mar 31, 2024 · 1 comment
Open

[Bug] Setup Bug with the Windows #1369

VOSID8 opened this issue Mar 31, 2024 · 1 comment
Labels

Comments

@VOSID8
Copy link
Contributor

VOSID8 commented Mar 31, 2024

Current behavior

Following the setup guide, on sbt:scaladex> data/run init I am facing

[error] stack trace is suppressed; run last infra / Compile / startPostgres for the full output
[error] stack trace is suppressed; run last infra / startElasticsearch for the full output
[error] (infra / Compile / startPostgres) java.lang.UnsupportedOperationException
[error] (infra / startElasticsearch) java.lang.UnsupportedOperationException
[error] Total time: 1 s, completed 15 Mar, 2024 3:36:03 PM
[info] new client connected: network-1

On running last infra / startElasticsearch , I discovered problem with POSIX permissions on data folder for Elasticsearch

sbt:scaladex> last infra / startElasticsearch
[error] java.lang.UnsupportedOperationException
[error] at java.nio.file.Files.setPosixFilePermissions(Files.java:2044)
[error] at sbt.io.RichNioPath.setPermissions(Path.scala:130)
[error] at sbt.io.RichNioPath.setPermissions$(Path.scala:129)
[error] at sbt.io.RichFile.setPermissions(Path.scala:34)
[error] at sbt.io.IO$.setPermissions(IO.scala:1274)
[error] at Elasticsearch$.startContainer(Elasticsearch.scala:62)
[error] at Elasticsearch$.$anonfun$settings$3(Elasticsearch.scala:39)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:74)
[error] at Elasticsearch$.$anonfun$settings$1(Elasticsearch.scala:49)
[error] at Elasticsearch$.$anonfun$settings$1$adapted(Elasticsearch.scala:26)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49) at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:69)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error] at sbt.Execute.work(Execute.scala:292)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:283) at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:26)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[error] (infra / startElasticsearch) java.lang.UnsupportedOperationException

I then switched to WSL2 and did data/run init to populate the database but faced
image
image

Expected Behavior

It should have populated the database successfully.

Extra comments

I am on Windows 10, and using VSCode with Metals with JDK 11. Further I've been using the same images been asked for in the guide for the Docker.

Search terms

No response

@VOSID8 VOSID8 added the bug label Mar 31, 2024
@ayushkoli772
Copy link
Collaborator

@VOSID8 in the logs it says "Timeout waiting for container" so I think you should try increasing the timeout for Postgres container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants