Skip to content
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

Could not connect to host #45

Open
ghost opened this issue Jan 22, 2016 · 6 comments
Open

Could not connect to host #45

ghost opened this issue Jan 22, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 22, 2016

Hi,

Since this morning, we have an issue with the connector. It can create a connection to the sftp server.
However if we do it manually it works without problems.

When I modify the line 19 of file vendor/agencednd/magento-connector-bundle/DnD/Bundle/MagentoConnectorBundle/Helper/SFTPConnection.php
And remove the error bypass (@)

There is the error I get in Apache logs:
PHP Warning: ssh2_connect(): Error starting up SSH connection(-43): Failed getting banner in /.../vendor/agencednd/magento-connector-bundle/DnD/Bundle/MagentoConnectorBundle/Helper/SFTPConnection.php on line 19

We tried to clear Akeneo cache / APC cache but without success..

This is critical because we can't export anything.

Can you have a look at this ?

Thanks in advance.

Regards.

@ghost
Copy link
Author

ghost commented Jan 22, 2016

Update: this problem occurs only with product export.
We use the DnD connector also for categories / families / attributes and options and it works fine.

@ghost
Copy link
Author

ghost commented Jan 26, 2016

Hi,

Do you have infos about this ?

Thanks.

@DnD-Mimosa
Copy link
Contributor

Hi @gaces,

This Bundle is not supported anymore. In fact, Akeneo has developped its own export connector (enhanced connector bundle).

If you still using our Bundle, can you try to execute your product export by using ssh with the following command line :
app/console akeneo:batch:job your_job_code

Then paste the error in a new comment.

Regards,
Florian.

@ghost
Copy link
Author

ghost commented Jan 26, 2016

Hi, thanks for you answer,

The error is: "Could not connect to host XXX on port XXX"

But, as I said in my first comment, the real error is:

PHP Warning: ssh2_connect(): Error starting up SSH connection(-43): Failed getting banner in /.../vendor/agencednd/magento-connector-bundle/DnD/Bundle/MagentoConnectorBundle/Helper/SFTPConnection.php on line 19

Thanks

@DnD-Mimosa
Copy link
Contributor

Hi,

You only have this error on the product export ?

Sorry for this response but are you sure that you filled the right IP address ?

If you're sure, are you using the public IP instead of the private ?

Regards,
Florian.

@ghost
Copy link
Author

ghost commented Jan 26, 2016

Yes this problem only occurs on product export.
Yes I'm sure it's the right IP adress because we use aliases and not directly IPs. Moreover I have the same configuration for all DnD exports and it works.

We are digging, and we suppose that the problem is related to the concurrency ssh connections created which are not closed fast enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant