-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
[16.0] fs_storage + EDI: connection closed after some time #319
Comments
@JordiMForgeFlow I never encountered this kind of error. You could patch the code to not store the filesystem objet on a variable to see if it solve the problem... |
@lmignon thanks for the feedback. I will try and let you know the outcome |
Hello @JordiMForgeFlow I faced a similar issue where the underlying ssh connection seems to be prematurely closed. Adding a timeout helped as a workaround. Can you try adding |
Thank you for the hint @nilshamerlinck, I will give it a try and see if that solves it |
@nilshamerlinck @lmignon After trying different things I have managed to get it working with the following changes: #320 I have suggested them as settings in the FS Storage. Apart from storing the connection, I also saw that fsspec instances also cache information. Invalidating the cache when the connection gives an error allowed to only force the reconnection when needed. |
Module
fs_storage
Describe the bug
I am using fs_storage to connect to SFTP with EDI (the PR is still not merged OCA/edi-framework#26). The connection works fine, but after some time the EDI jobs start to fail due to the following issue:
If I press the button 'TEST CONNECTION' in the fs storage, I also get the same error. However, if I restart Odoo, it starts working fine again.
My hint is that the problem comes from fs_storage storing the connection in a variable (
storage/fs_storage/models/fs_storage.py
Line 274 in 3083166
@lmignon @sebastienbeau have you faced something like this with fs_storage?
The text was updated successfully, but these errors were encountered: