This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-30
Channels
- # babashka (46)
- # beginners (234)
- # bristol-clojurians (4)
- # cider (7)
- # clj-kondo (39)
- # cljdoc (8)
- # cljs-dev (10)
- # cljsjs (10)
- # cljsrn (24)
- # clojure (84)
- # clojure-brasil (7)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-italy (3)
- # clojure-nl (41)
- # clojure-spec (17)
- # clojure-uk (66)
- # clojurescript (64)
- # conjure (161)
- # cursive (12)
- # data-science (45)
- # datomic (20)
- # devops (11)
- # docker (2)
- # duct (9)
- # events (7)
- # figwheel (1)
- # figwheel-main (20)
- # fulcro (32)
- # graalvm (5)
- # helix (82)
- # jackdaw (9)
- # jobs-discuss (19)
- # kaocha (11)
- # local-first-clojure (1)
- # malli (6)
- # meander (3)
- # nrepl (12)
- # off-topic (2)
- # other-lisps (15)
- # pathom (14)
- # rdf (6)
- # re-frame (8)
- # reactive (1)
- # reagent (5)
- # reitit (4)
- # rum (3)
- # shadow-cljs (77)
- # spacemacs (3)
- # sql (9)
- # test-check (31)
- # tools-deps (13)
- # vim (62)
- # xtdb (18)
Gotta call (cast/initialize-redirect :stdout)
, or :stderr
, or "somefile.log"
, or :tap
.
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.“Open files” can also mean file descriptors, meaning sockets. Do you make lots of tcp or http connections maybe?
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?
@U0GC1C09L can you list the version of the client and whether you pass anything to the constructor besides :api
sure thing. client version:
{com.cognitect.aws/api {:mvn/version "0.8.305"}}
constructor:
(aws/client {:api :kms})
the stack trace points to org.eclipse.jetty.util.component.ContainerLifeCycle
& cognitect.http_client
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?
note the docs for create-database:https://docs.datomic.com/client-api/datomic.client.api.html#var-create-database