Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pega-pe - error - ubuntu - aws instance #8

Closed
msingh1304 opened this issue Jun 12, 2023 · 25 comments
Closed

pega-pe - error - ubuntu - aws instance #8

msingh1304 opened this issue Jun 12, 2023 · 25 comments

Comments

@msingh1304
Copy link

@sunilsankar - I am getting this error message, getting this in the logs. It is not working for me.

"2023-06-12 06:06:24,127 [ PegaRULES-Batch-10] [ STANDARD] [ ] [ PegaRULES:8] (PortNumber.PESetup_Work.Action) INFO ACR003NP012QXCMANIZ4RDISHAN8D5PA - PETomcatHTTPPort = null."

I also tried changing the port to 80 and 8443 by going server.xml file but it didn't work. Could you please help?

@sunilsankar
Copy link
Owner

Is your application working since the message is only info

@msingh1304
Copy link
Author

Is your application working since the message is only info

It is not working when I am trying to access the url.

@sunilsankar
Copy link
Owner

Did you follow all the steps according to the document and also the tomcat version

@msingh1304
Copy link
Author

Did you follow all the steps according to the document and also the tomcat version

Yes, I followed all the steps that was mentioned in the git hub repo.

@sunilsankar
Copy link
Owner

Pega personal edition which one did you use

@msingh1304
Copy link
Author

Pega personal edition which one did you use

I used the same one mentioned here that is 8.7

@sunilsankar
Copy link
Owner

Pls share your os version and also the complete zip name of pega personal edition

@msingh1304
Copy link
Author

Pls share your os version and also the complete zip name of pega personal edition

I used this link to download personal edition: https://harshatrainings.com/downloads/

"Click here to Download Pega Software 8.7 V"

Here is the OS version details

PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

And here is the tomcat version : apache-tomcat-8.5.14

@sunilsankar
Copy link
Owner

Can you also paste the output of this command

uname -m

@msingh1304
Copy link
Author

Can you also paste the output of this command

uname -m

x86_64

@msingh1304
Copy link
Author

@sunilsankar

Did you find anything?

@sunilsankar
Copy link
Owner

I will test and let you know since I used debian I will test it on ubuntu

@msingh1304
Copy link
Author

Thanks for confirming!

@sunilsankar
Copy link
Owner

Can you pls paste the output of

ps -ef|grep java
netstat -aunltp|grep java

@msingh1304
Copy link
Author

msingh1304 commented Jun 15, 2023 via email

@msingh1304
Copy link
Author

ps -ef|grep java

root 2976 1 9 Jun14 ? 02:04:07 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-8.5.14/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms4096m -Xmx4096m -DNodeType=Stream,BackgroundProcessing,WebUser,Search -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /opt/apache-tomcat-8.5.14/bin/bootstrap.jar:/opt/apache-tomcat-8.5.14/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-8.5.14 -Dcatalina.home=/opt/apache-tomcat-8.5.14 -Djava.io.tmpdir=/opt/apache-tomcat-8.5.14/temp org.apache.catalina.startup.Bootstrap start
root 73225 1 99 05:32 pts/1 00:01:16 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-8.5.14/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms4096m -Xmx4096m -DNodeType=Stream,BackgroundProcessing,WebUser,Search -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /opt/apache-tomcat-8.5.14/bin/bootstrap.jar:/opt/apache-tomcat-8.5.14/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-8.5.14 -Dcatalina.home=/opt/apache-tomcat-8.5.14 -Djava.io.tmpdir=/opt/apache-tomcat-8.5.14/temp org.apache.catalina.startup.Bootstrap start
root 73369 73006 0 05:33 pts/1 00:00:00 grep --color=auto java

@msingh1304
Copy link
Author

netstat -aunltp|grep java
tcp6 0 0 :::8080 :::* LISTEN 73225/java
tcp6 0 0 162.81.14.336:7003 :::* LISTEN 73225/java
tcp6 0 0 :::9009 :::* LISTEN 73939/java
tcp6 0 0 127.0.0.1:44904 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:44854 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:53598 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:44898 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:33444 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:53650 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:53612 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:53662 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:45122 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:44878 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:53582 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:45112 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:53628 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:33438 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:53588 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:53630 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:53568 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:44872 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:53626 127.0.0.1:5432 ESTABLISHED 73225/java
tcp6 0 0 127.0.0.1:44868 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:44840 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:44842 127.0.0.1:5432 ESTABLISHED 73939/java
tcp6 0 0 127.0.0.1:44886 127.0.0.1:5432 ESTABLISHED 73939/java

@msingh1304
Copy link
Author

@sunilsankar , I pasted the requested output

@sunilsankar
Copy link
Owner

This command also

wget http://localhost:8080/prweb/

@msingh1304
Copy link
Author

wget http://localhost:8080/prweb/
--2023-06-15 05:45:47-- http://localhost:8080/prweb/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 307
Location: http://localhost:8080/prweb/app/default/ [following]
--2023-06-15 05:45:47-- http://localhost:8080/prweb/app/default/
Reusing existing connection to localhost:8080.
HTTP request sent, awaiting response... 303
Location: http://localhost:8080/prweb/app/default/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD [following]
Warning: wildcards not supported in HTTP.
--2023-06-15 05:45:47-- http://localhost:8080/prweb/app/default/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD
Reusing existing connection to localhost:8080.
HTTP request sent, awaiting response... 200
Length: 23902 (23K) [text/html]
Saving to: ‘index.html’

index.html 100%[==================================================>] 23.34K --.-KB/s in 0s

@msingh1304
Copy link
Author

@sunilsankar

FYI: I tried replacing the localhost with my internal ip, it doesn't work, can we associate static public ip to this set up that listens on port 80, because port 8080 is sometimes blocked at many places.

@sunilsankar
Copy link
Owner

If you are able to download index.html it means pega is working fine. Don't change server.xml file for now .I will give you a script to setup apache so that you can access via 443 .But you will need to wait

@msingh1304
Copy link
Author

msingh1304 commented Jun 15, 2023 via email

@msingh1304
Copy link
Author

@sunilsankar

It is working now on 8080 port but instead of this I would like to run it on 8443 port, I tried changing the port but it didnot work, any idea?

@sunilsankar
Copy link
Owner

sunilsankar commented Jun 15, 2023

@msingh1304 good to hear it is working in 8080 . To make it work in 8443. take this feature branch
https://github.com/sunilsankar/pega-pe/tree/Feature/ssl
And replace the following files under

/opt/apache-tomcat-8.5.14/conf/

with these files in the branch

catalina.properties
server.xml
example.crt
example.key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants