IMPORTANT, please fill the questions
We assume you are using Bitnami to deploy your application.
Which version of the application are you using?:
2.249.1-0
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX):
Azure Template "jenkins-master-slave-multitier-image"
Have you installed any plugin or modified any configuration file?:
No
Describe here your question/suggestion/issue (expected and actual results):
Trying to set jenkins master UI with SSL - HTTPS port 443 with no success using bncert-tool.
Using this article - https://docs.bitnami.com/azure/how-to/generate-install-lets-encrypt-ssl/
Getting several exceptions during bncert-tool process.
Few remarks:
After the first try, i noticed that the script /opt/bitnami/ctlscript.sh is missing from the image,
While it was mentioned in the above article.
I copied the script manually from github to the VM , but again the bncert-tool failed.
-
Steps to reproduce the issue (if relevant):
- Deploy https://bitnami.com/stack/jenkins/multitier stack on Azure.
- Login to Jenkins master via ssh, and execute the tool:
sudo /opt/bitnami/bncert-tool
- Provide a valid and reachable Domain name and email address.
** script output log **
file name "tmp/bncert-202010200958.log" :
* sensitive information
Log started 10/20/2020 at 09:58:21
Preferred installation mode : text
Trying to init installer in mode text
Mode text successfully initialized
Executing /opt/bitnami/apache/bin/apachectl configtest
Script exit code: 0
Script output:
Script stderr:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.0.0.5. Set the 'ServerName' directive globally to suppress this message
Syntax OK
Executing ./autoupdate-linux-x64.run --mode unattended
Script exit code: 1
Script output:
Script stderr:
child process exited abnormally
Error running ./autoupdate-linux-x64.run --mode unattended: child process exited
abnormally
abnormally
nkinssupportrsrw64jzar32c-vm0.centralus.cloudapp.azure.com.crt
Script exit code: 0
Script output:
Certificate:
Data:
Validating domain '
Determining machine public IP address
[09:58:38] Detected public IP address: ''
com
Script exit code: 0
Script stderr:
Validating domain ''
com
Script exit code: 0
Script output:
Script stderr:
Stopping web server
Executing /opt/bitnami/ctlscript.sh stop apache > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr:
Executing /opt/bitnami/letsencrypt/lego --version
Script exit code: 0
Script output:
lego version 4.0.1 linux/amd64
Script stderr:
Configuring Let's Encrypt certificates
.cloudapp.azure.com renew
Script exit code: 0
Script output:
e renewal is 30: no renewal.
Script stderr:
Executing chown -R bitnami /opt/bitnami/letsencrypt
Script exit code: 0
Script output:
Script stderr:
Executing chown -R bitnami /opt/bitnami/apps/letsencrypt
Script exit code: 0
Script output:
Script stderr:
664
Script exit code: 0
Script output:
Script stderr:
775
Script exit code: 0
Script output:
Script stderr:
Executing crontab -u bitnami -l
Script exit code: 0
Script output:
/httpd.conf -k graceful # bncert-autorenew
Script stderr:
Executing crontab -u bitnami /tmp/cron20201020095902
Script exit code: 0
Script output:
Script stderr:
Executing crontab -u bitnami -l
Script exit code: 0
Script output:
Script stderr:
Executing crontab -u bitnami /tmp/cron20201020095903
Script exit code: 0
Script output:
Script stderr:
Configuring server name
evious runs
Enabling HTTP to HTTPS redirection
[09:59:06] Enabling HTTPS redirection
Testing web server configuration
Executing /opt/bitnami/apache/bin/apachectl configtest
Script exit code: 0
Script output:
Script stderr:
message
Syntax OK
Starting web server
Executing /opt/bitnami/ctlscript.sh stop apache > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr:
Executing /opt/bitnami/ctlscript.sh start apache > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr:
Executing /opt/bitnami/ctlscript.sh status apache
Script exit code: 0
Script output:
1
Script stderr:
Checking web server started
Restoring web server configuration
/opt/bitnami/apache/conf/httpd.conf.back.202010200958
nami/apache/conf/httpd.conf.back.202010200958
Script exit code: 0
Script output:
Script stderr:
.conf from /opt/bitnami/apache/conf/bitnami/bitnami.conf.back.202010200958
f /opt/bitnami/apache/conf/bitnami/bitnami.conf.back.202010200958
Script exit code: 1
Script output:
38386 +0000
09 21:37:24.000000000 +0000
@@ -5,22 +5,6 @@
<VirtualHost default:80>
DocumentRoot "/opt/bitnami/apache/htdocs"
- # BEGIN: Configuration for letsencrypt
- Include "/opt/bitnami/apps/letsencrypt/conf/httpd-prefix.conf"
- # END: Configuration for letsencrypt
- # BEGIN: Support domain renewal when using mod_proxy without Location
-
- ProxyPass /.well-known !
-
- # END: Support domain renewal when using mod_proxy without Location
- # BEGIN: Enable HTTP to HTTPS redirection
- RewriteEngine On
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_HOST} !^localhost
Options Indexes FollowSymLinks
AllowOverride All
@@ -30,13 +14,6 @@
# Error Documents
ErrorDocument 503 /503.html
- # BEGIN: Support domain renewal when using mod_proxy within Location
-
-
- ProxyPass !
-
-
- # END: Support domain renewal when using mod_proxy within Location
Include "/opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf"
Script stderr:
:2020-10-20T10:30:17.862954Z INFO ExtHandler ExtHandler [HEARTBEAT] Agent WALinux Include "/opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf"
Script stderr:
child process exited abnormally
mally
58
.conf /opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf.back.202010200958
Script exit code: 1
Script output:
38408 +0000
09 21:37:24.000000000 +0000
@@ -15,17 +15,9 @@
<VirtualHost default:443>
DocumentRoot "/opt/bitnami/apache/htdocs"
SSLEngine on
centralus.cloudapp.azure.com.crt"
m0.centralus.cloudapp.azure.com.key"
+ SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt"
+ SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key"
- # BEGIN: Configuration for letsencrypt
- Include "/opt/bitnami/apps/letsencrypt/conf/httpd-prefix.conf"
- # END: Configuration for letsencrypt
- # BEGIN: Support domain renewal when using mod_proxy without Location
-
- ProxyPass /.well-known !
-
- # END: Support domain renewal when using mod_proxy without Location
Options Indexes FollowSymLinks
AllowOverride All
@@ -35,11 +27,4 @@
# Error Documents
ErrorDocument 503 /503.html
- # BEGIN: Support domain renewal when using mod_proxy within Location
-
-
- ProxyPass !
-
-
- # END: Support domain renewal when using mod_proxy within Location
Script stderr:
child process exited abnormally
ed abnormally
Stopping web server
Executing /opt/bitnami/ctlscript.sh stop > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr:
Starting web server
Executing /opt/bitnami/ctlscript.sh stop > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr:
Executing /opt/bitnami/ctlscript.sh start > /dev/null 2> /dev/null
Script exit code: 0
Script output:
Script stderr: