error on setup page

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/9/2008 12:25:14 PM
Gravatar
Total Posts 29

error on setup page

when running http://<MySite>/setup I get this:

Running script webstore - 0.0.1.1 - 00:00:01.5625000
MySql.Data.MySqlClient.MySqlException: Can't create table '.\mojoportal\ws_cartoffersalt.frm' (errno: 121) at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(MySqlConnection connection, String commandText, MySqlParameter[] commandParameters) 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:01.8281250
Configuring feature Web Store - 00:00:01.8750000
Ensuring all features are installed in server admin sites... - 00:00:01.8750000
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMySQL
Version2.2.6.8
StatusYou need to upgrade the Web Site and Database Code to the same version as the Database Schema.

Any idea why?

This is on Windows 2003 box running MySQL.

I have been doing some testing with writing my own modules. Could it be related?

I did a quick search on the forums but couldnt seem to find any other instance of this.

Thx,

Greg P

9/9/2008 12:34:49 PM
Gravatar
Total Posts 18439

Re: error on setup page

You didn't mention your MySql version. People have been reporting problems using MySql 5.1. If you are using that version I recommend you uninstall it and install 5.0.

5.1 is not an official release yet, its just a release candidate, you are better off with 5.0 for now.

Hope it helps,

Joe

9/9/2008 1:45:37 PM
Gravatar
Total Posts 29

Re: error on setup page

I am running version 5.0.67-community-nt

 

Thx

Greg

9/10/2008 7:33:39 AM
Gravatar
Total Posts 18439

Re: error on setup page

I have been doing some testing with writing my own modules. Could it be related?

Possibly, if you copied webstore to start your own feature and used the same folders for setup files.

Are you working with mojoportal from svn trunk or from a zip download?

When I try it with an empty MySql db it runs without errors for me.

Best,

Joe

9/20/2008 1:45:03 AM
Gravatar
Total Posts 29

Re: error on setup page

Well, for some reason the setup script felt like it should rerun the 0.0.1.x scripts from C:\Projects\MojoPortal\Web\Setup\applications\webstore\SchemaUpgradeScripts\mysql\ again, hence the errors as it wanted to create columns and keys etc, that were already present.

Any idea on why it wanted to run scripts it had already run before? I ended up stashing the 0.0.1.x scripts in a sub dir and then it only ran the 0.0.2.x scripts without a hitch.

Is there a way to test the entire integrity of the DB to verify that it is actually at the rev it thinks it is?

(and this code is the SVN version)

Thanks

Greg P

9/20/2008 8:20:04 AM
Gravatar
Total Posts 18439

Re: error on setup page

I don't know why it would do that unless you copied them to a new location in your own feature setup. It keeps the version in mp_SchemaVersion table and will not run scripts unless they are higher than the current version for the appname which is based on the folder name under /Setup/applications. But if the scripts got moved or copied to a new folder beneath /Setup/applications on your dev machine it may run them again thinking its a different feature because its a different folder.

You can see the history of scripts it has run in the mp_SchemaScriptHistory table.

Hope it helps,

Joe

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