ngix settings

Here is my ngix file content on …./public_html/pub/ub-tool/ngix.conf

——————————————————————————
#START FOR ub-tool APP CONFIG
location /ub-tool/ {
index index.html index.php;
try_files $uri $uri/ /index.php?$args;
location ~ ^/(protected|framework|themes/\w+/views) {
deny all;
}
#avoid processing of calls to unexisting static files
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
try_files $uri =404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#let application catch the calls to unexising PHP files
set $fsn /index.php;
if (-f $document_root$fastcgi_script_name){
set $fsn $fastcgi_script_name;
}
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass fastcgi_backend
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fsn;
#PATH_INFO and PATH_TRANSLATED can be omitted, but RFC 3875 specifies them for CGI
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fsn;
}
# prevent nginx from serving dotfiles (.htaccess, .svn, .git, etc.)
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}
#END FOR ub-tool CONFIG

I cant just understand what to do with it and where to add  this codes

server {
listen 80;
#…other configs

#include config file for ub-tool
include path_to_your_magento2/pub/ub-tool/nginx.conf;
}
 

12 answers

Profile photo of ubdev Staff 84140.00 $tone May 21, 2021
Public

Hi there, 
 
For the Nginx configuration, please check our Readme instruction once again (packed with your download package). Also, please consult with your hosting provider or system admin for better help with the Nginx configuration.
 
Regards,
Ubertheme team 

#1
Profile photo of ubdev Staff 84140.00 $tone May 21, 2021
Public

Hi there, 
So please provide us the Nginx file of your M2 instance (not the Nginx file of our module), we will check and instruct you which line you need to update for the Nginx configuration.
Regards,
Ubertheme team

#3
Profile photo of cotjvam11222 70.00 $tone June 1, 2021
Public

hello again. 
sorry was realy busy since last week..
how can i send the nginx.conf file to you guys?
there is no attecment in here???

in my root i can see only a file which named “nginx.conf.sample” it is a new created server.

#4
Profile photo of ubdev Staff 84140.00 $tone June 1, 2021
Public

Hi Naci Berk Teke, 
 
We’ve checked the screenshots you provided via email and seen that you’ve already completed the Nginx configuration and started the migration. And you got an issue in Step 7. 
 
To solve the issue in Step 7, you can run the CLI command: php -f bin/ubdatamigration clean --step=7
 
Then, you continue data migration in step #7 by running the CLI command:
php -f bin/ubdatamigration run --step=7
 
If you get any other issues, please get back to us here. In case you need to send an attached file, please send it over to our email info (at) ubertheme.com instead. 
 
Regards,
Ubertheme team

#5
Profile photo of ubdev Staff 84140.00 $tone June 1, 2021
Public

Hi there,
 
As mentioned in our previous reply, you already completed the Nginx configuration already, so there’s no need to change it now.  
 
Please keep migrating the data. If you come across any issue, please pause the process and let us know the details of the issue here.
 
Regards,
Ubertheme team
 
 

#7
Profile photo of Mall Staff 166570.00 $tone June 2, 2021
Public

Hi there,
We’d like to follow up your new questions sent over email. 

After half an hour I did try again with Delta btn and got this error as you can see in screenshot.
Then I tried again in console and I got same issue as before. (check the screenshot)…
Shall I delete data in Quote table manual every time to make it work?

Yes. Because you checked the ‘KEEP ORIGINAL IDS’ setting in step #7, if you added new testing sale quotes in M2 and then, run delta migration in step #7, it may raise the duplicated IDs issue as you mentioned.

Under this circumstance, to continue delta migration in step #7, you have to delete all testing sales data added in M2 after the first migration.

And you can run the following SQL queries in your M2 to mass delete all sales data objects which were not migrated by our module:

Delete From salesrule Where rule_id NOT IN (Select m2_id From ub_migrate_map_step_7 where entity_name = 'salesrule');
Delete From salesrule_coupon Where rule_id NOT IN (Select m2_id From ub_migrate_map_step_7 where entity_name = 'salesrule');
Delete From quote Where entity_id NOT IN (Select m2_id From ub_migrate_map_step_7_quote where entity_name = 'sales_flat_quote' OR entity_name = 'sales_flat_quote_active');
Delete From quote_item Where item_id NOT IN (Select m2_id From ub_migrate_map_step_7_quote_item where entity_name = 'sales_flat_quote_item');
Delete From quote_address Where address_id NOT IN (Select m2_id From ub_migrate_map_step_7_quote_address where entity_name = 'sales_flat_quote_address');
Delete From sales_order Where entity_id NOT IN (Select m2_id From ub_migrate_map_step_7_order where entity_name = 'sales_flat_order');
Delete From sales_order_item Where item_id NOT IN (Select m2_id From ub_migrate_map_step_7_order_item where entity_name = 'sales_flat_order_item');
Delete From sales_order_address Where entity_id NOT IN (Select m2_id From ub_migrate_map_step_7_order_address where entity_name = 'sales_flat_order_address');
Delete From sales_invoice Where entity_id NOT IN (Select m2_id From ub_migrate_map_step_7_invoice where entity_name = 'sales_flat_invoice');
Delete From sales_invoice_item Where entity_id NOT IN (Select m2_id From ub_migrate_map_step_7_invoice_item where entity_name = 'sales_flat_invoice_item');

And then, you can continue with the delta migration in step #7 as normal.

Regards,
Mall.
 

#8
Profile photo of cotjvam11222 70.00 $tone June 2, 2021
Public

Hello and thanks for your answer BUT the problem is i did not any test purchase or anything else…
After my last update i have waited 30min. and treid to run update again just for to see the new orders from the M1 will be created on M2 or not.. Thats it otherwise i did even touch anything else in that 30min.

But again realy thanks for the query it will help me if i make a test purchase…

#9
Profile photo of Mall Staff 166570.00 $tone June 2, 2021
Public

Hi there,

But again realy thanks for the query it will help me if i make a test purchase…

Yes, please continue the migration at your end. And let me know if you need further assistance.

Regards,
Mall.

#10
Profile photo of Mall Staff 166570.00 $tone 5 days ago
Public

Hi there,

you can see the error on screenshot 1.
and u can see on screenshot to there is any order in db which has been created by us. 
https://dev.manillo.dk/Screenshot_1.png
https://dev.manillo.dk/Screenshot_2.png

If you still got the ‘duplicated’ issue in step #7 after you did the steps suggested in reply #8, you can try with steps as following:
1. You run CLI command:

php -f bin/ubdatamigration rmdeleted --step=7

2. And then, you run the CLI command:

php -f bin/ubdatamigration clean --step=7

3. And then, you continue with data migration in step #7 by run the CLI command:

php -f bin/ubdatamigration run --step=7

And tell me to know how it goes.
Regards,
Mall.

#12

Please login or Register to Submit Answer

Written By

Comments