Open jstaerk opened 1 year ago
And the reason for the inability to send e-mail seems to be that /usr/src/quant-be/qux-java/matc.conf has "debug": true
and in that case src/main/java/com/qux/MATC.java returns a DebugMailClient instead of a proper MailClient. And there does not seem to be a env variable to override that.
@bmcgonag maybe you want to add an according sed in https://github.com/bmcgonag/quant-ux-docker/blob/main/Backend/Dockerfile ?
Let me work with Klaus to see what the best way is to solve this. I am just taking the project and building a docker around it. I'm happy to try and add the email functionality into it though. Or, if you want to add your changes, and make a pull request, I'm happy to test and approve as well.
I configured my email server in the docker-compose.yml yet I don't get any password reset mails. I checked the log of my mailserver which does not even register a connection attempt.
I don't see anything conclusive when I
docker logs
, I do get a*ATTENTION* Wrong login for ...
on the wrong login but nothing on the attempt to send a pw reset.https://github.com/KlausSchaefers/qux-java/blob/master/src/main/java/log4j2.xml indicates there might be logs/app.log folder but when I
docker exec -it
I dont find anything loggy anywhere.And of course
ps -ef
saysjava -jar qux-java/release/qux-server.jar -Xmx2g -conf qux-java/matc.conf -instances 1
got pid 1... which I cant kill (see also https://devops.stackexchange.com/questions/5613/how-to-explicitly-kill-the-process-with-pid-1-from-inside-a-container).I assume the backend is a spring boot application, so I would like to add sth like
--logging.file.name=quantux.log
(source: https://stackoverflow.com/questions/70558476/how-to-set-logging-file-name-through-command-line-arguments-in-spring-boot).However, for that I stop my containers and
docker image rm
my images, clone your repo, change your dockerfile,docker build -t bmcgonag/qux-be .
anddocker-compose up -d
but unfortunately there is still no logfile to be found.Anything that comes to the mind of anybody how I can find out what's wrong with my email settings?
PS: thanks Brian for your youtube videos, they are great.