Upgrade issue

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.
10/29/2017 1:37:29 AM
Gravatar
Total Posts 12

Upgrade issue

Hi,

Just upgraded from 2.5.0.0 to 2.6.0.0 and now the site is broken. When I run setup (/Setup/Default.aspx) I get the following:

Probing system...
File system permissions ok.
MySQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema needs upgrade.
1 site(s) found.
Running script mojoportal-core - 2.6.0.0 - 00:00:00.0781235
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'ssdk_karlshamn_se_db2.mp_modulesettings' doesn't exist at MySql.Data.MySqlClient.MySqlStream.ReadPacket() at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at MySql.Data.MySqlClient.MySqlScript.Execute() at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:00.0937573

 

 

But looking into the database I can se the table mp_ModuleSettings ectually exist!

What is the problem?

10/29/2017 3:30:34 AM
Gravatar
Total Posts 12

Re: Upgrade issue

OK. So it seemed to be a case-thing. If i updated the upgrade scripts so that the table names equals the one in my db the setup works:

mp_modulesettings changed to mp_ModuleSettings

I also got problems on the following.

mp_moduledefinitionsettings  chaned to mp_ModuleDefinitionSettings

10/29/2017 3:31:47 AM
Gravatar
Total Posts 12

Re: Upgrade issue

However. After the upgrade successfully is upgraded i get:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

 

 

Where can I get this log file?

10/29/2017 3:47:52 AM
Gravatar
Total Posts 12

Re: Upgrade issue

Oh, this is like the worst upgrade experience ever. Now i Keep getting this:

2017-10-29 09:56:13,292 ERROR 81.228.239.44 - en-US - / - mojoPortal.Web.Global - 81.228.239.44 / Referrer(none) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 
System.Web.HttpParseException (0x80004005): Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified.
File name: 'mojoPortal.Features.UI'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)
   at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail)
   at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies)
   at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)
   at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry)
   at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
   at System.Web.UI.PageThemeParser.ProcessDirective(String directiveName, IDictionary directive)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

 

 

The dll file mojoPortal.Features.UI were first missing under bin directory, but now I copied it in place. Still getting the error though. Used filezilla. Any leads?

10/29/2017 4:48:24 AM
Gravatar
Total Posts 12

Re: Upgrade issue

So.

I restored the backup (filesystem only). - The site works.

I upgraded the portal again by FTP:ing all files. Including the modified sql scripts according to my previous post.

Run the setup. Everything OK. No errors.

The UI file is there...

Go to site root.  Again, the same error!!

 

2017-10-29 10:52:10,456 ERROR 81.228.239.44 - en-US - / - mojoPortal.Web.Global - 81.228.239.44 / Referrer(none) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 
System.Web.HttpParseException (0x80004005): Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified.
File name: 'mojoPortal.Features.UI'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)
   at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail)
   at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies)
   at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)
   at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry)
   at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
   at System.Web.UI.PageThemeParser.ProcessDirective(String directiveName, IDictionary directive)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
 

 

 

mojoPortal.Features.UI dll file is gone!

Uploade it again. 

Access the site root and the same error and the file is gone!

 

WTF?! The application seems to remove the file!!

10/29/2017 8:40:23 AM
Gravatar
Total Posts 2239

Re: Upgrade issue

Hello,

I'm sorry you're having trouble. I can assure you that there is no mojoPortal code which deletes files from the bin directory. If you check the filesystem, you will probably see the mojoPortal.Features.UI.dll file in the bin directory. I believe the problem you are having is due to an incompatibility between the version of mojoPortal you are running and an add-on. Either one of the mojoPortal Pro features, the Web Store, or a third party module.

Can you get to the System Information page or the admin pages? Try going to www.your.url/Admin/ServerInformation.aspx and post the contents of the Feature Versions table.

Thank you,
Joe

10/29/2017 9:20:27 AM
Gravatar
Total Posts 12

Re: Upgrade issue

Hi,

Thanks for your replay. Something is removing that dll file from the bin folder. I add it to the bin-folder with filezilla. Wait maybe 15 sek, then file is gone. Upload it to bin, wait some seconds and the file is gone. This can be done like forever.

Trying to access server information, but get the following:

2017-10-29 15:22:42,382 ERROR 81.228.239.44 - en-US - /Admin/ServerInformation.aspx - mojoPortal.Web.Global - 81.228.239.44 /Admin/ServerInformation.aspx Referrer(none) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 
System.Web.HttpParseException (0x80004005): Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'mojoPortal.Features.UI' or one of its dependencies. The system cannot find the file specified.
File name: 'mojoPortal.Features.UI'

When I restore backup the site works. I do not have any PRO modules installed. I Use the blog mudule.

Regarding the web store. I do not use that, but those web store dlls are int the bin directory of my old site, but looking in the bin direktory of the unzipped 2.6.0.0 it is not present. Has it been removed?

10/29/2017 9:48:15 AM
Gravatar
Total Posts 2239

Re: Upgrade issue

Hi,

Try uploading the file to somewhere not in the website. So, if your website is installed in wwwroot, put it in the same folder as wwwroot, not in it. If it's removed from there, you can be sure that mojoPortal isn't removing it. Again, mojoPortal doesn't have any code to remove DLLs.

Can you check with your hosting provider to see if the server is falsely detecting the file as a virus?

Thanks,
Joe

10/29/2017 11:18:54 AM
Gravatar
Total Posts 12

Re: Upgrade issue

Thats a good point! I tried putting it one level above mojoportal installation. File is removed.

So I tried the same thing with the exact same file from my old 2.5.0.0 installation. That file is not removed!

So this is strange. Whats dofferent in the newer version of the file that causes my hosing provider to remove the new file?

10/30/2017 2:51:04 PM
Gravatar
Total Posts 12

Re: Upgrade issue

I've been in contact with the hosting provider and according to them, they are not removing the file.

So I uploaded the file, quickly renamed it. The file stays. I rename it back again to the original name. The file is still not removed.

Reload the page, boom, it just craches without anything in the log.

I take my backed up file from 2.5.0.0. The site is working without errors and the server info page reports the version 2.6.0.0.

Finally I upload the 2.6.0.0 version of that single file again and it is removed after a few seconds.

Something is very strange. 

Is there some latest build where I can fetch the latest file and try?

Could this be some file cach issue by the hosting provider?

10/30/2017 3:22:39 PM
Gravatar
Total Posts 2239

Re: Upgrade issue

Hi Mattias,

mojoPortal is not removing the file. It doesn't do that and never has done it. Something on the server is removing the file, whether your hosting provider admits/knows it or not.

The best I can do for you at this point is to ask that you give us your hosting control panel login so we can troubleshoot the problem for you.

Please complete this form to send us the information related to this thread. You have been given access to this form for this thread only and access will be removed once we receive your information.

Thank you,
Joe

 

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