Upgrading MojoPortal version, Admin login now fails

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/10/2012 10:54:53 AM
Gravatar
Total Posts 17

Upgrading MojoPortal version, Admin login now fails

Hi, Not sure what to do here. I updgraded MojoPortal at my ISP site.  I am able to view the pages on my website, but if I attempt to login with my admin credentials, I get a page not found error.  If I place my mouse over the sign-in button, the url is:

http://www.mydomain/Secure/Login.aspx?returnurl=%2f

as background, my isp is hosting with IIS7 ASP.net 4.  Just before I upgraded, I asked my ISP to create another website for me, it would be mydomain2.org.  I was able to access the new website.  I then decided to update the MojoPortal for mydomain when I ran into the login issue, I noted that the about url was:

http://www.mydomain/Secure/Login.aspx?returnurl=%2fmydomain2.aspx

I asked my ISP about that, telling them they may have gotten something crossed between the two domains.  So they somehow removed the mydomain2.aspx from the URL, and I'm left with the first link above, but it doesn't work.  What should it be? and from where in the IIS setup does it get the URL?

Thanks.

3/10/2012 11:13:24 AM
Gravatar
Total Posts 18439

Re: Upgrading MojoPortal version, Admin login now fails

My best guess is your host is doing some of that domain forwarding or domain masking monkey business (like Godaddy does) to make your second domain work as if it were a root level IIS web site but it really is a virtual directory below a root site and that is not going to work with mojoPortal.

mojoPortal can be installed as a root site or as a virtual directory below a root site but it can't be installed as a virtual directory below a root site and then faked into acting like a root level site by hosting trickery. Possibly they now have both your sites configured this way and that is what is causing the problem. 

Other than that I would need to visit the actual site urls to make any further guesses.

Hope that helps,

Joe

3/10/2012 11:41:52 AM
Gravatar
Total Posts 17

Re: Upgrading MojoPortal version, Admin login now fails

Thanks for the quick reply.  This might be a big problem for me.  I would appreciate it if you could look at the actual sites.

The mojoportal site is: www.engenious.net

the new site that I am adding has a temporary url of:

http://greenlakecrew.org.130.blankserver.com/wp-login.php

I have not moved the domain there yet. It is a wordpress bases site (not my choice).

I would appreciate it if you could render an opinion of what happened.  Thank you.

3/10/2012 11:57:09 AM
Gravatar
Total Posts 18439

Re: Upgrading MojoPortal version, Admin login now fails

Hi,

I just tried to register on your site to see what would happen after logging in. I got an error upon submitting the registration form. Can you get the error details from the mojoPortal log under Administration > System Log

Newest errors are at the bottom please don't post your whole log

Best,

Joe

3/10/2012 5:08:12 PM
Gravatar
Total Posts 17

Re: Upgrading MojoPortal version, Admin login now fails

Joe, Is the MojoPortal Administration > System Logs directory outside of the portal directory?  I don't see it under www root and have asked my host (webhostforasp.net) for it, . . . but they seem to be ignoring that request.

3/10/2012 5:34:53 PM
Gravatar
Total Posts 18439

Re: Upgrading MojoPortal version, Admin login now fails

my bad, wasn't thinking it through, those instructions were how to view the log from the ui, but since you can't login that won't work. But you can download the error log by ftp, the file is /Data/currentlog.config its just a text file, as I mentioned before newest entries at the bottom.

if the log file has no recent entries it would mean a file system permission problem where it can't write to the log file.

Hope that helps,

Joe

3/10/2012 6:07:41 PM
Gravatar
Total Posts 17

Re: Upgrading MojoPortal version, Admin login now fails

I've attached the bottom of the log file.  The first thing I see is the MySql connection errors.  I just checked and my connection string in the user.config file is correct.  When I upgraded, I was very careful to copy the user.config and web.config files from the website to my desktop, then when i replaces all the Mojo files, I copied them back from my desktop.  Could something else have been overwritten to cause the mysql connection errors?

Dont know what to make of the Admin/SystemLog.aspx does not exist error.  I can find it via ftp to the site. The log snippet follows, thanks for taking the time to look at this.

 

2012-03-10 12:49:01,692 ERROR (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:3306    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)    at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)    at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.Driver.Open()    at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()    at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()    at MySql.Data.MySqlClient.MySqlPool.GetConnection()    at MySql.Data.MySqlClient.MySqlConnection.Open()    at MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(String connectionString, String commandText, MySqlParameter[] parms)    at mojoPortal.Data.DBTaskQueue.DeleteCompleted()    at mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted) 2012-03-10 12:49:02,895 ERROR (null) - (null) - (null) - mojoPortal.Web.BannedIPBlockingHttpModule - handled exception:  MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:3306    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)    at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)    at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.Driver.Open()    at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()    at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()    at MySql.Data.MySqlClient.MySqlPool.GetConnection()    at MySql.Data.MySqlClient.MySqlConnection.Open()    at MySql.Data.MySqlClient.MySqlHelper.ExecuteScalar(String connectionString, String commandText, MySqlParameter[] commandParameters)    at mojoPortal.Data.DBBannedIP.IsBanned(String ipAddress)    at mojoPortal.Web.BannedIPBlockingHttpModule.BeginRequest(Object sender, EventArgs e) 2012-03-10 12:49:03,958 ERROR (null) - (null) - (null) - mojoPortal.Web.UrlRewriter - MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:3306    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)    at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)    at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.NativeDriver.Open()    at MySql.Data.MySqlClient.Driver.Open()    at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()    at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()    at MySql.Data.MySqlClient.MySqlPool.GetConnection()    at MySql.Data.MySqlClient.MySqlConnection.Open()    at MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(String connectionString, String commandText, MySqlParameter[] commandParameters)    at mojoPortal.Data.DBSiteSettings.GetSiteIdByHostName(String hostName)    at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromCache()    at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromContext()    at mojoPortal.Web.UrlRewriter.GetRedirectUrl(String targetUrl)    at mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app)    at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) 2012-03-10 12:49:48,987 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 2012-03-10 12:49:49,956 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 2012-03-10 12:49:49,987 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 2012-03-10 12:50:42,204 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 2012-03-10 12:51:37,311 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task 2012-03-10 12:51:37,389 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread 2012-03-10 12:56:27,472 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 2012-03-10 12:56:28,425 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 2012-03-10 12:56:28,488 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 2012-03-10 13:01:55,959 ERROR 98.24.93.240 - en-US - /Admin/SystemLog.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error. System.Web.HttpException (0x80004005): The file '/Admin/SystemLog.aspx' does not exist.    at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)    at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2012-03-10 13:02:35,255 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task 2012-03-10 13:02:35,286 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread 2012-03-10 13:04:02,548 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 2012-03-10 13:04:03,595 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task

 

3/11/2012 8:09:00 AM
Gravatar
Total Posts 18439

Re: Upgrading MojoPortal version, Admin login now fails

I would look around and make sure there are not extra copies of web.config or user.config in sub folders such as the /Admin folder or /Secure folder or other folders.

You should use the Web.config file that shipped with this version of mojoPortal and re-apply any customizations. We don't ship a user.config in the package so that would never be overwritten during upgrades.

Then I would delete the log file, it will come back again when it logs more errors. It is very strange to see those database errors since your site is showing content it must be connecting to the database for most requests. After deleting the log I would browse around the pages that are working and then see if any new errors are logged and then try the things that are showing errors and see if there are any different error details than what you have posted.

You might also try commenting out the PageNotFoundHandler in the <modules> section of web.config and see if you get any different error since the files do exist.

You are using the .NET 4 package of mojoPortal and .NET 4 hosting right?

Other than that it is baffling and just leads me more to thinking there is some strange hosting configuration going on, though I'm not sure what it is.

Hope that helps,

Joe

3/11/2012 12:24:28 PM
Gravatar
Total Posts 17

Re: Upgrading MojoPortal version, Admin login now fails

Joe, thanks.  It was the web.config file.  I just used the old one instead of using the one with the new version.  I'm really sorry for all the trouble that it caused you.  I would appreciate it if you would visit my site one more time.  www.engenious.net and look at the Microsoft RDL menu.  I can't seem to get to it to delete or re-assign to a new parent.  Any suggestions would be appreciated.

 

3/12/2012 7:55:59 AM
Gravatar
Total Posts 18439

Re: Upgrading MojoPortal version, Admin login now fails

Hi,

Thanks for your donation!

If you'd like to create a temporary admin user and send me credentials to login to your site I can take a look and try to figure out what is happening.

joe dot audette at g mail dotcom

Are you trying to delete it or which page do you want it to be a child of?

What happens when you try to delete it? does it log any errors?

What happens when you try to assign a parent page?

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.