run command
bin/magento migrate:data -a app/code/Vendor/Migration/etc/opensource-to-opensource/1.9.4.0/config.xml
Error migration magento 1.9.4.0 to magento2 2.3.5
Base table or view not found: 1146 Table 'magento1.customer_entity_static' doesn't exist
Find a module that you are installing that is using customer_entity_static table, disable it and try again.
Please check if You have custom attribute with backend_type == static in your eav_attribute table. Problem is in vendor/magento/data-migration-tool/src/Migration/Step/Customer/Model/AttributesDataToCustomerEntityRecords.php file in fetchAttributesData method. It gets $attributeIdsByType and based on type magento refers to table (e.g. it refers to table customer_entity_ + backend_type (in my, and your case it is type static).
Related
After launch the application, I get an error:
Caused by: liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets checksum was: 8:2b2936713e8d9aea052c3122fd81faec but now it is:
8:ed8f7550fdd9809f4f6bf0f2d83dbbd8
The error points to such a table:
create table car (
id bigint not null auto_increment PRIMARY KEY,
name varchar(255) not null,
category varchar(255) not null
);
I read about this error and it was pointed out to use the mvn liquibase:clearCheckSums command but in the terminal I get the error: Error: -classpath requires class path specification (I run the command in the project folder)
The error indicates that a changelog that already run now is running with some changes. If you change something on an already run changelog then the checksum changes and this error is completely normal.
Check your databasechangelog table for the mentioned checksum to verify the changelog that crashes. The solutions are usually not to change the checksum of an already run changelog. If you can drop this changelog from the database and run it again will work fine. Sometimes the same changelog crashes without changing anything. This happening to me all the time because of the line seperator. For example, on IntleliJ you can change it from here:
Check what line separator do you need by testing :)
I am getting this error on Magento 2.3.6 when running
bin/magento setup:upgrade
Updating modules:
Schema creation/updates:
Primary db_schema file doesn`t exists
Any idea what may cause this issue ?
The file db_schema.xml should be present in app/etc
I'm trying to do ModelFirst (scaffolding) of an existing bbdd in postgresql with geometry data.
In the VS project I have well installed all the necessary nuget packages (EntityFrameworkCore, EntityFrameworkCore.Design, EntityFrameworkCore.Relational, EntityFrameworkCore.Tools, Npgsql.EntityFrameworkCore.PostgreSQL, Npgsql.EntityFrameworkCore.PostgreSQL.Design and Npgsql.NetTopologySuite).
In VS PM, when launching the command:
Scaffold-DbContext "Host=myserver;Database=spatial;Username=postgres;Password=xxxxxxxx" Npgsql.EntityFrameworkCore.PostgreSQL -Schemas spu -OutputDir Spatials
He gives me these exceptions:
Could not find type mapping for column 'spu.nuts.geom' with data type
'geometry(Geometry,4326)'. Skipping column.
And it doesn't map the geometry columns, all rest columns are ok.
What am I doing wrong?
Can I specify scaffolding using NetTopologySuite?
Thanks a lot
Edit: Solved.
Show comments
I am new sugarcrm developer i will configure sugarcrm in my localhost.
I have install successfully but some existing module builder
configuration not working
error "Database failure.Please refer to sugarcrm.log for details".
In sugarcrm.log there was this message:
Tue Aug 22 06:43:09 2017 [4546][1][FATAL] Query Failed: SELECT contacts_users_1contacts_ida id FROM contacts_users_1_c WHERE contacts_users_1_c.contacts_users_1users_idb = '1' AND contacts_users_1_c.deleted=0: MySQL error 1146: Table 'sugarcrm.contacts_users_1_c' doesn't exist
How to resolve that issue?
search your custom code where you wrote this query because this is not default table of SugarCRM. You have created it via customization therefore just comment out that query and then execute quick repair and rebuild. Execute any database mismatch query at the end of repair and rebuild page. Which might generate query for the creation of table with required schema.
Once table is created then uncomment your code and try again.
I am upgrading custom module in ODOO and on production server, I updated code and restarted odoo server. But when I try to upgrade custom module then its stucks on
creating or updating database tables
On local server it's work fine.
Here is log of server:
loading 1 modules...
1 modules loaded in 0.02s, 0 queries
loading 54 modules...
INFO openerp.models: Missing many2one field definition for _inherits reference "content_id" in "iris.series", using default one.
INFO openerp.models: Missing many2one field definition for _inherits reference "video_id" in "iris.ad_video", using default one.
INFO openerp.models: Missing many2one field definition for _inherits reference "content_id" in "iris.video", using default one.
WARNING openerp.models: Field definition for _inherits reference "user_id" in "iris.advertiser" must be marked as "required" with ondelete="cascade" or "restrict", forcing it to required + cascade.
INFO openerp.models: Missing many2one field definition for _inherits reference "stats_id" in "iris.store_playback_stats", using default one.
WARNING openerp.models: Field definition for _inherits reference "user_id" in "iris.store_owner" must be marked as "required" with ondelete="cascade" or "restrict", forcing it to required + cascade.
INFO openerp.models: Missing many2one field definition for _inherits reference "category_id" in "iris.business_category", using default one.
INFO openerp.models: Missing many2one field definition for _inherits reference "video_id" in "iris.partner_video", using default one.
INFO openerp.models: Missing many2one field definition for _inherits reference "category_id" in "iris.content_category", using default one.
WARNING openerp.models: Field definition for _inherits reference "user_id" in "iris.content_partner" must be marked as "required" with ondelete="cascade" or "restrict", forcing it to required + cascade.
WARNING openerp.models: Field definition for _inherits reference "user_id" in "iris.subtitler" must be marked as "required" with ondelete="cascade" or "restrict", forcing it to required + cascade.
INFO openerp.modules.module: module module_name: creating or updating database tables
I am getting these WARNING messages since beginning of module installation but module was upgraded. But now its stuck on creating or updating database tables on production server not on local server.
Database is postgresql on production and local servers.
What can be issue? I had research on it but did not got anything relevant.
Edit 1
user_id = fields.Many2one('res.users')
Edit 2
I have installed a custom module which also use base modules of odoo. I made XML and .py changes and upgraded custom module and some time server stuck at same point and then restart server then it does not stuck. Now I also added model in .py and updated XML and whenever I upgrade my custom module it stucks at same point. Even I can't install any new module.
As you said above, having issue while upgrading and installation of the module it takes time. You can debug the process by logging in to the database and fire this query so here you need to check the locks which are running on Postgres will tell you about how your module taking a lot of time to updating.
Query:
select psa.query from pg_locks as pg left join pg_stat_activity as psa on pg.pid=psa.pid where psa.datname='database_name';