question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 errors are creating 503 errors

See original GitHub issue

Description of bug

When navigating to a page that does not exist you get a 503 DNN error for a 404 error page load along with 2 errors in Admin log related to the site/page.

Steps to reproduce

List the steps to reproduce the behavior:

  1. Open your browser to a page that does not exist on your DNN website.
  2. See Current Result

Current result

DNN Error : No sites currently exist for this installation. - 503 Service Unavailable

Expected result

404 error page that uses the same site skin.

Screenshots

If applicable, provide screenshots to help explain your problem. image

image

Error log

A simple Page 404 Admin Log error for page is shown.

image

And this error follows after:

` Page Load Exception

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke Message:Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

StackTrace:

InnerMessage:Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

InnerStackTrace:

at System.Web.UI.Page.get_Session() at DotNetNuke.Framework.CachePageStatePersister.Save() at System.Web.UI.Page.SaveAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)`

Additional context

I do not like seeing it say “DNN Error” i would rather it say Application Error. Maybe just sorry you found a page that does not exist or something that covers a lot of issues. The DNN error is being logged, no real need for a visitor to see DNN. Or this could be set to the website Portal Name Website Error. Something more generic or related to the website that has the issue.

Affected version

  • 10.0.0 alpha build
  • [x ] 9.4.2 alpha build
  • 9.4.1 latest supported release

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
thabaumcommented, Jun 27, 2020

we have a winner thank you @david-poindexter for making this clear. This is the issue I have been having. I don’t think it matters which theme you use, just using a custom 404 page.

I get a lot of requests for example bots hitting WP admin and other common folders people have in sites such as “backup” and they plague my error logs on some sites.

1reaction
david-poindextercommented, Jun 16, 2020

@mitchelsellers not in my case.

I do have some additional information to provide:

  • Setting the 404 page to “None Specified” does in fact allow IIS to render a standard 404.
  • Changing the 404 page back to a simple page (only one module with <p>404 - Not Found</p> in the content, and setting that page to use the Xcillion 404 skin/container results in the 503 page being displayed by DNN.
  • Setting the 500 page setting in Site Settings to the same page does not resolve the issue.
Read more comments on GitHub >

github_iconTop Results From Across the Web

You know about 404 error codes, but what the heck is a 503?
One of the most common errors you'll see, it means the page cannot be found. Nowadays, some sites will design its error code...
Read more >
Why do 404 and 503 errors occur?
The server understood the request but is refusing to fulfill it. This is typical because the requested resource no longer exists or has...
Read more >
What Are Errors 400, 403, 404, 500, 502, 503 and How to ...
Server not found errors are usually caused by a misconfigured or malfunctioning DNS server. The DNS server is responsible for translating domain ...
Read more >
When is a http 404 useful and when should i consider 503 ...
You are indeed correct with your preference: 503 is meant to indicate a temporary outage in the service, possibly resolved at a later...
Read more >
How to Fix the HTTP Error 503 Service Unavailable (6 Steps)
The HTTP Error 503 status code indicates that the server is currently unable to handle the request. Find out more about the causes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found