You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/04 03:22:57 UTC
[GitHub] [airflow] xuhongtao0101 opened a new issue #10149: SSH operator error
xuhongtao0101 opened a new issue #10149:
URL: https://github.com/apache/airflow/issues/10149
[2020-08-02 15:56:07,741] {{taskinstance.py:1047}} ERROR - SSH operator error: 'utf-8' codec can't decode bytes in position 16382-16383: unexpected end of data
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/operators/ssh_operator.py", line 139, in execute
self.log.info(line.decode('utf-8').strip('\n'))
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 16382-16383: unexpected end of data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 922, in _run_raw_task
result = task_copy.execute(context=context)
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/operators/ssh_operator.py", line 173, in execute
raise AirflowException("SSH operator error: {0}".format(str(e)))
airflow.exceptions.AirflowException: SSH operator error: 'utf-8' codec can't decode bytes in position 16382-16383: unexpected end of data
[2020-08-02 15:56:07,894] {{taskinstance.py:1082}} ERROR - Failed to send email to: ['xu_hongtao0101_ext@wuxiapptec.com']
[2020-08-02 15:56:07,894] {{taskinstance.py:1083}} ERROR - Connection unexpectedly closed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/operators/ssh_operator.py", line 139, in execute
self.log.info(line.decode('utf-8').strip('\n'))
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 16382-16383: unexpected end of data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 922, in _run_raw_task
result = task_copy.execute(context=context)
File "/usr/local/lib/python3.7/site-packages/airflow/contrib/operators/ssh_operator.py", line 173, in execute
raise AirflowException("SSH operator error: {0}".format(str(e)))
airflow.exceptions.AirflowException: SSH operator error: 'utf-8' codec can't decode bytes in position 16382-16383: unexpected end of data
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-668357764
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] abhaypartap commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
abhaypartap commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-742317640
{
"charset": "utf8",
"cursorclass": "sscursor",
"local_infile": true
}
Try passing those arguments in Extras of SSH connection
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #10149:
URL: https://github.com/apache/airflow/issues/10149
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] xuhongtao0101 commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
xuhongtao0101 commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-668358541
I made an error using SSH operator to execute Python script remotely, which seems to be a log problem. However, my log level has been set to warning, so I still report an error. Please help me solve this problem
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] xuhongtao0101 commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
xuhongtao0101 commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-742333726
> @xuhongtao0101 were you able to resolve the error? I see the same error when using SSHOperator.
I set the encoding in the remote server environment variable to UTF8, and the PY script encoding to UTF8, which seems to solve this problem. I haven't seen any similar errors since
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] kumarprabhu1988 commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
kumarprabhu1988 commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-705823498
@xuhongtao0101 were you able to resolve the error? I see the same error when using SSHOperator.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] eladkal commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-759654459
@abhaypartap This sounds like a good information to include in the [documentation of SSH connection ](https://github.com/apache/airflow/blob/master/docs/apache-airflow-providers-ssh/connections/ssh.rst)
Would you mind creating a PR to add it ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] Junnplus commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
Junnplus commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-768807193
@eladkal I think the answer of @abhaypartap is not helpful
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] kumarprabhu1988 commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
kumarprabhu1988 commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-705823498
@xuhongtao0101 were you able to resolve the error? I see the same error when using SSHOperator.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] abhaypartap commented on issue #10149: SSH operator error
Posted by GitBox <gi...@apache.org>.
abhaypartap commented on issue #10149:
URL: https://github.com/apache/airflow/issues/10149#issuecomment-742341155
okay that's good
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org