<div dir="ltr"><div>Hi Tahir<br></div><div><br></div><div>The way I understand your command, it looks like you can pass the proxy string in the command arguments at Java level, is the command as-run in CI actually doing that?</div><div><br></div><div>If it's in environment variables, 1/ is that variable exported, and 2/ Does Java/your app actually expressly respect that environment variable?</div><div><br></div><div>http_proxy is just a variable as far as I know - it should be up to applications to know/care whether they implement its use at all.<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br><br>===<br>Tai Kedzierski<br></div><div><br></div>EdLUG Maintainer: <a href="https://edlug.gitlab.io/" target="_blank">https://edlug.gitlab.io/</a></div><div><br></div><div>Edinburgh Language Meetup Organiser</div><div><a href="https://www.meetup.com/Edinburgh-Language-Exchange-Meetup-Group/" target="_blank">https://www.meetup.com/Edinburgh-Language-Exchange-Meetup-Group/</a><br></div><div><div dir="ltr"><br></div><div dir="ltr"><font size="1"><i>Open Source Free Software is a matter of liberty, not price.</i><br>
<a href="https://www.fsf.org/about/what-is-free-software" target="_blank">https://www.fsf.org/about/what-is-free-software</a><br></font><font size="2"><br></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 7 Dec 2020 at 18:35, Tahir Hafiz <<a href="mailto:tahir.hafiz@gmail.com">tahir.hafiz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear All,<br>
<br>
I am trying to run up a java application on a Centos 7 CIS Hardened<br>
image. The application when using a gitlab-ci pipeline (gitlab ci,<br>
ansible, aws), does not seem to take up the https_proxy being passed<br>
to it. systemctl status shows the application bouncing up and down. I<br>
have tried switching off SELinux.<br>
<br>
If I run the application manually on the ec2 instance by the user<br>
www-data which owns the application directory:<br>
java -Dhttps.proxyHost=internal-outbound-nat-xyxzamazonaws<br>
-Dhttps.proxyPort=3128 -jar /opt/*.jar<br>
<br>
Then the application is able to start successfully.<br>
<br>
But it won't start up successfully and times out on trying to reach<br>
the proxy when trying it from the pipeline because I think java is<br>
unable to take up the proxy settings.<br>
<br>
Any clues as to what might be happening?  What log files can I look at?<br>
Can systemd, journald help me here figure out what is happening? The<br>
application log for the app appears empty.<br>
<br>
Cheers,<br>
Tahir<br>
<br>
-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a></blockquote></div>