-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Chapter 3 lein run cannot connect to database #1
Comments
I also have a connection issue with the main db. But the connection works if I use the in memory database by uncommenting line 14 in dev-config.edn instead of line 11: ; alternatively, you can use the datomic mem db for development: I've had trouble getting the console to work as well (it's thowing a jetty 503 error), but I'm not sure whether the two issues are connected or if that's simply a meatware issue. Using: |
@legendre6891 That's weird, it seems the app has some troubles communicating with datomic. I used version 0.9.5703 but I don't think the different version is the issue. Maybe try to test if you can connect to that port using telnet |
@ciaranbradley The same issue with connection? |
@aliaksandr-s Similar, I think. To my (novice) eye, this looks like a datomic issue with the jdk. There are various references to a netty issue (using reflection). If I swap out openJDK jdk-13.01 (the latest openjdk) for the Azul compiled zulu8.42.0.23-ca-jdk8.0.232-win_x64 (Java 8 (LTS)) as recommended on the luminus site here: http://www.luminusweb.net/docs allows the connection to work, although datomic complains on start up: WARNING: An illegal reflective access operation has occurred If I was guessing, reflection was deprecated in Java 8, and perhaps has been removed since. And either something in netty hasn't been updated (or datomic are shipping an older version of netty with their free distribution). Again, novice. So take my assessment with a pinch of salt. When I downloaded the Azul compiled jdk, and added it to my PATH (above the other open JDK so that it's selected first), opened "lein repl" and issued the (start) command, it appears to work. The data gets pushed to datomic. But the action is noisy, again with netty references in the debug output: user=> (start) What version of jdk are you using @aliaksandr-s? |
@ciaranbradley I'm using OpenJDK version 8 as recommended by leiningen. So you are probably right with your guess. I also had issues with latest java and some packages. |
In the middle of Chapter 3, after adding in the changes and right before the section titled
Tryin REPL
, I could not getlein run
to work. I checked out the chapter3/end code, and it does not work there either. The log is below.I have datomic transactor running in a separate terminal, whose output is:
The error message is:
The text was updated successfully, but these errors were encountered: