DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

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

 3 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here

Hello .

I am new to DNN and setting up the dnn on local machine to install few modules and create users etc ... 

I have done with fresh installation and just was idel checking the code and came back to dnn website configured and had to relogin . Next again after 10-15 mins i though will have to login and now i see this below error . 

DNN Error


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

Return to Site

I tried checking for solutions to this and found many places better to reinstall ... So i did that and now this is happening to me every time .. Initial time or few days it works fine and later tada its back to same error ... I cant resetup entire thing again and again . 

Let me know if i have to change something ?  in DB or IIS etc ? Because i dont want to reinstall and end up circleing on same.

 

Regards

Avinash

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
Look at your database's PortalAlias table. Next, look at your bindings for the IIS webste. The entry in PortalAlias must match the binding in IIS.

As you say that this is a local machine, I'd recommend that you do the initial install using nvQuickSite. That will get the PortalAlias and the IIS binding set up correctly. You can then compare that to your configuration.


Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Mostly those are hosting environement issues.
I would first check "Portals\_Default\Logs\2020.11.05.log.resources for errors

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
All tips here are good ones. Joe's suggestion about the connection string is the most common cause I see for that. I have a handy SQL script I use when restoring sites that I haven't previously restored in one of my environments. This is how I save time and prevent common issues like this one.

[code] /* Prepares a backed up client site for running locally. */ DECLARE @PortalID INT = 0; -- the PortalID for the above domain name (IMPORTANT for DNN instances that have multiple sites hosted) DECLARE @PortalAlias NVARCHAR(255) = N''; -- new domain name DECLARE @IsForLocalDev BIT = 1; -- 1 for installing locally, 0 for production-to-production, cloning, etc. BEGIN TRAN UPDATE [dbo].[PortalAlias] SET [IsPrimary] = 0 WHERE [PortalID] = @PortalID; IF NOT EXISTS(SELECT 1 FROM [dbo].[PortalAlias] WHERE [PortalID] = @PortalID AND [HttpAlias] = @PortalAlias) BEGIN INSERT INTO [dbo].[PortalAlias] ([PortalID],[HTTPAlias],[CreatedByUserID],[CreatedOnDate],[LastModifiedByUserID],[LastModifiedOnDate],[BrowserType],[IsPrimary]) VALUES (@PortalID,@PortalAlias,-1,GETDATE(),-1,GETDATE(),N'Normal',1); END ELSE BEGIN UPDATE [dbo].[PortalAlias] SET [IsPrimary] = 1 WHERE [PortalID] = @PortalID AND [HTTPAlias] = @PortalAlias; END UPDATE [dbo].[PortalSettings] SET [SettingValue] = @PortalAlias, [LastModifiedByUserID] = -1, [LastModifiedOnDate] = GETDATE() WHERE [PortalID] = @PortalID AND [SettingName] = N'DefaultPortalAlias'; IF NOT EXISTS (SELECT 1 FROM [dbo].[HostSettings] WHERE [SettingValue] = N'localhost') AND @IsForLocalDev = 1 BEGIN UPDATE [dbo].[HostSettings] SET [SettingValue] = 0, [LastModifiedByUserID] = -1, [LastModifiedOnDate] = GETDATE() WHERE [SettingName] = N'SMTPAuthentication'; UPDATE [dbo].[HostSettings] SET [SettingValue] = N'localhost', [LastModifiedByUserID] = -1, [LastModifiedOnDate] = GETDATE() WHERE [SettingName] = N'SMTPServer'; UPDATE [dbo].[HostSettings] SET [SettingValue] = N'N', [LastModifiedByUserID] = -1, [LastModifiedOnDate] = GETDATE() WHERE [SettingName] = N'SMTPEnableSSL'; END UPDATE [dbo].[Schedule] SET [Servers] = NULL WHERE NOT [Servers] IS NULL; COMMIT TRAN SELECT pa.* FROM [dbo].[PortalAlias] pa WHERE pa.[PortalID] = @PortalID ORDER BY pa.[CreatedOnDate]; SELECT ps.* FROM [dbo].[PortalSettings] ps WHERE [PortalID] = @PortalID AND [SettingName] = N'DefaultPortalAlias'; SELECT hs.* FROM [dbo].[HostSettings] hs WHERE hs.[SettingName] LIKE N'%SMTP%' ORDER BY hs.[SettingName]; SELECT s.* FROM [dbo].[Schedule] s WHERE NOT s.[Servers] IS NULL; /* END OF SCRIPT */ [/code]

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved