postnl / postnl-magento2

This is the official Magento 2 extension for the logistics company PostNL. Add shipping options and parcelshops to your checkout. Create labels with track and trace functionality from the backend.
58 stars 61 forks source link

Upgrade to version 1.9.1 causes segmentation fault and shop not working anymore #156

Closed richardreen closed 4 years ago

richardreen commented 4 years ago

Tried to upgrade to version 1.9.1, we are using now version 1.8.1 During upgrade some message that we have to reinstall this extension and after that the setup:upgrade always fails with a segmentation fault. No error messages in the log.

Here is hole logging of the upgrade.

[uxxxxxx@xxxxx public_html]$ bin/magento maintenance:enable Enabled maintenance mode [uxxxxxx@sxxxx public_html]$ composer update tig/postnl-magento2 Loading composer repositories with package information Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals

error: The following untracked working tree files would be overwritten by checkout: Config/CheckoutConfiguration/CheckoutExtension.php Config/Provider/ReturnOptions.php Plugin/Order/AsyncPlugin.php Plugin/Postcodecheck/Mageplaza/LayoutProcessor.php Service/Shipment/Packingslip/Compatibility/DataHelperFactoryProxy.php Service/Shipment/Packingslip/Compatibility/GeneratePdfFactoryProxy.php Service/Shipment/Packingslip/Compatibility/XtentoPdfCustomizer.php Setup/V182/Schema/ModifyConditionNameColumn.php Setup/V190/Schema/InstallReturnBarcode.php Setup/V190/Schema/InstallReturnLabel.php Test/Unit/Service/Shipment/Label/Type/DomesticTest.php etc/adminhtml/system/postnlsettings/returns-be.xml etc/adminhtml/system/postnlsettings/returns-nl.xml Please move or remove them before you can switch branches. Aborting

Would you like to try reinstalling the package instead [yes]? 

Generating autoload files [uxxxxxx@xxxxxx public_html]$ bin/magento setup:upgrade Segmentatiefout

[uxxxxxx@xxxxxx public_html]$ bin/magento -vvv setup:upgrade Segmentatiefout

Please complete the following information

NB. We have another site on the same server using excactly the same resources but with the tig/postnl extension disabled. Here are no issues if we de an upgrade to for example magento 2.3.4. This site can not be upgraded because the tig/postnl module is also upgraded and is causing the segmentation fault.

tig-jaspersmits commented 4 years ago

Hi @richardreen ,

Thanks for your message. I'll discuss this with my colleague and get back to you with a response. @tig-dennisvanderhammen , any thoughts on this problem?

Kind regards, Jasper TIG

tig-dennisvanderhammen commented 4 years ago

Hi @richardreen,

The first messages that you are receiving are caused because Composer detected changes in vendor/tig/postnl-magento2. It could be that this is caused by a specific server command or intentional changes. We always recommend not changing files in the vendor folder.

I would also recommend - if this isn't the case yet - to add the vendor map to the .gitignore file of your repository.

It seems that Composer has a workaround for this already, which is removing PostNL Magento 2 version v1.8.1 and installing version v1.9.0.

The error "Segmentatiefout" seems to be an error that isn't typical of PHP. I would assume something in the server system is causing issues. I would recommend checking your system logs or nginx/apache logs to see if there are any errors. If you can't find anything, I would recommend getting in touch with your hosting provider, as this could also be caused by hardware issues.

Kind regards, Dennis TIG

richardreen commented 4 years ago

We did not change any file in the vendor tig directories. As you could also read we have another site that is using another directory with excaclty the same content as for directory/shop but one difference...the tig/postnl for magento2 is disabled and in the directory we can ugrade without any problems....so this problem s is still there and we can not upgrade...why is this ticked closed now?????

tig-dennisvanderhammen commented 4 years ago

Hi Richard,

About your first issue, the changed files, this is something I could ascertain because of the error messages you have provided. The message "error: The following untracked working tree files would be overwritten by checkout" is something" is an error that Composer throws when the files in the vendor map are not equal to the version on packagist.org. This could for example be changes in the permissions, and as I stated in my previous message, could be caused by a server command.

Because Composer removed version v1.8.1 and reinstalled version v1.9.0, this should not cause any issues.

As for your second issue, the setup:upgrade part: We use our Git repositories' issue system for problems that are caused by the codebase. I have closed your issue because we are unable to reproduce your problem on a core Magento environment. If you are unable to find any logs in your Magento environment or server environment that could indicate any faults, I would recommend getting in touch with PostNL's servicedesk by calling them on 088-2255651 or by sending them an email at citservicedesk@postnl.nl.

Kind regards, Dennis TIG