[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository central at <http://repo1.maven.org/maven2>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository central at <http://repo1.maven.org/maven2>
Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository central at <http://repo1.maven.org/maven2>
Transferring 0K from clojars
Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar>
[WARNING] Unable to get resource 'com.layerware:hugsql:jar:0.5.1' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar>
Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository clojars at <http://clojars.org/repo/>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: hiccup/hiccup/1.0.5/hiccup-1.0.5.jar from repository clojars at <http://clojars.org/repo/>
Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/honeysql/honeysql/1.0.444/honeysql-1.0.444.jar>
[WARNING] Unable to get resource 'honeysql:honeysql:jar:1.0.444' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/honeysql/honeysql/1.0.444/honeysql-1.0.444.jar>
Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository clojars at <http://clojars.org/repo/>
Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/typesafe/config/1.4.0/config-1.4.0.jar>
[WARNING] Unable to get resource 'com.typesafe:config:jar:1.4.0' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/typesafe/config/1.4.0/config-1.4.0.jar>
Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository clojars at <http://clojars.org/repo/>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: funcool/cats/2.3.2/cats-2.3.2.jar from repository clojars at <http://clojars.org/repo/>
Transferring 0K from clojars
Transferring 0K from clojars
Transferring 0K from clojars
Transferring 0K from clojars
Transferring 0K from clojars
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository clojars at <http://clojars.org/repo/>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository central at <http://repo1.maven.org/maven2>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository clojars at <http://clojars.org/repo/>
Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository clojars at <http://clojars.org/repo/>
Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar>
[WARNING] Unable to get resource 'org.clojure:tools.logging:jar:1.1.0' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar>
Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository clojars at <http://clojars.org/repo/>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository central at <http://repo1.maven.org/maven2>
Transferring 0K from clojars
Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar>
[WARNING] Unable to get resource 'com.amazonaws:aws-java-sdk-s3:jar:1.11.808' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar>
Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository clojars at <http://clojars.org/repo/>
Transferring 0K from clojars
Transferring 0K from clojars
Transferring 0K from clojars
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Transferring 0K from clojars
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository clojars at <http://clojars.org/repo/>
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - RETRYING
Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository clojars at <http://clojars.org/repo/>
Transferring 0K from clojars
Transferring 0K from clojars
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>
<head><title>301' - IGNORING
Copying 22 files to /tmp/build_0e8ba7b5_/lib
Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at clojure.lang.LazySeq.sval(LazySeq.java:47)
at clojure.lang.LazySeq.seq(LazySeq.java:56)
at clojure.lang.RT.seq(RT.java:450)
at clojure.core$seq.invoke(core.clj:122)
at leiningen.deps$extract_native_deps.invoke(deps.clj:174)
at leiningen.deps$deps.doInvoke(deps.clj:200)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.Var.invoke(Var.java:365)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$apply_task.invoke(core.clj:262)
at leiningen.core$_main.doInvoke(core.clj:329)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 11 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.jar.JarFile.<init>(JarFile.java:166)
at java.util.jar.JarFile.<init>(JarFile.java:130)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at clojure.lang.Reflector.invokeConstructor(Reflector.java:160)
at leiningen.deps$extract_native_deps$fn__2418.invoke(deps.clj:174)
at clojure.core$map$fn__3699.invoke(core.clj:2096)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
... 30 more
first time using heroku with clojure
i have no clue whats happening even
is something up with clojars?
<http://clojars.org/repo/>
is not the right URL for that repo. Should be https at least.
Should be: https://repo.clojars.org/
That's why you're getting the 301 response instead of successful downloads @emccue
I noticed a wonky error at the top about specifying a min leiningen version
Yeah, an old version of Leiningen could well have the outdated Clojars URL.
I like this morning routing:) https://builtwithscience.com/posture-workout-routine/
Looked at the article - I would suggest that it is a subset of Yoga. Handy knowledge anyway and true - I can testify to that
wow. looks great and helpful for me. thank you for sharing
Hey, I cannot seem to find a straightforward answer and since Clojurists are smart people, here I go. Say I work on a private project which already includes license A, although the project is not yet public. Many commits later, I switch to license B and only then distribute it publicly. When software is re-licensed, this naturally does not void the application of the previous license to the previous public versions of the work. But what about this scenario, would rewriting the git history be mandatory?
A standing desk also does wonder for posture
so you mean, the git-repository is public now and in the history there is a different license somewhere? I guess it depends on the license then but as long as all of this is your copyright you should be able to change even the history of your repository. Hopefully you got the sole copyright.
but I am no lawyer, so don't take my advice as granted
(no lawyer and no previous info on subject) As stated in git pro book, "git thinks about its data more like a stream of snapshots", therefore I would imagine that each commit is a "standalone" app that is subject to a specific license attached to it. If you desire that license B work for all the previous versions of your app, I would change git history.
but I am no lawyer, so don't take my advice as granted [2]
Next to java.nio.file.FileVisitor
and <http://java.io|java.io>.FileFilter
, which classes have you reified in the past to interop with Java?
(so no protocols, just interfaces)
I'm asking specifically for babashka (so in the context of scripting) but more general answers are ok too
I'd look at some of the main function interfaces, particularly things like Consumer, Supplier, Predicate, etc
user=> (.apply (reify java.util.function.Function (apply [this x] x)) 1)
1
niceThreadFactory
Closeable can be useful
Possibly of interest to those who dislike Slack, https://matrix.org/blog/2020/09/30/welcoming-gitter-to-matrix
another strange heroku happening
2020-09-30T15:47:37.513527+00:00 app[web.1]: 2020-09-30 15:47:37,510 [main] INFO space.egge.main - {:space.egge.main/startup-step "Starting app", :line 62}
2020-09-30T15:47:37.515165+00:00 app[web.1]: 2020-09-30 15:47:37,515 [main] INFO space.egge.main - {:space.egge.main/startup-step "Loading initial config", :line 14}
2020-09-30T15:47:37.588042+00:00 app[web.1]: 2020-09-30 15:47:37,587 [main] INFO space.egge.main - {:space.egge.main/startup-step "Connecting to db.", :line 16}
2020-09-30T15:47:37.662074+00:00 app[web.1]: 2020-09-30 15:47:37,661 [main] INFO space.egge.main - {:space.egge.main/startup-step "Creating email service.", :line 20}
2020-09-30T15:47:38.638620+00:00 app[web.1]: 2020-09-30 15:47:38,638 [main] INFO space.egge.main - {:space.egge.main/startup-step "Creating photo service.", :line 22}
2020-09-30T15:47:38.670295+00:00 app[web.1]: 2020-09-30 15:47:38,668 [main] INFO space.egge.main - {:space.egge.main/startup-step "Starting server.", :line 30}
2020-09-30T15:47:38.871482+00:00 app[web.1]: 2020-09-30 15:47:38,871 [main] INFO org.eclipse.jetty.util.log - Logging initialized @14321ms to org.eclipse.jetty.util.log.Slf4jLog
2020-09-30T15:47:39.518616+00:00 app[web.1]: 2020-09-30 15:47:39,517 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.z-SNAPSHOT; built: 2019-04-29T20:42:08.989Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 1.8.0_262-heroku-b10
2020-09-30T15:47:39.590670+00:00 app[web.1]: 2020-09-30 15:47:39,590 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6921cfa{/,null,AVAILABLE}
2020-09-30T15:47:39.613174+00:00 app[web.1]: 2020-09-30 15:47:39,612 [main] INFO o.e.jetty.server.AbstractConnector - Started ServerConnector@760a2b6e{HTTP/1.1,[http/1.1, h2c]}{localhost:4502}
2020-09-30T15:47:39.614069+00:00 app[web.1]: 2020-09-30 15:47:39,613 [main] INFO org.eclipse.jetty.server.Server - Started @15065ms
2020-09-30T15:47:39.615434+00:00 app[web.1]: 2020-09-30 15:47:39,615 [main] INFO space.egge.server - {:space.egge.server/debug "Started", :line 113}
2020-09-30T15:47:39.616396+00:00 app[web.1]: 2020-09-30 15:47:39,616 [main] INFO space.egge.main - {:space.egge.main/startup-step "Started all components.", :line 32}
Okay thats alot, but basically I start my app
It pulls the port from the environment variables
[main] INFO o.e.jetty.server.AbstractConnector - Started ServerConnector@760a2b6e{HTTP/1.1,[http/1.1, h2c]}{localhost:4502}
2020-09-30T15:48:51.621030+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
2020-09-30T15:48:51.643206+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-09-30T15:48:51.720519+00:00 heroku[web.1]: Process exited with status 137
2020-09-30T15:48:51.759997+00:00 heroku[web.1]: State changed from starting to crashed
and later I get an error saying I didn't bind to the port quick enough
which is confusing
(its usually a safe bet to just ignore me and I'll figure it out - I had to bind to 0.0.0.0 and now I know what that is)