https://linen.dev logo
#dev-frontend
Title
# dev-frontend
a

Artem Astapenko

09/15/2020, 3:47 PM
@charles could you please check why build is failing on ‘ensure no file change’ my branch has no other changes except ts files. ( and recently I tried to fix editorconfig. It also doesn’t help )
c

charles

09/15/2020, 3:48 PM
sure. i can take a look now.
a

Artem Astapenko

09/15/2020, 3:56 PM
Are we using node v12?
c

charles

09/15/2020, 3:56 PM
when i run build i see a dif in package-lock.json. i committed the diff and it seems to have worked https://github.com/datalineio/dataline/pull/257/commits/ff7908bd7244dd625ccfeaf6ff28eac3e942c227
a

Artem Astapenko

09/15/2020, 3:56 PM
I was using v10 and it doesn’t update file those way
c

charles

09/15/2020, 3:56 PM
in our docs we’re saying node 14.
haven’t actually confirmed that that’s what we actually do 😄
a

Artem Astapenko

09/15/2020, 3:58 PM
Oh. Ok I will switch to v14. But if build will only pass with v14 - probably it means we should add something about that in webapp package.json
c

charles

09/15/2020, 3:59 PM
makes sense! can you add whatever would be appropriate?
a

Artem Astapenko

09/15/2020, 4:01 PM
ok
now it failed with
Copy code
Service 'server' failed to build : Get <https://registry-1.docker.io/v2/library/openjdk/manifests/14.0.2-slim>: received unexpected HTTP status: 500 Internal Server Error


FAILURE: Build failed with an exception.

* Where:
Build file '/home/runner/work/dataline/dataline/build.gradle' line: 157

* What went wrong:
Execution failed for task ':composeBuild'.
> Process 'command 'docker-compose'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>
in master 🙂
though it was passing fine in PR after your fix. Should we just rerun it?
c

charles

09/15/2020, 4:05 PM
yeah
that looks like the library server 500ed, whcih is weird.
a

Artem Astapenko

09/15/2020, 4:06 PM
ooops. I now have this error:
Copy code
Request URL: <http://localhost:8001/api/v1/web_backend/connections/list>
Body: { workspaceId: "5ae6b09b-fdec-41af-aaf7-7d94cfc33ef6" }
is it possible that thats after you added description?
maybe thats why master is failing now?
c

charles

09/15/2020, 4:11 PM
sorry. i’m not understanding. did i add something i shouldn’t havE?
what’s the error?
a

Artem Astapenko

09/15/2020, 4:13 PM
The one above. Those error I now have in master when call for connections/list
c

charles

09/15/2020, 4:14 PM
did you copy the error though? i’m just seeing request url and request body in this message https://datalinehq.slack.com/archives/C01AHCE38KW/p1600186009007100?thread_ts=1600184862.001500&amp;cid=C01AHCE38KW
a

Artem Astapenko

09/15/2020, 4:14 PM
error is 500 with no info
here is the log
Copy code
dataline-server | 2020-09-15 16:03:58 DEBUG UncaughtExceptionMapper:42 - Uncaught exception
dataline-server | java.lang.IllegalArgumentException: Field (attempts) is not contained in Row ("jobs"."id", "jobs"."scope", "jobs"."created_at", "jobs"."started_at", "jobs"."updated_at", "jobs"."status", "jobs"."config", "jobs"."output", "jobs"."stdout_path", "jobs"."stderr_path")
dataline-server | 	at org.jooq.impl.Tools.indexOrFail(Tools.java:1838) ~[jooq-3.13.4.jar:?]
dataline-server | 	at org.jooq.impl.AbstractRecord.get(AbstractRecord.java:285) ~[jooq-3.13.4.jar:?]
dataline-server | 	at org.jooq.impl.AbstractRecord.get(AbstractRecord.java:290) ~[jooq-3.13.4.jar:?]
dataline-server | 	at io.dataline.scheduler.persistence.DefaultSchedulerPersistence.getJobFromRecord(DefaultSchedulerPersistence.java:357) ~[dataline-scheduler-0.1.0.jar:?]
dataline-server | 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
dataline-server | 	at java.util.ArrayList$Itr.forEachRemaining(ArrayList.java:1003) ~[?:?]
dataline-server | 	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:?]
dataline-server | 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
dataline-server | 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
dataline-server | 	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
dataline-server | 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
dataline-server | 	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
dataline-server | 	at io.dataline.scheduler.persistence.DefaultSchedulerPersistence.lambda$listJobs$7(DefaultSchedulerPersistence.java:265) ~[dataline-scheduler-0.1.0.jar:?]
dataline-server | 	at io.dataline.db.DatabaseHelper.query(DatabaseHelper.java:53) ~[dataline-db-0.1.0.jar:?]
dataline-server | 	at io.dataline.scheduler.persistence.DefaultSchedulerPersistence.listJobs(DefaultSchedulerPersistence.java:261) ~[dataline-scheduler-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.handlers.JobHistoryHandler.listJobsFor(JobHistoryHandler.java:58) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.handlers.WebBackendConnectionsHandler.buildWbConnectionRead(WebBackendConnectionsHandler.java:93) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.handlers.WebBackendConnectionsHandler.webBackendListConnectionsForWorkspace(WebBackendConnectionsHandler.java:63) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.apis.ConfigurationApi.lambda$webBackendListConnectionsForWorkspace$26(ConfigurationApi.java:278) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.apis.ConfigurationApi.execute(ConfigurationApi.java:288) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at io.dataline.server.apis.ConfigurationApi.webBackendListConnectionsForWorkspace(ConfigurationApi.java:278) ~[dataline-server-0.1.0.jar:?]
dataline-server | 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
dataline-server | 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
dataline-server | 	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
dataline-server | 	at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
dataline-server | 	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80) ~[jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253) [jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.internal.Errors.process(Errors.java:292) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.internal.Errors.process(Errors.java:274) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.internal.Errors.process(Errors.java:244) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) [jersey-common-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232) [jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680) [jersey-server-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394) [jersey-container-servlet-core-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) [jersey-container-servlet-core-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:366) [jersey-container-servlet-core-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:319) [jersey-container-servlet-core-2.31.jar:?]
dataline-server | 	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) [jersey-container-servlet-core-2.31.jar:?]
dataline-server | 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) [jetty-servlet-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:569) [jetty-servlet-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1377) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:507) [jetty-servlet-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1292) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.Server.handle(Server.java:501) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) [jetty-server-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [jetty-io-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:135) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) [jetty-util-9.4.31.v20200723.jar:9.4.31.v20200723]
dataline-server | 	at java.lang.Thread.run(Thread.java:832) [?:?]
dataline-server | Sep 15, 2020 4:03:58 PM org.glassfish.jersey.logging.LoggingInterceptor log
dataline-server | INFO: 4 * Server responded with a response on thread qtp904253669-13
dataline-server | 4 < 500
dataline-server | 4 < Access-Control-Allow-Headers: Origin, Content-Type, Accept
dataline-server | 4 < Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, HEAD
dataline-server | 4 < Access-Control-Allow-Origin: *
dataline-server | 4 < Content-Type: application/json
dataline-server | {"message":"internal server error"}
dataline-server |
c

charles

09/15/2020, 4:16 PM
ah. you need to update the containers running on your machine.
the schema in dataline/db changed.
a

Artem Astapenko

09/15/2020, 4:16 PM
I deleted all container and all images and then started docker-compose
so its a fresh install
c

charles

09/15/2020, 4:17 PM
okay. i will try to recreate on my machine.
a

Artem Astapenko

09/15/2020, 4:18 PM
I will try to rebuild it 1 more time. But I tried numerous times before writing here
c

charles

09/15/2020, 4:19 PM
so i think the issue is that the volume that the dataline/db relies on needs to get removed too. can you try the following:
Copy code
docker rm -f $(docker ps -a -q)
 docker volume rm $(docker volume ls -q)
and then docker compose up
a

Artem Astapenko

09/15/2020, 4:19 PM
isn’t docker-compose down removing it?
c

charles

09/15/2020, 4:20 PM
not the persistent volume.
the idea is that when you call down, you don’t want to delete the database.
a

Artem Astapenko

09/15/2020, 4:24 PM
ok thanks. Looks to work now
👍 1
m

Michel

09/15/2020, 4:33 PM
to delete the volume with docker compose you need to do
docker-compose down -v
👍 1
4 Views