Hi,
I am trying to run my AEM on AWS EC2 instance. I have installed and started the AEM on port 4502, std out logs says that it is running.
RAWProcessor succesfully installed
Attempting to load ESAPI.properties via file I/O.
Attempting to load ESAPI.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: /aem/author/ESAPI.properties
Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties
Not found in 'user.home' (/root) directory: /root/esapi/ESAPI.properties
Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
Attempting to load ESAPI.properties via the classpath.
SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!
Attempting to load validation.properties via file I/O.
Attempting to load validation.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: /aem/author/validation.properties
Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties
Not found in 'user.home' (/root) directory: /root/esapi/validation.properties
Loading validation.properties via file I/O failed.
Attempting to load validation.properties via the classpath.
SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!
13.05.2021 02:13:32.943 *INFO * [main] Startup completed
I had started the AEM from sudo user as there was some permission issue with the ec2-user (due to file permissions),hope that is not an issue as with sudo user ,it is starting ?
I have added the 4502 port on HTTP - even all traffic ,but AEM portal does not show up and I keep getting
This site can’t be reached
The connection was reset.
Please help me out to solve this issue, Thanks for your help as always.
Views
Replies
Total Likes
Hi @gauravtyagi ,
If your application is not accessible (time out), then it's mostly a security group issue. Just check if you have attached any SG with your EC2 instance that blocks the inbound/outbound traffic. The default SG has all inbound traffic blocked and all outbound traffic is allowed.
Also the Public IPV4 address changes after every restart of EC2 so just check you are using the right public IP while accessing the server.
Also, just to check which AMI you have used to launch EC2?
Hi @gauravtyagi
Please create an user called "aem" and provide the complete folder permission where the AEM application is running and start the service using the "aem" user.
Do not run the application using root user.
Also try to attach an elastic IP from the pool to the EC2 instance and use it as a public IP with 4502 port. Try to see if you are able to access the application in the same instance using localhost:4502 which will ensure the application is running absolutely fine and it;s a permission issue with SG.
Thanks!
Hi Guys, Thanks for your great help.
This issue is now sorted, there was a firewall issue and once that is opened,the application has started loaded on public IP address,
Thanks for your kind help @Asutosh_Jena_, @Ritesh_Mittal have a great day ahead.
Views
Likes
Replies