This forum provides solutions for aws developers for their issues.It provides solutions for aws elastic ip, ec2 instance, public ip,route53 pricing, load balancers in aws,Orchestration, ebs,, lambda, installing mongodb on ubuntu etc.

Saturday 21 April 2018

sudo -u keycloak ./jboss-cli.sh 'embed-server,/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=proxy-address-forwarding,value=true)'
Cannot start embedded server: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE": java.lang.reflect.InvocationTargetException: /opt/keycloak-3.4.3.Final/standalone/log/server.log (Permission denied)




solution:



https required keycloak

Keycloak admin login page not showing without https .
Disable https in the dashboard, but without logging in, we cannot disable.
So use the below commands
go to bin folder of keycloak.
./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin
./kcadm.sh update realms/realmname -s sslRequired=NONE

Saturday 14 April 2018

https: Address already in use /0.0.0.0:8443

18:02:14,277 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.undertow.listener.https: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.https: Address already in use /0.0.0.0:8443
    at org.wildfly.extension.undertow//org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:179)
    at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
    at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.base/java.lang.Thread.run(Thread.java:844)

PPK to Pem Conversion in Mac

PPK to PEM conversion in MAC
puttygen privatekey.ppk -O private-openssh -o privatekey.pem

Wednesday 11 April 2018

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.995 s
[INFO] Finished at: 2018-04-11T12:51:26+00:00
[INFO] Final Memory: 210M/483M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project keycloak-common: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :keycloak-common 
Solution:
sudo apt-get install openjdk-8-jdk

Sunday 1 April 2018

php 5.5.9 Uncaught exception 'PusherException'

PHP Fatal error:  Uncaught exception 'PusherException' with message 'There is missing dependant extensions - please ensure both cURL and JSON modules are installed'

Wednesday 28 February 2018

Install Apache Tomcat latest stable version on Ubuntu

Step1:
Update your apt-get package 
apt-get update
Step2:
Install Java Developer kit
sudo apt-get install default-jdk
Step3:
Install Java Developer kit
apt-get install tomcat8
Step3:
Install Java Developer kit
apt-get install tomcat8
step4:
Install Tomcat8 admin tools and documents
apt-get install tomcat8-docs tomcat8-examples tomcat8-admin

step5:
Run tomcat as service
systemctl start tomcat8
 To stop and restart service
systemctl stop tomcat8
systemctl restart tomcat8
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat8/tomcat-users.xml.
 Step6:

sudo vi /etc/tomcat8/tomcat-users.xml

<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="admin123" roles="manager-gui,admin-gui"/>

Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts