This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-14
Channels
- # ai (3)
- # babashka (45)
- # beginners (81)
- # biff (26)
- # calva (10)
- # cider (5)
- # clj-kondo (55)
- # cljfx (6)
- # clojure (125)
- # clojure-berlin (1)
- # clojure-europe (37)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-norway (79)
- # clojure-uk (1)
- # clojurescript (63)
- # clojutre (1)
- # conjure (5)
- # cursive (37)
- # data-science (1)
- # datalevin (4)
- # datomic (28)
- # eastwood (6)
- # fulcro (26)
- # graphql (20)
- # honeysql (6)
- # humbleui (4)
- # jobs-discuss (5)
- # kaocha (1)
- # leiningen (8)
- # missionary (5)
- # nbb (4)
- # observability (3)
- # off-topic (7)
- # pathom (8)
- # podcasts-discuss (1)
- # rewrite-clj (18)
- # ring (6)
- # sci (23)
- # scittle (9)
- # shadow-cljs (49)
- # squint (10)
- # testing (11)
- # xtdb (17)
Appreciation for how you put together such succinct system management in Biff, including a shout out to Component in the docs. 👍
Thanks!
I’ll try it out on a biff project to to check it out.
that looks handy
Hi all. I have some trouble using XTDB with JDBC.
The default connecting string template :biff.xtdb.jdbc/jdbcUrl "
and :biff.xtdb/topology :jdbc
gives me an error:
Execution error (SQLException) at java.sql.DriverManager/getDriver (DriverManager.java:298).
No suitable driver
If I change the connecting string to "jdbc::port/database"
I get a bit further but it throws a different error:
...
Caused by: java.net.UnknownHostException: user:[email protected]
...
I'll do more debugging, but if someone could show me what the connecting string should look like that would help.
I'm running on a DO droplet and connecting to a managed postgres database. I'm able to connect to the database from the droplet using the command line psql
looking into this now
Try commenting out the jdbcUrl
line in your config and instead add these keys:
:biff.xtdb.jdbc/dbname "..."
:biff.xtdb.jdbc/user "..."
:biff.xtdb.jdbc/password "..."
:biff.xtdb.jdbc/host "..."
:biff.xtdb.jdbc/port ...
Does that work?That's what I'm doing in my own project. I later switched Biff's example project to use the jdbcUrl
param instead in order to make the config smaller. I followed the template in DO's database config page--wasn't aware that the jdbc:
is needed, and I guess that's what I get for not testing things 🙂
So I'll update the template config; but as for the second error, I'm not sure, assuming you pasted the host in exactly without typos...
Not sure what is going wrong with the JDBC url. The error makes it looks like it's passing the username:password@
as part of the host name.
If I find out more I'll let you know. But I actually prefer to split it up like this 🙂
Very interesting! I'll just switch the template config to do that then.
I have asked about this but forgotten: are there disadvantages for using reserved IPs in DO?
The advantage is one can destroy a droplet and build a new one without waiting for DNS to propagate.
I think there may be cert issues with them, though.
not sure, I've never used them/thought about them
All good… diving in and I’ll report back!
👍👍 I can't think of any reasons there would be cert issues fwiw
on a new DO Biff droplet setup, just got this, which I’ve never had before…
the blue color is just because I had accidentally clicked on that item; disregard
Presuming it’s alright to just OK it.
yeah, just go with the defaults on any dialogs. I should probably put a note about that in the docs.
I ran into this one recently too