Closed JulS5931 closed 2 months ago
I added this docker-compose.yml file in the directory of studio:
version: '3'
services:
studio:
image: openjdk
ports:
- 8080:8080
volumes:
- .:/studio
entrypoint: /bin/sh /studio/studio-linux.sh
stdin_open: true # docker run -i
tty: true # docker run -t
Once you installed docker desktop https://docs.docker.com/desktop/install/mac-install/
You have to move to the directory where studio is unzipped and launch the command:
docker-compose run studio
Hello, I'm in the same situation as @JulS5931 Thanks for the help @b3j0f. I have the docker running but nothing happens then. When going to localhost:8080, the host is unreachable. Could you help me/us ? Thanks
The log from docker is this :
2023-03-31 21:05:32 2023-03-31 19:05:32,909 [WARN ] [s.m.DatabaseMetadataService]: Missing official metadata database file
2023-03-31 21:05:32 java.io.FileNotFoundException: /root/.studio/db/official.json (No such file or directory)
2023-03-31 21:05:32 at java.base/java.io.FileInputStream.open0(Native Method)
2023-03-31 21:05:32 at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
2023-03-31 21:05:32 at java.base/java.io.FileInputStream.
Thanks @b3j0f After a few modifications, I managed to have the script running. But still no access to the UI interface. I tried localhost:8080 but it doesn't work. Here are the log from the terminal running :
docker-compose run studio
[+] Running 1/0
⠿ Network studio_default Created 0.0s
2023-04-01 13:39:28,445 [WARN ] [s.m.DatabaseMetadataService]: Missing official metadata database file
java.io.FileNotFoundException: /root/.studio/db/official.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
at java.base/java.io.FileInputStream.
Duplicate of #244
Describe the bug A clear and concise description of what the bug is.
To Reproduce I installed the latest version of Java : java -version
java version "20" 2023-03-21 Java(TM) SE Runtime Environment (build 20+36-2344) Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
When I launch studio-macos.sh I have an error message and it quit
2023-03-21 19:02:20,156 [INFO ] [s.w.s.StoryTellerService]: Setting up story teller driver 2023-03-21 19:02:20,158 [DEBUG] [s.d.r.RawStoryTellerAsyncDriver]: Registering hotplug listener 2023-03-21 19:02:20,159 [INFO ] [s.d.LibUsbDetectionHelper]: Initializing libusb... java.lang.ExceptionInInitializerError at studio.driver.LibUsbDetectionHelper.initializeLibUsb(LibUsbDetectionHelper.java:50) at studio.driver.raw.RawStoryTellerAsyncDriver.(RawStoryTellerAsyncDriver.java:45)
at studio.webui.service.StoryTellerService.(StoryTellerService.java:54)
at studio.webui.MainVerticle.start(MainVerticle.java:60)
at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:106)
at io.vertx.core.Verticle.start(Verticle.java:66)
at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:556)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/darwin-aarch64/libusb4java.dylib
at org.usb4java.Loader.extractLibrary(Loader.java:246)
at org.usb4java.Loader.load(Loader.java:323)
at org.usb4java.LibUsb.(LibUsb.java:690)
... 16 more
2023-03-21 19:02:20,162 [ERROR] [i.v.c.i.l.c.VertxIsolatedDeployer]: Failed in deploying verticle
java.lang.ExceptionInInitializerError
at studio.driver.LibUsbDetectionHelper.initializeLibUsb(LibUsbDetectionHelper.java:50)
at studio.driver.raw.RawStoryTellerAsyncDriver.(RawStoryTellerAsyncDriver.java:45)
at studio.webui.service.StoryTellerService.(StoryTellerService.java:54)
at studio.webui.MainVerticle.start(MainVerticle.java:60)
at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:106)
at io.vertx.core.Verticle.start(Verticle.java:66)
at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:556)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/darwin-aarch64/libusb4java.dylib
at org.usb4java.Loader.extractLibrary(Loader.java:246)
at org.usb4java.Loader.load(Loader.java:323)
at org.usb4java.LibUsb.(LibUsb.java:690)
... 16 more
java.lang.ExceptionInInitializerError
at studio.driver.LibUsbDetectionHelper.initializeLibUsb(LibUsbDetectionHelper.java:50)
at studio.driver.raw.RawStoryTellerAsyncDriver.(RawStoryTellerAsyncDriver.java:45)
at studio.webui.service.StoryTellerService.(StoryTellerService.java:54)
at studio.webui.MainVerticle.start(MainVerticle.java:60)
at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:106)
at io.vertx.core.Verticle.start(Verticle.java:66)
at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:556)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/darwin-aarch64/libusb4java.dylib
at org.usb4java.Loader.extractLibrary(Loader.java:246)
at org.usb4java.Loader.load(Loader.java:323)
at org.usb4java.LibUsb.(LibUsb.java:690)
... 16 more
Desktop and environment (please complete the following information):
Thanks for your help :) Julien