I tried installing the Migration PRO tool on my server. But I get a 404 error in the backend.
My server runs NGINX and the NGINX server is running the UB NGINX config file succesfully.. Also the folders are chmodded correctly.
Any advice why the 404 still shows up?
20 answers
Hi pictureh,
It seems you have custom settings with `fastcgi_pass. If this is the case, after you upgrade our tool, you have to re-update the value of the param `fastcgi_pass’ accordingly in our tool’s configuration file at:
pub/ub-tool/nginx.conf
If the issue still persists, please send me via private message here the admin and SSH credentials of your M2 site; and let me know your M2 webroot path as well so that I can debug further.
Regards,
Mall.
Hi Mall,
You are correct, Magento2 is the installation location of Magento.
I installed the most recent version of the migration tool so I assume this was 3.0.2, how can I check at this point?
The path to the config file that is used is /data/web/nginx/server.ubdata
Hi pictureh,
I installed the most recent version of the migration tool so I assume this was 3.0.2, how can I check at this point?
The tool in your back-end referred to version 3.0.1 instead, as indicated via this screenshot: http://i.prntscr.com/0a87afb4c5e14e91b7e16edd08752a9f.png
You can also check the version info via the file: app/code/Ubertheme/Ubdatamigration/etc/module.xml
The path to the config file that is used is /data/web/nginx/server.ubdata
You shouldn’t create another configuration file. Our tool has a config file for nginx at `pub/ub-tool/nginx.conf`
and you should use such file for setting.
I need to check the nginx setting file of your Magento 2 site, not the configuration file of our tool. Please let me know the real path of such file.
PS. Please follow our readme.txt file for Nginx server configuration.
Regards,
Mall.
Hi Mall,
I just installed the migration tool V3.0.2. Unfortunately, I still get the 404 error in the Magento backend
My webhosting company stated that I should copy the nginx config file from the UB-migration folder and place it in the data/web/nginx/ folder, then it will be loaded correctly by NGINX.
Unfortunately, they don’t want to give me the rights to edit the nginx config myself since it’s a managed VPS.
Hi pictureh,
I have checked the log of your site via SSH.
And i see issues in the log of your site as this: http://i.prntscr.com/9140de63f7564331a066634046aa0519.png
And i have run the upgrade command in your web root folder: php -f bin/magento setup:upgrade
And the issue as i mentioned was solved but it seems you have disabled the admin credentials you shared: http://i.prntscr.com/40958dc33e8a4720ae6ffbbfee4c27a9.png
I need check further to detect the root of issues as you said with our tool in your working. Let’s re-update me the admin credentials of your site.
Regards,
Mall.
Hi pictureh,
I have checked your context and added more tweak in the nginx file config for our tool which you have clone at `nginx/server.ubdata`
And i need to restart the nginx service in your server now. But i can’t do it: http://i.prntscr.com/2f06c58634944c6b8dba0e1eef3849a3.png
Kindly contact to your system admin to re-start the nginx service in your server for testing new my changes now.
Also, i can’t find the current nginx config file for the Magento 2 instance at http://stasphs.hypernode.io. Can you tell me know where is it locating?
Regards,
Mall.
Hello Mall,
The hosting company restarted the NGINX service. They also noted that once you make changes to the copied file in the data/nginx/server.ubdata file they have a special daemon that reloads the NGINX service (nginx_config_reloader)
The nginx config file can be found at the following location:
/etc/nginx
Hello Mall,
I was in contact with the hosting provider, and they send me the value of fastcgi_pass: 127.0.0.1:9000
Hi pictureh,
I did try but still have not found the root of the issue `file not found` in your current context of your Nginx server.
All the settings needed for our tool is correct & sufficient for now. It seems your nginx has not applied our settings in the file nginx/server.ubdata
Could you please contact your hosting provider to get further help on this?
We have the settings at nginx/server.ubdata`, it’s strange why we still get ‘File not found’ issue when we access the URL: http://stasphs.hypernode.io/ub-tool/index.php?token=1516870b207d7ffaa507ae278204e2be
Regards,
Mall.
Hi pictureh,
app@1forbb-stasphs-magweb-do:~/magento2$ php bin/ubdatamigration run --step=7
Processing in step #7….PHP Error[8]: Undefined offset: 3
in file /data/web/magento2/pub/ub-tool/protected/controllers/Step7Controller.php at line 884
That issue because your database in your working now is Magento 1.6.x and you have not selected all websites in to migrate.
To handle this case, i have updated code to migrate data in the step #7 and now you can continue with data migration in this step and others.
Regards.
Mall.
Hi Mall,
I get a similar error in step 8 of the process.
Could you also please change the post in this topic where you link publicly to the migration tool url on my server?
Thanks.
Hi picture,
I have checking the issue as you said in the step #8, please pause all your activities in you end.
Regards,
Mall.
Hi Mall,
I did a reset on all steps and just imported all the stores. It seems it’s running good now.
Thank you