Fork me on GitHub
#datomic
<
2020-04-30
>
Joe Lane00:04:04

Gotta call (cast/initialize-redirect :stdout) , or :stderr , or "somefile.log", or :tap.

kenny00:04:02

Oh yeah. Strange error message for that.

joshkh11:04:47

has anyone experienced the following exception from a deployed HTTP Direct ion project?

Uncaught Exception: .IOException: Too many open files
we see the exception shortly after the EC2 instance comes up, and once it happens the web server stops responding for good. the project does work with temporary files but very rarely and only on demand, so it's strange to see the exception shortly after the app starts.

4
favila12:04:56

“Open files” can also mean file descriptors, meaning sockets. Do you make lots of tcp or http connections maybe?

joshkh12:04:20

i think i found the problem. it looks like the error was coming from a function which created a new cognitect-labs/aws-api client in a let every time the function was called (which isn't a good practice, and now the client is def'ed). perhaps the client opens files, maybe for end point resolution or something?

favila12:04:22

I think it probably just opened a new http connection each time

👍 4
ghadi13:04:11

@U0GC1C09L can you list the version of the client and whether you pass anything to the constructor besides :api

joshkh13:04:15

sure thing. client version:

{com.cognitect.aws/api       {:mvn/version "0.8.305"}}
constructor:
(aws/client {:api :kms})

joshkh11:04:55

the stack trace points to org.eclipse.jetty.util.component.ContainerLifeCycle & cognitect.http_client

Marcus12:04:21

When using the client-pro api there is a function create-database. This requires the peer server to be running. But the peer server requires a database name (in the -d parameter) to run. How can I create a database with the client-pro api?

Marcus12:04:54

Do I need to use the full peer api?

favila12:04:21

yes, you need a peer to create the database; then you can run peer server

Marcus12:04:53

Ok. But what then is the use of create-database? to create subsequent databases?

favila12:04:26

it’s for cloud (and other non-peer-server scenarios)

Marcus12:04:21

thanks 🙂

tvaughan15:04:54

Sorry if I missed this elsewhere, but is it permissable to provide a public docker image of Datomic on-prem (without a license key)?

marshall16:04:44

no. you can’t distribute the bits of Datomic on-prem

👌 4