Jenkins installation on ubuntu OS

Use following command for jenkins installtion sudo apt updatesudo apt install openjdk-8-jdkapt install openjdk-8-jdk -ywget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'apt-get update-sudo apt-get install jenkins -ysystemctl status jenkinssudo ufw allow 8080give sudo permisssion to jenkins user < /br> vi /etc/sudoers and add below entry jenkins ALL=(ALL) NOPASSWD: ALL …

Solved Error executing DDL “alter table events drop foreign key

While running spring boot application I got following error 2021-10-22 13:38:59.732  WARN 700 --- [ restartedMain] o.h.t.s.i.ExceptionHandlerLoggedImpl  : GenerationTarget encountered exception accepting command : Error executing DDL "alter table users_roles add constraint FKt4v0rrweyk393bdgt107vdx0x foreign key (role_id) references role (id)" via JDBC Statement org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table users_roles add constraint FKt4v0rrweyk393bdgt107vdx0x foreign …

Spring and Gradle – adding to the project WebJars Bootstrap

If you wanted to add bootstrap UI CSS and JS files in thymeleaf then you can use following code: <link th:href="@{/webjars/bootstrap/5.0.0/css/bootstrap.min.css}" rel="stylesheet" media="screen" /><script th:src="@{/webjars/bootstrap/5.0.0/js/bootstrap.min.js}"></script> If those styles are still not loading then refresh project and if you are using spring security then you need to add following code in your extended class of WebSecurityConfigurerAdapter …

auto renew letsencrypt ssl apache on linux

For auto renew SSL certificate I added following code in crontab. 0 0 */10 * * certbot renew >> /logs/certbot-cron.log 2>&1 Log of certbot renew command. [root@vps147238 ep]# certbot renew Saving debug log to /var/log/letsencrypt/letsencrypt.log Processing /etc/letsencrypt/renewal/purabtech.com.conf - - - - - - - - - - - - - - - - - - …

how to get free ssl certificate from letsencrypt

For getting a free SSL certificate you need SSH access to your server where you installed your application code. Then follow commands and articles which will guide you to install the necessary application. https://certbot.eff.org/lets-encrypt/centosrhel7-apache After installing certbot to your machine. you need to run following command to generate SSL certificate. certbot --apache certonly --cert-name purabtech.com …

Open 443 and 80 port on linux VM

If your apache or Nginx or tomcat server is configured properly still your site is not opening then check firewall and port is opened on the internet. Check the status of your firewall. use this command firewall-cmd --state running Check which zones are active [root@vps147238 purab]# firewall-cmd --get-active-zonespublicinterfaces: eth0 Open port 80 and port 443 …

Solved: letsencrypt certbot KeyError: ‘Directory field not found’

While running certbot command I got following error: [root@vps147238 letsencrypt]# certbot --apache certonly --cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheEnter email address (used for urgent renewal and security notices) (Enter 'c' tocancel): purab@test.inStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgAn unexpected error occurred:KeyError: 'Directory field not found'Please see the logfiles in …

CentOS Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org An unexpected error occurred:

While running certonly command I got following error:[root@vps147238 letsencrypt]# certbot --apache certonly --cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheStarting new HTTPS connection (1): acme-v01.api.letsencrypt.orgAn unexpected error occurred:ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))Please see the logfiles in /var/log/letsencrypt for more details. I solved this issue by doing …