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

Unable to run docker-compose with WSL on Windows #3583

Open
ml-mar opened this issue Feb 8, 2023 · 2 comments
Open

Unable to run docker-compose with WSL on Windows #3583

ml-mar opened this issue Feb 8, 2023 · 2 comments

Comments

@ml-mar
Copy link

ml-mar commented Feb 8, 2023

Hello,

I am trying to setup VertaAI but I am running into several errors. When running docker-compose -f docker-compose-all.yaml up I am getting:

Starting modeldb-backend  ... done
Starting modeldb-postgres ... done
Starting modeldb-proxy    ... done
Starting modeldb-graphql  ... done
Starting modeldb-frontend ... done
Attaching to modeldb-postgres, modeldb-backend, modeldb-proxy, modeldb-graphql, modeldb-frontend
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.App","message":"Backend server starting.","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860406,"nanoOfSecond":639000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.utils.ModelDBUtils","message":"Reading File /config/config.yaml as YAML","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860406,"nanoOfSecond":714000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"DEBUG","loggerName":"ai.verta.modeldb.utils.ModelDBUtils","message":"YAML map {grpcServer={port=8085}, springServer={port=8086, shutdownTimeout=30}, artifactStoreConfig={artifactStoreType=NFS, NFS={nfsUrlProtocol=http, nfsRootPath=/artifact-store/, artifactEndpoint={getArtifact=api/v1/artifact/getArtifact, storeArtifact=api/v1/artifact/storeArtifact}}}, database={DBType=relational, timeout=4, liquibaseLockThreshold=60, RdbConfiguration={RdbDatabaseName=modeldb, RdbDriver=org.mariadb.jdbc.Driver, RdbDialect=org.hibernate.dialect.MySQL5Dialect, RdbUrl=jdbc:mysql://localhost:3306, RdbUsername=root, RdbPassword=root_password_here}}, test={test-database={DBType=relational, timeout=4, liquibaseLockThreshold=60, RdbConfiguration={RdbDatabaseName=modeldb-test, RdbDriver=org.mariadb.jdbc.Driver, RdbDialect=org.hibernate.dialect.MySQL5Dialect, RdbUrl=jdbc:mysql://localhost:3306, RdbUsername=root, RdbPassword=root_password_here}}}, artifactStore_grpcServer={host=modeldb-backend, port=8086}, cron_job={update_parent_timestamp={frequency=10, record_update_limit=100}, delete_entities={frequency=60, record_update_limit=100}}, telemetry={opt_in=true, frequency=1, consumer=https://app.verta.ai/api/v1/uac-proxy/telemetry/collectTelemetry}}","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860406,"nanoOfSecond":760000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-graphql     | 2023/02/08 12:46:47 SERVER_HTTP_PORT : 4000
modeldb-backend     | WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
modeldb-backend     | 2023-02-08 12:46:46,810 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
modeldb-postgres    |
modeldb-postgres    | PostgreSQL Database directory appears to contain a database; Skipping initialization
modeldb-postgres    |
modeldb-proxy       | 2023/02/08 12:46:47 MDB_ADDRESS : modeldb-backend:8085
modeldb-proxy       | 2023/02/08 12:46:47 SERVER_HTTP_PORT : 8080
modeldb-postgres    | 2023-02-08 12:46:45.169 UTC [1] LOG:  starting PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
modeldb-postgres    | 2023-02-08 12:46:45.169 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
modeldb-postgres    | 2023-02-08 12:46:45.169 UTC [1] LOG:  listening on IPv6 address "::", port 5432
modeldb-proxy       | 2023/02/08 12:46:47 Starting verta-backend proxy on port : 8080
modeldb-backend     | 2023-02-08 12:46:46,820 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
modeldb-backend     | {"thread":"main","level":"DEBUG","loggerName":"ai.verta.modeldb.App","message":"NFS URL protocol found : http","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860406,"nanoOfSecond":903000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-postgres    | 2023-02-08 12:46:45.172 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"modeldb-backend     | 2023-02-08 12:46:47,276 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
modeldb-postgres    | 2023-02-08 12:46:45.175 UTC [29] LOG:  database system was shut down at 2023-02-08 12:46:39 UTC
modeldb-postgres    | 2023-02-08 12:46:45.178 UTC [1] LOG:  database system is ready to accept connections
modeldb-backend     |
modeldb-backend     |   .   ____          _            __ _ _
modeldb-backend     |  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
modeldb-backend     | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
modeldb-backend     |  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
modeldb-backend     |   '  |____| .__|_| |_|_| |_\__, | / / / /
modeldb-backend     |  =========|_|==============|___/=/_/_/_/
modeldb-backend     |  :: Spring Boot ::        (v2.1.8.RELEASE)
modeldb-backend     |
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.App","message":"Starting App v1.0-SNAPSHOT on df49aadccaa8 with PID 1 (/modeldb-project-work-dir/modeldb-1.0-SNAPSHOT-client-build.jar started by root in /modeldb-project-work-dir)","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860407,"nanoOfSecond":424000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"DEBUG","loggerName":"ai.verta.modeldb.App","message":"Running with Spring Boot v2.1.8.RELEASE, Spring v5.1.9.RELEASE","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860407,"nanoOfSecond":426000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.App","message":"No active profile set, falling back to default profiles: default","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860407,"nanoOfSecond":428000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"org.springframework.boot.web.embedded.tomcat.TomcatWebServer","message":"Tomcat initialized with port(s): 8086 (http)","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860408,"nanoOfSecond":698000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | Feb 08, 2023 12:46:48 PM org.apache.coyote.AbstractProtocol init
modeldb-backend     | INFO: Initializing ProtocolHandler ["http-nio-8086"]
modeldb-backend     | Feb 08, 2023 12:46:48 PM org.apache.catalina.core.StandardService startInternal
modeldb-backend     | INFO: Starting service [Tomcat]
modeldb-backend     | Feb 08, 2023 12:46:48 PM org.apache.catalina.core.StandardEngine startInternal
modeldb-backend     | INFO: Starting Servlet engine: [Apache Tomcat/9.0.24]
modeldb-backend     | Feb 08, 2023 12:46:48 PM org.apache.catalina.core.ApplicationContext log
modeldb-backend     | INFO: Initializing Spring embedded WebApplicationContext
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"org.springframework.web.context.ContextLoader","message":"Root WebApplicationContext: initialization completed in 1332 ms","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860408,"nanoOfSecond":828000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor","message":"Initializing ExecutorService 'applicationTaskExecutor'","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860409,"nanoOfSecond":72000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | Feb 08, 2023 12:46:49 PM org.apache.coyote.AbstractProtocol start
modeldb-backend     | INFO: Starting ProtocolHandler ["http-nio-8086"]
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"org.springframework.boot.web.embedded.tomcat.TomcatWebServer","message":"Tomcat started on port(s): 8086 (http) with context path ''","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860409,"nanoOfSecond":279000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.App","message":"Started App in 2.33 seconds (JVM running for 3.565)","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.LogAdapter$Log4jLog","instant":{"epochSecond":1675860409,"nanoOfSecond":281000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.App","message":"ArtifactStore service initialized and resolved storage dependency before server start","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860409,"nanoOfSecond":283000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"ai.verta.modeldb.utils.ModelDBHibernateUtil","message":"Fetching sessionFactory","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860409,"nanoOfSecond":292000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"INFO","loggerName":"org.hibernate.Version","message":"HHH000412: Hibernate ORM core version 5.4.17.Final","endOfBatch":false,"loggerFqcn":"org.hibernate.internal.CoreMessageLogger_$logger","instant":{"epochSecond":1675860409,"nanoOfSecond":340000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"WARN","loggerName":"ai.verta.modeldb.utils.ModelDBHibernateUtil","message":"ModelDBHibernateUtil checkDBConnection() got error ","thrown":{"commonElementCount":0,"localizedMessage":"org.mariadb.jdbc.Driver","message":"org.mariadb.jdbc.Driver","name":"java.lang.ClassNotFoundException","extendedStackTrace":"java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:435) ~[?:?]\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]\n\tat org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:89) ~[modeldb-1.0-SNAPSHOT-client-build.jar:1.0-SNAPSHOT]\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]\n\tat java.lang.Class.forName0(Native Method) ~[?:?]\n\tat java.lang.Class.forName(Class.java:340) ~[?:?]\n\tat ai.verta.modeldb.utils.ModelDBHibernateUtil.checkDBConnection(ModelDBHibernateUtil.java:477) [classes!/:1.0-SNAPSHOT]\n\tat ai.verta.modeldb.utils.ModelDBHibernateUtil.createOrGetSessionFactory(ModelDBHibernateUtil.java:237) [classes!/:1.0-SNAPSHOT]\n\tat ai.verta.modeldb.App.initializeServicesBaseOnDataBase(App.java:368) [classes!/:1.0-SNAPSHOT]\n\tat ai.verta.modeldb.App.main(App.java:263) [classes!/:1.0-SNAPSHOT]\n\tat jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]\n\tat jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]\n\tat jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]\n\tat java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [modeldb-1.0-SNAPSHOT-client-build.jar:1.0-SNAPSHOT]\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [modeldb-1.0-SNAPSHOT-client-build.jar:1.0-SNAPSHOT]\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [modeldb-1.0-SNAPSHOT-client-build.jar:1.0-SNAPSHOT]\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58) [modeldb-1.0-SNAPSHOT-client-build.jar:1.0-SNAPSHOT]\n"},"endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860409,"nanoOfSecond":474000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}
modeldb-backend     | {"thread":"main","level":"DEBUG","loggerName":"ai.verta.modeldb.utils.ModelDBHibernateUtil","message":"ModelDBHibernateUtil getSessionFactory() retrying for DB connection after 5 millisecond ","endOfBatch":false,"loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger","instant":{"epochSecond":1675860409,"nanoOfSecond":498000000},"threadId":1,"threadPriority":5,"hostName":"df49aadccaa8","kubernetes.podIP":""}

When running docker ps I get the following:

mario@DEV-LPT-50:~/modeldb$ docker ps
CONTAINER ID   IMAGE                                      COMMAND                  CREATED          STATUS         PORTS                                                           NAMES
55c2d18e6a08   postgres                                   "docker-entrypoint.s…"   38 minutes ago   Up 6 seconds   5432/tcp                                                        modeldb-postgres
3541107092e5   vertaaiofficial/modeldb-frontend:2.0.8.2   "docker-entrypoint.s…"   4 hours ago      Up 2 seconds   0.0.0.0:3000->3000/tcp, :::3000->3000/tcp                       modeldb-frontend
44f5630ad3fb   vertaaiofficial/modeldb-graphql:2.0.8.1    "/app/bin/graphql"       4 hours ago      Up 4 seconds   0.0.0.0:4000->4000/tcp, :::4000->4000/tcp                       modeldb-graphql
4c0a3661a978   vertaaiofficial/modeldb-proxy:2.0.8.1      "/app/bin/proxy"         4 hours ago      Up 4 seconds   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                       modeldb-proxy
df49aadccaa8   vertaaiofficial/modeldb-backend:2.0.8.1    "java -jar modeldb-1…"   4 hours ago      Up 6 seconds   0.0.0.0:8085-8086->8085-8086/tcp, :::8085-8086->8085-8086/tcp   modeldb-backend
@jkwatson-verta
Copy link
Contributor

Yes, unfortunately, our docker-compose configuration is quite out of date. In particular, we need to switch it to using a mysql database, rather than postgres. Would you be interested in contributing that change?

@IooHooI
Copy link

IooHooI commented Jan 16, 2024

Yes, unfortunately, our docker-compose configuration is quite out of date. In particular, we need to switch it to using a mysql database, rather than postgres. Would you be interested in contributing that change?

This happens not only in docker-compose.

I faced same error when trying to deploy app in kubernetes via Helm Chart.

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

No branches or pull requests

3 participants