Closed andoneve closed 8 years ago
Hi,
I haven't yet tested LambdaCD on a device like a RaspberryPi yet, maybe LambdaCD is just a bit wasteful at the moment. Which requests fail? The Ajax-Requests the UI is sending or access to the UI page itself?
I just tried digging into this a bit, unfortunately, I couldn't reproduce your issue yet. I've tried playing around with resources but it looks good as far as I can tell right now, even with very little RAM for example.
There are some things you could try to help me debug this:
Try the most recent ring and jetty versions
in project.clj
, replace
[ring-server "0.3.1"]
with
[ring-server "0.4.0"]
[ring "1.4.0"]
You might need to run lein clean
after you change the dependencies.
Get rid of Jetty As the stacktrace points in the direction of the Jetty webserver, could you try what happens if you swap the webserver with something like http-kit?
project.clj
: [http-kit "2.1.18"]
in your core.clj
(or wherever your -main
function is):
:require
statements: [org.httpkit.server :as httpkit]
-main
, replace this (ring-server/serve app {:open-browser? false
:port 8080})))
with this:
(httpkit/run-server app {:port 8080})))
You could also try one of the other ring-compatible implementations, http-kit just looked easiest to integrate.
Check your charset I also looked into the Jetty source at the locations indicated by your stacktrace, there is some logic dependent on character encoding. What charset are you using?
Get me an exact list of your dependencies
Easiest way is to call lein deps :tree
and paste the output into a Gist
These are awesome tips!
For now we upgraded our jdk from 1.7 to 1.8 on the pi and it seems to be stable so far... we will let you know if we have anymore problems. If it's stable for more than a few days we'll close the issue.
ok, thanks for the feedback!
It's been stable after upgrading to jdk 1.8. Closing the issue.
We are running LambdaCD on a RaspberryPi 2 with an Archlinux setup.
We run some simple shell/bash commands (jshint, scss-lint) and then our deploy script (git clone, database dump).
It crashes rather often (every build or 2) when we keep the GUI interface open. Here is the stacktrace and screenshot: