-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot initialise new mysql database: An exception was thrown while activating Nop.Data.Migrations.MigrationManager -> λ:FluentMigrator.Runner.IVersionLoader #4888
Comments
@sami016 We cannot reproduce the issue. The installation works fine. Please provide more information on how we can reproduce the issue |
Error description speaks for itself. When the system variable 'sql_require_primary_key' is set to |
hello I have exactly the same problem as described below despite having set the primary sql key off the problem is always done I have configured my sql table like this mysqladmin Ver 8.0.25-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)) Oracle is a registered trademark of Oracle Corporation and / or its Server version 8.0.25-0ubuntu0.20.04.1 Threads: 2 Questions: 146 Slow queries: 0 Opens: 234 Flush tables: 3 Open tables: 153 Queries per second avg: 0.001 |
2021-09-02 21:04:32.130 MSK [8576] ERROR: type "citext" does not exist at character 63 |
@PeterZhukov |
Did you find a solution? |
I have the same error during installation process with empty database. Server: Ubuntu 18.04.6 LTS Build and deploy follows way : Database and user have been created : |
I had to install mysql 5.7 and error gone. |
I'm trying investigate root of issue. I've changed web.config, stdoutLogEnable = "true" and restart application but can't find full description of the exception. Looks like the one related with permission #5304 tail -f /var/log/syslog - the way how to view nopcommerce info and error messages. I've dropped data base then install password for default postgres user and start installation process with one. It works for me. |
Hi, |
@ryanlee714 I got the same trouble today |
@ryanlee714 The issue is with the version of MySQL. You need to change it in code to 8.0.29 and recompile the app. Please see: #6284 |
@digitalray I had the same issue while I was installing nopCommerce 4.50.2. I knew it must be related to MySQL 8.0.29. But I couldn't fix it. I was waiting for 4.50.3 to be released. Hopefully nop developers could fix the problem. Same issue happened with nopCommerce 4.50.3. I'm not an expert with Visual Studio. I can change the code to 8.0.29, but I can't publish it to server correctly. I need someone who can help me. My email is ryanlee714@gmail.com, please email me, so we can get in touch. |
Getting the same issue 'Setup failed: An exception was thrown while activating λ:FluentMigrator.Runner.IVersionLoader.' on Configuration screen of Nop Commerce after building and running the web app via VS. |
Have you tried the suggested fix of updating to 8.0.29?
…________________________________
From: pranjalSL ***@***.***>
Sent: Monday, June 27, 2022 7:53:35 PM
To: nopSolutions/nopCommerce ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [nopSolutions/nopCommerce] Cannot initialise new mysql database: An exception was thrown while activating Nop.Data.Migrations.MigrationManager -> λ:FluentMigrator.Runner.IVersionLoader (#4888)
Getting the same issue 'Setup failed: An exception was thrown while activating λ:FluentMigrator.Runner.IVersionLoader.' on Configuration screen of Nop Commerce after building and running the web app via VS.
—
Reply to this email directly, view it on GitHub<#4888 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKD4KOYPE2V74WU5BTOZ7RTVRJSK7ANCNFSM4OG24MEA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@glhays I tried solution suggested by @digitalray, this issue didn't pop up again. But installation process crashed and timed out. |
@glhays I use PostgreSQL in my side so it's not question of MySQL version for my side. |
Understood but issue 4888 is closed. Is there another issue open relating to your issues or are you implying it is the same issue? I offered a suggestion based on the issue of 4888.
…________________________________
From: Kevin Germain ***@***.***>
Sent: Thursday, June 30, 2022 12:12:35 PM
To: nopSolutions/nopCommerce ***@***.***>
Cc: Gregory Hays ***@***.***>; Mention ***@***.***>
Subject: Re: [nopSolutions/nopCommerce] Cannot initialise new mysql database: An exception was thrown while activating Nop.Data.Migrations.MigrationManager -> λ:FluentMigrator.Runner.IVersionLoader (#4888)
@glhays<https://github.com/glhays> I used PostgreSQL in my side so it's not question of MySQL version for my side.
—
Reply to this email directly, view it on GitHub<#4888 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKD4KO5TPYBLMBHH2BTCVHTVRXWSHANCNFSM4OG24MEA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
这么多相同的问题,官方为啥不给解决办法? |
nopCommerce version:
4.30
Steps to reproduce the problem:
The following error prevents the installation from succeeding:
Setup failed: An exception was thrown while activating Nop.Data.Migrations.MigrationManager -> λ:FluentMigrator.Runner.IVersionLoader.
MySqlException: Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before changing this setting.
The text was updated successfully, but these errors were encountered: