Uportal Error 404 on clean install

111 views
Skip to first unread message

fayz

unread,
Jan 23, 2021, 8:20:30 AM1/23/21
to uPortal Community
Hi,

I reinstalled Uportal using https://github.com/Jasig/uPortal-start and everything was build successfully but it showing Error 404 on the domain.
Capsddsature.PNG

fayz

unread,
Jan 23, 2021, 11:58:15 AM1/23/21
to uPortal Community, fayz
I've killed the tomcat process and rebuild with ./gradlew portalInit and build was success but on the domain its refusing connection now and domain isn't secure anymore moreover the IP:PORT is showing tomcat welcome page.

Any help?

Christian Murphy

unread,
Jan 23, 2021, 12:14:41 PM1/23/21
to uPortal Community
Sorry you're running into a spot of trouble.
A 404 by itself isn't enough information for folks to offer suggestions on what could be happening.

Could you expand with more information around:
  1. What version of uPortal and uPortal start are you using?
  2. What operating system are you using?
  3. What Java version are you using?
  4. It sounds like you are using a custom domain. How did you configure the domain?
  5. What have you tried so far to resolve the issue?
  6. Does vanilla uPortal start (uPortal start without any customizations) display the page as expected?
If you are looking for a quick start guide https://www.unicon.net/insights/articles/uportal-50-running introduces uPortal start and has quick instructions to get up and running.

Best Regards,

Christian Murphy

--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/uportal-user/ce6e885f-14bb-42fc-a390-daa74678d882n%40apereo.org.

Christian Murphy

unread,
Jan 23, 2021, 12:22:16 PM1/23/21
to uPortal Community
Similar to the 404, "refusing to connect" isn't enough information to offer a meaningful suggestion.
The same information listed before would be helpful for offering suggestions.
In addition, it would likely help to check the logs, located in uPortal-start under the .gradle/tomcat/logs folder.
Depending on the source of the issue there is likely to be an error message in portal/portal.log, catina.log, or catelina.out that points to the root cause.

Best Regards,

Christian Murphy


--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.

fayz

unread,
Jan 23, 2021, 12:42:05 PM1/23/21
to uPortal Community, christian...@gmail.com
Hi Christian,
Thankyou for fast support.

A detailed scenario for my trouble :).

I reinstalled Uportal using https://github.com/Jasig/uPortal-start
The previous tomcat process was running so I killed the process and rebuild using ./gradlew portalInit -resolved 
Now, Whenever i reinstall and rebuild the Uportal its building successfully but can access the Uportal on domain. 
I'll share the logs in a moment.


  1. Uportal 5
  2. Openjdk version "1.8.0_275"
  3. CentOS  -7
  4. Yes, Custom Domain, No SSL right now
  5. Tried to clean rebuild uportal.
  6.  No, the domain is refusing to connect but the IP:PORT is showing the tomcat page
Yes, I followed this also.

fayz

unread,
Jan 23, 2021, 12:57:29 PM1/23/21
to uPortal Community, fayz, christian...@gmail.com
Can I share server details privately? is there any way.?

fayz

unread,
Jan 23, 2021, 1:24:48 PM1/23/21
to uPortal Community, fayz, christian...@gmail.com
Here's Catalinia.out 

fayz

unread,
Jan 23, 2021, 7:47:41 PM1/23/21
to uPortal Community, fayz, christian...@gmail.com
Any Help?

Christian Murphy

unread,
Jan 24, 2021, 11:23:13 AM1/24/21
to uPortal Community

Here's Catalinia.out

Nothing looks like an error in catalina.log, though it does look like the log is truncated.
Again, you're looking for errors and/or exceptions, are you seeing some in any of the log files mentioned before, particularly anything around domain or host configuration?

Any Help?

Folks are helping.
A friendly reminder that this is an open source community first and foremost, it is a place for the community to collaborate, as time permits.
If you are looking for support with a service level agreement or are interested in dedicated training, consider reaching out to one of Apereo's commercial affiliates.

Best Regards,

Christian Murphy

fayz

unread,
Jan 24, 2021, 1:52:46 PM1/24/21
to uPortal Community, christian...@gmail.com
Thankyou for the help!

I think I found the problem.
uPortal Installation have no issues as I can access from IP:PORT/uPortal/ but not from my.domain.com.
Can you provide any domain configuration docs before installing uPortal. so it is accessible from my.domain.com?

Regards,
Faizan

Christian Murphy

unread,
Jan 24, 2021, 2:13:44 PM1/24/21
to uPortal Community
An approach many adopters take is fronting uPortal/Tomcat with another server.
And most DNS and certificate providers have a guide on connecting domains and certificates they provide with Apache HTTPD.

Best Regards,

Christian Murphy

fayz

unread,
Jan 24, 2021, 7:13:12 PM1/24/21
to uPortal Community, christian...@gmail.com
I tried to edit server.xml in tomcat and added the following and restarted tomcat

<Host name="my.domain.com"  appBase="webapps"
           unpackWARs="true" autoDeploy="true"
           startStopThreads="0">

but still I can't access uportal on my.domain.com but it is accessible at IP/uPortal.

Christian Murphy

unread,
Jan 24, 2021, 7:21:01 PM1/24/21
to uPortal Community
Which server.xml?
etc/tomcat/server.xml? (this path is relative to uportal-start, and requires a rebuild to copy to file into the final tomcat server)
.gradle/tomcat/conf/server.xml ? (also relative to uportal-start path, this one should work on restarting tomcat, but could be overridden in a clean build, replaced by the contents of etc/tomcat/server.xml)
or a different server.xml?

Best Regards,

Christian Murphy

fayz

unread,
Jan 24, 2021, 7:31:34 PM1/24/21
to uPortal Community, fayz, christian...@gmail.com

fayz

unread,
Jan 24, 2021, 7:32:40 PM1/24/21
to uPortal Community, fayz, christian...@gmail.com
Changed this one .gradle/tomcat/conf/server.xml 

fayz

unread,
Jan 26, 2021, 1:13:00 PM1/26/21
to uPortal Community, fayz, christian...@gmail.com
So, The above problem is now fixed but I'm having SSL issues.  I can access from http but can't access from https://my.domain.com
I installed LetsEncrypt certificates and attached in  .gradle/tomcat/conf/server.xml

  <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true">
        <SSLHostConfig>
           <Certificate certificateKeyFile="privkey.pem"
                         certificateFile="cert.pem"
                         certificateChainFile="chain.pem"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>

The certificates are in same directory.
I restarted tomcat also.

Faizan Asad

unread,
Jan 28, 2021, 12:37:56 AM1/28/21
to uPortal Community
Hi Christian,

I fronted tomcat with apache httpd with SSL installed and followed the instructions mentioned here..
but i am getting error 403 while accessing the uportal.

I configured using 

Option #2 mod_proxy/mod_proxy_ajp

and added the proxy ports also.

Christian Murphy

unread,
Feb 2, 2021, 10:20:04 AM2/2/21
to uPortal Community
 403 while accessing the uportal

Which server is returning 403? Tomcat or HTTPD?
More generally, it sounds like the issue resides in Apache HTTPD configuration or Apache Tomcat configuration rather than in uPortal itself.
There are some handy guides on HTTPS with tomcat https://howtodoinjava.com/tomcat/how-to-configure-tomcat-with-ssl-or-https/ and HTTPD configuration https://www.scriptarticle.com/apache-server-configuration-file/ which may point in the right direction.
There are additionally support lists that specialize in HTTPD https://httpd.apache.org/lists.html#http-users and Tomcat https://tomcat.apache.org/lists.html#tomcat-users which may also have insights.

Best Regards,

Christian Murphy

fayz

unread,
Feb 2, 2021, 11:33:17 PM2/2/21
to uPortal Community, christian...@gmail.com
I have Sakai installed on sakai.domain.com and uPortal on portal.domain.com. CAS is configured on both
on uPortal i've fronted tomcat with apache httpd with mod_proxy 

here's SSL.conf configurations.
SSLProxyEngine on
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

I can login to Sakai through uPortal's bundled CAS but I can't login to uPortal as it shows the following screen after signing in with admin credentials. I changed localhost:8080 in global.properties to portal.domain.com as sign in button was redirecting to localhost:8080. 

I think it's uPortal issue as I can login to Sakai using the uPortal's bundled CAS but same gateway isn't working for uPortal.

we.PNG

Julien Gribonvald

unread,
Feb 3, 2021, 3:43:04 AM2/3/21
to uporta...@apereo.org

Hi,

You have a configuration problem, it's not a bug a lot of peoples are deploying uPortal without errors. But you are using proxy_ajp and after proxy http, etc... so you should stay on one proxy system and try to make it working as all proxy system are working.

I would recommand that you stay on proxy http on port 8080 on your tomcat and use the tomcat connector on port 8080. With a such conf the certificate is only needed on the frontal part and not on tomcat, but be sure to move this conf:  https://github.com/Jasig/uPortal-start/blob/master/etc/tomcat/conf/server.xml#L69 to this one (for proxying with https): https://github.com/GIP-RECIA/uPortal-start/blob/55e6ac87733e9281199e75e3b61d1b176dff5fbf/etc/tomcat/conf/server.xml#L69

After this conf, please provide the portal.log file on the part related to your error.

Regards.

Julien

Reply all
Reply to author
Forward
0 new messages