logaan / lists-of-things

A structured data storage service
1 stars 4 forks source link

Immedate crash upon viewing website after make server #3

Open silky opened 11 years ago

silky commented 11 years ago

The crash is below.

Notably, I didn't have Clojure installed initially (I didn't really realise it was a dependency, from reading the docs anyway). I did otherwise follow the instructions, but had to install things it crashed about during make (notably, "screen" and "lein" which I found by an apt-cache search as "leinin" something).

Probably not terribly important to fix it just for me; I really only wanted to see what it did (I already use Jira myself, could be convinced to switch though ...), but maybe there are some listed dependencies missing? Or did I not follow the install procedure correctly?

java.lang.NullPointerException

Matcher.java:1234   java.util.regex.Matcher.getTextLength
Matcher.java:308    java.util.regex.Matcher.reset
Matcher.java:228    java.util.regex.Matcher.<init>
Pattern.java:1088   java.util.regex.Pattern.matcher
utils.clj:6 clj-stacktrace.utils/re-gsub
core.clj:14 clj-stacktrace.core/clojure-ns
core.clj:68 clj-stacktrace.core/parse-trace-elem
core.clj:2434   clojure.core/map[fn]
LazySeq.java:42 clojure.lang.LazySeq.sval
LazySeq.java:60 clojure.lang.LazySeq.seq
Cons.java:39    clojure.lang.Cons.next
RT.java:587 clojure.lang.RT.next
core.clj:64 clojure.core/next
core.clj:880    clojure.core/reduce1
core.clj:888    clojure.core/reverse
core.clj:87 clj-stacktrace.core/trim-redundant
core.clj:105    clj-stacktrace.core/parse-cause-exception
core.clj:123    clj-stacktrace.core/parse-exception
repl.clj:106    clj-stacktrace.repl/pst-on
repl.clj:123    clj-stacktrace.repl/pst-str
RestFn.java:408 clojure.lang.RestFn.invoke
stacktrace.clj:17   ring.middleware.stacktrace/wrap-stacktrace-log[fn]
stacktrace.clj:79   ring.middleware.stacktrace/wrap-stacktrace-web[fn]
reload.clj:18   ring.middleware.reload/wrap-reload[fn]
jetty.clj:18    ring.adapter.jetty/proxy-handler[fn]
(Unknown Source)    ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$0.handle
HandlerWrapper.java:111 org.eclipse.jetty.server.handler.HandlerWrapper.handle
Server.java:349 org.eclipse.jetty.server.Server.handle
AbstractHttpConnection.java:452 org.eclipse.jetty.server.AbstractHttpConnection.handleRequest
AbstractHttpConnection.java:884 org.eclipse.jetty.server.AbstractHttpConnection.headerComplete
AbstractHttpConnection.java:938 org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete
HttpParser.java:634 org.eclipse.jetty.http.HttpParser.parseNext
HttpParser.java:230 org.eclipse.jetty.http.HttpParser.parseAvailable
AsyncHttpConnection.java:76 org.eclipse.jetty.server.AsyncHttpConnection.handle
SelectChannelEndPoint.java:609  org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle
SelectChannelEndPoint.java:45   org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run
QueuedThreadPool.java:599   org.eclipse.jetty.util.thread.QueuedThreadPool.runJob
QueuedThreadPool.java:534   org.eclipse.jetty.util.thread.QueuedThreadPool$3.run
Thread.java:722 java.lang.Thread.run
logaan commented 11 years ago

Thanks for reporting the issue. It's still kinda pre-alpha. I'm going through a fairly large re-write of the client side code at the moment. Once that's done it should be somewhat useful and I'll put some effort into making it runnable for people. If you grab me at MFUG sometime I'll give you a demo, give you an idea of what it'll be like when it's going.

logaan commented 8 years ago

So I think that crash might have been caused by there being no datomic running. Steps to get up and running now are:

install leiningen
clone the repo
./scripts/get-datomic
./scripts/transactor
open a new terminal
lein repl
(in-ns 'lists-of-things.seed)
(seed "datomic:free://localhost:4334/lists_of_things")
(in-ns 'lists-of-things.web)
(-main)
Open a browser to http://localhost:3000/
Sign in using a mozilla persona account (it's a federated sign in thing. gmail accounts should be fine if I remember correctly)
Once signed in you should see a broken page that says things like "listing name", "child name", "preview name", etc
Click on the "Lists of thigns" link
You should now be at a page that works, you can create things using the input at the bottom of the left hand column

I understand if that's more effort than it's worth. Still pre-alpha.