Fork me on GitHub
#aws
<
2020-04-02
>
hiredman00:04:11

the multi-release: true can make the jar behave differently on different versions of java

hiredman00:04:52

I really would double check the jar that is running matches the jar you have locally, like if (I haven't used beanstalk) beanstalk has the concept of staging a new version before switching to it, could you have staged a version of the jar without deploying it

jjttjj00:04:27

yeah I'll try that once more

jjttjj00:04:31

grasping at straws, but do you think it could be due to the case difference in the meta-inf directory name?

hiredman00:04:27

yes, but I would expect there to be another manifest under META-INF

hiredman00:04:02

are you on osx and inspecting the jar contents by unzipping?

jjttjj00:04:03

Ah, actually on windows, looking inside with emacs, but yeah there is an identical manifest in the capitalized directory

hiredman00:04:55

Identical contents

jjttjj00:04:22

yes exactly the same

hiredman00:04:39

Try repackaging the jar, unzip remove the lower case meta inf, and zip it all back up

jjttjj00:04:36

giving that a shot now

hiredman00:04:17

My current guess is something about the case change is still messing things up, maybe however you are inspect file contents is also tripping over it

hiredman00:04:01

The case thing is so weird

jjttjj00:04:40

It must stem from this

hiredman00:04:41

One of your dependencies may be badly packaged

jjttjj00:04:28

No dice. Gonna give up for tonight, but thanks for the help

jumar03:04:32

@jjttjj Check the app logs first! Yesterday, I was troubleshooting a very similar issue for somebody on another slack team and it was indeed because of a mismatch between build JDK version (13) and beanstalk java version (8). I know you menteiond it's running fine elsewhere but the logs should definitely give you the answer.

orestis04:04:16

FWIW I install Clojure tools and run stuff in Beanstalk directly from source. Wrote a post here https://clojureverse.org/t/running-a-clojure-application-on-aws-elastic-beanstalk-with-clojure-cli-tools/4161

jjttjj09:04:15

This worked great thanks!